/* Desktop shell: translucent navigation around an opaque, readable workspace. */
:root {
  --desktop-ground:#dce9ed;
  --desktop-window:#f5f7f8;
  --dock-surface:rgba(238,247,247,.88);
  --dock-rim:rgba(255,255,255,.85);
  --dock-ink:#263d49;
  --dock-muted:#526a75;
  --dock-accent:#136f8a;
  --dock-highlight:rgba(255,255,255,.7);
  --desktop-ease:cubic-bezier(.23,1,.32,1);
}

body {
  background:radial-gradient(ellipse at 20% 5%,#edf8f4 0,transparent 48%),
    radial-gradient(ellipse at 84% 92%,#d7e6f2 0,transparent 48%),var(--desktop-ground);
  background-attachment:fixed;
}
#workspace.shell {display:block;min-height:100vh;padding:0 0 1px}
#workspace > main {
  width:calc(100% - 80px);max-width:1580px;min-width:0;min-height:calc(100vh - 192px);
  margin:82px auto 112px;overflow:visible;border-radius:20px;
  background:var(--desktop-window);box-shadow:0 20px 65px rgba(35,65,80,.16),0 2px 8px rgba(35,65,80,.08);
}
#workspace .topbar {
  position:relative;top:auto;height:64px;padding:0 32px;border-radius:20px 20px 0 0;
  border-bottom:1px solid var(--line);background:rgba(255,255,255,.64);
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
#workspace .breadcrumb {font-size:12px;font-weight:500}
#workspace .main-content {padding:30px 32px 36px}
#workspace .page-heading {margin-bottom:24px}
#workspace .eyebrow {letter-spacing:.1em}
#toast {bottom:108px}

/* The existing workspace controls remain in one compact desktop Dock. */
#workspace .desktop-dock {
  position:fixed;inset:auto auto 12px 50%;z-index:40;transform:translateX(-50%);
  width:max-content;max-width:calc(100vw - 28px);height:76px;padding:8px 12px;
  display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px;
  border:1px solid var(--dock-rim);border-radius:21px;background:var(--dock-surface);
  box-shadow:0 12px 35px rgba(30,65,78,.18),inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter:blur(26px) saturate(150%);-webkit-backdrop-filter:blur(26px) saturate(150%);
}
#workspace .desktop-dock .brand {display:flex;flex:none;align-items:center;margin:0 2px 0 0;gap:0}
#workspace .desktop-dock .brand img {width:42px;height:42px;border-radius:13px}
#workspace .desktop-dock .brand > span,#workspace .desktop-dock .sidebar-label {display:none}
#workspace .dock-search {
  display:flex;align-items:center;gap:8px;min-width:142px;min-height:40px;padding:0 13px;
  border-radius:14px;background:rgba(255,255,255,.65);color:var(--dock-muted);font-size:12px;text-align:left;
}
#workspace .dock-search .icon {width:17px;height:17px}
#workspace .dock-nav {display:flex;flex-direction:row;align-items:center;gap:4px;width:auto}
#workspace .dock-nav .nav-link {
  position:relative;display:flex;flex:none;align-items:center;justify-content:center;gap:6px;
  width:auto;min-width:76px;height:54px;margin:0;padding:6px 9px 10px;
  border-radius:13px;background:transparent;box-shadow:none;color:var(--dock-ink);font-size:12px;font-weight:550;white-space:nowrap;
}
#workspace .dock-nav .nav-link .icon {width:19px;height:19px;stroke-width:1.7}
#workspace .dock-nav .nav-link [data-icon] {display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:10px;background:#398cb8;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
#workspace .dock-nav .nav-link[data-page="inventory"] [data-icon] {background:#318e84}
#workspace .dock-nav .nav-link[data-page="shops"] [data-icon] {background:#b96739}
#workspace .dock-nav .nav-link[data-page="settings"] [data-icon] {background:#657b89}
#workspace .dock-nav .nav-link [data-icon] .icon {width:18px;height:18px}
#workspace .dock-nav .nav-link.active {background:var(--dock-highlight);color:var(--dock-accent)}
#workspace .dock-nav .nav-link.active::after {
  content:"";position:absolute;bottom:5px;left:calc(50% - 3px);width:6px;height:3px;border-radius:3px;background:var(--dock-accent);
}
#workspace .dock-nav .nav-count {margin-left:0;padding:2px 5px;background:rgba(18,91,112,.1);color:inherit;opacity:1;font-size:10px}
#workspace .desktop-dock .sidebar-bottom {display:flex;align-items:center;gap:10px;margin:0;padding-left:12px;border-left:1px solid rgba(87,113,122,.24)}
#workspace .desktop-dock .sync-note {display:flex;align-items:center;gap:6px;padding:0;color:var(--dock-muted);font-size:11px;white-space:nowrap}
#workspace .desktop-dock .sync-note small {display:block;max-width:125px;overflow:hidden;text-overflow:ellipsis;color:var(--dock-muted);font-size:10px}
#workspace .desktop-dock .dot {margin:0;align-self:flex-start;margin-top:5px}
#workspace .desktop-dock .account {display:flex;align-items:center;gap:7px;width:auto;padding:0;border:0;color:var(--dock-ink);font-size:12px;white-space:nowrap}
#workspace .desktop-dock .account .avatar {width:34px;height:34px;flex:none;background:rgba(255,255,255,.65);color:var(--dock-ink)}
#workspace .desktop-dock .account-exit {margin-left:0;color:var(--dock-muted)}
#workspace .dock-clock {color:var(--dock-ink);font-size:11px;line-height:1.35;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
#workspace .dock-clock small {display:block;color:var(--dock-muted);font-size:10px}

