:root{ --bg:#faf8f4; --ink:#141414; --muted:#9c8f76; --line:#ece7df;
  --gold1:#d9b75a; --gold2:#bd9a3c; --serif:'Times New Roman',Georgia,serif;
  --sans:-apple-system,system-ui,sans-serif; }
*{ box-sizing:border-box; }
[hidden]{ display:none !important; } /* class selectors with display:flex/grid must not defeat the hidden attribute */
body{ margin:0; background:var(--bg); color:var(--ink); font-family:var(--serif);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }

/* Branded keyboard-focus ring (mouse clicks stay clean via :focus-visible) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible{ outline:2px solid var(--gold2); outline-offset:2px; border-radius:6px; }
.search:focus-visible, .notebox:focus-visible, #dispatch-input:focus-visible,
.cb-form input:focus-visible, .cb-form select:focus-visible{ outline-offset:0; border-color:var(--gold2); }

/* Shell: sidebar + content */
#shell{ display:flex; min-height:100vh; align-items:flex-start; }
#sidebar{ width:220px; flex:none; background:var(--bg); border-right:1px solid var(--line);
  padding:20px 14px; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }
.sidebar-brand{ text-align:center; margin-bottom:24px; }
.sidebar-logo{ height:72px; max-width:100%; mix-blend-mode:multiply; }
#sidebar-nav{ display:flex; flex-direction:column; gap:4px; }
.nav-item{ display:flex; align-items:center; gap:10px; font-family:var(--sans); font-size:13px;
  padding:10px 12px; border-radius:8px; background:none; border:none; color:#8a8276; cursor:pointer; text-align:left; }
.nav-item:hover:not(.on){ background:#f4f1ea; }
.nav-item.on{ background:#f8f0d8; color:var(--ink); font-weight:600; }
.nav-icon{ font-size:15px; line-height:1; }
#content{ flex:1; min-width:0; padding:28px 32px; max-width:1100px; }

@media(max-width:760px){
  #shell{ flex-direction:column; }
  #sidebar{ width:100%; height:auto; position:static; border-right:none; border-bottom:1px solid var(--line);
    flex-direction:row; align-items:center; justify-content:space-between; padding:12px 16px; }
  .sidebar-brand{ margin-bottom:0; }
  .sidebar-logo{ height:36px; }
  #sidebar-nav{ flex-direction:row; gap:4px; }
  .nav-item span:not(.nav-icon){ display:none; }
  #content{ padding:18px 16px; }
}

/* View header (per-tab title + freshness/refresh) */
.view-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.view-title{ font-family:var(--serif); font-size:22px; font-weight:400; margin:0; }
.view-actions{ display:flex; align-items:center; gap:10px; }
.freshness{ font-family:var(--sans); font-size:11px; padding:5px 11px; border-radius:20px; border:1px solid var(--line); }
.freshness.green{ color:#3f6f4a; background:#eef4ee; border-color:#d9e6dc; }
.freshness.amber{ color:#8a6d1f; background:#fbf3df; border-color:#ecdcb0; }
.freshness.red{ color:#b3261e; background:#fbeae8; border-color:#f0cdc8; }
.refresh-btn{ font-family:var(--sans); font-size:11px; padding:5px 11px; border-radius:20px;
  border:1px solid var(--ink); background:var(--ink); color:var(--gold1); cursor:pointer; }
.refresh-btn:disabled{ opacity:.55; cursor:default; }

/* Stats: period tabs */
#tabs{ display:flex; gap:8px; margin-bottom:22px; font-family:var(--sans); flex-wrap:wrap; }
#cr-period-tabs{ display:flex; gap:8px; margin-bottom:18px; font-family:var(--sans); flex-wrap:wrap; }
.tab{ font-size:12px; padding:7px 16px; border-radius:6px; background:#fff; border:1px solid #e6e0d6; color:#8a8276; cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease; }
.tab:hover:not(.on){ border-color:#d3c9b4; background:#faf7f0; }
.tab.on{ background:var(--ink); color:var(--gold1); border-color:var(--ink); font-weight:600; letter-spacing:.5px; }

/* Shared interaction feedback for pill/segment/pagination controls */
.chip, .seg-btn, .pg-arrow, .pg-num, .nav-item, .refresh-btn, .export{ transition:background .15s ease, color .15s ease, border-color .15s ease; }
.chip:hover:not(.on){ border-color:#d3c9b4; background:#faf7f0; }
.seg-btn:hover:not(.on){ color:var(--ink); }
.pg-num:hover:not(.on), .pg-arrow:hover:not(:disabled){ border-color:#d3c9b4; background:#faf7f0; }
.refresh-btn:hover:not(:disabled), .export:hover:not(:disabled){ background:#2a2a2a; }
.wa{ transition:background .15s ease, border-color .15s ease; }

.cols{ display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:18px; margin-bottom:18px; }
@media(max-width:760px){ .cols{ grid-template-columns:1fr; } }
.cols2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
@media(max-width:760px){ .cols2{ grid-template-columns:1fr; } }

.panel-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.panel-head .lead-title{ margin:0; }
.seg{ display:inline-flex; background:#f4f1ea; border:1px solid var(--line); border-radius:7px; padding:2px; }
.seg-btn{ font-family:var(--sans); font-size:10px; letter-spacing:.4px; text-transform:uppercase;
  padding:4px 9px; border:none; background:none; color:#8a8276; cursor:pointer; border-radius:5px; }
.seg-btn.on{ background:var(--ink); color:var(--gold1); font-weight:600; }

/* Cards: shadow-only, no border (never pair border + wide shadow) */
.panel{ background:#fff; border-radius:12px; padding:16px 16px 8px; box-shadow:0 2px 8px rgba(20,20,20,.05); }
.lead-title{ font-family:var(--sans); font-size:11px; text-transform:uppercase; letter-spacing:1.4px; color:var(--muted); margin:0 0 14px; }

.row{ display:flex; align-items:center; gap:11px; padding:11px 0; border-bottom:1px solid #f2ede4; }
.row:last-child{ border-bottom:none; }
.rk{ width:16px; font-size:15px; font-weight:700; }
.rk.gold{ color:var(--gold2); }
.thumb{ width:38px; height:38px; border-radius:7px; flex:none; object-fit:cover; border:1px solid var(--line); background:linear-gradient(135deg,#efe9dd,#ded5c2); }
.nm{ flex:1; }
.nm-name{ font-size:14px; line-height:1.1; }
.bar{ height:4px; background:#f0eadf; border-radius:3px; margin-top:5px; overflow:hidden; width:90%; }
.bar > i{ display:block; height:100%; width:0; background:linear-gradient(90deg,var(--gold1),var(--gold2)); border-radius:3px; }
.vals{ text-align:right; font-family:var(--sans); }
.egp{ font-size:13px; font-weight:700; white-space:nowrap; }
.egp small{ font-weight:400; color:var(--muted); font-size:10px; }
.pct{ font-size:11px; color:#3f6f4a; margin-top:2px; white-space:nowrap; }
.soon-box,.empty{ text-align:center; padding:26px 8px; color:#b8ac95; font-family:var(--sans); font-size:12px; }

/* Slim "coming soon" strip (replaces the awkward lone Top Ads card) */
.ad-strip{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:18px; padding:12px 16px;
  background:#fff; border:1px dashed #e2d9c6; border-radius:12px; }
.ad-strip-t{ font-family:var(--sans); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:var(--muted); }
.ad-strip-s{ font-family:var(--sans); font-size:12px; color:#9c8f76; }

.kpis{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:18px; }
@media(max-width:760px){ .kpis{ grid-template-columns:repeat(2,1fr); } }
.kpi{ background:#fff; border-radius:12px; padding:14px 16px; box-shadow:0 2px 8px rgba(20,20,20,.05); }
.kpi-label{ font-family:var(--sans); font-size:10px; text-transform:uppercase; letter-spacing:1.2px; color:var(--muted); }
.kpi-value{ font-size:24px; font-weight:700; margin-top:6px; line-height:1; }
.kpi-value small{ font-size:11px; font-weight:400; color:var(--muted); }
.kpi-sub{ font-family:var(--sans); font-size:11px; color:var(--muted); margin-top:6px; }
.kpi-delta{ display:inline-block; margin-top:8px; font-family:var(--sans); font-size:11px; padding:2px 8px; border-radius:20px; }
.kpi-delta.up{ color:#3f6f4a; background:#eef4ee; }
.kpi-delta.down{ color:#b3261e; background:#fbeae8; }
.kpi-delta.flat{ color:#8a8276; background:#f4f1ea; }
.kpi-delta.none{ display:none; }

/* Revenue is the north-star metric: ink+gold hero card (matches the active-state language) */
.kpi.hero{ background:var(--ink); box-shadow:0 6px 20px rgba(20,20,20,.18); }
.kpi.hero .kpi-label{ color:var(--gold1); }
.kpi.hero .kpi-value{ color:#fff; font-size:27px; }
.kpi.hero .kpi-value small{ color:rgba(255,255,255,.55); }
.kpi.hero .kpi-delta.up{ color:#93d9a6; background:rgba(255,255,255,.10); }
.kpi.hero .kpi-delta.down{ color:#f2a79f; background:rgba(255,255,255,.10); }
.kpi.hero .kpi-delta.flat{ color:rgba(255,255,255,.7); background:rgba(255,255,255,.10); }

.trend-panel{ margin-bottom:18px; }
.t-plot{ position:relative; touch-action:pan-y; }
#panel-trend .t-svg{ display:block; width:100%; }
.t-line{ stroke:var(--gold2); stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.t-grid{ stroke:#efe9dd; stroke-width:1; vector-effect:non-scaling-stroke; }
.t-ylabel{ position:absolute; right:2px; transform:translateY(-50%); font-family:var(--sans); font-size:10px;
  color:#b8ac95; background:rgba(255,255,255,.72); padding:0 3px; border-radius:3px; pointer-events:none; }
.t-hover{ position:absolute; inset:0; pointer-events:none; }
.t-guide{ position:absolute; top:0; bottom:0; width:1px; background:var(--gold2); opacity:.4; transform:translateX(-.5px); }
.t-dot-h{ position:absolute; width:9px; height:9px; border-radius:50%; background:var(--gold2); border:2px solid #fff;
  box-shadow:0 1px 4px rgba(20,20,20,.25); transform:translate(-50%,-50%); }
.t-tip{ position:absolute; top:-2px; transform:translate(-50%,-100%); background:var(--ink); color:#fff;
  font-family:var(--sans); padding:6px 10px; border-radius:8px; white-space:nowrap; pointer-events:none;
  box-shadow:0 6px 18px rgba(20,20,20,.28); display:flex; flex-direction:column; gap:1px; z-index:2; }
.t-tip-d{ font-size:10px; color:var(--gold1); letter-spacing:.3px; }
.t-tip-v{ font-size:13px; font-weight:700; } .t-tip-v small{ font-weight:400; opacity:.6; font-size:10px; }
.t-axis{ display:flex; justify-content:space-between; margin-top:6px; font-family:var(--sans); font-size:10px; color:var(--muted); }
.t-axis span{ flex:1; }
.t-cap{ font-family:var(--sans); font-size:10px; color:var(--muted); margin-top:8px; text-align:right; letter-spacing:.3px; }

#panel-deadstock{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.dead{ display:flex; align-items:center; gap:9px; padding:7px; border:1px solid var(--line); border-radius:9px; }
.dead .thumb{ width:30px; height:30px; }
.dead-name{ font-size:12px; line-height:1.2; }
.dead-sub{ display:block; font-family:var(--sans); font-size:10px; color:var(--muted); margin-top:2px; }
#panel-restock{ display:grid; grid-template-columns:1fr; gap:8px; }
#panel-restock .dead.urgent{ border-color:#f0cdc8; background:#fdf4f3; }
#panel-restock .dead.urgent .dead-sub{ color:#b3261e; }

@keyframes fadeUp{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
.kpi, .panel, .trend-panel{ animation:fadeUp .5s cubic-bezier(.22,1,.36,1) both; }
.kpis .kpi:nth-child(2){ animation-delay:.05s; }
.kpis .kpi:nth-child(3){ animation-delay:.10s; }
.kpis .kpi:nth-child(4){ animation-delay:.15s; }
.kpis .kpi:nth-child(5){ animation-delay:.20s; }
.kpi-delta .g{ display:inline-block; }
@media (prefers-reduced-motion: reduce){
  .kpi,.panel,.trend-panel{ animation:none !important; }
  .bar > i, .t-line{ transition:none !important; }
}

/* Customer-health strip (Customers tab) — lifetime repeat-rate + supporting figures */
.cust-metrics{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:16px; }
@media(max-width:760px){ .cust-metrics{ grid-template-columns:repeat(2,1fr); } }
.cm-card{ background:#fff; border-radius:12px; padding:14px 16px; box-shadow:0 2px 8px rgba(20,20,20,.05); }
.cm-label{ font-family:var(--sans); font-size:10px; text-transform:uppercase; letter-spacing:1.2px; color:var(--muted); }
.cm-value{ font-size:24px; font-weight:700; margin-top:6px; line-height:1; }
.cm-value small{ font-size:13px; font-weight:400; color:var(--muted); }
.cm-sub{ font-family:var(--sans); font-size:11px; color:var(--muted); margin-top:7px; }
.cm-card.cm-hero{ background:var(--ink); box-shadow:0 6px 20px rgba(20,20,20,.18); }
.cm-hero .cm-label{ color:var(--gold1); }
.cm-hero .cm-value{ color:#fff; font-size:28px; }
.cm-hero .cm-value small{ color:rgba(255,255,255,.55); }
.cm-hero .cm-sub{ color:rgba(255,255,255,.6); }

/* Search / filters (Customers + Orders) */
.searchrow{ display:flex; gap:8px; margin-bottom:14px; }
.search-mode{ flex:none; font-family:var(--sans); font-size:13px; padding:0 12px; border:1px solid var(--line);
  border-radius:12px; background:#fff; color:var(--ink); cursor:pointer; }
.search{ flex:1; min-width:0; font-family:var(--sans); font-size:15px; padding:13px 16px; border:1px solid var(--line);
  border-radius:12px; background:#fff; }
#filters, #o-filters{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.chip{ font-family:var(--sans); font-size:12px; padding:7px 14px; border-radius:20px; background:#fff;
  border:1px solid #e6e0d6; color:#8a8276; cursor:pointer; }
.chip.on{ background:var(--ink); color:var(--gold1); border-color:var(--ink); font-weight:600; }
.chip.guide{ margin-left:auto; }
.guide-box{ font-family:var(--sans); font-size:12px; line-height:1.9; color:#5c5545; background:#fff;
  border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:14px; }

.bulkbar{ display:flex; align-items:center; justify-content:space-between; font-family:var(--sans); font-size:12px; color:var(--muted); margin-bottom:10px; }
.export{ font-family:var(--sans); font-size:12px; padding:8px 16px; border-radius:8px; border:1px solid var(--ink);
  background:var(--ink); color:var(--gold1); cursor:pointer; }
.export:disabled{ opacity:.4; cursor:default; }

/* Data tables (Customers + Orders) */
.dtable{ width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden;
  box-shadow:0 2px 8px rgba(20,20,20,.05); }
.dtable thead th{ font-family:var(--sans); font-size:10px; text-transform:uppercase; letter-spacing:1px;
  color:var(--muted); text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); }
.dtable tbody tr.drow{ cursor:pointer; }
.dtable tbody tr.drow:hover{ background:#faf8f3; }
.dtable td{ padding:12px 14px; border-bottom:1px solid #f2ede4; font-size:13px; vertical-align:middle; font-family:var(--sans); }
.dtable tr:last-child td{ border-bottom:none; }
.col-check{ width:36px; }
.col-action{ width:44px; text-align:right; }
.col-main{ display:flex; align-items:center; gap:10px; }
.avatar{ flex:none; width:32px; height:32px; border-radius:50%; background:#f8f0d8; color:#8a6d1f;
  display:flex; align-items:center; justify-content:center; font-family:var(--sans); font-size:11px; font-weight:700; }
.cname-n{ font-family:var(--serif); font-size:14px; } .cname-s{ font-size:11px; color:var(--muted); margin-top:2px; }
.badges{ display:flex; gap:5px; flex-wrap:wrap; }
.badge{ display:inline-flex; align-items:center; gap:5px; font-family:var(--sans); font-size:10px; padding:3px 10px 3px 8px; border-radius:20px; background:#f4f1ea; color:#7a7060; }
.badge::before{ content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.badge.risky{ background:#fbeae8; color:#b3261e; } .badge.vip{ background:#f8f0d8; color:#8a6d1f; }
.badge.vvip{ background:var(--ink); color:var(--gold1); }
.badge.vvip::before{ background:var(--gold1); }
.wa{ flex:none; text-decoration:none; font-size:17px; line-height:1; padding:6px 8px; border-radius:9px;
  border:1px solid var(--line); background:#fff; }
.wa:hover{ background:#eaf6ec; border-color:#cfe6d4; }
.matched{ font-family:var(--sans); font-size:11px; padding:2px 8px; border-radius:6px; background:#f8f0d8; color:#8a6d1f; font-weight:600; white-space:nowrap; }

.drow-detail td{ background:#faf8f3; padding:16px 14px; }
.detail{ font-family:var(--sans); font-size:12px; display:grid; gap:10px; }
.detail .stat{ color:#5c5545; } .detail .stat b{ color:var(--ink); }
.tagrow{ display:flex; gap:6px; flex-wrap:wrap; }
.tag{ font-size:11px; padding:5px 11px; border-radius:20px; border:1px solid #e6e0d6; background:#fff; color:#8a8276; cursor:pointer; }
.tag.on{ background:var(--ink); color:var(--gold1); border-color:var(--ink); }
.notebox{ width:100%; font-family:var(--sans); font-size:12px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; resize:vertical; }
.savestate{ font-size:11px; color:var(--muted); }

.stchip{ display:inline-flex; align-items:center; gap:5px; font-family:var(--sans); font-size:10px; padding:3px 10px 3px 8px; border-radius:20px; font-weight:600; white-space:nowrap; }
.stchip::before{ content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.st-pending{ background:#f0efec; color:#6f6a60; }
.st-out{ background:#e3edfb; color:#1a56b8; }
.st-delivered{ background:#e7f3e9; color:#188038; }
.st-returned{ background:#fdefe1; color:#c05c0a; }
.st-cancelled{ background:#fbeae8; color:#b3261e; }
.st-bosta{ background:#f1e6f7; color:#7b1fa2; }
.st-noanswer{ background:#fdefe1; color:#c05c0a; }
.st-postponed{ background:#f1e6f7; color:#7b1fa2; }

/* Feedback sentiment chips (Feedback tab + Orders tab) */
.stchip.fb-positive{ background:#e7f3e9; color:#2f8a4e; }
.stchip.fb-neutral{ background:#faf1d9; color:#8a6d1f; }
.stchip.fb-negative{ background:#fbeae8; color:#c0392b; }
.fb-mini{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%;
  font-size:11px; vertical-align:middle; margin-left:4px; }
.fb-mini.fb-positive{ background:#e7f3e9; } .fb-mini.fb-neutral{ background:#faf1d9; } .fb-mini.fb-negative{ background:#fbeae8; }
.fb-mini.bosta-warn{ background:#fdefe1; }

/* Feedback tab: donut + legend */
#fb-period-tabs{ display:flex; gap:8px; margin-bottom:18px; font-family:var(--sans); flex-wrap:wrap; }
.fb-donut-wrap{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; padding:6px 0 14px; }
.fb-donut{ flex:none; }
.fb-donut-num{ font-family:var(--sans); font-size:30px; font-weight:700; fill:var(--ink); }
.fb-donut-lbl{ font-family:var(--sans); font-size:10px; letter-spacing:.5px; fill:var(--muted); text-transform:uppercase; }
.fb-legend{ display:grid; gap:10px; flex:1; min-width:150px; }
.fb-leg{ display:flex; align-items:center; gap:9px; font-family:var(--sans); font-size:13px; }
.fb-dot{ width:11px; height:11px; border-radius:3px; flex:none; }
.fb-leg-l{ flex:1; } .fb-leg-v{ font-weight:600; color:#5c5545; }

/* Feedback tab: comments */
#fb-comments{ display:grid; gap:10px; }
.fb-comment{ border:1px solid var(--line); border-radius:10px; padding:11px 13px; }
.fb-c-head{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-bottom:6px; }
.fb-c-ord{ font-family:var(--sans); font-size:12px; color:#5c5545; }
.fb-c-date{ font-family:var(--sans); font-size:11px; color:var(--muted); margin-left:auto; }
.fb-c-text{ font-family:var(--serif); font-size:14px; color:var(--ink); line-height:1.45; }

.timeline{ display:grid; gap:8px; }
.tl-row{ display:flex; align-items:center; gap:10px; padding-left:10px; border-left:2px solid var(--line); }
.tl-meta{ font-size:11px; color:var(--muted); }

.manual-status{ display:flex; align-items:center; gap:8px; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid #f2ede4; }
.manual-status .status-select{ font-family:var(--sans); font-size:12px; padding:6px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.manual-status .status-save{ font-family:var(--sans); font-size:12px; padding:6px 14px; border-radius:8px; border:1px solid var(--ink);
  background:var(--ink); color:var(--gold1); cursor:pointer; }

/* Pagination */
.tfoot-bar{ display:flex; align-items:center; justify-content:space-between; margin-top:14px;
  font-family:var(--sans); font-size:12px; color:var(--muted); flex-wrap:wrap; gap:10px; }
.page-size select{ font-family:var(--sans); font-size:12px; border:1px solid var(--line); border-radius:6px; padding:4px 8px; margin:0 4px; }
.pagination{ display:flex; gap:4px; align-items:center; }
.pg-arrow,.pg-num{ font-family:var(--sans); font-size:12px; min-width:28px; height:28px; padding:0 6px;
  border-radius:6px; border:1px solid var(--line); background:#fff; color:#8a8276; cursor:pointer; }
.pg-num.on{ background:var(--ink); color:var(--gold1); border-color:var(--ink); font-weight:600; }
.pg-arrow:disabled{ opacity:.4; cursor:default; }
.pg-ellipsis{ padding:0 4px; color:var(--muted); }

/* Courier portal */
#courier-app{ max-width:700px; margin:0 auto; padding:24px 20px 60px; }
.figi-top{ display:flex; flex-direction:column; align-items:center; text-align:center; margin:8px 0 28px; }
.figi-logo{ height:76px; max-width:100%; mix-blend-mode:multiply; }
.figi-sub{ font-family:var(--sans); font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:1.6px; color:var(--ink); margin-top:10px; }
#courier-tabs{ justify-content:center; }
#courier-tabs{ display:flex; gap:8px; margin-bottom:18px; }
#courier-tabs .tab{ font-family:var(--sans); font-size:13px; padding:9px 20px; border-radius:20px; background:#fff;
  border:1px solid #e6e0d6; color:#8a8276; cursor:pointer; }
#courier-tabs .tab.on{ background:var(--ink); color:var(--gold1); border-color:var(--ink); font-weight:600; }
#dispatch-input{ width:100%; font-family:var(--sans); font-size:16px; padding:14px; border:1px solid var(--line);
  border-radius:12px; resize:vertical; margin-bottom:10px; }
#courier-app .lead-title{ font-size:13px; letter-spacing:.4px; }

/* Customer-info blocks (bigger, block layout for on-the-road readability) */
.cb-count{ font-family:var(--sans); font-size:14px; font-weight:600; color:var(--gold2); margin:6px 0 12px; }
.cblock{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:14px;
  box-shadow:0 2px 8px rgba(20,20,20,.05); }
.cb-head{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.cb-ord{ font-family:var(--sans); font-weight:700; font-size:19px; color:var(--ink); }
.cb-name{ font-family:var(--serif); font-size:18px; color:var(--ink); }
.cb-info{ display:flex; flex-direction:column; gap:8px; }
.phone-copy{ align-self:flex-start; display:inline-flex; align-items:center; gap:8px; font-family:var(--sans);
  font-size:17px; font-weight:600; letter-spacing:.5px; padding:8px 14px; border:1px solid #e6e0d6; border-radius:10px;
  background:#faf8f4; color:var(--ink); cursor:pointer; }
.phone-copy:active{ background:#f1ead8; }
.phone-copy .pc-ico{ font-size:14px; opacity:.7; }
.cb-phone{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.wa-btn{ display:inline-flex; align-items:center; gap:6px; font-family:var(--sans); font-size:14px; font-weight:600;
  padding:8px 14px; border-radius:10px; background:#25d366; color:#fff; text-decoration:none; }
.wa-btn:active{ background:#1eb457; }
.cb-noloc{ font-family:var(--sans); font-size:13px; color:#b8ac95; }
.cb-addr{ font-family:var(--sans); font-size:14px; color:#6d6658; line-height:1.5; }
.cb-loc{ align-self:flex-start; font-family:var(--sans); font-size:15px; font-weight:600; color:var(--gold2);
  text-decoration:none; padding:4px 0; }
.cb-form{ display:flex; flex-wrap:wrap; gap:10px 12px; align-items:flex-end; margin-top:14px;
  padding-top:14px; border-top:1px solid var(--line); }
.cb-form label{ display:flex; flex-direction:column; gap:5px; font-family:var(--sans); font-size:12px; color:var(--muted); }
.cb-form-wide{ flex:1 1 100%; }
.cb-form select, .cb-form input{ font-family:var(--sans); font-size:15px; padding:10px 12px; border:1px solid var(--line);
  border-radius:10px; background:#fff; color:var(--ink); min-width:110px; }
.cb-form .price-input{ min-width:90px; }
.cb-form-wide input{ width:100%; box-sizing:border-box; }
.cb-form .status-submit{ padding:11px 22px; font-size:15px; }
.cb-form .savestate{ font-family:var(--sans); font-size:13px; color:var(--gold2); align-self:center; }
#copy-toast{ position:fixed; left:50%; bottom:28px; transform:translateX(-50%); background:var(--ink); color:var(--gold1);
  font-family:var(--sans); font-size:14px; font-weight:600; padding:10px 20px; border-radius:22px; z-index:50; box-shadow:0 6px 20px rgba(20,20,20,.25); }
