/* Notalic v2: light premium, emerald green.
   Light sidebar, white cards with soft shadows, emerald gradient only on the actions that matter,
   pastel status badges. Text colours are a shade darker than the brand fills where the fill colour
   would be too faint to read (WCAG AA, 4.5:1). */

@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --desk: #f3f6f8; --paper: #ffffff; --paper-2: #f8fafc; --ink: #172b27; --pencil: #5b6b80;
  --rule: #e2e8f0; --rule-strong: #cbd5e1;
  --pen: #006644; --pen-hover: #00815a; --pen-ink: #ffffff; --pen-wash: #e6f4ee;
  --stamp: #b42f2f; --stamp-wash: #fdecec; --carbon: #fdf3e1; --carbon-ink: #8f5600; --ledger: #0b7a4c; --ledger-wash: #e5f6ee;
  --success: #16a36a; --warning: #e99a18; --danger: #e05252; --accent: #f5b544;
  --focus: #00815a;
  --shadow: 0 1px 2px rgba(15, 45, 35, .04), 0 4px 16px rgba(15, 45, 35, .05);
  --shadow-lift: 0 2px 4px rgba(15, 45, 35, .05), 0 10px 28px rgba(15, 45, 35, .09);
  --grad-primary: linear-gradient(110deg, #006644 0%, #00815a 60%, #0b9266 100%);
  --grad-primary-hover: linear-gradient(110deg, #005638 0%, #00734f 60%, #008a5f 100%);
  --grad-mint: linear-gradient(110deg, #eef9f4, #dcf3e8);
  --grad-header: linear-gradient(100deg, #ffffff 0%, #ffffff 55%, #ecf8f2 100%);
  --text: "Inter", "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --figures: "Inter", "Readex Pro", system-ui, sans-serif;
  --r-sm: 9px; --r-md: 12px; --r-lg: 16px; --rail: 248px; --rail-mini: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root:not([data-theme="light"]) { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #0c1413; --paper: #121c1a; --paper-2: #16221f; --ink: #e5eeeb; --pencil: #9aaba6;
    --rule: #22322e; --rule-strong: #334843;
    --pen: #3fd39d; --pen-hover: #6ee0b6; --pen-ink: #04291c; --pen-wash: #11302a;
    --stamp: #ff9b9b; --stamp-wash: #3a1b1b; --carbon: #382a10; --carbon-ink: #f5c66d; --ledger: #6bdcaa; --ledger-wash: #12302a;
    --focus: #6ee0b6;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 12px 30px rgba(0,0,0,.5);
    --grad-mint: linear-gradient(110deg, #143029, #11382f);
    --grad-header: linear-gradient(100deg, #121c1a 0%, #121c1a 55%, #12302a 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #0c1413; --paper: #121c1a; --paper-2: #16221f; --ink: #e5eeeb; --pencil: #9aaba6;
  --rule: #22322e; --rule-strong: #334843;
  --pen: #3fd39d; --pen-hover: #6ee0b6; --pen-ink: #04291c; --pen-wash: #11302a;
  --stamp: #ff9b9b; --stamp-wash: #3a1b1b; --carbon: #382a10; --carbon-ink: #f5c66d; --ledger: #6bdcaa; --ledger-wash: #12302a;
  --focus: #6ee0b6; --grad-mint: linear-gradient(110deg, #143029, #11382f);
  --grad-header: linear-gradient(100deg, #121c1a 0%, #121c1a 55%, #12302a 100%);
  color-scheme: dark;
}

body { font: 400 14px/1.5 var(--text); font-feature-settings: "cv11", "ss01"; letter-spacing: -.003em; }
h1, h2, h3 { letter-spacing: -.015em; }
h2 { font-weight: 600; font-size: 16px; }
.num, .code { font-family: var(--text); font-feature-settings: "tnum"; font-weight: 550; letter-spacing: -.005em; }
.code { font-size: 14px; letter-spacing: 0; }
b, strong { font-weight: 600; }

/* --- shell: light rail, collapsible ------------------------------------------------ */
.shell { transition: grid-template-columns 220ms var(--ease); }
.shell.mini { grid-template-columns: var(--rail-mini) 1fr; }
.rail { background: var(--paper-2); border-right: 1px solid var(--rule); padding: 18px 14px; gap: 4px; overflow: hidden; }
.rail .brand { align-items: center; gap: 10px; padding: 0 4px 22px; min-height: 44px; }
.brand .mark { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px rgba(0, 102, 68, .22); }
.brand .mark svg { width: 22px; height: 22px; }
.rail .brand b { font-size: 19px; font-weight: 750; letter-spacing: -.02em; color: var(--pen); white-space: nowrap; }
.rail-toggle { margin-left: auto; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 9px; background: var(--paper); color: var(--pencil); cursor: pointer; transition: background 180ms ease, color 180ms ease, transform 220ms var(--ease); }
.rail-toggle:hover { color: var(--pen); background: var(--pen-wash); }
.rail-toggle svg { width: 16px; height: 16px; }
.navlink { gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px; color: color-mix(in srgb, var(--ink) 80%, var(--pencil)); font-weight: 550; font-size: 14px; transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.navlink svg { width: 19px; height: 19px; color: currentColor; }
.navlink:hover { background: var(--pen-wash); color: var(--pen); }
.navlink[aria-current="page"] { background: var(--grad-primary); color: #fff; box-shadow: 0 6px 16px rgba(0, 102, 68, .22); font-weight: 600; }
.navlink[aria-current="page"] svg { color: #fff; }
.navlink .count { background: var(--paper); color: var(--pen); box-shadow: 0 0 0 1px var(--rule); font: 650 12px/20px var(--text); min-width: 22px; height: 22px; border-radius: 11px; }
.navlink .count.hot { background: var(--danger); color: #fff; box-shadow: none; }
.navlink[aria-current="page"] .count { background: #fff; color: var(--pen); box-shadow: none; }
.rail .system { margin-top: 8px; padding: 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--pencil); box-shadow: var(--shadow); }
.rail .system b { color: var(--ink); font-weight: 600; }
.rail .dot { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent); }
.rail .dot.off { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent); }
.shell.mini .rail { padding: 18px 12px; }
.shell.mini .rail .brand { flex-direction: column; gap: 12px; padding-bottom: 16px; }
.shell.mini .rail .brand b, .shell.mini .rail .system { display: none; }
.shell.mini .navlink > span:not(.count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell.mini .rail-toggle { margin: 0; transform: rotate(180deg); }
.shell.mini .navlink { justify-content: center; padding: 0; position: relative; }
.shell.mini .navlink .count { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; padding: 0 4px; }

/* --- header ---------------------------------------------------------------------- */
.topbar { min-height: 76px; padding: 12px 28px; background: var(--grad-header); backdrop-filter: none; border-bottom: 1px solid var(--rule); }
.topbar h1 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.topbar .sub { display: block; margin-top: 2px; font-size: 13.5px; color: var(--pencil); font-weight: 400; }
.page { padding: 24px 28px 64px; }

/* --- buttons and inputs --------------------------------------------------------- */
.btn { min-height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: 600 13px/1 var(--text); letter-spacing: -.005em;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, color 200ms ease; }
.btn:hover { border-color: #b9dccb; background: var(--pen-wash); color: var(--pen); }
.btn.primary { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(0, 102, 68, .18); }
.btn.primary:hover { background: var(--grad-primary-hover); box-shadow: 0 6px 18px rgba(0, 102, 68, .26); transform: translateY(-1px); color: #fff; }
.btn.primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0, 102, 68, .2); }
.btn.secondary { background: var(--grad-mint); border-color: #c5e7d6; color: var(--pen); }
.btn.secondary:hover { border-color: #9fd6bc; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--pen); }
.btn.ghost:hover { background: var(--pen-wash); }
.btn.danger { color: var(--stamp); border-color: #f3c4c4; }
.btn.danger:hover { background: var(--stamp-wash); color: var(--stamp); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled, .btn:disabled:hover { transform: none; box-shadow: none; }
.input, select.input, textarea.input { min-height: 42px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); font: 400 14px/1.3 var(--text); transition: border-color 180ms ease, box-shadow 180ms ease; }
.input:hover { border-color: var(--rule-strong); }
.input:focus-visible { outline: none; border-color: var(--pen-hover); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pen-hover) 16%, transparent); }
.field > label, .label { font-size: 12px; font-weight: 500; color: var(--pencil); }
.search .input { border-radius: 12px; padding-left: 38px; min-width: 280px; box-shadow: var(--shadow); }
.search svg { left: 13px; top: 13px; }

.segmented { padding: 4px; gap: 4px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule), var(--shadow); }
.segmented button { padding: 9px 14px; border-radius: 10px; font: 550 13px/1 var(--text); color: var(--ink); transition: background 180ms ease, color 180ms ease; }
.segmented button:hover { background: var(--pen-wash); color: var(--pen); }
.segmented button[aria-pressed="true"] { background: var(--grad-primary); color: #fff; box-shadow: 0 3px 10px rgba(0, 102, 68, .2); }
.segmented .n { font-weight: 650; opacity: .85; }

/* --- cards and tables ------------------------------------------------------------ */
.sheet { border-radius: var(--r-lg); border-color: var(--rule); box-shadow: var(--shadow); transition: box-shadow 220ms ease; }
.sheet-head { padding: 16px 20px; }
.sheet-body { padding: 20px; }
table.grid th { padding: 14px 16px; font: 600 12.5px/1 var(--text); color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--rule); }
table.grid th .th { display: inline-flex; align-items: center; gap: 8px; }
table.grid th .th svg { width: 16px; height: 16px; color: var(--pen); }
table.grid td { padding: 16px; border-bottom-color: color-mix(in srgb, var(--rule) 70%, transparent); vertical-align: middle; }
table.grid tbody tr { transition: background 160ms ease; }
table.grid tbody tr:not(.daygroup):hover td { background: color-mix(in srgb, var(--pen-wash) 45%, var(--paper)); }
.cell-title { font-weight: 600; }
.cell-sub { color: var(--pencil); }
.daygroup td { padding: 11px 16px; background: color-mix(in srgb, var(--pen-wash) 60%, var(--paper)); color: var(--pen); font: 650 12.5px/1.2 var(--text); text-transform: uppercase; letter-spacing: .04em; }
.daygroup td svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 8px; }
.daygroup td .muted { text-transform: uppercase; color: color-mix(in srgb, var(--ink) 65%, var(--pencil)); font-weight: 500; }
.daygroup td .sep { margin: 0 8px; color: var(--rule-strong); }

/* Status: soft pastel pills with an icon. */
.stamp { gap: 6px; padding: 5px 11px 5px 8px; border: 0; border-radius: 999px; font: 650 11.5px/1.2 var(--text); text-transform: uppercase; letter-spacing: .03em; background: var(--pen-wash); color: var(--pen); }
.stamp svg { width: 15px; height: 15px; flex: none; }
.stamp.completed, .stamp.posted, .stamp.approved { background: var(--ledger-wash); color: var(--ledger); }
.stamp.delivered { background: var(--carbon); color: var(--carbon-ink); }
.stamp.needs_review, .stamp.not_delivered, .stamp.failed { background: var(--stamp-wash); color: var(--stamp); }
.stamp.rejected, .stamp.not_confirmed { background: var(--paper-2); color: var(--pencil); box-shadow: inset 0 0 0 1px var(--rule); }
.state i { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent); }

.avatar { width: 38px; height: 38px; font: 650 13px/1 var(--text); background: var(--pen-wash) !important; color: var(--pen) !important; }

/* --- headline cards ------------------------------------------------------------- */
.stats { gap: 16px; margin-bottom: 20px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start; min-height: 150px; padding: 20px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow);
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease; }
.stat::before { inset: 0 0 auto 0; width: auto; height: 3px; opacity: .9; }
.stat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--tone) 9%, transparent), transparent 60%); }
button.stat:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 35%, var(--rule)); }
.stat[aria-pressed="true"] { border-color: var(--tone); box-shadow: 0 0 0 1px var(--tone), var(--shadow-lift); }
.stat.go { --tone: var(--success); } .stat.warn { --tone: var(--warning); } .stat.hot { --tone: var(--danger); } .stat.done { --tone: var(--pen-hover); }
.stat:not(.go):not(.warn):not(.hot):not(.done) { --tone: var(--pen); }
.stat.go::before { background: var(--success); } .stat.warn::before { background: var(--warning); } .stat.hot::before { background: var(--danger); } .stat.done::before { background: var(--pen-hover); }
.stat-icon { grid-row: 1 / 3; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--tone) 13%, var(--paper)); color: color-mix(in srgb, var(--tone) 80%, var(--ink)); }
.stat-icon svg { width: 24px; height: 24px; }
.stat-label { grid-column: 2; font: 650 12px/1.3 var(--text); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.stat-value { grid-column: 2; font: 750 34px/1.1 var(--text); letter-spacing: -.03em; }
.stat-sub { grid-column: 2; align-self: start; margin-top: 4px; font-size: 12.5px; white-space: normal; position: relative; z-index: 1; }
.stat:has(.stat-viz) .stat-sub { max-width: 13ch; }
.stat-viz { position: absolute; right: 16px; bottom: 14px; color: var(--tone); }
.stat-viz:has(.ring) { bottom: auto; top: 50%; transform: translateY(-50%); }
.stat-label, .stat-value { position: relative; z-index: 1; }
.stat-viz svg { display: block; }
.ring { position: relative; display: grid; place-items: center; align-self: center; }
.ring b { position: absolute; font: 750 20px/1 var(--text); letter-spacing: -.02em; color: var(--ink); }
.ring circle { transition: stroke-dashoffset 700ms var(--ease); }
.spark path.line { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.spark rect { transition: height 500ms var(--ease), y 500ms var(--ease); }

/* --- dispatch ------------------------------------------------------------------- */
.date-range { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 14px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule), var(--shadow); }
.date-range .label { font-size: 13px; font-weight: 550; color: var(--ink); }
.date-range .input { border-color: transparent; min-height: 36px; background: var(--paper-2); }
.ship { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; }
.ship svg { width: 18px; height: 18px; color: var(--pen); flex: none; }
.row-actions { align-items: center; }
.remark .input { min-height: 40px; }
.pager { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--rule); }
.pager .grow { flex: 1; }
.pager .btn { min-width: 38px; padding: 0 10px; }
.pager .btn[aria-current="page"] { background: var(--grad-primary); color: #fff; border-color: transparent; }
dialog.preview { width: min(980px, calc(100vw - 32px)); }
dialog.preview .frame { height: min(72vh, 900px); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
dialog.preview iframe { width: 100%; height: 100%; border: 0; }
dialog.preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* --- motion: dialogs and dropdowns ease in -------------------------------------- */
dialog { border-radius: 18px; border-color: var(--rule); box-shadow: 0 30px 80px -20px rgba(10, 40, 30, .35); }
dialog[open] { animation: pop 200ms var(--ease); }
dialog::backdrop { background: rgba(15, 35, 30, .38); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.combo .list { border-radius: 14px; border-color: var(--rule); box-shadow: var(--shadow-lift); animation: drop 160ms var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.toast { border-radius: 12px; background: #13322b; color: #fff; box-shadow: var(--shadow-lift); }
.toast.bad { background: #b42f2f; }
.page > * { animation: fade 220ms var(--ease) backwards; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--paper-2), color-mix(in srgb, var(--pen-wash) 70%, var(--rule)), var(--paper-2)); background-size: 200% 100%; }
.notice { border-radius: 12px; }
.empty { padding: 56px 24px; }
.empty h2 { font-size: 17px; }

/* --- other pages ---------------------------------------------------------------- */
.section > header h2 { font-size: 15px; font-weight: 650; }
.days label:has(input:checked) { background: var(--grad-primary); border-color: transparent; }
.onboard-head .brand b { color: inherit; font-weight: 750; letter-spacing: -.02em; }
.onboard-head .brand b { color: var(--pen); font-size: 19px; }
.sys-card { border-radius: 16px; transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease; }
.sys-card:not(:disabled):hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.onboard-card { border-radius: 20px; }
.steps li.now .step-dot { background: var(--grad-primary); border-color: transparent; }

/* --- small screens -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell, .shell.mini { grid-template-columns: 1fr; }
  .rail, .shell.mini .rail { background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .rail-toggle { display: none; }
  .navlink, .shell.mini .navlink { min-height: 52px; padding: 4px; border-radius: 12px; font-size: 11px; justify-content: center; }
  .shell.mini .navlink > span:not(.count), .navlink > span:not(.count) { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .navlink[aria-current="page"] { box-shadow: 0 4px 12px rgba(0, 102, 68, .2); }
  .topbar { min-height: 64px; padding: 10px 16px; }
  .topbar h1 { font-size: 21px; }
  .topbar .sub { display: none; }
  .stats { gap: 10px; }
  .stat { min-height: 0; padding: 14px; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
  .stat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .stat-icon svg { width: 19px; height: 19px; }
  .stat-value { font-size: clamp(18px, 5.6vw, 24px); }
  .stat-sub { display: none; }
  .stat-viz { display: none; }
  .search .input { min-width: 0; }
  .date-range { flex-wrap: wrap; }
  .card { border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
  .pager { padding: 12px 4px; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .page > *, dialog[open], .combo .list { animation: none; } }
.topbar .title { min-width: 0; }
.topbar .title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinline { display: flex; align-items: flex-start; gap: 5px; }
.pinline svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--pen); }
.ship { color: var(--ink); font-size: 13px; }
.search { flex: 1 1 280px; max-width: 420px; }
.search .input { min-width: 0; }
.dispatch-table td, .dispatch-table th { padding-left: 12px; padding-right: 12px; }
.dispatch-table td:nth-child(1) { min-width: 140px; }
.dispatch-table td:nth-child(3) { min-width: 200px; }
.dispatch-table .remark { min-width: 150px; }
.dispatch-table .driver { min-width: 130px; }
.spark rect[height="3"] { opacity: .35; }
@media (max-width: 760px) {
  .date-range { display: grid; grid-template-columns: auto minmax(0, 1fr); width: 100%; padding: 8px 10px; row-gap: 6px; }
  .date-range .input { width: 100% !important; max-width: none !important; }
}
.code { font-feature-settings: normal; font-variant-numeric: normal; font-weight: 550; }
/* Tablets: the menu is always the narrow one, so the table keeps its room. */
@media (min-width: 761px) and (max-width: 1180px) {
  .shell, .shell.mini { grid-template-columns: var(--rail-mini) 1fr; }
  .rail { padding: 18px 12px; }
  .rail .brand { flex-direction: column; gap: 12px; padding-bottom: 16px; }
  .rail .brand b, .rail .system, .rail-toggle { display: none; }
  .navlink { justify-content: center; padding: 0; position: relative; }
  .navlink > span:not(.count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .navlink .count { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; padding: 0 4px; }
  .page { padding: 20px 20px 56px; }
  .dispatch-table .avatar { display: none; }
  .dispatch-table td:nth-child(3) { min-width: 160px; }
  .dispatch-table .remark { min-width: 120px; }
  .dispatch-table .driver { min-width: 110px; }
  .dispatch-table .row-actions .btn { padding: 0 10px; }
}

/* Indeterminate progress: past invoices being read in the background */
.progress { height: 4px; border-radius: 999px; background: var(--rule); overflow: hidden; margin-top: 10px; }
.progress.indeterminate > span { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--grad-primary, var(--accent)); animation: slide 1.3s ease-in-out infinite; }
.progress:not(.indeterminate) > span { display: block; height: 100%; border-radius: inherit; background: var(--grad-primary, var(--accent)); }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .progress.indeterminate > span { animation: none; width: 100%; opacity: .5; } }
.past-sales .row-actions .small { margin-left: 4px; }

/* What it has learned about one customer */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { border: 1px solid var(--rule); border-radius: 999px; padding: 4px 10px; background: var(--paper); font-size: 13px; }
.learned .sheet-head { flex-wrap: wrap; row-gap: 4px; }
.learned .sheet-head h2 { white-space: nowrap; }

/* --- sign in, sign up, join ------------------------------------------------------
   Form on the left on the page's own background; on the right a deep emerald panel with the
   product at work. The panel stays dark in both themes, like the website. */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); background: var(--desk); }
.auth-col { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 24px clamp(20px, 4vw, 48px); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top .brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; color: var(--ink); text-decoration: none; }
.auth-top .brand b { font-size: 18px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
.auth-main { flex: 1; display: grid; place-items: center; padding: 40px 0; }
.auth-form { width: 100%; max-width: 400px; display: grid; gap: 18px; animation: auth-in .5s var(--ease) both; }
.auth-title { display: grid; gap: 8px; margin-bottom: 6px; }
.auth-title h1 { font-size: clamp(28px, 3vw, 34px); font-weight: 750; letter-spacing: -.035em; line-height: 1.1; }
.auth-title p { color: var(--pencil); font-size: 15px; line-height: 1.5; }
.auth-form .field { gap: 7px; }
.auth-form .field > label { font-size: 13px; font-weight: 550; color: var(--ink); }
.auth-input { position: relative; }
.auth-form .input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; font-size: 15px; background: var(--paper); border-color: var(--rule-strong); }
.auth-form .secret .input { padding-right: 72px; }
.reveal { position: absolute; right: 6px; top: 50%; translate: 0 -50%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--pen); font: 600 13px/1 var(--text); cursor: pointer; }
.reveal:hover { background: var(--pen-wash); }
.auth-submit { width: 100%; min-height: 50px; margin-top: 6px; border-radius: 12px; font-size: 15px; gap: 10px; }
.auth-submit.busy { opacity: 1; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.auth-foot { color: var(--pencil); font-size: 14px; text-align: center; }
.auth-foot a { color: var(--pen); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-legal { display: flex; gap: 18px; font-size: 13px; }
.auth-legal a { color: var(--pencil); text-decoration: none; }
.auth-legal a:hover { color: var(--pen); }
.auth .plan-opt { border-radius: 12px; padding: 12px 14px; }

.auth-show { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 12px; }
.auth-show-in { position: relative; height: 100%; overflow: hidden; border-radius: 26px; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 32px; color: #eef6f2;
  background: radial-gradient(640px 380px at 70% 0%, rgba(63, 211, 157, .28), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(11, 146, 102, .35), transparent 70%),
    linear-gradient(rgba(190, 255, 225, .07) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(190, 255, 225, .07) 1px, transparent 1px) 0 0 / 48px 48px, #062a1f;
  box-shadow: inset 0 0 0 1px rgba(190, 255, 225, .12); }
.auth-show h2 { max-width: 18ch; font-size: clamp(30px, 3.2vw, 44px); font-weight: 750; letter-spacing: -.04em; line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 30%, #9fe3c6 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-width: 480px; }
.flow li { position: relative; display: grid; grid-template-columns: 42px 1fr 20px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px;
  background: rgba(210, 255, 235, .035); border: 1px solid rgba(190, 255, 225, .09); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 34px; top: calc(100% + 1px); width: 2px; height: 8px;
  background: linear-gradient(rgba(63, 211, 157, .7), rgba(63, 211, 157, .1)); }
.flow-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(63, 211, 157, .08); color: #9fe3c6; box-shadow: inset 0 0 0 1px rgba(63, 211, 157, .2); }
.flow-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-tx b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.01em; color: #eef6f2; }
.flow-tx small { display: block; margin-top: 2px; color: #a3b8ae; font-size: 13px; line-height: 1.4; }
.flow-ok { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #3fd39d; box-shadow: 0 0 14px rgba(63, 211, 157, .7); }
.flow-ok::after { content: ""; width: 8px; height: 4px; border: solid #03251a; border-width: 0 0 2px 2px; rotate: -45deg; translate: 0 -1px; }
.gain { max-width: 480px; padding: 16px 18px; border-radius: 16px; background: rgba(8, 30, 23, .7); border: 1px solid rgba(190, 255, 225, .12); display: grid; gap: 10px; }
.gain p { color: #a3b8ae; font-size: 13px; }
.gain-row { display: grid; grid-template-columns: 170px 1fr 52px; gap: 12px; align-items: center; font-size: 13.5px; color: #c9d8d0; }
.gain-row b { text-align: right; font-variant-numeric: tabular-nums; color: #eef6f2; }
.bar { display: block; height: 8px; border-radius: 99px; background: rgba(210, 255, 235, .06); overflow: hidden; }
.bar em { display: block; height: 100%; border-radius: inherit; }
.gain .gain-saved { margin-top: 2px; padding-top: 10px; border-top: 1px solid rgba(190, 255, 225, .1); color: #3fd39d; font-size: 14px; font-weight: 600; }
.bar.slow em { width: 100%; background: linear-gradient(90deg, #ff9d90, #ffb4a8); }
.bar.fast em { width: 20%; background: linear-gradient(90deg, #1fb57f, #3fd39d); box-shadow: 0 0 12px rgba(63, 211, 157, .7); }

/* The loop (10 s): the steps light up one after another and tick off, then the time bars play,
   then everything resets together. One set of keyframes per step keeps the reset in sync. */
@media (prefers-reduced-motion: no-preference) {
  .flow li:nth-child(1) { animation: fs0 10s var(--ease) infinite; }
  .flow li:nth-child(1) .flow-ic { animation: fi0 10s var(--ease) infinite; }
  .flow li:nth-child(1) .flow-ok { animation: fk0 10s var(--ease) infinite; }
  @keyframes fs0 { 0%, 5% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } 8%, 12% { border-color: rgba(63, 211, 157, .6); background: rgba(63, 211, 157, .12); box-shadow: 0 0 40px -12px rgba(63, 211, 157, .7); } 17%, 90% { border-color: rgba(63, 211, 157, .25); background: rgba(63, 211, 157, .05); box-shadow: 0 0 0 rgba(0,0,0,0); } 96%, 100% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } }
  @keyframes fi0 { 0%, 5% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } 8%, 90% { color: #03251a; background: #3fd39d; } 96%, 100% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } }
  @keyframes fk0 { 0%, 9% { opacity: 0; scale: .4; } 13%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .4; } }
  .flow li:nth-child(2) { animation: fs1 10s var(--ease) infinite; }
  .flow li:nth-child(2) .flow-ic { animation: fi1 10s var(--ease) infinite; }
  .flow li:nth-child(2) .flow-ok { animation: fk1 10s var(--ease) infinite; }
  @keyframes fs1 { 0%, 15% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } 18%, 22% { border-color: rgba(63, 211, 157, .6); background: rgba(63, 211, 157, .12); box-shadow: 0 0 40px -12px rgba(63, 211, 157, .7); } 27%, 90% { border-color: rgba(63, 211, 157, .25); background: rgba(63, 211, 157, .05); box-shadow: 0 0 0 rgba(0,0,0,0); } 96%, 100% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } }
  @keyframes fi1 { 0%, 15% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } 18%, 90% { color: #03251a; background: #3fd39d; } 96%, 100% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } }
  @keyframes fk1 { 0%, 19% { opacity: 0; scale: .4; } 23%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .4; } }
  .flow li:nth-child(3) { animation: fs2 10s var(--ease) infinite; }
  .flow li:nth-child(3) .flow-ic { animation: fi2 10s var(--ease) infinite; }
  .flow li:nth-child(3) .flow-ok { animation: fk2 10s var(--ease) infinite; }
  @keyframes fs2 { 0%, 25% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } 28%, 32% { border-color: rgba(63, 211, 157, .6); background: rgba(63, 211, 157, .12); box-shadow: 0 0 40px -12px rgba(63, 211, 157, .7); } 37%, 90% { border-color: rgba(63, 211, 157, .25); background: rgba(63, 211, 157, .05); box-shadow: 0 0 0 rgba(0,0,0,0); } 96%, 100% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } }
  @keyframes fi2 { 0%, 25% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } 28%, 90% { color: #03251a; background: #3fd39d; } 96%, 100% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } }
  @keyframes fk2 { 0%, 29% { opacity: 0; scale: .4; } 33%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .4; } }
  .flow li:nth-child(4) { animation: fs3 10s var(--ease) infinite; }
  .flow li:nth-child(4) .flow-ic { animation: fi3 10s var(--ease) infinite; }
  .flow li:nth-child(4) .flow-ok { animation: fk3 10s var(--ease) infinite; }
  @keyframes fs3 { 0%, 35% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } 38%, 42% { border-color: rgba(63, 211, 157, .6); background: rgba(63, 211, 157, .12); box-shadow: 0 0 40px -12px rgba(63, 211, 157, .7); } 47%, 90% { border-color: rgba(63, 211, 157, .25); background: rgba(63, 211, 157, .05); box-shadow: 0 0 0 rgba(0,0,0,0); } 96%, 100% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } }
  @keyframes fi3 { 0%, 35% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } 38%, 90% { color: #03251a; background: #3fd39d; } 96%, 100% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } }
  @keyframes fk3 { 0%, 39% { opacity: 0; scale: .4; } 43%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .4; } }
  .flow li:nth-child(5) { animation: fs4 10s var(--ease) infinite; }
  .flow li:nth-child(5) .flow-ic { animation: fi4 10s var(--ease) infinite; }
  .flow li:nth-child(5) .flow-ok { animation: fk4 10s var(--ease) infinite; }
  @keyframes fs4 { 0%, 45% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } 48%, 52% { border-color: rgba(63, 211, 157, .6); background: rgba(63, 211, 157, .12); box-shadow: 0 0 40px -12px rgba(63, 211, 157, .7); } 57%, 90% { border-color: rgba(63, 211, 157, .25); background: rgba(63, 211, 157, .05); box-shadow: 0 0 0 rgba(0,0,0,0); } 96%, 100% { border-color: rgba(190, 255, 225, .09); background: rgba(210, 255, 235, .035); box-shadow: 0 0 0 rgba(0,0,0,0); } }
  @keyframes fi4 { 0%, 45% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } 48%, 90% { color: #03251a; background: #3fd39d; } 96%, 100% { color: #9fe3c6; background: rgba(63, 211, 157, .08); } }
  @keyframes fk4 { 0%, 49% { opacity: 0; scale: .4; } 53%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .4; } }
  .bar.slow em { animation: bar-slow 10s linear infinite; }
  .bar.fast em { animation: bar-fast 10s var(--ease) infinite; }
  @keyframes bar-slow { 0%, 58% { width: 0; } 78%, 90% { width: 100%; } 96%, 100% { width: 0; } }
  .gain-saved { animation: saved 10s var(--ease) infinite; }
  @keyframes saved { 0%, 76% { opacity: 0; translate: 0 6px; } 80%, 90% { opacity: 1; translate: 0 0; } 95%, 100% { opacity: 0; translate: 0 6px; } }
  @keyframes bar-fast { 0%, 58% { width: 0; } 62%, 90% { width: 20%; } 96%, 100% { width: 0; } }
}
@media (max-height: 760px) { .flow-tx small { display: none; } .flow li { padding: 9px 12px; } }
@keyframes auth-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .auth-form { animation: none; } }
@media (max-width: 1023px) {
  .auth { grid-template-columns: 1fr; }
  .auth-show { display: none; }
}

/* --- the light/dark switch ------------------------------------------------------- */
.theme-toggle.icon-only { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--pencil); cursor: pointer; transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.theme-toggle.icon-only:hover { color: var(--pen); border-color: var(--pen); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle.navlink { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; font-family: var(--text); }
.onboard-head .theme-toggle { margin-right: 8px; }
@media (max-width: 1023px) { .auth-col { background: radial-gradient(520px 320px at 50% -8%, color-mix(in srgb, var(--pen) 16%, transparent), transparent 70%); } }

/* --- auth panel: fits any laptop height ------------------------------------------- */
.auth-show-in { justify-content: safe center; gap: clamp(14px, 3vh, 32px); padding: clamp(24px, 4.5vh, 56px) clamp(28px, 4vw, 64px); overflow-y: auto; scrollbar-width: none; }
.auth-show-in::-webkit-scrollbar { display: none; }
.auth-show h2 { font-size: clamp(26px, min(3vw, 5vh), 44px); }
.flow { gap: clamp(6px, 1vh, 10px); }
.flow li { padding: clamp(7px, 1.1vh, 12px) 14px; }
.flow-ic { width: clamp(34px, 4.6vh, 42px); height: clamp(34px, 4.6vh, 42px); }
.gain { padding: clamp(10px, 1.6vh, 16px) 18px; gap: clamp(6px, 1vh, 10px); }
@media (max-height: 880px) { .flow-tx small, .setup-tx small { display: none; } }
@media (max-height: 640px) { .gain-saved, .setup-done { display: none; } }

/* Sign-up: the setup checklist. */
.setup { max-width: 500px; padding: clamp(14px, 2.2vh, 22px); border-radius: 20px; background: rgba(8, 30, 23, .72); border: 1px solid rgba(190, 255, 225, .12); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); }
.setup-head { display: flex; align-items: baseline; justify-content: space-between; color: #eef6f2; font-size: 15px; }
.setup-pct { color: #3fd39d; font: 700 14px/1 var(--text); font-variant-numeric: tabular-nums; }
.setup-pct::after { content: "100%"; }
.setup-bar { display: block; height: 6px; margin: 12px 0 clamp(8px, 1.6vh, 14px); border-radius: 999px; background: rgba(190, 255, 225, .1); overflow: hidden; }
.setup-bar em { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b9266, #3fd39d); box-shadow: 0 0 12px rgba(63, 211, 157, .6); }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(4px, .8vh, 8px); }
.setup-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: clamp(7px, 1.1vh, 11px) 12px; border-radius: 14px; border: 1px solid transparent; }
.setup-box { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3fd39d; background: #3fd39d; }
.setup-box::after { content: ""; position: absolute; left: 6px; top: 4px; width: 6px; height: 10px; border: solid #03251a; border-width: 0 2px 2px 0; rotate: 45deg; }
.setup-tx b { display: block; color: #eef6f2; font-size: 14.5px; font-weight: 600; }
.setup-tx small { display: block; color: #a3b8ae; font-size: 12.5px; margin-top: 1px; }
.setup-min { color: #a3b8ae; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.setup-done { margin-top: clamp(8px, 1.4vh, 14px); padding-top: clamp(8px, 1.4vh, 12px); border-top: 1px solid rgba(190, 255, 225, .1); color: #3fd39d; font-size: 14px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .setup-list li:nth-child(1) { animation: sr0 12s var(--ease) infinite; }
  .setup-list li:nth-child(1) .setup-box { animation: sb0 12s var(--ease) infinite; }
  .setup-list li:nth-child(1) .setup-box::after { animation: st0 12s var(--ease) infinite; }
  @keyframes sr0 { 0%, 5% { background: transparent; border-color: transparent; } 7%, 15% { background: rgba(63, 211, 157, .1); border-color: rgba(63, 211, 157, .45); } 18%, 100% { background: transparent; border-color: transparent; } }
  @keyframes sb0 { 0%, 5% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } 7%, 15% { background: transparent; border-color: #3fd39d; box-shadow: 0 0 0 4px rgba(63, 211, 157, .18); } 16%, 90% { background: #3fd39d; border-color: #3fd39d; box-shadow: 0 0 12px rgba(63, 211, 157, .6); } 96%, 100% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } }
  @keyframes st0 { 0%, 15% { opacity: 0; scale: .3; } 18%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .3; } }
  .setup-list li:nth-child(2) { animation: sr1 12s var(--ease) infinite; }
  .setup-list li:nth-child(2) .setup-box { animation: sb1 12s var(--ease) infinite; }
  .setup-list li:nth-child(2) .setup-box::after { animation: st1 12s var(--ease) infinite; }
  @keyframes sr1 { 0%, 17% { background: transparent; border-color: transparent; } 19%, 27% { background: rgba(63, 211, 157, .1); border-color: rgba(63, 211, 157, .45); } 30%, 100% { background: transparent; border-color: transparent; } }
  @keyframes sb1 { 0%, 17% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } 19%, 27% { background: transparent; border-color: #3fd39d; box-shadow: 0 0 0 4px rgba(63, 211, 157, .18); } 28%, 90% { background: #3fd39d; border-color: #3fd39d; box-shadow: 0 0 12px rgba(63, 211, 157, .6); } 96%, 100% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } }
  @keyframes st1 { 0%, 27% { opacity: 0; scale: .3; } 30%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .3; } }
  .setup-list li:nth-child(3) { animation: sr2 12s var(--ease) infinite; }
  .setup-list li:nth-child(3) .setup-box { animation: sb2 12s var(--ease) infinite; }
  .setup-list li:nth-child(3) .setup-box::after { animation: st2 12s var(--ease) infinite; }
  @keyframes sr2 { 0%, 29% { background: transparent; border-color: transparent; } 31%, 39% { background: rgba(63, 211, 157, .1); border-color: rgba(63, 211, 157, .45); } 42%, 100% { background: transparent; border-color: transparent; } }
  @keyframes sb2 { 0%, 29% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } 31%, 39% { background: transparent; border-color: #3fd39d; box-shadow: 0 0 0 4px rgba(63, 211, 157, .18); } 40%, 90% { background: #3fd39d; border-color: #3fd39d; box-shadow: 0 0 12px rgba(63, 211, 157, .6); } 96%, 100% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } }
  @keyframes st2 { 0%, 39% { opacity: 0; scale: .3; } 42%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .3; } }
  .setup-list li:nth-child(4) { animation: sr3 12s var(--ease) infinite; }
  .setup-list li:nth-child(4) .setup-box { animation: sb3 12s var(--ease) infinite; }
  .setup-list li:nth-child(4) .setup-box::after { animation: st3 12s var(--ease) infinite; }
  @keyframes sr3 { 0%, 41% { background: transparent; border-color: transparent; } 43%, 51% { background: rgba(63, 211, 157, .1); border-color: rgba(63, 211, 157, .45); } 54%, 100% { background: transparent; border-color: transparent; } }
  @keyframes sb3 { 0%, 41% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } 43%, 51% { background: transparent; border-color: #3fd39d; box-shadow: 0 0 0 4px rgba(63, 211, 157, .18); } 52%, 90% { background: #3fd39d; border-color: #3fd39d; box-shadow: 0 0 12px rgba(63, 211, 157, .6); } 96%, 100% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } }
  @keyframes st3 { 0%, 51% { opacity: 0; scale: .3; } 54%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .3; } }
  .setup-list li:nth-child(5) { animation: sr4 12s var(--ease) infinite; }
  .setup-list li:nth-child(5) .setup-box { animation: sb4 12s var(--ease) infinite; }
  .setup-list li:nth-child(5) .setup-box::after { animation: st4 12s var(--ease) infinite; }
  @keyframes sr4 { 0%, 53% { background: transparent; border-color: transparent; } 55%, 63% { background: rgba(63, 211, 157, .1); border-color: rgba(63, 211, 157, .45); } 66%, 100% { background: transparent; border-color: transparent; } }
  @keyframes sb4 { 0%, 53% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } 55%, 63% { background: transparent; border-color: #3fd39d; box-shadow: 0 0 0 4px rgba(63, 211, 157, .18); } 64%, 90% { background: #3fd39d; border-color: #3fd39d; box-shadow: 0 0 12px rgba(63, 211, 157, .6); } 96%, 100% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } }
  @keyframes st4 { 0%, 63% { opacity: 0; scale: .3; } 66%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .3; } }
  .setup-list li:nth-child(6) { animation: sr5 12s var(--ease) infinite; }
  .setup-list li:nth-child(6) .setup-box { animation: sb5 12s var(--ease) infinite; }
  .setup-list li:nth-child(6) .setup-box::after { animation: st5 12s var(--ease) infinite; }
  @keyframes sr5 { 0%, 65% { background: transparent; border-color: transparent; } 67%, 75% { background: rgba(63, 211, 157, .1); border-color: rgba(63, 211, 157, .45); } 78%, 100% { background: transparent; border-color: transparent; } }
  @keyframes sb5 { 0%, 65% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } 67%, 75% { background: transparent; border-color: #3fd39d; box-shadow: 0 0 0 4px rgba(63, 211, 157, .18); } 76%, 90% { background: #3fd39d; border-color: #3fd39d; box-shadow: 0 0 12px rgba(63, 211, 157, .6); } 96%, 100% { background: transparent; border-color: rgba(190, 255, 225, .3); box-shadow: none; } }
  @keyframes st5 { 0%, 75% { opacity: 0; scale: .3; } 78%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: .3; } }
  .setup-bar em { animation: sbar 12s var(--ease) infinite; }
  @keyframes sbar { 0% { width: 0; } 16% { width: 17%; } 28% { width: 33%; } 40% { width: 50%; } 52% { width: 67%; } 64% { width: 83%; } 76% { width: 100%; } 90% { width: 100%; } 96%, 100% { width: 0; } }
  .setup-pct::after { animation: spct 12s steps(1) infinite; }
  @keyframes spct { 0% { content: "0%"; } 16% { content: "17%"; } 28% { content: "33%"; } 40% { content: "50%"; } 52% { content: "67%"; } 64% { content: "83%"; } 76% { content: "100%"; } 96%, 100% { content: "0%"; } }
  .setup-done { animation: sdone 12s var(--ease) infinite; }
  @keyframes sdone { 0%, 76% { color: #a3b8ae; } 79%, 90% { color: #3fd39d; } 96%, 100% { color: #a3b8ae; } }
}