/* Only actual synchronization state is shown in the floating status island. */
#workspace .activity-island {
  position:fixed;z-index:45;top:12px;left:50%;transform:translateX(-50%);
  display:grid;grid-template-rows:auto 0fr;width:390px;max-width:calc(100vw - 32px);color:#f2fbfa;
  pointer-events:none;transition:grid-template-rows 220ms var(--desktop-ease);
}
#workspace .activity-island::before {content:"";position:absolute;inset:0;z-index:-1;border-radius:22px;background:#152830;box-shadow:0 10px 28px rgba(20,43,52,.23);transform:scaleX(.77);transition:transform 220ms var(--desktop-ease)}
#workspace .activity-island.island-open {grid-template-rows:auto 1fr;transition-duration:280ms}
#workspace .activity-island.island-open::before {transform:scaleX(1);transition-duration:280ms}
#workspace .island-summary {display:flex;align-items:center;justify-self:center;gap:10px;width:min(300px,100%);min-height:50px;padding:9px 16px;border-radius:20px;background:transparent;color:inherit;text-align:left;pointer-events:auto}
#workspace .island-dot {width:9px;height:9px;flex:none;border-radius:50%;background:#84dac4}
#workspace .activity-island[data-state="error"] .island-dot {background:#ffab99}
#workspace .activity-island[data-state="idle"] .island-dot {background:#a5b6bd}
#workspace .activity-island[data-state="syncing"] .island-dot {background:#86bfff}
#workspace .island-copy {display:flex;flex:1;flex-direction:column;gap:2px;min-width:0;line-height:1.3}
#workspace .island-copy strong {overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600;white-space:nowrap}
#workspace .island-copy span {overflow:hidden;text-overflow:ellipsis;color:#bfd0d0;font-size:11px;white-space:nowrap}
#workspace .island-detail {min-height:0;overflow:hidden;padding:0 17px;color:#d5e2e1;font-size:12px;line-height:1.6;opacity:0;transform:translateY(-4px);transition:opacity 140ms ease-out,transform 220ms var(--desktop-ease)}
#workspace .island-open .island-detail {opacity:1;transform:translateY(0);pointer-events:auto;transition-duration:180ms,280ms}
#workspace .island-detail p {margin:0 0 8px}
#workspace .island-detail button {min-height:32px;margin-bottom:16px;color:#e1fbf6;background:rgba(255,255,255,.11);border-radius:9px;padding:6px 10px}
#workspace .island-purchase-badge:not([hidden]) {flex:none;border-radius:10px;padding:3px 7px;background:#dd4c3a;color:white;font-size:11px;font-weight:600;white-space:nowrap}
#workspace .island-purchases:not([hidden]) {margin:8px 0 12px;padding-top:8px;border-top:1px solid rgba(255,255,255,.14)}
#workspace .island-purchases-list {max-height:min(30vh,200px);overflow:auto;overscroll-behavior:contain}
#workspace .island-detail .island-purchase-item {display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:4px 0;padding:8px;text-align:left;color:#fff7ef}
#workspace .island-purchase-item strong,#workspace .island-purchase-item span {max-width:100%;overflow-wrap:anywhere}
#workspace .island-purchase-item span {color:#e1d0c3;font-size:11px}
#workspace .desktop-dock :is(button,a):focus-visible,#workspace .activity-island button:focus-visible {outline:2px solid #2187cb;outline-offset:3px}
#workspace .activity-island button:focus-visible {outline-color:#a6ddff;outline-offset:-3px}
#workspace .activity-island.island-no-motion,#workspace .activity-island.island-no-motion::before,#workspace .island-no-motion .island-detail {transition:none}

