/* Pulse — light / dark theme. All colours live here. */
:root {
  --bg: #f5f5f2;
  --panel: #fcfcfa;
  --ink: #18191b;
  --muted: #62656b;
  --line: #e1e0db;
  --line-2: #ecebe7;
  --accent: #2346c8;
  --accent-soft: #e4e9fa;
  --prev: #a9abb0;
  --good: #17693f;
  --bad: #b3362b;
  --warn: #9a6400;
  --sans: "Public Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 6px;
  --side: 232px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111214;
  --panel: #18191c;
  --ink: #ecebe6;
  --muted: #9a9ca2;
  --line: #2a2c30;
  --line-2: #222327;
  --accent: #7d95ff;
  --accent-soft: #232a45;
  --prev: #5c5f66;
  --good: #5cc28d;
  --bad: #f07a6e;
  --warn: #e0a84a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214; --panel: #18191c; --ink: #ecebe6; --muted: #9a9ca2; --line: #2a2c30; --line-2: #222327;
    --accent: #7d95ff; --accent-soft: #232a45; --prev: #5c5f66; --good: #5cc28d; --bad: #f07a6e; --warn: #e0a84a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.link { font-size: 14px; color: var(--accent); text-underline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel); color: var(--ink); font: 500 14px var(--sans); cursor: pointer;
}
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--panel); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--accent); }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--line-2); border-radius: var(--radius); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 4px; font: 500 13px var(--sans); color: var(--muted); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); outline: 1px solid var(--line); }

/* ---------- Layout ---------- */
body { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
.side { grid-row: 1 / -1; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; font: 700 18px var(--sans); text-decoration: none; }
.pulse-mark { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.pulse-mark i { width: 4px; background: var(--accent); border-radius: 1px; animation: beat 1.4s ease-in-out infinite; }
.pulse-mark i:nth-child(1) { height: 8px; }
.pulse-mark i:nth-child(2) { height: 16px; animation-delay: .15s; }
.pulse-mark i:nth-child(3) { height: 11px; animation-delay: .3s; }
@keyframes beat { 50% { scale: 1 .55; } }
.pulse-mark i { transform-origin: bottom; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); text-decoration: none; color: var(--muted); font-weight: 500; }
.side nav a:hover { color: var(--ink); background: var(--line-2); }
.side nav a[aria-current="page"] { color: var(--ink); background: var(--line-2); }
.side nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pill { margin-left: auto; padding: 0 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font: 600 12px var(--mono); }
.side-foot { margin-top: auto; display: grid; gap: 14px; }
.theme { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: none; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.theme svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 14px; font-weight: 500; }
.me small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }

.top { display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top h1 { font-size: 20px; }
.menu { display: none; }
.search { position: relative; margin-left: auto; width: min(360px, 40vw); }
.search svg { position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.search input { width: 100%; min-height: 36px; padding: 0 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); font: 14px var(--sans); }
.search kbd { position: absolute; right: 8px; top: 50%; translate: 0 -50%; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font: 12px var(--mono); color: var(--muted); }

main { padding: 24px 28px 48px; min-width: 0; }
.view { display: grid; gap: 20px; animation: view-in .4s var(--ease); }
@keyframes view-in { from { opacity: 0; translate: 0 8px; } }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel.flush { padding: 0; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.panel-head h3 { font-size: 15px; }
.panel-head .muted { font-size: 13px; }
.row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.row-2.r-even { grid-template-columns: 1fr 1fr; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.row-3:has(> [hidden]) { grid-template-columns: 1fr 1fr; }
.globe { position: relative; aspect-ratio: 1; max-height: 340px; margin: -8px auto 0; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.globe canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.globe canvas.ready { opacity: 1; }
.globe-tag { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; padding: 3px 8px; margin: -30px 0 0 8px; border-radius: 4px; background: var(--ink); color: var(--panel); font: 500 12px var(--mono); opacity: 0; transition: opacity .3s; }
.globe-tag.on { opacity: 1; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); color: var(--good); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .3; } }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.kpi { padding: 16px 18px; display: grid; gap: 4px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi dt { font-size: 13px; color: var(--muted); }
.kpi dd { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kpi .val { font: 500 26px var(--mono); letter-spacing: -.02em; }
.delta { font: 500 12px var(--mono); padding: 1px 6px; border-radius: 4px; }
.delta.up { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.delta.down { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.spark { width: 100%; height: 34px; margin-top: 6px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ---------- Graphique ---------- */
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 2px; }
.k-cur { background: var(--accent); }
.k-prev { background: var(--prev); }
.chart { position: relative; height: 280px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line-2); }
.chart .axis text { font: 11px var(--mono); fill: var(--muted); }
.chart .cur { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .area { fill: var(--accent); opacity: .08; }
.chart .prev { fill: none; stroke: var(--prev); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .cross { stroke: var(--muted); stroke-dasharray: 2 3; }
.chart .dot { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.chart svg:not(.hover) :is(.cross, .dot) { display: none; }
.chart path { transition: d .6s var(--ease); }
.tip { position: absolute; top: 0; pointer-events: none; padding: 8px 10px; background: var(--ink); color: var(--bg); border-radius: var(--radius); font-size: 12px; white-space: nowrap; translate: -50% 0; }
.tip b { display: block; font: 500 14px var(--mono); }

/* ---------- Canaux ---------- */
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.channels li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.channels .bar { grid-column: 1 / -1; height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.channels .bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 4px; opacity: var(--o, 1); transition: width .7s var(--ease); }

/* ---------- Tableaux ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl tbody tr:hover { background: var(--line-2); }
.tbl .num { text-align: right; }
.tbl th.num { font-family: var(--sans); }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; }
.tbl th button:hover { color: var(--ink); }
.tbl th button:focus-visible { outline: 2px solid var(--accent); }
.tbl th button[aria-sort]::after { content: "↓"; }
.tbl th button[aria-sort="ascending"]::after { content: "↑"; }
.tbl.compact th, .tbl.compact td { padding: 9px 0; }
.tbl.compact td + td, .tbl.compact th + th { padding-left: 12px; }
.tbl mark { background: var(--accent-soft); color: inherit; border-radius: 2px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-Paid { color: var(--accent); }
.s-Shipped { color: var(--good); }
.s-Pending { color: var(--warn); }
.s-Refunded { color: var(--bad); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 13px; }
.pager div { display: flex; gap: 8px; }
.empty-row td { text-align: center; color: var(--muted); padding: 40px; }

/* ---------- Activity ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.feed li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); translate: 0 -1px; }
.feed li.new { animation: feed-in .6s var(--ease); }
@keyframes feed-in { from { opacity: 0; translate: 0 -8px; background: var(--accent-soft); } }
.feed time { font: 12px var(--mono); color: var(--muted); }

/* ---------- Settings ---------- */
.settings { display: grid; gap: 24px; max-width: 640px; }
.settings fieldset { border: 0; margin: 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.settings legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.settings label:not(.switch) { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.settings input:not([type="checkbox"]), .settings select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 14px var(--sans); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.switch input { appearance: none; width: 36px; height: 20px; margin: 0; border-radius: 10px; background: var(--line); position: relative; cursor: pointer; transition: background-color .2s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); transition: translate .25s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { translate: 16px 0; }
.settings-foot { display: flex; align-items: center; gap: 14px; }

.toast { position: fixed; bottom: 20px; left: 50%; z-index: 40; translate: -50% 20px; opacity: 0; padding: 10px 16px; border-radius: var(--radius); background: var(--ink); color: var(--bg); font-size: 14px; transition: opacity .3s, translate .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Funnel, goal ---------- */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.funnel li { display: grid; grid-template-columns: 9.5em 1fr 5.5em 3.5em; align-items: center; gap: 12px; font-size: 14px; }
.f-bar { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.f-bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 5px; transition: width .8s var(--ease); }
.f-val { text-align: right; }
.f-drop { font: 500 12px var(--mono); color: var(--bad); text-align: right; }
.goal { display: grid; grid-template-columns: 132px 1fr; gap: 6px 24px; align-items: center; --pct: 0; --proj: 0; }
.goal svg { grid-row: 1 / 3; grid-column: 1; width: 132px; rotate: -90deg; }
.goal circle { fill: none; stroke-width: 12; }
.g-track { stroke: var(--line-2); }
.g-proj { stroke: var(--accent-soft); stroke-dasharray: var(--proj) 100; }
.g-val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--pct) 100; transition: stroke-dasharray 1s var(--ease); }
.goal-text { grid-row: 1 / 3; grid-column: 1; display: grid; place-content: center; text-align: center; }
.goal-text b { font: 500 26px var(--mono); }
.goal-text span { font-size: 12px; color: var(--muted); }
.goal-facts { grid-row: 1 / 3; grid-column: 2; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.goal-facts dt { font-size: 12px; color: var(--muted); }
.goal-facts dd { margin: 2px 0 0; font: 500 17px var(--mono); }
.goal-facts .up { color: var(--good); }
.goal-facts .down { color: var(--bad); }

/* ---------- Products, customers ---------- */
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 3px; background: var(--c); vertical-align: -1px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.sub { display: block; font-size: 12px; color: var(--muted); }
td > .sub { margin-left: 0; }
.stock { display: inline-grid; grid-template-columns: 2.5em 90px; align-items: center; gap: 8px; }
.stock .bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.stock .bar i { display: block; height: 100%; width: var(--w); background: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font: 600 12px var(--sans); }
.b-ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.b-low { background: color-mix(in srgb, var(--warn) 16%, transparent); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.b-out, .b-Refunded { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.b-VIP { background: var(--accent-soft); color: var(--accent); }
.b-Returning { background: var(--line-2); color: var(--ink); }
.b-New { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.pill-warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn-danger { color: var(--bad); }
.btn-danger:hover:not(:disabled) { border-color: var(--bad); }
.link-btn { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.small { font-size: 13px; }
.kpis-plain .kpi .val { font-size: 22px; }

/* ---------- Order drawer, restock dialog ---------- */
dialog { color: var(--ink); background: var(--panel); border: 1px solid var(--line); padding: 0; }
dialog::backdrop { background: rgb(10 12 16 / .45); }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); height: 100dvh; max-height: none; border-radius: 0; display: none; grid-template-rows: auto 1fr auto; }
.drawer[open] { display: grid; animation: drawer-in .35s var(--ease); }
@keyframes drawer-in { from { translate: 100% 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; display: flex; align-items: center; gap: 12px; }
.drawer-head .status { font-weight: 500; }
.icon-btn { border: 1px solid var(--line); background: none; color: var(--ink); width: 34px; height: 34px; border-radius: var(--radius); font-size: 20px; line-height: 1; cursor: pointer; }
.drawer-body { overflow: auto; padding: 8px 22px 20px; }
.dr-block { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.dr-block h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.dr-block p { line-height: 1.6; }
.dr-block a { color: var(--accent); }
.tbl tfoot td { padding: 8px 0; color: var(--muted); }
.tbl tfoot .total td { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; padding-left: 22px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); }
.timeline li.done::before { border-color: var(--accent); background: var(--accent); }
.timeline li + li::after { content: ""; position: absolute; left: 6px; top: -14px; height: 18px; width: 2px; background: var(--line); }
.timeline .muted { font-size: 13px; }
.dr-ship { display: grid; gap: 10px; padding-top: 16px; }
.dr-ship label, .mini label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.dr-ship input, .mini input { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 14px var(--mono); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--line); }
.mini { width: min(380px, calc(100vw - 32px)); border-radius: 10px; }
.mini form { display: grid; gap: 16px; padding: 22px; }
.mini h2 { font-size: 16px; }
.mini-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Print: only the open order, as an invoice */
@media print {
  body > *:not(.drawer) { display: none !important; }
  .drawer { position: static; display: block !important; width: auto; height: auto; border: 0; }
  .drawer-actions, .icon-btn, .dr-ship { display: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .row-2, .row-2.r-even { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .globe-panel { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  body { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 260px; translate: -100% 0; transition: translate .35s var(--ease); }
  .side.open { translate: none; }
  .menu { display: grid; gap: 5px; place-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; }
  .menu span { width: 16px; height: 1.5px; background: var(--ink); }
  .top { padding: 12px 16px; flex-wrap: wrap; }
  .search { width: 100%; order: 3; }
  .search kbd { display: none; }
  main { padding: 16px 16px 40px; }
  .chart { height: 220px; }
  .row-3 { grid-template-columns: 1fr; }
  .funnel li { grid-template-columns: 7.5em 1fr 4.5em 3em; gap: 8px; font-size: 13px; }
  .goal { grid-template-columns: 1fr; justify-items: center; }
  .goal svg, .goal-text { grid-row: 1; grid-column: 1; }
  .goal-facts { grid-row: 2; grid-column: 1; width: 100%; }
  .kpis-plain { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .kpi { padding: 12px; }
  .kpi .val { font-size: 19px; }
  .spark { height: 24px; }
  .seg { overflow-x: auto; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
