:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  --surface: #fff;
  --ink: #14213b;
  --muted: #566682;
  --line: #dfe5ef;
  --body: #f1f4fa;
  --blue: #244fd0;
  --dark-blue: #1737a0;
  --navy: #102044;
  --radius: 16px;
  color: var(--ink);
  background: var(--body);
}
*, *::before, *::after { box-sizing: border-box; }
body { min-width: 290px; margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button:not(:disabled), select { cursor: pointer; }
button:disabled { cursor: progress; opacity: .65; }
:focus-visible { outline: 3px solid #6a96ff; outline-offset: 3px; }
main:focus { outline: none; }
.wrap { max-width: 960px; margin-inline: auto; padding-inline: 24px; }
.bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-mark { display: block; flex: none; inline-size: 37px; block-size: 37px; object-fit: contain; }
.brand-mark-round { border-radius: 50%; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.2rem; white-space: nowrap; }
.logo {
  display: inline-flex; justify-content: center; align-items: center; gap: 3px;
  width: 36px; height: 36px; border-radius: 10px; background: #2c59df;
}
.logo i { width: 4px; height: 15px; background: white; transform: skew(-14deg); border-radius: 3px; }
.logo i:nth-child(2) { height: 20px; }
.logo i:nth-child(3) { height: 11px; }
.language {
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  background: #f7f9fd; border: 1px solid var(--line); padding: 0 8px; border-radius: 10px;
}
.language select { min-height: 38px; border: 0; background: transparent; color: var(--ink); font-size: .9rem; font-weight: 650; }
.content { padding-top: 22px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.welcome { display: flex; align-items: end; justify-content: space-between; margin-bottom: 15px; gap: 14px; }
.welcome p, .page-title p, .section-head a { color: var(--muted); line-height: 1.6; }
.welcome h1 { margin-top: 2px; font-size: 1.55rem; line-height: 1.3; overflow-wrap: anywhere; }
.demo {
  display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; font-size: .82rem;
  background: #e9effa; color: #395477; padding: 6px 9px; border-radius: 8px; align-self: center;
}
.demo i { width: 7px; height: 7px; border-radius: 50%; background: #426bdf; }
.hero {
  background: radial-gradient(ellipse at 80% 35%,#254597,transparent 60%), #102044;
  color: white; border-radius: 19px; display: grid; align-items: center; overflow: hidden;
  position: relative; isolation: isolate; min-height: 242px;
}
.hero-copy { position: relative; z-index: 1; padding: 25px 30px; max-width: min(70%,620px); }
.hero-label { display: inline-flex; align-items: center; gap: 6px; color: #c8d9ff; font-size: .88rem; font-weight: 650; }
.hero h2 { font-size: clamp(1.75rem,4vw,2.6rem); margin-top: 10px; line-height: 1.16; letter-spacing: -.04em; }
.hero p { color: #e0e9ff; line-height: 1.6; margin: 9px 0 17px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; max-width: 100%; text-align: center;
  border: 1px solid transparent; border-radius: 9px; min-height: 41px; padding: 9px 13px;
  font-size: .9rem; font-weight: 710; line-height: 1.4;
}
.hero-btn { background: #fff; color: #143288; }
.hero-btn:hover, .secondary:hover { background: #edf2ff; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: var(--dark-blue); }
.secondary { background: #fff; color: #2144a3; border-color: #cedaf2; }
.wide { min-width: min(100%, 206px); }
.hero-art { position: absolute; width: 270px; height: 250px; right: 24px; top: -6px; display: grid; place-items: center; }
.hero-art i {
  position: absolute; display: block; width: 178px; height: 178px; border-radius: 50%;
  border: 1px solid #a1bbff42; transform: rotate(-28deg) scaleY(.66);
}
.hero-art i:nth-child(2) { transform: rotate(-28deg) scale(1.25,.83); }
.hero-art i:nth-child(3) { transform: rotate(-28deg) scale(1.53,1); }
.hero-art > span {
  display: grid; place-items: center; width: 99px; height: 99px; border-radius: 28px; transform: rotate(-12deg);
  color: #dfeaff; background: linear-gradient(150deg,#638bfb,#274cba); border: 1px solid #99b4ff60;
  box-shadow: 0 18px 48px #091b5a90;
}
.hero-art .icon { transform: scale(2.5); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 11px; gap: 10px; }
.section-head h2 { font-size: 1.15rem; }
.section-head a { color: #2345a5; font-size: .875rem; font-weight: 700; }
.summary { margin-top: 22px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.stat, .order-card, .empty, .meta-panel, .profile, .dispatch-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.stat { display: flex; align-items: center; gap: 9px; padding: 12px 10px; text-align: left; color: var(--ink); min-height: 75px; }
.stat:hover { border-color: #a6b8e8; }
.stat > span:nth-child(2) > span { display: block; font-size: .875rem; line-height: 1.25; color: var(--muted); }
.stat strong { display: block; font-size: 1.32rem; line-height: 1.1; margin-bottom: 4px; }
.stat-icon, .empty-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; flex: none;
}
.status-queued { background: #e9edf4; color: #414e65; }
.status-assigned, .empty-icon { background: #eaf0ff; color: #2749ac; }
.status-active { background: #fff0d7; color: #754604; }
.status-review { background: #f3eaff; color: #5d3897; }
.status-revision { background: #ffe9e9; color: #8b282b; }
.status-done { background: #e3f4ec; color: #126646; }
.nav-bar {
  position: fixed; z-index: 2; inset: auto 0 0; background: #fff;
  border-top: 1px solid var(--line); padding: 5px 10px calc(5px + env(safe-area-inset-bottom));
}
.nav-items { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); max-width: 620px; margin: 0 auto; gap: 4px; }
.nav-items a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 51px; border-radius: 9px; font-size: .875rem; font-weight: 650; color: var(--muted); text-align: center;
}
.nav-items a[aria-current], .nav-items a:hover { background: #eaf0ff; color: #2144b1; }
.page-title { margin: 2px 0 17px; }
.page-title h1 { font-size: clamp(1.52rem,4vw,2rem); line-height: 1.24; letter-spacing: -.035em; }
.page-title p { margin-top: 5px; }
.empty { padding: 25px 14px; min-height: 146px; display: grid; place-items: center; text-align: center; gap: 8px; }
.empty p, .initial { color: var(--muted); }
.dispatch-panel {
  max-width: 580px; margin: 0 auto; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
}
.dispatch-icon {
  background: #eaf0ff; color: #234cc2; width: 64px; height: 64px; border-radius: 21px;
  display: grid; place-items: center; margin-bottom: 3px;
}
.dispatch-icon .icon { transform: scale(1.6); }
.dispatch-panel h2 { font-size: 1.27rem; overflow-wrap: anywhere; }
.dispatch-panel p, .dialog-body p { color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.dispatch-panel .match-note { color: #2448a5; }
.assigned-price {
  border-radius: 10px; background: #f1f5ff; padding: 12px 15px; display: flex; align-items: center;
  gap: 12px; justify-content: space-between; width: 100%; color: #233d87; text-align: left;
}
.assigned-price strong { font-size: 1.18rem; white-space: nowrap; }
.workflow { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-align: left; background: #fbfcff; }
.workflow > strong { color: var(--navy); }
.workflow ol { margin: 8px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.65; }
.workflow li + li { margin-top: 4px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 13px; }
.tabs button {
  border-radius: 8px; border: 1px solid var(--line); color: var(--muted); background: white;
  min-height: 37px; padding: 6px 10px; text-align: left; font-weight: 650; font-size: .875rem;
}
.tabs button[aria-pressed="true"], .tabs button:hover { color: #2043aa; background: #eaf0ff; border-color: #cfdcfd; }
.tabs button span { color: #36549a; }
.orders-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.order-card { min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.order-card h3 { font-size: 1rem; line-height: 1.45; flex: 1; overflow-wrap: anywhere; }
.order-top, .order-foot { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.order-foot { border-top: 1px solid var(--line); padding-top: 9px; }
.order-foot > div { display: grid; gap: 3px; }
.order-foot .btn { min-height: 36px; }
.mini-label { font-size: .825rem; color: var(--muted); }
.badge { display: inline-flex; border-radius: 7px; padding: 4px 7px; font-size: .875rem; font-weight: 680; line-height: 1.3; }
.profile { padding: 17px; display: flex; gap: 12px; align-items: center; margin-bottom: 11px; overflow-wrap: anywhere; }
.profile h2 { font-size: 1.25rem; }
.profile p { margin-top: 5px; color: var(--muted); }
.avatar {
  flex: none; width: 49px; height: 49px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 750; background: #e4ecff; color: #1f439b;
}
.meta-panel { display: grid; gap: 6px; padding: 17px; }
.meta-panel span { color: var(--muted); }
.account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.account-metrics .meta-panel { padding: 13px; overflow-wrap: anywhere; }
.shared-ip { display: inline-block; padding: 4px 7px; border-radius: 5px; color: #a61b29; background: #fff0f0; font-weight: 700; }
.shared-ip small { color: #a61b29; }
.presence-label { color: #6b6576; }
.presence-label.online { color: #167046; font-weight: 700; }
.operations { min-height: 100dvh; display: grid; grid-template-columns: 198px minmax(0,1fr); }
.side { background: #112142; color: #fff; padding: 18px 12px; }
.side .brand { margin: 2px 0 23px 6px; }
.side nav { display: grid; gap: 5px; }
.side nav a { display: flex; align-items: center; gap: 8px; padding: 10px 9px; border-radius: 8px; font-size: .9rem; line-height: 1.3; }
.side nav a[aria-current], .side nav a:hover { background: #263c6d; }
.ops-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 10px 20px; gap: 10px; border-bottom: 1px solid var(--line); }
.ops-bar > div { display: flex; gap: 8px; }
.ops-content main { max-width: 1240px; margin: 0 auto; padding: 20px; }
.ops-heading { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: start; }
.ops-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.withdraw-review-table .table-scroll table { border-collapse: separate; border-spacing: 0; }
.withdraw-review-table :is(th,td):last-child { position: sticky; inset-inline-end: 0; z-index: 1; background: #fff; box-shadow: -1px 0 var(--line); }
.withdraw-review-table th:last-child { background: #fafcff; }
.withdraw-review-table td.empty-cell { position: static; box-shadow: none; }
.table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: 10px 12px; white-space: nowrap; }
th { background: #f8faff; color: var(--muted); }
td { border-top: 1px solid var(--line); }
td strong { display: block; max-width: 36ch; white-space: normal; overflow-wrap: anywhere; }
td small { display: block; margin-top: 3px; font-size: .825rem; color: var(--muted); }
dialog {
  padding: 0; width: min(520px,calc(100% - 26px)); max-height: calc(100dvh - 26px); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 72px #0d193f48;
}
dialog::backdrop { background: #111e45a0; }
.dialog-header, .dialog-actions { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.dialog-header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 1.14rem; }
.dialog-actions { justify-content: end; border-top: 1px solid var(--line); }
.close { border: 0; border-radius: 8px; background: #eef2fa; color: #25437e; width: 36px; height: 36px; font-size: 1.25rem; }
.dialog-body { display: grid; gap: 12px; padding: 14px 16px; }
.dialog-body h3 { overflow-wrap: anywhere; }
.product-name-fields { display: grid; gap: 8px; }
.product-name-fields details label { margin-block: 6px; }
[data-localize-order] .language { justify-self: end; }
.group-order-items { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.group-order-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.group-order-item img { flex: none; border-radius: 7px; object-fit: contain; }
.group-order-item > div { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.group-order-item dl { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.group-order-item dt { color: var(--muted); font-size: .78rem; }
.group-order-item dd { margin: 0; font-weight: 600; }
.dialog-body p.error { color: #a42727; }
.fields label { display: grid; gap: 4px; font-size: .9rem; font-weight: 650; min-width: 0; }
.fields input, .fields textarea { min-width: 0; width: 100%; padding: 8px 9px; border: 1px solid #bac8df; border-radius: 7px; background: #fff; color: var(--ink); font-size: 1rem; }
.fields fieldset { margin: 0; min-width: 0; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 8px; }
.fields legend { font-size: .875rem; color: var(--muted); }
.auth-card {
  width: min(100%, 440px); margin: 24px auto; padding: 22px;
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
  box-shadow: 0 12px 34px #12264710;
}
.auth-title { text-align: center; margin: 0 0 15px; }
.auth-title h1 { font-size: 1.55rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 10px; padding: 4px; background: #edf1fa; }
.auth-tabs a { padding: 9px 7px; text-align: center; border-radius: 7px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.auth-tabs a[aria-current] { color: var(--dark-blue); background: white; box-shadow: 0 2px 5px #142a6120; }
.auth-fields { display: grid; gap: 10px; margin-top: 16px; }
.auth-fields input { min-height: 44px; }
.auth-fields .error { color: #a42727; font-size: .9rem; line-height: 1.5; }
.auth-hint { font-size: .825rem; color: var(--muted); line-height: 1.45; margin-top: -5px; }
.operator-setup-link { text-align: center; margin-top: 14px; font-size: .9rem; color: var(--dark-blue); }
.phone-fields { display: grid; grid-template-columns: minmax(66px, .8fr) minmax(0, 3fr); gap: 8px; align-items: end; }
.profile-actions { margin-top: 14px; }
.employee-filter { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; color: var(--muted); }
.employee-filter select { min-height: 39px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.inline-code { display: flex; gap: 7px; align-items: center; }
.inline-code code { padding: 5px 7px; border-radius: 5px; color: var(--ink); background: var(--body); font-size: 1rem; }
.inline-code .btn { min-height: 32px; padding: 5px 7px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.ops-stats { margin-bottom: 19px; }
.activity-title { font-size: 1.14rem; margin-bottom: 10px; }
.search-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); margin-bottom: 12px; }
.search-field input { width: min(100%, 290px); min-height: 39px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.fields select { min-width: 0; width: 100%; padding: 8px 9px; border: 1px solid #bac8df; border-radius: 7px; background: #fff; color: var(--ink); }
.fields .checkbox-field { display: flex; align-items: center; gap: 8px; }
.fields .checkbox-field input { width: 18px; height: 18px; }
.revision-note { border-radius: 8px; padding: 9px 11px; color: #8b282b; background: #ffefef; }
.meta-panel h2 { font-size: 1.1rem; margin-top: 6px; }
.meta-panel p { color: var(--muted); line-height: 1.55; }
.activity-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.activity-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; }
.activity-list li + li { border-top: 1px solid var(--line); }
.activity-list li span { display: block; margin-top: 4px; font-size: .86rem; color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.notice {
  position: fixed; z-index: 4; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100% - 24px); border-radius: 9px; padding: 10px 13px;
  color: #fff; background: #142a61;
}
.icon { display: inline-block; position: relative; width: 16px; height: 16px; flex: none; }
.icon::before, .icon::after { content: ""; position: absolute; display: block; }
.icon-home::before { inset: 5px 3px 1px; border: 1.6px solid; border-top: 0; border-radius: 0 0 2px 2px; }
.icon-home::after { width: 10px; height: 10px; top: 3px; left: 3px; border-left: 1.6px solid; border-top: 1.6px solid; transform: rotate(45deg); }
.icon-box::before { inset: 2px 1px; border: 1.6px solid; border-radius: 3px; }
.icon-box::after { width: 11px; left: 2px; top: 6px; border-top: 1.6px solid; }
.icon-bag::before { inset: 5px 2px 1px; border: 1.6px solid; border-radius: 2px; }
.icon-bag::after { inset: 1px 5px 9px; border: 1.6px solid; border-bottom: 0; border-radius: 5px 5px 0 0; }
.icon-flash::before { inset: 0 3px; background: currentColor; clip-path: polygon(58% 0,12% 55%,48% 55%,34% 100%,93% 39%,56% 39%,70% 0); }
.icon-list::before { inset: 1px 2px; border: 1.6px solid; border-radius: 2.5px; }
.icon-list::after { width: 6px; height: 1.5px; left: 5px; top: 5px; background: currentColor; box-shadow: 0 3px currentColor,0 6px currentColor; }
.icon-person::before { width: 7px; height: 7px; left: 4.5px; border: 1.6px solid; border-radius: 50%; }
.icon-person::after { width: 13px; height: 7px; bottom: 0; left: 1.5px; border: 1.6px solid; border-radius: 7px 7px 2px 2px; }
.icon-check::before, .icon-clock::before, .icon-globe::before { inset: 1px; border: 1.6px solid; border-radius: 50%; }
.icon-check::after { width: 7px; height: 4px; left: 4.5px; top: 5px; border-left: 1.6px solid; border-bottom: 1.6px solid; transform: rotate(-45deg); }
.icon-clock::after { top: 4px; left: 7px; width: 4px; height: 5px; border-left: 1.6px solid; border-bottom: 1.6px solid; }
.icon-globe::after { inset: 1px 5px; border: 1.4px solid; border-radius: 50%; }
@media (max-width: 670px) {
  .wrap { padding-inline: 13px; }
  .top-row { min-height: 58px; }
  .content { padding-top: 14px; }
  .hero { min-height: 214px; }
  .hero-copy { max-width: min(85%,480px); padding: 18px 15px; }
  .hero-art { right: -64px; top: -22px; transform: scale(.72); opacity: .66; }
  .hero p { max-width: 29ch; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .stat { min-height: 68px; }
  .orders-grid { grid-template-columns: 1fr; }
  .operations { display: block; }
  .side { padding: 9px 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .side .brand { margin: 0; }
  .side nav { display: flex; flex-wrap: wrap; }
  .ops-bar { padding: 8px 12px; }
  .ops-bar .demo { display: none; }
  .ops-content main { padding: 12px; }
}
@media (max-width: 350px) {
  .auth-card { padding: 16px; }
  .hero-copy { max-width: 94%; }
  .hero-art { opacity: .44; }
  .nav-items a { font-size: .83rem; }
}

/* Operations console */
.operations { min-height: 100dvh; grid-template-columns: 198px minmax(0,1fr); background: #f0f2f5; }
.side { background: #001529; padding: 14px 8px; }
.admin-brand { display: flex; align-items: center; gap: 9px; margin: 0 10px 18px; padding: 4px 0; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.side nav { gap: 4px; }
.side nav a { min-height: 40px; padding: 9px 12px; color: #ffffffd9; border-radius: 6px; font-size: 14px; }
.side nav a[aria-current], .side nav a:hover { color: #fff; background: #1677ff; }
.ops-bar { height: 64px; padding: 0 22px; border-bottom-color: #f0f0f0; }
.admin-crumb { display: flex; align-items: center; gap: 11px; color: #8c8c8c; font-size: 14px; }
.admin-crumb strong { color: #262626; font-weight: 500; }
.admin-user { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #262626; font-size: 14px; }
[data-action="notification-settings"] [data-notification-preview] { justify-self: start; }
[data-action="notification-settings"] output { font-variant-numeric: tabular-nums; }
.admin-user .language { min-height: 34px; background: transparent; border-color: #e5e5e5; }
.admin-user .language select { min-height: 32px; }
.admin-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: #1677ff; font-weight: 700; }
.admin-bell { position: relative; width: 20px; height: 22px; margin-right: 3px; }
.admin-bell::before { content: ""; position: absolute; inset: 3px 3px 5px; border: 1.6px solid #595959; border-radius: 9px 9px 3px 3px; }
.admin-bell::after { content: ""; position: absolute; width: 8px; height: 2px; bottom: 2px; left: 6px; border-radius: 2px; background: #595959; box-shadow: 3px -18px 0 -1px #595959; }
.ops-content main { position: relative; max-width: none; min-height: calc(100dvh - 64px); padding: 24px; padding-bottom: 56px; background: #f0f2f5; }
.ops-content main > .page-title { margin: 0 0 18px; }
.page-title h1 { font-size: 21px; font-weight: 600; letter-spacing: 0; }
.page-title p { margin-top: 4px; font-size: 13px; }
.admin-footer { position: absolute; right: 20px; bottom: 15px; left: 20px; color: #8c8c8c; text-align: center; font-size: 13px; }
.welcome-admin { display: grid; gap: 19px; }
.welcome-admin h1 { font-size: 22px; font-weight: 600; }
.ops-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0 0 22px; }
.ops-stats .stat { min-height: 102px; padding: 20px; border-color: #f0f0f0; border-radius: 8px; box-shadow: 0 1px 2px #00000008; }
.ops-stats .stat strong { font-size: 24px; }
.ops-stats .stat > span:nth-child(2) > span { font-size: 14px; }
.admin-panel, .filter-panel { margin-bottom: 16px; padding: 20px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px #00000008; }
.admin-panel h2 { margin-bottom: 15px; font-size: 16px; font-weight: 600; }
.filter-panel { padding: 20px 22px; }
.filter-row { display: grid; grid-template-columns: minmax(200px,1fr) 150px 160px 84px; align-items: end; gap: 10px; }
.filter-row label { display: grid; gap: 5px; color: #8c8c8c; font-size: 12px; }
.filter-row input, .filter-row select { width: 100%; min-width: 0; height: 36px; padding: 5px 10px; border: 1px solid #d9d9d9; border-radius: 6px; color: #262626; background: #fff; }
.product-search { position: relative; }
.product-search > span { position: absolute; top: 22px; left: 10px; z-index: 1; color: #8c8c8c; font-size: 18px; }
.product-search input { padding-left: 32px; }
.filter-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.filter-actions .btn { min-height: 34px; padding: 6px 12px; border-radius: 6px; font-size: 14px; }
.filter-actions .primary, .filter-row .primary { background: #1677ff; }
.admin-table-wrap { overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px #00000008; }
.admin-table-wrap .table-scroll { border: 0; border-radius: 8px 8px 0 0; }
.admin-table-wrap table { min-width: 900px; font-size: 14px; }
.admin-table-wrap th { padding: 14px 12px; color: #262626; background: #fafafa; font-weight: 600; }
.admin-table-wrap td { padding: 11px 12px; border-color: #f0f0f0; vertical-align: middle; }
.admin-table-wrap td strong { max-width: 24ch; }
.catalog-price { width: 8.25rem; }
.catalog-tiers { margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .75rem; }
.catalog-tiers summary { cursor: pointer; }
.catalog-tiers table { margin-top: .5rem; width: min(100%, 48rem); }
.dialog-body [data-bulk-review][hidden], .dialog-body [data-bulk-category][hidden] { display: none; }
.product-thumb { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 5px; color: #8c8c8c; background: #f5f5f5; }
.product-thumb .icon { transform: scale(1.2); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.admin-banner-thumb { display: block; width: min(120px,100%); height: 58px; object-fit: cover; border-radius: 7px; }
.product-thumb[hidden] { display: none; }
.hot-config-table input[type="number"] { min-width: 72px; max-width: 105px; }
.switch { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: #595959; background: transparent; }
.switch > span { position: relative; width: 30px; height: 18px; border-radius: 20px; background: #bfbfbf; transition: background .15s; }
.switch > span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on > span { background: #1677ff; }
.switch.on > span::after { transform: translateX(12px); }
.icon-button { min-width: 30px; min-height: 30px; padding: 4px 8px; border: 1px solid #d9d9d9; border-radius: 5px; background: #fff; color: #1677ff; }
.admin-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 12px 16px; color: #8c8c8c; font-size: 13px; }
.admin-pagination button { width: 30px; height: 30px; border: 1px solid #d9d9d9; border-radius: 5px; background: #fff; color: #595959; }
.admin-pagination button:disabled { color: #bfbfbf; cursor: default; }
.admin-pagination select { height: 30px; padding: 3px 6px; border: 1px solid #d9d9d9; border-radius: 5px; background: #fff; color: #8c8c8c; }
.admin-tabs { display: flex; gap: 25px; margin: -2px 0 16px; border-bottom: 1px solid #f0f0f0; }
.admin-tabs button { padding: 0 2px 10px; border: 0; border-bottom: 2px solid transparent; color: #595959; background: transparent; }
.admin-tabs button.selected { border-bottom-color: #1677ff; color: #1677ff; }
.empty-cell { padding: 40px 12px; color: #8c8c8c; text-align: center; }
.category-list { margin: 0; padding: 0; list-style: none; }
.category-list li { display: flex; justify-content: space-between; padding: 10px 4px; border-bottom: 1px solid #f0f0f0; }
.category-list li span { color: #8c8c8c; }
.source-id { color: #595959; font-variant-numeric: tabular-nums; }
.parent-tag { display: inline-block; padding: 3px 8px; border: 1px solid #87e8de; border-radius: 4px; color: #08979c; background: #e6fffb; font-size: 12px; }
.source-username { color: #262626; font-weight: 500; }
.masked-ip { color: #8c8c8c; }
.online-state { color: #8c8c8c; }
.withdrawal-blocked-badge { display: flex; width: max-content; margin-top: 4px; }
.withdrawal-blocked-badge[hidden] { display: none; }
.credit-tag { display: inline-block; padding: 2px 7px; border: 1px solid #b7eb8f; border-radius: 4px; color: #389e0d; background: #f6ffed; font-variant-numeric: tabular-nums; }
.strategy-chip { display: inline-block; max-width: 23ch; overflow: hidden; text-overflow: ellipsis; padding: 4px 7px; border: 1px solid #91caff; border-radius: 4px; color: #1677ff; background: #e6f4ff; white-space: nowrap; }
.task-progress { color: #389e0d; font-variant-numeric: tabular-nums; }
.source-switch { display: inline-flex; align-items: center; gap: 5px; min-width: 58px; padding: 2px 5px 2px 3px; border: 0; border-radius: 14px; color: #fff; background: #bfbfbf; font-size: 12px; }
.source-switch i { width: 17px; height: 17px; flex: none; border-radius: 50%; background: #fff; }
.source-switch.active { background: #1677ff; }
.source-switch.active i { order: 2; }
.source-switch.active span { order: 1; }
.source-allow { padding: 3px 9px; border: 1px solid #b7eb8f; border-radius: 4px; color: #389e0d; background: #f6ffed; }
.user-action-list { display: flex; gap: 5px; }
.user-action-list > .btn { padding: 6px 8px; min-height: 32px; white-space: nowrap; }
.user-more-menu { position: fixed; inset: 0 auto auto 0; margin: 0; width: max-content; max-width: min(16rem, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: auto; white-space: normal; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px; box-shadow: 0 8px 26px #251c3933; }
.user-more-menu:popover-open { display: grid; }
.user-more-menu:not(.positioned) { opacity: 0; }
.user-more-menu button { min-height: 34px; padding: 6px 10px; text-align: start; white-space: normal; overflow-wrap: anywhere; border-radius: 6px; }
.user-more-menu button:hover, .user-more-menu button:focus-visible { background: #f6f3fa; }
.text-action { padding: 0; border: 0; color: #1677ff; background: transparent; text-align: left; white-space: nowrap; font-size: 13px; }
.text-action:hover { color: #4096ff; text-decoration: underline; }
.danger-action { color: #ff4d4f; }
#customer-results .table-scroll { border-color: #edf0f5; }
#customer-results table { min-width: 1100px; border-collapse: separate; border-spacing: 0; }
#customer-results th { background: #fafcff; }
#customer-results th, #customer-results td { padding: 8px 10px; }
#customer-results td:is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(8)) { max-width: 155px; white-space: normal; overflow-wrap: anywhere; }
#customer-results .user-actions-cell { position: sticky; inset-inline-end: 0; z-index: 1; background: #fff; box-shadow: -1px 0 var(--line), -5px 0 10px #2520370d; }
#customer-results th.user-actions-cell { background: #fafcff; }
.operations { --ops-accent: #5c35a4; --ops-accent-dark: #46247f; --ops-paper: #f6f3fa; grid-template-columns: 214px minmax(0,1fr); }
.operations, .ops-content main { background: var(--ops-paper); }
.operations .side { background: #272034; padding: 16px 12px; }
.operations .admin-brand { padding: 8px 6px; font-size: 1.28rem; line-height: 1.2; }
.operations .side nav a { min-height: 43px; border-radius: 11px; }
.operations .side nav a[aria-current], .operations .side nav a:hover { background: #4c3664; }
.operations .side nav a[aria-current] { box-shadow: inset 3px 0 #c7afff; }
.operations .primary { background: var(--ops-accent); }
.operations .primary:hover { background: var(--ops-accent-dark); }
.operations .secondary, .operations .text-action { color: var(--ops-accent); }
.operations .secondary { border-color: #e0d7ef; }
.operations .danger-action { color: #a52747; }
.operations .source-switch.active { background: var(--ops-accent); }
.operations .admin-avatar { background: var(--ops-accent); }
.operations .admin-tabs button.selected { border-color: var(--ops-accent); color: var(--ops-accent); }
.operations .nav-toggle { padding: 5px 9px; border: 1px solid #e5deed; border-radius: 8px; color: var(--ops-accent); background: #fcfaff; }
.operations.nav-collapsed { grid-template-columns: minmax(0,1fr); }
.operations.nav-collapsed .side { display: none; }
.preview-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; color: #5b466e; background: #ede5f8; font-size: .875rem; }
.control-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; padding: 14px; border: 1px solid #e9e2f0; border-radius: 12px; background: #fff; }
.compact-field { display: grid; gap: 5px; min-width: 0; color: #4f415f; font-size: .875rem; }
.compact-field input, .compact-field select { min-width: 0; width: 100%; min-height: 37px; padding: 6px 8px; border: 1px solid #d8d0e3; border-radius: 7px; color: var(--ink); background: white; }
.control-bar .compact-field input[type="search"] { min-width: min(100%, 230px); }
.control-bar .employee-filter { margin-bottom: 0; }
.list-tools { margin-bottom: 12px; color: #625372; }
.list-tools > span { margin-right: auto; }
#customer-results td { height: auto; min-width: 76px; padding-block: 16px; }
#customer-results td:first-child { min-width: 0; }
.strategy-workspace { display: grid; grid-template-columns: minmax(270px, 5fr) minmax(320px, 7fr); gap: 16px; align-items: start; }
.strategy-workspace .admin-panel { min-width: 0; margin: 0; border: 1px solid #e9e2f0; border-radius: 13px; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; }
.strategy-search { margin-bottom: 10px; }
.strategy-list td, .strategy-list th { padding: 9px 8px; }
.strategy-list .text-action[aria-pressed="true"] { font-weight: 750; text-decoration: underline; }
.strategy-schedule { margin-top: 12px; }
.strategy-schedule .table-scroll { margin-top: 10px; }
.wallet-recorded-bases > p { margin-block: 6px; }
.wallet-release-options { display: grid; gap: 5px; margin-top: 6px; }
[data-action="strategy"] .dialog-actions { flex-wrap: wrap; }
.strategy-form { display: grid; gap: 16px; }
.strategy-form fieldset { padding: 10px 12px 12px; }
.strategy-form fieldset > .btn { justify-self: start; }
.numeric-grid, .lucky-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.lucky-row { margin-bottom: 10px; padding: 8px; border-radius: 8px; background: #f6f3fa; }
.lucky-row > button { justify-self: start; }
.strategy-user-choices { max-height: 17rem; overflow-y: auto; }
.strategy-user-choices label { padding: 5px 0; }
.strategy-picker { position: relative; }
.strategy-picker summary { border: 1px solid #bac8df; border-radius: 8px; padding: 10px; cursor: pointer; }
.strategy-picker-menu { display: grid; gap: 5px; padding: 6px; margin-top: 4px; border: 1px solid #d8d0e3; border-radius: 8px; }
.strategy-options { max-height: 12rem; overflow-y: auto; }
.fields .strategy-option { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 8px; border-radius: 5px; cursor: pointer; overflow-wrap: anywhere; }
.strategy-option:hover, .strategy-option:has(:checked) { background: #f0e9fc; }
.strategy-option:focus-within { outline: 2px solid #634399; outline-offset: -2px; }
.strategy-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.strategy-tick { visibility: hidden; color: #523185; }
.strategy-option :checked ~ .strategy-tick { visibility: visible; }
[data-assignment-entry][hidden] { display: none; }
[data-match-audit] { margin-top: 8px; }
.preview-details { display: grid; grid-template-columns: minmax(80px,auto) 1fr; gap: 10px; margin: 0; }
.preview-details dt { color: var(--muted); }
.preview-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1040px) {
  .strategy-workspace { grid-template-columns: minmax(0,1fr); }
}
.icon-dashboard::before { inset: 1px; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: inset 6px 0 0 -4.5px currentColor, inset 0 6px 0 -4.5px currentColor; }
.icon-team::before { width: 6px; height: 6px; top: 1px; left: 5px; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: 6px 2px 0 -1px #001529, 6px 2px 0 0 currentColor; }
.icon-team::after { inset: 10px 1px 1px; border: 1.5px solid currentColor; border-radius: 8px 8px 2px 2px; }
.icon-appstore::before { inset: 2px; background: currentColor; clip-path: polygon(0 0,40% 0,40% 40%,0 40%,0 0,60% 0,100% 0,100% 40%,60% 40%,60% 0,0 60%,40% 60%,40% 100%,0 100%,0 60%,60% 60%,100% 60%,100% 100%,60% 100%); }
.icon-shopping-cart::before { inset: 3px 2px 5px; border: 1.5px solid currentColor; border-top: 0; transform: skew(-8deg); }
.icon-shopping-cart::after { width: 3px; height: 3px; left: 4px; bottom: 0; border-radius: 50%; background: currentColor; box-shadow: 8px 0 currentColor; }
.icon-wallet::before { inset: 3px 1px; border: 1.5px solid currentColor; border-radius: 3px; }
.icon-wallet::after { width: 7px; height: 5px; right: 0; top: 6px; border: 1.5px solid currentColor; border-radius: 2px 0 0 2px; background: #001529; }
.icon-transaction::before { inset: 2px 1px 5px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-transaction::after { width: 8px; height: 5px; bottom: 0; left: 4px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.brand { gap: 9px; }
.brand-words { display: grid; gap: 0; line-height: 1.03; }
.brand-words strong { font-size: 1rem; }
.brand-words small { margin-top: 4px; color: #61708a; font-size: .63rem; font-weight: 550; letter-spacing: .08em; }
.front-tools { display: flex; align-items: center; gap: 10px; }
.front-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #254fd0; background: #e9efff; }
.hero { min-height: 285px; background: linear-gradient(105deg,#101d3b 0%,#07152f 60%,#06132c 100%); border-radius: 16px; }
.hero-copy { max-width: min(70%,650px); padding: 25px 30px; }
.hero h2 { max-width: 10ch; font-size: clamp(2rem,5vw,2.9rem); }
.hero-art.package-art { width: 270px; height: 250px; top: 16px; right: 7px; transform: none; opacity: 1; }
.package-art .parcel { position: absolute; display: block; border: 0; border-radius: 4px; transform: none; background: linear-gradient(125deg,#c49b66,#a97c4a 78%); box-shadow: 0 13px 20px #02081770; }
.package-art .parcel::before { content: ""; position: absolute; top: 0; bottom: 0; left: 48%; width: 15px; background: linear-gradient(90deg,#dfc28e,#c59d67); opacity: .94; }
.package-art .parcel::after { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 9px; background: #dfc28e; opacity: .9; }
.package-art .parcel-large { width: 172px; height: 99px; right: 14px; bottom: 14px; background: linear-gradient(135deg,#bd9360,#94693d); }
.package-art .parcel-medium { width: 104px; height: 68px; right: 78px; bottom: 112px; }
.package-art .parcel-small { width: 74px; height: 49px; right: 9px; bottom: 178px; }
.package-art .parcel-large::before { width: 18px; }
.package-art .parcel-medium::before { width: 12px; }
.package-art .parcel-small::before { width: 10px; }
@media (max-width: 670px) {
  .operations { display: block; }
  .side { display: block; padding: 12px 7px; }
  .admin-brand { margin-inline: 9px; }
  .side nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ops-bar { height: auto; min-height: 58px; padding: 7px 11px; flex-wrap: wrap; }
  .admin-user { gap: 5px; }
  .admin-user .language { max-width: 116px; }
  .admin-user > button { padding-inline: 7px; }
  .ops-content main { padding: 12px; }
  .filter-row { grid-template-columns: minmax(130px,1fr) 110px; }
  .filter-row .product-search { grid-column: 1 / -1; }
  .filter-row .primary { grid-column: 2; }
  .admin-footer { font-size: 11px; }
}