html[data-theme="dark"] {--desktop-ground:#14242d;--desktop-window:#1b2228;--dock-surface:rgba(30,45,54,.9);--dock-rim:rgba(210,238,246,.15);--dock-ink:#e7f3f3;--dock-muted:#b7c8cb;--dock-accent:#9adfef;--dock-highlight:rgba(255,255,255,.12)}
html[data-theme="dark"] body {background:radial-gradient(ellipse at 22% 8%,#24463f 0,transparent 50%),radial-gradient(ellipse at 85% 95%,#253447 0,transparent 48%),var(--desktop-ground);background-attachment:fixed}
html[data-theme="dark"] #workspace > main {box-shadow:0 20px 65px rgba(0,0,0,.35)}
html[data-theme="dark"] #workspace .topbar {background:rgba(38,46,52,.82)}
html[data-theme="dark"] #workspace .dock-search {background:rgba(255,255,255,.08)}
html[data-theme="dark"] #workspace .desktop-dock .account .avatar {background:rgba(255,255,255,.12)}
html[data-theme="dark"] #workspace .dock-nav .nav-count {background:rgba(255,255,255,.1)}
html[data-theme="dark"] #workspace .activity-island::before {background:#0c171c}

@supports not (backdrop-filter:blur(1px)) {
  #workspace .desktop-dock {background:#eff6f6}
  html[data-theme="dark"] #workspace .desktop-dock {background:#273841}
}
@media (prefers-reduced-transparency:reduce) {
  #workspace .desktop-dock,#workspace .topbar {backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--desktop-window)}
}
@media (hover:hover) and (pointer:fine) {
  #workspace .dock-nav .nav-link {transition:transform 160ms var(--desktop-ease)}
  #workspace .dock-nav .nav-link:hover {transform:translateY(-2px);background:var(--dock-highlight)}
  #workspace .dock-nav .nav-link:has(+ .nav-link:hover),#workspace .dock-nav .nav-link:hover + .nav-link {transform:translateY(-1px)}
  #workspace .dock-search:hover {background:var(--dock-highlight)}
  #workspace .island-summary:hover {background:rgba(255,255,255,.05)}
}
@media (prefers-reduced-motion:reduce) {
  #workspace .dock-nav .nav-link {transition:none}
  #workspace .dock-nav .nav-link:hover,#workspace .dock-nav .nav-link:has(+ .nav-link:hover),#workspace .dock-nav .nav-link:hover + .nav-link {transform:none}
  #workspace .activity-island,#workspace .activity-island::before,#workspace .island-detail {transition:none}
  #workspace .island-detail {transform:none}
}
@media (max-width:1200px) {
  #workspace > main {width:calc(100% - 48px)}
  #workspace .desktop-dock {gap:7px}
  #workspace .dock-search {min-width:110px}
  #workspace .dock-nav .nav-link {min-width:68px;padding-left:6px;padding-right:6px}
  #workspace .desktop-dock .sync-note {font-size:10px}
}
@media (max-width:1000px) {
  #workspace .dock-search {min-width:40px;width:40px;justify-content:center;padding:0}
  #workspace .dock-search span:not([data-icon]),#workspace .dock-search kbd {display:none}
}

/* Shared work surfaces: crisp system type, opaque content and quiet separators. */
:root {
  --surface:#fff;--surface-secondary:#f3f7f7;--ink:#1b3039;--muted:#5e747c;
  --subtle:#586f78;--line:#dce7e8;--blue:#167996;--blue-wash:#e3f3f4;
  --shadow:0 2px 12px rgba(36,73,82,.045);
}
#workspace .page-heading h1 {font-size:30px;font-weight:670;letter-spacing:-.025em}
#workspace .page-heading .muted {font-size:13px;line-height:1.55}
#workspace .primary,#workspace .secondary {min-height:38px;border-radius:11px;padding:9px 15px;font-weight:600}
#workspace .primary {background:#157e96;color:#fff;box-shadow:0 3px 8px rgba(21,105,122,.18)}
#workspace .secondary {background:#fff;color:#274750;border:1px solid #d6e4e5;box-shadow:0 1px 2px rgba(27,66,78,.04)}
#workspace .theme-button {background:rgba(255,255,255,.66);border-color:#dce8e8;color:#425e67}
#workspace .dock-search kbd {margin-left:auto;padding:3px 5px;border-radius:5px;background:rgba(89,115,120,.1);font:inherit;font-size:10px;white-space:nowrap}
#workspace .dock-clock strong,#workspace .dock-clock span {display:block}
#workspace .dock-clock span {color:var(--dock-muted);font-size:10px}
#workspace .summary-strip {padding:21px 24px;margin-bottom:18px;border:0;border-radius:15px;background:var(--surface);box-shadow:var(--shadow)}
#workspace .summary-strip > div {padding:0 22px}
#workspace .summary-strip > div:first-child {padding-left:0}
#workspace .summary-strip strong {font-size:25px;letter-spacing:-.025em}
#workspace .metric-label {margin-bottom:9px;font-size:12px}
#workspace .status-orb {width:36px;height:36px;color:#187b78;background:#e5f4f0}
#workspace .summary-status {font-size:12px;color:var(--ink)}
#workspace .summary-status small {font-size:11px;line-height:1.45}
#workspace .list-toolbar {gap:14px;padding:14px 16px;margin-bottom:10px;border:0;border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}
#workspace .segmented {padding:3px;background:#e9f0f0;border-radius:10px}
#workspace .segmented button {min-height:34px;padding:7px 12px;color:#526b73;font-size:12px}
#workspace .segmented button.selected {color:#1e434c;background:#fff;box-shadow:0 1px 4px rgba(23,62,72,.12)}
#workspace .search-field,#workspace .filters select {min-height:38px;border-color:#dbe7e8;background:#f8fbfb}
#workspace .search-field input,#workspace .filters select {font-size:12px}
#workspace .search-field:focus-within {outline:2px solid #4c9cb2;outline-offset:1px}
#workspace .order-entry {border-radius:15px;background:var(--surface);box-shadow:var(--shadow)}
#workspace .order-entry-head {padding:17px 20px 13px}
#workspace .order-context {padding:0 20px 14px}
#workspace .order-number {font-weight:650;letter-spacing:0}
#workspace .order-detail-grid {grid-template-columns:minmax(210px,25%) minmax(0,1fr)}
#workspace .recipient-panel {padding:19px 20px;background:var(--surface-secondary);border-color:var(--line)}
#workspace .detail-title {font-size:12px;letter-spacing:.01em}
#workspace .recipient-address,#workspace .recipient-phone {font-size:13px;line-height:1.65}
#workspace .order-item {padding:16px 20px}
#workspace .product-thumb {background:#f4f8f8;border-color:var(--line);border-radius:11px}
#workspace .product-name {font-size:14px;line-height:1.5}
#workspace .product-meta {gap:6px 16px;font-size:12px}
#workspace .logistics-panel,#workspace .ship-panel {padding:15px 20px}
#workspace .list-footer {margin-top:10px;border:0;color:var(--subtle)}
#workspace .shop-card,#workspace .grouped-card,#workspace .inventory-table-wrap,#workspace .inventory-page-toolbar,#workspace .standalone {background:var(--surface);border:0;border-radius:15px;box-shadow:var(--shadow)}
#workspace .shop-card {padding:21px}
#workspace .shop-grid {gap:14px}
#workspace .shop-avatar {background:#e5f3f2;color:#187f83}
#workspace .grouped-card {padding:20px}
#workspace .section-title {margin-left:3px;color:var(--subtle);font-size:13px}
#workspace .inventory-page-toolbar {padding:18px 20px}
#workspace .inventory-table th {background:var(--surface-secondary);color:var(--subtle);font-size:12px}
#workspace .inventory-table td {font-size:13px}
#workspace .grouped-card input {background:var(--surface-secondary);border-color:var(--line);color:var(--ink)}
#workspace .notice {border-color:#ecdcb9;background:#fff9eb;color:#805900}
#modal {border:1px solid rgba(255,255,255,.75);border-radius:18px;background:rgba(253,255,255,.97);box-shadow:0 22px 70px rgba(18,49,58,.25)}
#modal::backdrop {background:rgba(18,35,40,.3);backdrop-filter:blur(3px)}
#modal .modal-header h2 {font-size:20px}
#modal .modal-body label {color:#36535b}
#modal .modal-body input {background:#f3f8f8;border-color:#d8e6e7;color:#1b3039}
#auth.auth-stage {background:transparent}
#auth .auth-card {border:1px solid rgba(255,255,255,.8);border-radius:22px;background:rgba(255,255,255,.88);box-shadow:0 20px 60px rgba(34,74,85,.14)}
#auth .auth-card h1 {letter-spacing:-.025em}
#auth .auth-card input {border-color:#d7e5e5;background:rgba(255,255,255,.9)}
#auth .primary {background:#157e96;color:#fff}

html[data-theme="dark"] {
  --surface:#252e32;--surface-secondary:#202a2d;--ink:#edf6f5;--muted:#bacbca;
  --subtle:#bbcaca;--line:#3b4d50;--blue:#82d6e7;--blue-wash:#24444a;
  --shadow:0 2px 12px rgba(0,0,0,.13);
}
html[data-theme="dark"] #workspace .primary {background:#58bfce;color:#10292c}
html[data-theme="dark"] #workspace .secondary {background:#344448;border-color:#4a6063;color:#effafa}
html[data-theme="dark"] #workspace .theme-button {background:#344448;border-color:#4a6063;color:#edf6f5}
html[data-theme="dark"] #workspace .segmented {background:#19262a}
html[data-theme="dark"] #workspace .segmented button {color:#c1d1d1}
html[data-theme="dark"] #workspace .segmented button.selected {background:#53696b;color:#fff}
html[data-theme="dark"] #workspace .search-field,html[data-theme="dark"] #workspace .filters select {background:#202a2d;border-color:#405255;color:#edf6f5}
html[data-theme="dark"] #workspace .status-orb,html[data-theme="dark"] #workspace .shop-avatar {background:#274945;color:#95e1d4}
html[data-theme="dark"] #workspace .product-thumb {background:#202a2d}
html[data-theme="dark"] #workspace .notice {background:#453b25;border-color:#76613c;color:#ffe0a0}
html[data-theme="dark"] #modal {background:rgba(38,48,51,.98);border-color:#53686a;color:#f2fafa}
html[data-theme="dark"] #modal .modal-body label {color:#d5e4e2}
html[data-theme="dark"] #modal .modal-body input {background:#202a2d;border-color:#485d60;color:#f2fafa}
html[data-theme="dark"] #auth .auth-card {background:rgba(39,50,53,.95);border-color:#516568;color:#f2fafa}
html[data-theme="dark"] #auth .auth-card input {background:#202a2d;border-color:#485d60;color:#f2fafa}
html[data-theme="dark"] #auth .primary {background:#58bfce;color:#10292c}

@media (hover:hover) and (pointer:fine) {
  #workspace .primary:hover,#auth .primary:hover {filter:brightness(.94)}
  #workspace .secondary:hover {background:var(--surface-secondary)}
}

/* A compact, consistent desktop type scale keeps frequent actions and data readable. */
:root {
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Segoe UI Variable","Segoe UI","Microsoft YaHei UI",system-ui,sans-serif;
  --desktop-ground:#e1e9ee;--desktop-window:#f6f8fa;
  --ink:#1b2c36;--muted:#536b76;--subtle:#536b76;--blue:#1268d5;--blue-wash:#e8f1fc;
  --dock-ink:#243d4b;--dock-muted:#4d6673;--dock-accent:#1268d5;
}
body {font-size:14px;line-height:1.5}
button,input,select {letter-spacing:0}
#workspace > main {box-shadow:0 18px 54px rgba(34,55,73,.13),0 2px 8px rgba(34,55,73,.06)}
#workspace .topbar {height:60px}
#workspace .breadcrumb,#workspace .top-date,#workspace .theme-button {font-size:12px}
#workspace .main-content {padding-top:24px}
#workspace .page-heading {margin-bottom:20px}
#workspace .page-heading h1 {margin-bottom:8px;font-size:30px;line-height:1.2;font-weight:600;letter-spacing:-.02em}
#workspace .page-heading .muted {font-size:13px;line-height:1.55}
#workspace .primary,#workspace .secondary {font-size:13px;font-weight:600;min-height:40px}
#workspace .primary {background:#1268d5;box-shadow:0 2px 6px rgba(18,104,213,.18)}
#workspace .summary-strip {padding:19px 24px;margin-bottom:16px}
#workspace .summary-strip strong {font-size:25px;line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums}
#workspace .metric-label {font-size:12px;line-height:1.4;font-weight:500;margin-bottom:8px}
#workspace .summary-status,#workspace .summary-status small {font-size:12px;line-height:1.5}
#workspace .list-toolbar {padding:13px 16px}
#workspace .segmented button,#workspace .search-field input,#workspace .filters select {font-size:13px}
#workspace .segmented button {font-weight:500}
#workspace .section-title {font-size:14px;font-weight:600}
#workspace .shop-card h3,#workspace .inventory-page-toolbar strong {font-size:15px;font-weight:600}
#workspace .grouped-card label,#workspace .settings-copy,#workspace .form-help,#workspace .section-intro {font-size:13px;line-height:1.55}
#workspace .inventory-table th,#workspace .inventory-table td {font-size:13px}
#workspace .list-footer,#workspace .footnote {font-size:12px}
#modal .modal-header h2 {font-size:21px;font-weight:600;line-height:1.3}
#modal .modal-body label,#modal .modal-body p,#auth .auth-card label {font-size:13px;line-height:1.55}
#modal .modal-body input,#auth .auth-card input {font-size:14px}
#auth .auth-card h1 {font-size:27px;font-weight:600;line-height:1.3}
#auth .auth-card .muted {font-size:13px}
#workspace .dock-nav .nav-link {font-size:13px;font-weight:500}
#workspace .desktop-dock .sync-note,#workspace .desktop-dock .account,#workspace .dock-clock {font-size:12px;line-height:1.35}
#workspace .desktop-dock .sync-note small,#workspace .dock-clock span {font-size:11px;line-height:1.35}
#workspace .island-copy strong {font-size:13px;line-height:1.25}
#workspace .island-copy span,#workspace .island-detail {font-size:12px;line-height:1.45}
#workspace .order-number,#workspace .order-total strong,#workspace .product-quantity strong,
#workspace .inventory-quantity,#workspace .tracking-number,#workspace .dock-clock {font-variant-numeric:tabular-nums}
html[data-theme="dark"] {--ink:#edf4f7;--muted:#c0cdd1;--subtle:#c0cdd1;--blue:#8ec6ff;--blue-wash:#20394f;--dock-accent:#a6d2ff}
html[data-theme="dark"] #workspace .primary {background:#77b8fb;color:#102235}

/* Soft graphite and misted glass for the desktop workspace. */
:root {
  --desktop-ground:#d1d4c9;--desktop-window:rgba(225,228,218,.88);
  --surface:#e9ebe3;--surface-secondary:#dfe4db;--ink:#202b26;
  --muted:#53635a;--subtle:#526158;--line:#cbd3c9;--blue:#355f4d;--blue-wash:#d6e4d9;
  --dock-surface:rgba(212,220,208,.78);--dock-rim:rgba(255,255,250,.72);
  --dock-ink:#24332b;--dock-muted:#4b5c52;--dock-accent:#355f4d;--dock-highlight:rgba(247,249,239,.55);
  --shadow:0 2px 12px rgba(47,58,48,.07);
}
body {background:radial-gradient(ellipse at 18% 8%,#e7e5d8 0,transparent 52%),radial-gradient(ellipse at 84% 82%,#b7c8b9 0,transparent 52%),var(--desktop-ground);background-attachment:fixed}
/* Keep glass on the small Dock; long content surfaces must not filter the whole page. */
#workspace > main {background:var(--desktop-window);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 20px 60px rgba(35,48,39,.16),0 2px 8px rgba(35,48,39,.08)}
#workspace .topbar {background:rgba(237,239,228,.56)}
#workspace .summary-strip,#workspace .list-toolbar,#workspace .order-entry,#workspace .list-footer,
#workspace .shop-card,#workspace .grouped-card,#workspace .inventory-table-wrap,#workspace .inventory-page-toolbar,#workspace .standalone,#workspace .empty {background:rgba(236,239,230,.88)}
#workspace .recipient-panel,#workspace .product-thumb {background:rgba(218,226,216,.74)}
#workspace .primary,#auth .primary {background:#385f4c;color:#f5f8f0;box-shadow:0 2px 6px rgba(39,65,50,.18)}
#workspace .secondary,#workspace .theme-button {background:rgba(235,239,229,.72);border-color:#cbd6c9;color:#324d3e}
#workspace .segmented {background:#d5ded3}
#workspace .segmented button {color:#455c4f}
#workspace .segmented button.selected {color:#243e30;background:rgba(244,247,238,.76)}
#workspace .search-field,#workspace .filters select {background:rgba(230,236,225,.8);border-color:#c6d1c5}
#workspace .desktop-dock .brand img {filter:grayscale(1) brightness(.7)}
#workspace .dock-search {background:rgba(242,246,236,.48);color:var(--dock-ink)}
#workspace .dock-nav .nav-link [data-icon] {background:#5e7969}
#workspace .dock-nav .nav-link[data-page="inventory"] [data-icon] {background:#71836b}
#workspace .dock-nav .nav-link[data-page="shops"] [data-icon] {background:#8b826c}
#workspace .dock-nav .nav-link[data-page="settings"] [data-icon] {background:#718079}
#workspace .status-orb,#workspace .shop-avatar {background:#d6e8d9;color:#356b50}
#workspace .copy-detail,#workspace .text-button,#workspace .inventory-map {color:#355f4d}
#modal {background:rgba(229,235,224,.96);border-color:rgba(255,255,245,.65);backdrop-filter:blur(28px) saturate(115%)}
#modal .modal-body input {background:rgba(239,243,234,.82);border-color:#cbd6c9;color:#202b26}
#auth .auth-card {background:rgba(229,235,224,.82);border-color:rgba(255,255,245,.65);backdrop-filter:blur(28px)}
#auth .auth-card input {background:rgba(239,243,234,.8);border-color:#cbd6c9;color:#202b26}
html[data-theme="dark"] {
  --desktop-ground:#16231f;--desktop-window:rgba(31,41,36,.93);--surface:#2c3832;--surface-secondary:#25322b;
  --ink:#edf3e9;--muted:#c0d0c0;--subtle:#bfcec0;--line:#46594a;--blue:#a6d7b5;--blue-wash:#30483a;
  --dock-surface:rgba(38,53,44,.88);--dock-rim:rgba(214,235,214,.18);--dock-ink:#ecf5e8;--dock-muted:#bfd1bf;--dock-accent:#b6dfbf;--dock-highlight:rgba(219,238,218,.12);
}
html[data-theme="dark"] body {background:radial-gradient(ellipse at 20% 5%,#34483b 0,transparent 52%),radial-gradient(ellipse at 85% 90%,#26382f 0,transparent 52%),var(--desktop-ground);background-attachment:fixed}
html[data-theme="dark"] #workspace .topbar {background:rgba(46,59,50,.64)}
html[data-theme="dark"] #workspace .summary-strip,html[data-theme="dark"] #workspace .list-toolbar,html[data-theme="dark"] #workspace .order-entry,html[data-theme="dark"] #workspace .list-footer,
html[data-theme="dark"] #workspace .shop-card,html[data-theme="dark"] #workspace .grouped-card,html[data-theme="dark"] #workspace .inventory-table-wrap,html[data-theme="dark"] #workspace .inventory-page-toolbar,html[data-theme="dark"] #workspace .standalone,html[data-theme="dark"] #workspace .empty {background:rgba(45,58,49,.94)}
html[data-theme="dark"] #workspace .recipient-panel,html[data-theme="dark"] #workspace .product-thumb {background:rgba(35,49,40,.9)}
html[data-theme="dark"] #workspace .primary,html[data-theme="dark"] #auth .primary {background:#a6cfad;color:#172b20}
html[data-theme="dark"] #workspace .secondary,html[data-theme="dark"] #workspace .theme-button {background:#405448;border-color:#5a6d5c;color:#eef5eb}
html[data-theme="dark"] #workspace .segmented {background:#233129}
html[data-theme="dark"] #workspace .segmented button {color:#c5d4c4}
html[data-theme="dark"] #workspace .segmented button.selected {background:#566d5b;color:#f4f8f0}
html[data-theme="dark"] #workspace .search-field,html[data-theme="dark"] #workspace .filters select {background:#28382e;border-color:#526557;color:#edf3e9}
html[data-theme="dark"] #workspace .copy-detail,html[data-theme="dark"] #workspace .text-button,html[data-theme="dark"] #workspace .inventory-map {color:#a6d7b5}
html[data-theme="dark"] #modal {background:rgba(42,56,46,.97);border-color:#526858}
html[data-theme="dark"] #auth .auth-card {background:rgba(42,56,46,.9);border-color:#526858}

/* Search opens above the Dock; result rows remain fully keyboard accessible. */
#workspace .global-search-panel {position:fixed;z-index:44;bottom:100px;left:50%;transform:translateX(-50%);width:min(640px,calc(100vw - 48px));max-height:min(620px,calc(100vh - 150px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,246,.68);border-radius:22px;background:rgba(224,232,220,.92);color:var(--ink);box-shadow:0 24px 65px rgba(29,48,34,.24);backdrop-filter:blur(30px) saturate(130%);-webkit-backdrop-filter:blur(30px) saturate(130%)}
#workspace .global-search-header {display:flex;align-items:center;gap:12px;padding:17px 19px;border-bottom:1px solid var(--line)}
#workspace .global-search-header:focus-within {outline:2px solid #55745b;outline-offset:-3px;border-radius:21px 21px 0 0}
#workspace .global-search-header [data-icon] {display:flex;color:var(--subtle)}
#workspace .global-search-header .icon {width:20px;height:20px}
#workspace .global-search-input {flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:16px;line-height:1.4}
#workspace .global-search-input::placeholder {color:var(--subtle)}
#workspace .global-search-input::-webkit-search-cancel-button {-webkit-appearance:none;appearance:none}
#workspace .global-search-close {display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(60,80,63,.12);color:var(--ink);font-size:20px;line-height:1}
#workspace .global-search-status {margin:0;padding:11px 20px 4px;color:var(--subtle);font-size:12px;line-height:1.5}
#workspace .global-search-results {overflow:auto;overscroll-behavior:contain;padding:3px 10px 10px}
#workspace .global-search-group-title {padding:8px 10px 5px;color:var(--subtle);font-size:12px;font-weight:600}
#workspace .global-search-result {display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 10px;border-radius:12px;background:transparent;color:var(--ink);text-align:left}
#workspace .global-search-result:hover,#workspace .global-search-result.is-active,#workspace .global-search-result:focus-visible {background:rgba(248,250,241,.68)}
#workspace .global-search-result:focus-visible {outline:2px solid #456d51;outline-offset:-2px}
#workspace .global-search-type {display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:rgba(83,115,88,.16);color:#315f45;font-size:12px;font-weight:600}
#workspace .global-search-main {display:grid;gap:2px;min-width:0;line-height:1.4}
#workspace .global-search-main strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}
#workspace .global-search-meta {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--subtle);font-size:12px}
#workspace .global-search-hint {padding:9px 20px;border-top:1px solid var(--line);color:var(--subtle);font-size:12px}
#workspace .inventory-table tr:focus-visible,#workspace .order-entry:focus-visible,#workspace .shop-card:focus-visible {outline:2px solid #648d6b;outline-offset:-2px}
html[data-theme="dark"] #workspace .global-search-panel {background:rgba(38,53,44,.95);border-color:rgba(211,232,209,.18)}
html[data-theme="dark"] #workspace .global-search-result:hover,html[data-theme="dark"] #workspace .global-search-result.is-active,html[data-theme="dark"] #workspace .global-search-result:focus-visible {background:rgba(210,232,207,.12)}
html[data-theme="dark"] #workspace .global-search-type {background:rgba(176,213,177,.16);color:#b5e0bd}
@media (prefers-reduced-transparency:reduce) {#workspace > main,#workspace .global-search-panel {backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--surface)}}

/* Desktop type and material refinement: a quiet frame for operational content. */
:root {
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI Variable Text","Segoe UI Variable","Segoe UI","PingFang SC","Microsoft YaHei UI",system-ui,sans-serif;
  --type-caption:13px;
  --type-body:14px;
  --type-section:16px;
}
body {font-size:var(--type-body);line-height:1.55}
button,input,select,textarea {font-family:inherit}
#workspace .topbar {height:62px}
#workspace .breadcrumb,#workspace .top-date,#workspace .theme-button {font-size:var(--type-caption);line-height:1.4}
#workspace .main-content {padding-top:26px}
#workspace .page-heading {align-items:flex-end;gap:24px;margin-bottom:22px}
#workspace .page-heading h1 {font-size:30px;line-height:1.25;letter-spacing:-.02em;font-weight:650}
#workspace .page-heading .muted {font-size:14px;line-height:1.55}
#workspace .eyebrow {font-size:11px;letter-spacing:.08em;color:var(--subtle)}
#workspace .primary,#workspace .secondary {font-size:14px;font-weight:600;min-height:40px}
#workspace .summary-strip,#workspace .list-toolbar,#workspace .order-entry,#workspace .list-footer,
#workspace .shop-card,#workspace .grouped-card,#workspace .inventory-table-wrap,#workspace .inventory-page-toolbar,#workspace .standalone,#workspace .empty {background:rgba(243,246,238,.92)}
#workspace .summary-strip {padding:20px 24px}
#workspace .metric-label {font-size:13px;line-height:1.45}
#workspace .summary-strip strong {font-size:26px;line-height:1.1}
#workspace .summary-status,#workspace .summary-status small {font-size:13px;line-height:1.5}
#workspace .segmented button,#workspace .search-field input,#workspace .filters select {font-size:14px}
#workspace .section-title {font-size:16px;line-height:1.4;font-weight:650}
#workspace .shop-card h3 {font-size:16px;line-height:1.35}
#workspace .grouped-card label,#workspace .settings-copy,#workspace .form-help,#workspace .section-intro {font-size:14px;line-height:1.6}
#workspace .grouped-card input,#workspace .grouped-card select {font-size:14px}
#workspace .footnote,#workspace .list-footer {font-size:13px;line-height:1.5}
#workspace .dock-nav .nav-link {font-size:13px;font-weight:550;white-space:nowrap}
#workspace .desktop-dock .account,#workspace .dock-clock {font-size:12px}
#workspace .global-search-status,#workspace .global-search-meta,#workspace .global-search-hint {font-size:13px;line-height:1.5}
#workspace .global-search-result {min-height:56px}
#workspace .global-search-main strong {font-size:15px}
#modal .modal-header h2 {font-size:22px;line-height:1.3}
#modal .modal-body label,#modal .modal-body p,#auth .auth-card label {font-size:14px;line-height:1.6}
#modal .modal-body input,#auth .auth-card input {font-size:15px}
#auth .auth-card .muted {font-size:14px;line-height:1.6}
html[data-theme="dark"] #workspace .summary-strip,html[data-theme="dark"] #workspace .list-toolbar,
html[data-theme="dark"] #workspace .order-entry,html[data-theme="dark"] #workspace .list-footer,
html[data-theme="dark"] #workspace .shop-card,html[data-theme="dark"] #workspace .grouped-card,
html[data-theme="dark"] #workspace .inventory-table-wrap,html[data-theme="dark"] #workspace .inventory-page-toolbar,
html[data-theme="dark"] #workspace .standalone,html[data-theme="dark"] #workspace .empty {background:rgba(47,61,51,.96)}
html[data-theme="dark"] #workspace .eyebrow {color:var(--subtle)}


/* Soft animated wallpaper, selected for the workspace. */
html:not([data-theme="dark"]) body {
  isolation:isolate;
  background:radial-gradient(ellipse 65% 80% at 2% 6%,#f6cfc5 0%,transparent 72%),radial-gradient(ellipse 60% 70% at 94% 4%,#e8d3e8 0%,transparent 72%),radial-gradient(ellipse 70% 90% at 80% 100%,#c7dfe2 0%,transparent 70%),radial-gradient(ellipse 65% 75% at 8% 100%,#ede4ca 0%,transparent 70%),#ede8e8;
  background-attachment:fixed;
}
html:not([data-theme="dark"]) body::before {
  content:"";position:fixed;inset:-20%;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 65% 80% at 2% 6%,#f6cfc5 0%,transparent 72%),radial-gradient(ellipse 60% 70% at 94% 4%,#e8d3e8 0%,transparent 72%),radial-gradient(ellipse 70% 90% at 80% 100%,#c7dfe2 0%,transparent 70%),radial-gradient(ellipse 65% 75% at 8% 100%,#ede4ca 0%,transparent 70%),#ede8e8;
  background-size:cover;background-position:center;
  animation:workspace-wallpaper-drift 24s ease-in-out infinite alternate;
}
html:not([data-theme="dark"]) #workspace > main {background:rgba(250,249,248,.82);box-shadow:0 22px 64px rgba(65,52,57,.14),0 3px 10px rgba(65,52,57,.06)}
html:not([data-theme="dark"]) #workspace .topbar {background:rgba(255,255,255,.40);border-color:rgba(120,108,109,.14)}
@keyframes workspace-wallpaper-drift {from {transform:translate3d(-6%,-3%,0) scale(1)} to {transform:translate3d(6%,4%,0) scale(1.06)}}
@media(prefers-reduced-motion:reduce) {html:not([data-theme="dark"]) body::before {animation:none}}
