/* Layout: fixed left sidebar (warehouses + sections) · top bar with page title · content of rounded cards on a soft grey ground */
:root {
  --bg: #F2F2F6; --surface: #FFFFFF; --surface-2: #F6F6FA; --surface-3: #EEEEF4;
  --ink: #0F0F14; --muted: #686876; --faint: #A3A3B1; --line: #E6E6EE;
  --accent: #6C3BF5; --accent-2: #9466FF; --accent-ink: #FFFFFF; --accent-soft: #EFE9FF;
  --nav-on: #0F0F14; --nav-on-ink: #FFFFFF;
  --marker: #FFD84A; --marker-soft: #FFF6CF;
  --ok: #16865A; --ok-soft: #DDF4E8; --low: #B26A00; --low-soft: #FFEFD6; --bad: #D0342C; --bad-soft: #FDE4E2; --hot: #E2560F;
  --res: #6C3BF5; --res-soft: #EFE9FF;
  --shadow: 0 1px 2px rgba(15,15,20,.04), 0 10px 30px -18px rgba(15,15,20,.28);
  --shadow-accent: 0 18px 40px -18px rgba(108,59,245,.65);
  --r-card: 20px; --r-ctl: 12px;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0C11; --surface: #15151C; --surface-2: #1B1B24; --surface-3: #22222C;
    --ink: #EEEEF4; --muted: #9B9BAD; --faint: #5F5F6E; --line: #262631;
    --accent: #8B6CFF; --accent-2: #A98CFF; --accent-ink: #0C0C11; --accent-soft: #241C40;
    --nav-on: #EEEEF4; --nav-on-ink: #0C0C11;
    --marker: #E6C334; --marker-soft: #383013;
    --ok: #4FD08F; --ok-soft: #12301F; --low: #F2B45A; --low-soft: #3A2A12; --bad: #FF7A70; --bad-soft: #3B1714; --hot: #FF9A62;
    --res: #A98CFF; --res-soft: #2A2148;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.9);
    --shadow-accent: 0 18px 40px -18px rgba(139,108,255,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0C11; --surface: #15151C; --surface-2: #1B1B24; --surface-3: #22222C;
  --ink: #EEEEF4; --muted: #9B9BAD; --faint: #5F5F6E; --line: #262631;
  --accent: #8B6CFF; --accent-2: #A98CFF; --accent-ink: #0C0C11; --accent-soft: #241C40;
  --nav-on: #EEEEF4; --nav-on-ink: #0C0C11;
  --marker: #E6C334; --marker-soft: #383013;
  --ok: #4FD08F; --ok-soft: #12301F; --low: #F2B45A; --low-soft: #3A2A12; --bad: #FF7A70; --bad-soft: #3B1714; --hot: #FF9A62;
  --res: #A98CFF; --res-soft: #2A2148;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.9);
  --shadow-accent: 0 18px 40px -18px rgba(139,108,255,.55);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 14.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.neg { color: var(--bad) !important; }
.pos { color: var(--ok); }

/* ---- brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); position: relative; flex: none; box-shadow: var(--shadow-accent); }
.brand-mark::after { content: ""; position: absolute; inset: 8px 7px; border: 2.2px solid #fff; border-radius: 3px; transform: skewX(-12deg); }

/* ---- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.login-sub { margin: -4px 0 4px; color: var(--muted); }
.err { color: var(--bad); background: var(--bad-soft); border-radius: 10px; padding: 9px 12px; font-size: 14px; }

/* ---- shell */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px 14px; padding-top: max(18px, env(safe-area-inset-top, 0px)); gap: 10px; background: var(--surface); border-right: 1px solid var(--line); z-index: 40; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 8px; }
.icon-btn.side-close { display: none; }
.side-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.side-lbl { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 0 10px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-i { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; padding: 10px 12px; border-radius: 12px; font-weight: 600; color: var(--muted); text-align: left; position: relative; }
.nav-i svg { flex: none; opacity: .85; }
.nav-i:hover { background: var(--surface-2); color: var(--ink); }
.nav-i[aria-current="page"] { background: var(--nav-on); color: var(--nav-on-ink); box-shadow: var(--shadow); }
.nav-i[aria-current="page"] svg { opacity: 1; }
.nav-i .badge { margin-left: auto; font-size: 11px; font-weight: 800; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.nav-i[aria-current="page"] .badge { background: var(--accent); color: #fff; }
.nav-i .badge.warn { background: var(--low-soft); color: var(--low); }
.wh-nav { display: flex; flex-direction: column; gap: 6px; }
.wh-i { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; border-radius: 14px; }
.wh-i:hover { border-color: var(--faint); }
.wh-i .flag { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--muted); flex: none; }
.wh-i .t { min-width: 0; flex: 1; }
.wh-i .t b { display: block; font-weight: 700; font-size: 13.5px; }
.wh-i .t small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-i[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: var(--shadow-accent); }
.wh-i[aria-pressed="true"] .flag { background: rgba(255,255,255,.2); color: #fff; }
.wh-i[aria-pressed="true"] .t small { color: rgba(255,255,255,.82); }
.side-foot { border-top: 1px solid var(--line); padding: 12px 6px 2px; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent-soft); color: var(--accent); flex: none; }
.me .t { min-width: 0; flex: 1; }
.me .t b { display: block; font-size: 14px; }
.me .t small { color: var(--muted); font-size: 12px; }
.me-acts { display: flex; gap: 6px; }
.me-acts .btn { flex: 1; }
.side-scrim { position: fixed; inset: 0; background: rgba(8,8,12,.45); z-index: 35; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 18px 28px 14px; padding-top: max(18px, env(safe-area-inset-top, 0px)); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.icon-btn.burger { display: none; }
.tb-title { flex: 1; min-width: 0; }
.tb-title h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.tb-sub { color: var(--muted); font-size: 13px; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tb-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.dot.stale { background: var(--low); }
.dot.off { background: var(--faint); }
.content { padding: 4px 28px 140px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); min-width: 0; }

/* ---- controls */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.search { flex: 1 1 300px; min-width: 0; position: relative; }
.search input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 42px 0 42px; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 14px; top: 14px; color: var(--faint); }
.search kbd { position: absolute; right: 12px; top: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 600; user-select: none; white-space: nowrap; cursor: pointer; }
select.sel { height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 12px; font-weight: 600; max-width: 100%; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.chip .c { font-weight: 600; color: var(--faint); font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--nav-on); color: var(--nav-on-ink); border-color: var(--nav-on); }
.chip[aria-pressed="true"] .c { color: inherit; opacity: .7; }
.chip.hot[aria-pressed="true"] { background: var(--hot); border-color: var(--hot); color: #fff; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.summary { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; align-items: center; padding: 10px 0 14px; }
.summary b { color: var(--ink); font-weight: 800; font-size: 15px; }
.summary .act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.note-banner { background: var(--marker-soft); border: 1px solid color-mix(in srgb, var(--marker) 60%, transparent); padding: 12px 16px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; margin-bottom: 12px; }

/* ---- buttons */
.btn { border: 1px solid var(--line); background: var(--surface); height: 40px; padding: 0 16px; border-radius: var(--r-ctl); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: var(--shadow-accent); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.dark { background: var(--nav-on); color: var(--nav-on-ink); border-color: var(--nav-on); }
.btn.res { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: var(--shadow-accent); }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.on { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 10px; }
.btn.big { height: 50px; font-size: 16px; border-radius: 14px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; color: var(--muted); flex: none; padding: 0; }
.icon-btn:hover { color: var(--ink); border-color: var(--faint); }
.link { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 6px 4px; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; }

/* ---- checkbox */
.cb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.6px solid var(--faint); border-radius: 6px; margin: 0; flex: none; display: grid; place-items: center; background: var(--surface); cursor: pointer; }
.cb:checked { background: var(--accent); border-color: var(--accent); }
.cb:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.cb:indeterminate { background: var(--accent); border-color: var(--accent); }
.cb:indeterminate::after { content: ""; width: 8px; height: 2px; background: #fff; }
.cb:disabled { opacity: .35; cursor: default; }

/* ---- stock table (one row per model) */
.stk { display: flex; flex-direction: column; gap: 10px; }
.stk-head { display: grid; grid-template-columns: minmax(220px, 300px) 96px minmax(0, 1fr) 96px 132px; gap: 16px; padding: 12px 20px; background: var(--surface); border-radius: 14px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.stk-row { display: grid; grid-template-columns: minmax(220px, 300px) 96px minmax(0, 1fr) 96px 132px; gap: 16px; padding: 18px 20px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); align-items: start; border: 1px solid transparent; }
.stk-row.hasSel { border-color: color-mix(in srgb, var(--marker) 80%, transparent); }
.c-model { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.c-model .thumb { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--muted); flex: none; letter-spacing: .02em; text-align: center; line-height: 1.1; padding: 4px; }
.c-model .t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.c-model h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eyebrow .hot { color: var(--hot); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.tag.price { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--low-soft); color: var(--low); }
.c-num { font-weight: 800; font-size: 15px; padding-top: 4px; }
.c-num small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.c-flv { min-width: 0; }
.c-flv .tot { font-weight: 800; font-size: 13px; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.c-flv .tot .link { font-size: 12px; padding: 0; }
.flv { list-style: none; margin: 0; padding: 0; columns: 300px 2; column-gap: 24px; }
.flv li { break-inside: avoid; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 2px 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 85%, transparent); }
.flv li label { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; cursor: pointer; }
.flv li .fl { overflow-wrap: anywhere; font-size: 13.5px; }
.flv li.out .fl { color: var(--faint); }
.flv li.sel { background: var(--marker-soft); border-radius: 8px; }
.flv .sku { font-family: var(--f-mono); font-size: 11px; color: var(--faint); margin-left: 6px; }
.c-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.c-act .btn { width: 100%; }
.stk-row.collapsed .flv { display: none; }
.qty { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 13px; min-width: 56px; text-align: right; padding: 4px 9px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); border: 1px solid transparent; }
.qty.low { background: var(--low-soft); color: var(--low); }
.qty.zero, .qty.na { background: var(--surface-2); color: var(--faint); font-weight: 600; }
.qty.neg { background: var(--bad-soft); color: var(--bad); }
.qty.ov { box-shadow: inset 0 0 0 1.5px currentColor; }
button.qty { cursor: text; }
button.qty:hover { border-color: currentColor; }
.qty-input { width: 84px; height: 30px; text-align: right; border: 1.5px solid var(--accent); border-radius: 9px; background: var(--surface); padding: 0 8px; font-weight: 700; }
.held { font-size: 12px; font-weight: 700; color: var(--res); background: var(--res-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.add { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-weight: 800; font-size: 17px; line-height: 1; display: inline-grid; place-items: center; padding: 0; flex: none; }
.add:hover { border-color: var(--accent); background: var(--accent-soft); }
.add.in { background: var(--accent); color: #fff; border-color: var(--accent); font-size: 11px; width: auto; min-width: 30px; padding: 0 6px; }
.add-ph { width: 30px; flex: none; }
.empty { text-align: center; padding: 64px 16px; color: var(--muted); max-width: 520px; margin: 0 auto; }
.empty h2 { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }

/* ---- bottom bar */
.bottombar { position: fixed; left: 264px; right: 0; bottom: 0; z-index: 25; padding: 0 16px max(14px, env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.bb-in { pointer-events: auto; margin: 0 auto; max-width: 900px; background: var(--nav-on); color: var(--nav-on-ink); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 20px 44px -16px rgba(0,0,0,.55); }
.bb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 2px 4px 2px 10px; }
.bb-row + .bb-row { border-top: 1px solid color-mix(in srgb, var(--nav-on-ink) 18%, transparent); padding-top: 8px; }
.bb-row .cnt { flex: 1; min-width: 160px; font-size: 14px; }
.bb-row .cnt b { font-weight: 800; }
.bb-row .btn { border-color: color-mix(in srgb, var(--nav-on-ink) 25%, transparent); background: transparent; color: var(--nav-on-ink); box-shadow: none; }
.bb-row .btn.go { background: var(--marker); color: #1A1606; border-color: var(--marker); }
.bb-row .btn.go-res { background: var(--accent); color: #fff; border-color: var(--accent); }
.bb-row .confirm { color: inherit; }

/* ---- drawer */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(8,8,12,.5); display: grid; place-items: center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.sheet { width: 100%; max-width: 760px; max-height: calc(100vh - 32px); background: var(--surface); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-h h2 { margin: 0; font-size: 18px; font-weight: 800; flex: 1; letter-spacing: -.02em; }
.sheet-b { overflow: auto; flex: 1; display: flex; flex-direction: column; }
.sheet-b > .pad { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sheet-b textarea.copy { flex: 1; min-height: 340px; border: 0; padding: 18px 20px; resize: none; font-family: var(--f-mono); font-size: 13px; line-height: 1.55; background: var(--surface-2); width: 100%; }
.sheet-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.sheet-f .hint { flex: 1; color: var(--muted); font-size: 13px; min-width: 160px; }
.toast { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 16px); background: var(--nav-on); color: var(--nav-on-ink); padding: 11px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.err { background: var(--bad); color: #fff; }

/* ---- cards / panels */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; padding-bottom: 20px; align-items: start; }
.panel { background: var(--surface); border-radius: var(--r-card); padding: 22px; min-width: 0; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.panel h3 { margin: 0; font-size: 14px; }
.sub { color: var(--muted); font-size: 13px; }
.panel > .sub { margin-top: -8px; }
.drop { border: 1.5px dashed var(--faint); border-radius: 16px; padding: 26px 16px; text-align: center; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; align-items: center; cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop span { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.warn { font-size: 13px; color: var(--low); background: var(--low-soft); border-radius: 12px; padding: 9px 13px; }
.warn.bad { color: var(--bad); background: var(--bad-soft); }
.warn ul, .info ul { margin: 4px 0 0; padding-left: 18px; }
.info { font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 9px 13px; }
.diff { display: flex; flex-direction: column; gap: 12px; }
.diff-sec h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.diff-sec.in h4 { color: var(--ok); }
.diff-sec.out h4 { color: var(--bad); }
.diff-sec.chg h4 { color: var(--muted); }
.diff-list { list-style: none; margin: 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; }
.diff-list li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.diff-list .p { color: var(--muted); font-size: 12px; flex: none; width: 38%; overflow-wrap: anywhere; }
.diff-list .f { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.diff-list .q { font-weight: 700; font-size: 13px; white-space: nowrap; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hist li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.hist .info2 { flex: 1; min-width: 200px; }
.hist .fn { font-weight: 700; overflow-wrap: anywhere; }
.hist .meta { font-size: 12px; color: var(--muted); }
.cur { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); padding: 3px 9px; border-radius: 999px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field .lbl { font-size: 13px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--muted); }
.hint.bad { color: var(--bad); font-weight: 700; }
.field input:not([type=checkbox]), .field textarea, .field select, .inp { border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); padding: 0 13px; height: 44px; width: 100%; min-width: 0; }
.field textarea { height: auto; padding: 10px 13px; font-family: var(--f-mono); font-size: 13px; resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus, .field select:focus, .inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.has-err select { border-color: var(--bad) !important; box-shadow: 0 0 0 4px var(--bad-soft); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.preview-box { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; font-family: var(--f-mono); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
.ph { display: flex; flex-wrap: wrap; gap: 6px; }
.ph button { font-family: var(--f-mono); font-size: 12px; background: var(--accent-soft); color: var(--accent); padding: 3px 8px; border-radius: 8px; border: 0; }
.confirm { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; flex-wrap: wrap; font-weight: 600; }
.creds { background: var(--ok-soft); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.creds pre { margin: 0; font-family: var(--f-mono); font-size: 14px; white-space: pre-wrap; }

/* ---- tables */
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 11px 12px; background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl input, .tbl select { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 7px 9px; width: 100%; min-width: 0; }
.tbl input.num { width: 84px; }
.tbl td.neg, .tbl td.pos { font-weight: 700; }
.fchips { display: flex; flex-direction: column; gap: 6px; }
.fchip { display: flex; gap: 6px; align-items: center; font-size: 12px; font-family: var(--f-mono); color: var(--muted); flex-wrap: wrap; }
.fchip select { width: auto; max-width: 220px; font-family: var(--f-body); font-size: 12px; padding: 4px 8px; }
.dirty td { background: var(--marker-soft); }

/* ---- price editor */
.pl-items { display: flex; flex-direction: column; gap: 8px; }
.pl-item { border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.pl-item-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-item-h select { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px 10px; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tier { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; font-size: 13px; }
.field .tier input, .tier input { width: 72px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: var(--surface-2); }
.tier button { border: 0; background: none; color: var(--faint); padding: 0 2px; }
.zone { font-size: 13px; padding: 9px 12px; background: var(--surface-2); border-radius: 12px; }
.ctl-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.ctl-row .field { min-width: 220px; flex: 1; }

/* ---- bookings */
.res-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-bottom: 14px; }
.res-head .chips { flex: 1; }
.res-search { height: 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 0 16px; min-width: 240px; flex: 1; }
.res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 16px; align-items: start; }
.rcard { background: var(--surface); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow); }
.rcard.closed { opacity: .72; }
.rcard-h { display: flex; gap: 10px; align-items: flex-start; }
.rcard-h .t { flex: 1; min-width: 0; }
.rcard-h .t b { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; letter-spacing: -.01em; }
.rcard-h .t .m { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pills { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.pill { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pill.active { background: var(--res-soft); color: var(--res); }
.pill.ordered { background: var(--accent-soft); color: var(--accent); }
.pill.done, .pill.paid { background: var(--ok-soft); color: var(--ok); }
.pill.cancelled, .pill.expired { background: var(--surface-3); color: var(--muted); }
.pill.unpaid { background: var(--low-soft); color: var(--low); }
.pill.owe { background: var(--bad-soft); color: var(--bad); }
.ritems { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.rg { border-top: 1px dashed var(--line); padding-top: 8px; }
.rg-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; color: var(--muted); flex-wrap: wrap; }
.rg-h .mono { color: var(--ink); }
.rg-cost { font-size: 12px; color: var(--accent); font-weight: 600; }
.rg ul { list-style: none; margin: 4px 0 0; padding: 0; }
.rg li { display: flex; gap: 8px; padding: 2px 0; }
.rg li .f { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rg li .q { font-weight: 700; }
.rship { font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 8px 12px; overflow-wrap: anywhere; }
.rmoney { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.rmoney b { color: var(--ink); font-weight: 800; }
.rmoney .acc { font-size: 12px; font-family: var(--f-mono); overflow-wrap: anywhere; }
.rfoot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rflow { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.timer { font-size: 12px; color: var(--muted); }
.timer.soon { color: var(--low); font-weight: 700; }
.rcomment { font-size: 13px; color: var(--muted); white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }

/* ---- edit drawer (existing booking) */
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cart-g { padding: 10px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.cart-i { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cart-i .f { flex: 1; min-width: 140px; }
.cart-i .f small { display: block; color: var(--muted); font-size: 12px; }
.cart-i .f small.bad { color: var(--bad); font-weight: 700; }
.cart-price { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); font-size: 13px; }
.price-in { width: 76px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); text-align: right; padding: 0 8px; font-weight: 700; }
.cart-cost { list-style: none; font-size: 12px; color: var(--accent); padding: 0 0 4px; font-weight: 600; }
.cart-cost.bad { color: var(--low); }
.fs { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fs legend { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.fs .toggle { min-height: 44px; align-self: end; }
.totals-box { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); align-items: baseline; }
.totals-box b { color: var(--ink); font-weight: 800; }
.totals-box .grand { font-size: 16px; color: var(--ink); }
.totals-box .grand b { font-size: 20px; }
.adm-money { width: 100%; display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 8px; color: var(--accent); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); }
.stepper button { border: 0; background: var(--surface-2); width: 34px; height: 36px; font-size: 16px; font-weight: 800; }
.stepper input { width: 68px; height: 36px; border: 0; text-align: center; font-weight: 700; background: var(--surface); }

/* ---- order page */
.ord { display: flex; flex-direction: column; gap: 16px; max-width: 1240px; }
.ord-sec { background: var(--surface); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.ord-sec > h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ord-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.ord-grid .span2 { grid-column: span 2; }
.ord-grid .span3 { grid-column: 1 / -1; }
.ob { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.ob-top { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(200px, 1fr); gap: 12px; align-items: stretch; }
.ob-card { background: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ob-card b { color: var(--ink); font-weight: 800; }
.ob-card .big { font-size: 15px; }
.ob-card.total { background: var(--surface); border: 1px solid var(--line); }
.ob-model { font-size: 16px; font-weight: 800; letter-spacing: -.01em; padding: 8px 0; overflow-wrap: anywhere; }
.auto { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ob-rows { display: flex; flex-direction: column; gap: 6px; }
.ob-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 140px 36px; gap: 10px; align-items: center; background: var(--surface); border-radius: 12px; padding: 6px 6px 6px 8px; }
.ob-row select { border: 0; background: transparent; font-weight: 700; padding: 6px 4px; min-width: 0; width: 100%; }
.ob-row .free { font-size: 12px; color: var(--muted); text-align: right; }
.ob-row .free.bad { color: var(--bad); font-weight: 700; }
.ob-acts { display: flex; gap: 16px; flex-wrap: wrap; }
.ord-sum { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ord-side { display: flex; flex-direction: column; gap: 12px; }
.ord-total { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow-accent); display: flex; flex-direction: column; gap: 6px; }
.ord-total .lbl { font-size: 12px; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.ord-total .big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.ord-total .line { display: flex; justify-content: space-between; font-size: 13px; opacity: .92; }
.ord-total .line b { font-weight: 800; }
.ord-total .adm { border-top: 1px solid rgba(255,255,255,.28); padding-top: 8px; margin-top: 4px; }
.ord-foot { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.tbl tfoot td { background: var(--surface-2); font-weight: 800; }

/* ---- dashboard */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.kpi { background: var(--surface); border-radius: var(--r-card); padding: 18px 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi .k-lbl { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }
.kpi .k-lbl span:last-child { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.kpi .k-val { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.kpi .k-lines { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi .k-lines div { display: flex; justify-content: space-between; gap: 8px; }
.kpi .k-lines b { color: var(--ink); font-weight: 800; }
.kpi.hl { background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: var(--shadow-accent); }
.kpi.hl .k-lbl, .kpi.hl .k-lines, .kpi.hl .k-lbl span:last-child { color: rgba(255,255,255,.85); }
.kpi.hl .k-lines b { color: #fff; }
.kpi .k-val.pos { color: var(--ok); }
.kpi .k-val.neg { color: var(--bad); }
.mini-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.mini { background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.mini span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.mini b { font-size: 17px; font-weight: 800; }
.mini small { display: block; font-size: 12px; color: var(--muted); }
.dash-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.statusbar { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-grid { display: flex; flex-direction: column; gap: 16px; }
.panel.owe { border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.chart-wrap { overflow-x: auto; }
svg.chart { width: 100%; min-width: 480px; height: auto; display: block; }
svg.chart .bar { fill: var(--surface-3); }
svg.chart .bar.on { fill: var(--accent); }
svg.chart .bar:hover { fill: var(--accent-2); }
svg.chart .axis, svg.chart .grid { stroke: var(--line); }
svg.chart .lbl { fill: var(--muted); font-size: 11px; font-family: var(--f-body); font-weight: 600; }

/* ---- settings bits */
.wh-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wh-row input { flex: 1 1 180px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 8px 12px; }
.vis { display: flex; flex-wrap: wrap; gap: 6px; }
.vis .toggle { min-height: 36px; font-size: 13px; border-radius: 10px; }

/* ---- responsive */
@media (max-width: 1280px) {
  .stk-head { display: none; }
  .stk-row { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) 132px; }
  .stk-row .c-num { display: none; }
  .c-model .t .mob { display: flex; }
  .ob-top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1281px) { .c-model .t .mob { display: none; } }
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 290px; max-width: 86vw; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); padding-left: max(14px, env(safe-area-inset-left, 0px)); }
  .side.open { transform: none; }
  .icon-btn.side-close, .icon-btn.burger { display: inline-grid; }
  .bottombar { left: 0; }
  .topbar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .content { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .tb-title h1 { font-size: 22px; }
  .ord-sum { grid-template-columns: minmax(0, 1fr); }
  .ord-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .stk-row { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; }
  .c-act { flex-direction: row; flex-wrap: wrap; }
  .c-act .btn { width: auto; flex: 1; }
  .flv { columns: 1; }
  .ob-top { grid-template-columns: minmax(0, 1fr); }
  .ob-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sel x" "step free"; row-gap: 6px; }
  .ob-row > select { grid-area: sel; }
  .ob-row > .stepper { grid-area: step; }
  .ob-row > .free { grid-area: free; text-align: right; }
  .ob-row > .icon-btn { grid-area: x; }
  .ord-grid { grid-template-columns: minmax(0, 1fr); }
  .ord-grid .span2 { grid-column: auto; }
  .summary .act { margin-left: 0; width: 100%; }
  .summary .act .btn { flex: 1 1 auto; }
  .search kbd { display: none; }
  .kpi .k-val { font-size: 26px; }
  .tb-right { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: tin .18s ease-out; }
  @keyframes tin { from { opacity: 0; transform: translate(-50%, -6px); } }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* model photos */
.c-model .thumb.photo { padding: 0; background: #fff; overflow: hidden; width: 64px; height: 64px; border: 1px solid var(--line); }
.c-model .thumb.photo img, .ob-model .thumb.photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ob-model { display: flex; align-items: center; gap: 10px; }
.ob-model .thumb { width: 44px; height: 44px; border-radius: 10px; flex: none; display: grid; place-items: center; background: #fff; overflow: hidden; border: 1px solid var(--line); }
/* warehouse settings: access & auto-update */
.wh-box { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.wh-box:last-of-type { border-bottom: 0; }
.wh-sub { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; padding-left: 2px; }
.wh-sub.col { flex-direction: column; align-items: stretch; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.wh-sub .sub.bad { color: var(--bad); }
.wh-users { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.wh-grp { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 6px 2px; }
.wh-grp:first-child { padding-top: 0; }
/* client page settings */
.cp-countries { display: flex; flex-wrap: wrap; gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.cp-countries .toggle, .cp-mlist .toggle { min-height: 38px; padding: 0 12px; font-weight: 600; }
.cp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.cp-table { border-collapse: collapse; width: 100%; min-width: 520px; }
.cp-table th, .cp-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: 14px; }
.cp-table th { font-size: 12px; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.cp-table tr:last-child td { border-bottom: 0; }
.cp-table input:not([type=checkbox]) { min-width: 110px; height: 38px; padding: 0 10px; }
.cp-wh { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.cp-models { display: flex; flex-direction: column; gap: 14px; }
.cp-mw h3 { margin: 0 0 8px; }
.cp-mlist { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-mlist small { color: var(--muted); font-weight: 500; }
/* stock tracking */
.chart .bar.tr-ours { fill: var(--accent); }
.chart .bar.tr-others { fill: #f08a24; }
.chart .tr-in { fill: #12925a; stroke: var(--surface); stroke-width: 1.5; }
.tr-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; }
.tr-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tr-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tr-legend i.tr-ours { background: var(--accent); } .tr-legend i.tr-others { background: #f08a24; } .tr-legend i.tr-in { background: #12925a; border-radius: 50%; }
.cp-link { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.cp-cell { display: flex; gap: 6px; }
.cp-table input.num, .cp-cell input.num { width: 76px; min-width: 76px; }
.cp-table select.inp { min-width: 160px; }
.cp-table td > .inp:not(.num) { min-width: 150px; }
