
  :root {
    --asl-css: 1;
    --bg: #F5F6FA; --panel: #FFFFFF; --panel-2: #F1F3F8; --panel-3: #E9EDF5;
    --border: #E3E7F0; --border-soft: #ECEFF6; --switch-off: #C4CCDE;
    --text: #161A28; --muted: #6B7288; --muted-2: #9BA1B5;
    --accent: #65A30D; --accent-strong: #578C0B; --accent-ink: #FFFFFF;
    --accent-fg: #4D7C0F; --accent-wash: rgba(101,163,13,.09); --accent-line: rgba(101,163,13,.3);
    --glow: none;
    --ok: #15803D; --warn: #B45309; --danger: #DC2626; --info: #4F46E5;
    --disc: #2563EB;
    --ok-wash: rgba(21,128,61,.1); --warn-wash: rgba(180,83,9,.1);
    --ok-line: rgba(21,128,61,.28); --danger-line: rgba(220,38,38,.3);
    --danger-wash: rgba(220,38,38,.09); --info-wash: rgba(79,70,229,.1);
    --st-buy: #6D28D9;     --st-buy-wash: rgba(109,40,217,.11);
    --st-transit: #0E7490; --st-transit-wash: rgba(14,116,144,.11);
    --st-check: #C2410C;   --st-check-wash: rgba(194,65,12,.11);
    --st-manual: #475569;  --st-manual-wash: rgba(71,85,105,.12);
    --st-error: #C21F2B;   --st-error-wash: rgba(220,38,50,.09);
    --st-wait: #946200;    --st-wait-wash: rgba(234,179,8,.18);
    --led-warn: #CA8A04;
    --ok-ink: #FFFFFF; --danger-ink: #FFFFFF; --scrim: rgba(23,27,42,.45);
    --shadow-pop: 0 10px 28px rgba(23,27,42,.12);
    --radius-lg: 14px; --radius-md: 10px; --radius-sm: 7px; --radius-pill: 999px;
    --sidebar-w: 244px;
    --font-ui: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, monospace;
    --sb-bg: #FFFFFF; --sb-bg-hover: #F3F5F9; --sb-border: #E3E7F0;
    --sb-text: #5A6178; --sb-text-active: #161A28;
    --sb-accent: #65A30D; --sb-accent-fg: #4D7C0F; --sb-accent-wash: rgba(101,163,13,.11);
    --sb-line: #E3E7F0; --sb-card-line: #CDD3E0;
    --sb-hover-soft: rgba(16,20,42,.06); --sb-hover-faint: rgba(16,20,42,.03); --sb-track: rgba(16,20,42,.08);
    --sb-warn: #B45309; --sb-danger: #DC2626;
    --sb-knob-line: #CDD3E0; --sb-knob-shadow: 0 1px 4px rgba(16,20,42,.14);
    --dur-fast: 110ms; --dur: 160ms;
    --ease: cubic-bezier(.2,.7,.3,1);
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  }
  html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
    transition: none !important;
  }
  html[data-theme="dark"] {
    --bg: #0B0D14; --panel: #131625; --panel-2: #1A1E30; --panel-3: #222741;
    --border: #262B41; --border-soft: #1D2236; --switch-off: #3C4364;
    --text: #EDEFF7; --muted: #8A91AB; --muted-2: #5D647E;
    --accent: #B6F09C; --accent-strong: #CDF7B8; --accent-ink: #12240D;
    --accent-fg: #B6F09C; --accent-wash: rgba(182,240,156,.11); --accent-line: rgba(182,240,156,.35);
    --glow: none;
    --ok: #4ADE80; --warn: #F0B93D; --danger: #F87171; --info: #6C7BFF;
    --disc: #60A5FA;
    --ok-wash: rgba(74,222,128,.13); --warn-wash: rgba(240,185,61,.13);
    --ok-line: rgba(74,222,128,.32); --danger-line: rgba(248,113,113,.34);
    --danger-wash: rgba(248,113,113,.13); --info-wash: rgba(108,123,255,.14);
    --st-buy: #A78BFA;     --st-buy-wash: rgba(167,139,250,.15);
    --st-transit: #38BDF8; --st-transit-wash: rgba(56,189,248,.14);
    --st-check: #FB923C;   --st-check-wash: rgba(251,146,60,.14);
    --st-manual: #94A3B8;  --st-manual-wash: rgba(148,163,184,.14);
    --st-error: #F75F65;   --st-error-wash: rgba(247,95,101,.13);
    --st-wait: #F0B93D;    --st-wait-wash: rgba(240,185,61,.13);
    --ok-ink: #052E16; --danger-ink: #2A0A0A; --scrim: rgba(5,6,10,.72);
    --shadow-pop: 0 8px 24px rgba(0,0,0,.4);
    --sb-bg: #10142A; --sb-bg-hover: #191F3D; --sb-border: rgba(255,255,255,.07);
    --sb-text: #9CA3C4; --sb-text-active: #FFFFFF;
    --sb-accent: #B6F09C; --sb-accent-fg: #B6F09C; --sb-accent-wash: rgba(182,240,156,.14);
    --sb-line: rgba(255,255,255,.14); --sb-card-line: rgba(255,255,255,.13);
    --sb-hover-soft: rgba(255,255,255,.07); --sb-hover-faint: rgba(255,255,255,.035); --sb-track: rgba(255,255,255,.08);
    --sb-warn: #F0B93D; --sb-danger: #FCA5A5;
    --sb-knob-line: rgba(255,255,255,.26); --sb-knob-shadow: 0 2px 8px rgba(16,20,42,.28);
  }
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  html { color-scheme: light; }
  html[data-theme="dark"] { color-scheme: dark; }
  body {
    font-family: var(--font-ui);
    background: var(--bg); color: var(--text); margin: 0; font-size: 14px; line-height: 1.55;
    transition: background-color .15s, color .15s;
  }
  a { color: var(--accent-fg); }
  label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; font-weight: 500; letter-spacing: .01em; }
  input, textarea, select {
    width: 100%; padding: 9px 12px; border-radius: var(--radius-md); border: 1px solid var(--border);
    background: var(--bg); color: var(--text); margin-bottom: 12px; font-size: 13px; font-family: inherit;
    caret-color: var(--text);
    transition: border-color .12s;
  }
  form.pw-form { display: contents; }
  input[type="search"] { appearance: none; -webkit-appearance: none; }
  input[type="search"]::-webkit-search-cancel-button,
  input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
  input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
  input::placeholder, textarea::placeholder { color: var(--muted-2); }
  textarea { resize: vertical; }
  input[type="checkbox"], input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 16px; height: 16px; min-width: 16px; padding: 0; margin: 0;
    border: 1.5px solid var(--border); border-radius: 5px;
    background: var(--bg); display: inline-block; position: relative;
    cursor: pointer; vertical-align: middle; flex-shrink: 0;
    transition: background-color .12s, border-color .12s;
  }
  input[type="radio"] { border-radius: 50%; }
  input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--muted-2); }
  input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--accent); border-color: var(--accent); }
  input[type="checkbox"]:checked::after {
    content: ""; position: absolute; left: 4.5px; top: 1px;
    width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  input[type="radio"]:checked::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 6px; height: 6px; background: var(--accent-ink); border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; cursor: default; }
  button {
    padding: 10px 18px; border-radius: var(--radius-md); border: 1px solid transparent; background: var(--accent);
    color: var(--accent-ink); font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit;
    box-shadow: var(--glow);
    transition: background-color .12s, border-color .12s, transform .05s, box-shadow .12s, opacity var(--dur-fast) var(--ease);
  }
  button:hover { background: var(--accent-strong); }
  button:active { transform: scale(.98); }
  button.secondary { background: var(--panel-2); color: var(--text); border-color: var(--border); box-shadow: none; }
  button.secondary:hover { background: var(--panel-3); border-color: var(--muted-2); }
  button.ghost { background: transparent; color: var(--muted); border-color: var(--border); box-shadow: none; }
  button.ghost:hover { background: var(--panel-2); color: var(--text); }
  button.danger { background: var(--danger); color: var(--danger-ink); box-shadow: none; }
  button.saved, button.saved:hover { background: var(--ok); color: var(--ok-ink); border-color: transparent; box-shadow: none; }
  button.saved.secondary, button.saved.secondary:hover { background: var(--ok-wash); color: var(--ok); border-color: var(--ok-line); }
  button.needs-retry, button.needs-retry:hover { background: var(--danger-wash); color: var(--danger); border-color: var(--danger); box-shadow: none; }
  button.saved:active, button.needs-retry:active { background: var(--panel-2); color: var(--text); border-color: var(--border); }
  button.link-action {
    background: none; border: none; box-shadow: none; padding: 10px 4px;
    color: var(--accent-fg); font-weight: 600; text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1px;
  }
  button.link-action:hover { background: none; color: var(--accent-strong); text-decoration-thickness: 2px; }
  button.link-action.saved, button.link-action.saved:hover { background: none; color: var(--ok); text-decoration: none; }
  button.link-action.needs-retry, button.link-action.needs-retry:hover { background: none; color: var(--danger); border-color: transparent; }
  button.link-action:disabled { text-decoration: none; }
  button.danger:hover { background: color-mix(in srgb, var(--danger) 80%, white); }
  button.sm { padding: 6px 12px; font-size: 12px; }
  button:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  pre {
    white-space: pre-wrap; word-break: break-word; background: var(--bg); border-radius: var(--radius-md);
    padding: 12px; font-size: 12px; border: 1px solid var(--border); margin-top: 10px; font-family: var(--font-mono);
  }
  .muted { color: var(--muted); font-size: 12.5px; }
  .muted.is-warn { color: var(--warn); }
  .card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px 26px; margin-bottom: 18px;
  }
  .draft-list-scroll { max-height: 460px; overflow-y: auto; }
  h2 { font-size: 14.5px; font-weight: 600; margin: 0 0 14px; letter-spacing: -.005em; }
  h2 .step { color: var(--muted); font-weight: 500; }
  .row { display: flex; gap: 12px; }
  .row > * { flex: 1; }
  .plan-slider-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
  .plan-slider-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .plan-slider-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
  .plan-slider-name { font-size: 21px; font-weight: 700; }
  .plan-slider-price { text-align: right; flex-shrink: 0; }
  .plan-slider-amt { font-size: 28px; font-weight: 800; font-family: var(--font-mono); letter-spacing: -.02em; color: var(--accent-fg); font-variant-numeric: tabular-nums; }
  .plan-slider-amt span { font-size: 13px; font-weight: 500; color: var(--muted); font-family: var(--font-ui); }
  .plan-slider-card input[type="range"] { width: 100%; margin: 0 0 8px; accent-color: var(--accent); }
  .plan-slider-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-family: var(--font-mono); margin-bottom: 18px; }
  .plan-slider-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; border-top: 1px solid var(--border); padding-top: 16px; }
  .plan-slider-feat div { font-size: 12.5px; color: var(--text); }
  .plan-slider-feat .psf-off { color: var(--muted); }
  .usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
  .usage-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
  .usage-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
  .usage-num { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .usage-num span { font-size: 13px; font-weight: 500; color: var(--muted); }
  .usage-meter { height: 5px; border-radius: var(--radius-pill); background: var(--panel-3); overflow: hidden; margin-top: 9px; }
  .usage-meter i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--accent); }
  .usage-meter i.um-warn { background: var(--warn); }
  .usage-meter i.um-over { background: var(--danger); }
  .usage-foot { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
  .pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .pack-grid .card { margin: 0; }
  .ab-total { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0; line-height: 1.1; }
  .ab-section { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; }
  .ab-presets { display: flex; flex-wrap: wrap; gap: 8px; }
  .ab-custom { display: flex; gap: 8px; align-items: center; margin-top: 10px; max-width: 380px; }
  .ab-custom input { margin: 0; flex: 1; min-width: 0; }
  .ab-pos { color: var(--ok); }
  .ab-table-wrap, .ref-table-wrap { overflow-x: auto; }
  .ab-table-wrap td { padding: 10px 14px; }
  .inv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .inv-actions button { padding: 8px 14px; }
  .ref-steps { list-style: none; counter-reset: refstep; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 0; margin: 14px 0 0; }
  .ref-steps li { counter-increment: refstep; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
  .ref-steps li::before { content: counter(refstep); display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-fg); font-weight: 700; font-size: 12px; margin-bottom: 8px; }
  .ref-steps b { display: block; font-size: 13px; }
  .ref-steps span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
  .ref-link-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .ref-link-row input { margin: 0; flex: 1 1 240px; min-width: 0; }
  .ref-meter { width: 120px; max-width: 100%; margin-top: 6px; }
  .lt-editor-wrap { display: flex; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; height: 360px; background: var(--panel-2); }
  .lt-line-numbers { background: var(--panel-3); color: var(--muted-2); font-family: var(--font-mono); font-size: 12px; line-height: 20px; padding: 10px 8px; text-align: right; user-select: none; overflow: hidden; white-space: pre; }
  .lt-editor-wrap textarea { flex: 1; border: none; outline: none; resize: none; background: transparent; color: var(--text); font-family: var(--font-mono); font-size: 12px; line-height: 20px; padding: 10px; white-space: pre; overflow: auto; }
  .lt-var-list { font-size: 12.5px; color: var(--muted); padding-left: 18px; margin: 4px 0; line-height: 1.8; }
  .lt-var-list code { background: var(--panel-3); padding: 1px 5px; border-radius: 4px; color: var(--text); }
  .lt-preview-frame { border: 1px solid var(--border); border-radius: var(--radius-md); height: 560px; overflow: hidden; background: #fff; }
  .lt-preview-frame iframe { width: 100%; height: 100%; border: none; }
  .lt-pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
  .lt-pv-open { padding: 5px 12px; font-size: 12.5px; flex-shrink: 0; }
  #lt-preview-modal-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 110;
    align-items: center; justify-content: center; padding: 32px 20px; backdrop-filter: blur(3px);
  }
  #lt-preview-modal-overlay.active { display: flex; animation: modal-scrim-in var(--dur) var(--ease); }
  #lt-preview-modal {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    width: 100%; max-width: 1200px; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: var(--shadow-pop); animation: modal-pop var(--dur) var(--ease);
    height: calc(100dvh - 64px); max-height: 940px;
  }
  #lt-preview-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; }
  .lt-pv-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .lt-pv-tabs { display: inline-flex; gap: 2px; padding: 3px; flex-shrink: 0;
    background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
  .lt-pv-tab { padding: 5px 13px; border: 0; border-radius: calc(var(--radius-md) - 4px); background: transparent;
    color: var(--muted); box-shadow: none; font-family: inherit; font-size: 12.5px; font-weight: 600;
    line-height: 1.5; cursor: pointer; transition: background-color .12s, color .12s; }
  .lt-pv-tab:hover { background: transparent; color: var(--text); }
  .lt-pv-tab[aria-pressed="true"], .lt-pv-tab[aria-pressed="true"]:hover { background: var(--panel); color: var(--text); box-shadow: var(--shadow-pop); }
  .lt-pv-shell { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; width: 100%;
    border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--panel-2); }
  .lt-pv-shell.is-phone { max-width: 390px; margin-inline: auto; }
  .lt-pv-bar { flex-shrink: 0; padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--muted);
    background: var(--panel-3); border-bottom: 1px solid var(--border); }
  .lt-pv-shell iframe { flex: 1 1 auto; display: block; width: 100%; min-height: 420px; border: 0; background: #fff; }
  @media (max-width: 700px) {
    #lt-preview-modal-overlay { padding: 12px; }
    #lt-preview-modal { height: calc(100dvh - 24px); }
    .modal-head .lt-pv-actions { gap: 6px; }
  }
  .tag {
    display: inline-flex; align-items: center; font-size: 9.5px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; background: var(--panel-3); color: var(--muted); border: 1px solid var(--border);
    padding: 2px 6px; border-radius: var(--radius-sm);
  }
  .tag.tag-ebay { background: var(--info-wash); color: var(--info); border-color: transparent; flex-shrink: 0; }
  .err-cell { display: flex; align-items: flex-start; gap: 6px; }
  .err-cell > span:last-child { min-width: 0; overflow-wrap: break-word; }
  .brand { display: flex; align-items: center; }
  :root {
    --logo-o: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2.5 129 383.5 86'%3E%3Cpath fill='%23F2F4F8' d='M2.50 200L18.30 200L23.50 185L50.70 185L55.90 200L71.70 200L46.10 129L28.10 129ZM27.80 172.30L37.10 145L46.40 172.30ZM109.60 164.20L124.80 163.60C123 152.50 114 145.70 100.60 145.70C85.50 145.70 76.60 152 76.60 162.60C76.60 172.40 84.80 176 99.40 178.80C104.50 179.90 109.60 180.70 109.70 185.20C109.70 189 105.10 190.60 101.30 190.60C95.20 190.60 91.50 187.50 90.60 182.40L75.40 183.20C76.20 194.50 86.10 201.20 101.60 201.20C115.20 201.20 125.20 196.10 125.20 185.50C125.20 175.50 117.50 171.40 101.90 168.90C96.90 168.10 92.40 166.40 92.20 162.50C92 158.70 95.50 156.30 100 156.30C104.60 156.30 108.80 159.30 109.60 164.20ZM134.50 129L134.50 185.20C134.50 194.70 140.50 200 149.30 200L157.50 200L157.50 188.70L153.70 188.70C151.10 188.70 149.70 187.20 149.70 184.60L149.70 129ZM191.50 129L167 129L167 200L192.10 200C214.80 200 227.40 187.30 227.40 164.60C227.40 141.80 214.50 129 191.50 129ZM182.30 187.10L182.30 141.90L191.50 141.90C205.30 141.90 211.90 149.20 211.90 164.60C211.90 179.80 205.30 187.10 191.50 187.10ZM235.20 147L235.20 200L250.40 200L250.40 170.50C250.40 162.30 253.80 158.30 262.50 158.30L267.50 158.30L267.50 147L262.70 147C256 147 252 150.50 249.90 157.60L249.60 147ZM332.80 215L348.00 215L348.00 192.60C351.10 198.20 356.50 201.20 363.40 201.20C378.40 201.20 386.00 189.10 386.00 173.50C386.00 157.90 378.40 145.80 363.40 145.80C356.00 145.80 350.50 149 347.60 154.80L347.30 147L332.80 147ZM347.00 173.50C347.00 164.90 350.70 157.30 358.70 157.30C366.60 157.30 370.50 164.90 370.50 173.50C370.50 182.20 366.80 189.70 358.70 189.70C350.70 189.70 347.00 182.20 347.00 173.50Z'/%3E%3Cpath fill='%23B6F09C' fill-rule='evenodd' d='M297.3 131.84L318.08 156.45A27.2 27.2 0 1 1 276.52 156.45ZM285.6 174A11.7 11.7 0 1 0 309 174A11.7 11.7 0 1 0 285.6 174Z'/%3E%3Cpath fill='none' stroke='%23F2F4F8' stroke-width='2.81' stroke-linecap='round' stroke-linejoin='round' d='M297.3 166.98V174H302.21'/%3E%3C/svg%3E");
    --logo-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2.5 129 383.5 86'%3E%3Cpath fill='%2310142A' d='M2.50 200L18.30 200L23.50 185L50.70 185L55.90 200L71.70 200L46.10 129L28.10 129ZM27.80 172.30L37.10 145L46.40 172.30ZM109.60 164.20L124.80 163.60C123 152.50 114 145.70 100.60 145.70C85.50 145.70 76.60 152 76.60 162.60C76.60 172.40 84.80 176 99.40 178.80C104.50 179.90 109.60 180.70 109.70 185.20C109.70 189 105.10 190.60 101.30 190.60C95.20 190.60 91.50 187.50 90.60 182.40L75.40 183.20C76.20 194.50 86.10 201.20 101.60 201.20C115.20 201.20 125.20 196.10 125.20 185.50C125.20 175.50 117.50 171.40 101.90 168.90C96.90 168.10 92.40 166.40 92.20 162.50C92 158.70 95.50 156.30 100 156.30C104.60 156.30 108.80 159.30 109.60 164.20ZM134.50 129L134.50 185.20C134.50 194.70 140.50 200 149.30 200L157.50 200L157.50 188.70L153.70 188.70C151.10 188.70 149.70 187.20 149.70 184.60L149.70 129ZM191.50 129L167 129L167 200L192.10 200C214.80 200 227.40 187.30 227.40 164.60C227.40 141.80 214.50 129 191.50 129ZM182.30 187.10L182.30 141.90L191.50 141.90C205.30 141.90 211.90 149.20 211.90 164.60C211.90 179.80 205.30 187.10 191.50 187.10ZM235.20 147L235.20 200L250.40 200L250.40 170.50C250.40 162.30 253.80 158.30 262.50 158.30L267.50 158.30L267.50 147L262.70 147C256 147 252 150.50 249.90 157.60L249.60 147ZM332.80 215L348.00 215L348.00 192.60C351.10 198.20 356.50 201.20 363.40 201.20C378.40 201.20 386.00 189.10 386.00 173.50C386.00 157.90 378.40 145.80 363.40 145.80C356.00 145.80 350.50 149 347.60 154.80L347.30 147L332.80 147ZM347.00 173.50C347.00 164.90 350.70 157.30 358.70 157.30C366.60 157.30 370.50 164.90 370.50 173.50C370.50 182.20 366.80 189.70 358.70 189.70C350.70 189.70 347.00 182.20 347.00 173.50Z'/%3E%3Cpath fill='%2365A30D' fill-rule='evenodd' d='M297.3 131.84L318.08 156.45A27.2 27.2 0 1 1 276.52 156.45ZM285.6 174A11.7 11.7 0 1 0 309 174A11.7 11.7 0 1 0 285.6 174Z'/%3E%3Cpath fill='none' stroke='%2310142A' stroke-width='2.81' stroke-linecap='round' stroke-linejoin='round' d='M297.3 166.98V174H302.21'/%3E%3C/svg%3E");
    --logo-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%2365A30D' d='M32 1.15L50.49 23.05A24.2 24.2 0 1 1 13.51 23.05Z'/%3E%3Ccircle cx='32' cy='38.66' r='13.55' fill='%23FFFFFF'/%3E%3Cpath fill='none' stroke='%2310142A' stroke-width='4.07' stroke-linecap='round' stroke-linejoin='round' d='M32 30.8V38.66H37.96'/%3E%3C/svg%3E");
  }
  html[data-theme="dark"] { --logo-b: var(--logo-o); }
  .brand-mark {
    width: 107px; height: 24px; flex-shrink: 0;
    background: var(--logo-b) center / contain no-repeat;
  }
  #impersonation-banner {
    display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    align-items: center; justify-content: center; gap: 10px;
    padding: 9px 16px; background: var(--danger); color: var(--danger-ink);
    font-size: 12.5px; font-weight: 600; text-align: center;
  }
  #impersonation-banner.active { display: flex; }
  #impersonation-banner button { padding: 4px 12px; font-size: 12px; background: rgba(0,0,0,.18); color: inherit; box-shadow: none; }
  #impersonation-banner button:hover { background: rgba(0,0,0,.28); }
  #plan-limit-banner {
    display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 199;
    align-items: center; justify-content: center; gap: 10px;
    padding: 9px 16px; background: var(--danger); color: var(--danger-ink);
    font-size: 12.5px; font-weight: 600; text-align: center;
  }
  #plan-limit-banner.active { display: flex; }
  #impersonation-banner.active ~ #plan-limit-banner.active { top: 38px; }
  #announce-banner {
    display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 198;
    align-items: center; justify-content: center; gap: 10px;
    padding: 9px 16px; font-size: 12.5px; font-weight: 600; text-align: center;
  }
  #announce-banner.active { display: flex; }
  #announce-banner.info {
    background: color-mix(in srgb, var(--info) 13%, var(--bg)); color: var(--info);
    border-bottom: 1px solid color-mix(in srgb, var(--info) 35%, transparent);
  }
  #announce-banner.warning {
    background: color-mix(in srgb, var(--warn) 15%, var(--bg)); color: var(--warn);
    border-bottom: 1px solid color-mix(in srgb, var(--warn) 38%, transparent);
  }
  #announce-banner.critical { background: var(--danger); color: var(--danger-ink); }
  #announce-banner.feature {
    background: linear-gradient(90deg, #10142A 0%, #1B2B1A 55%, #10142A 100%); color: #FFFFFF;
    border-bottom: 1px solid rgba(182,240,156,.35); font-size: 13px;
    flex-wrap: wrap; row-gap: 7px;
  }
  #announce-banner .ab-new {
    flex-shrink: 0; padding: 2px 8px; border-radius: 999px; background: #B6F09C; color: #12240D;
    font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  }
  #announce-banner a.ab-cta {
    flex-shrink: 0; padding: 4px 12px; border-radius: 999px; background: #B6F09C; color: #12240D;
    font-weight: 700; text-decoration: none; box-shadow: 0 0 0 3px rgba(182,240,156,.18);
  }
  #announce-banner a.ab-cta:hover { background: #CDF7B8; }
  @media (max-width: 760px) { #announce-banner.feature > span { flex: 1 1 100%; min-width: 0; } }
  #announce-banner a { color: inherit; text-decoration: underline; white-space: nowrap; }
  #announce-banner .ab-x {
    background: none; border: none; box-shadow: none; color: inherit; opacity: .6;
    cursor: pointer; font-size: 13px; font-weight: 400; line-height: 1; padding: 2px 4px;
  }
  #announce-banner .ab-x:hover { background: none; opacity: 1; }
  #app-shell.plan-locked { padding-top: 38px; --shell-top: 38px; }
  #app-shell.plan-locked.impersonating { padding-top: 76px; --shell-top: 76px; }
  #app-shell.plan-locked .nav-item[data-page]:not(#nav-referrals) { opacity: .4; pointer-events: none; }
  #maintenance-screen, #boot-screen, #view-as-failed-screen {
    display: none; min-height: 100vh; align-items: center; justify-content: center; flex-direction: column;
    gap: 6px; text-align: center; padding: 20px; background: var(--bg); color: var(--text);
  }
  #maintenance-screen.active, #boot-screen.active, #view-as-failed-screen.active { display: flex; }
  #maintenance-screen h1, #view-as-failed-screen h1 { font-size: 19px; margin: 0 0 2px; }
  #boot-screen .boot-spinner {
    width: 22px; height: 22px; border-radius: 50%; margin-bottom: 12px;
    border: 2px solid var(--border); border-top-color: var(--accent);
    animation: boot-spin .7s linear infinite;
  }
  @keyframes boot-spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) {
    #boot-screen .boot-spinner { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
  }
  #app-shell { display: none; min-height: 100vh; --shell-top: 0px; }
  #app-shell.active { display: flex; }
  #app-shell[data-onizleme] { pointer-events: none; }
  #app-shell.impersonating { padding-top: 38px; --shell-top: 38px; }
  .sidebar {
    width: var(--sidebar-w); flex-shrink: 0; background: var(--sb-bg); border-right: 1px solid var(--sb-border);
    padding: 20px 12px; display: flex; flex-direction: column; gap: 1px;
    position: sticky; top: var(--shell-top, 0px); height: calc(100vh - var(--shell-top, 0px)); overflow-y: auto;
  }
  .sb-head { position: relative; height: 33px; margin-bottom: 19px; }
  .sidebar .brand { position: absolute; left: 0; top: 3px; height: 30px; padding: 0 10px; color: var(--sb-text-active); pointer-events: none; }
  .sidebar .brand-drop {
    position: absolute; left: 7px; top: 4px; width: 28px; height: 28px; opacity: 0; pointer-events: none;
    background: var(--logo-drop) center / contain no-repeat;
  }
  .sb-collapse-btn {
    position: fixed; z-index: 20; top: calc(50vh + var(--shell-top, 0px) / 2 - 13px); left: calc(var(--sidebar-w) - 14px);
    width: 26px; height: 26px; padding: 0; border-radius: 50%; display: grid; place-items: center;
    background: var(--sb-bg); color: var(--sb-text-active); border: 1px solid var(--sb-knob-line);
    box-shadow: var(--sb-knob-shadow);
  }
  .sb-collapse-btn:hover { background: var(--sb-accent); color: var(--sb-bg); border-color: var(--sb-accent); }
  .sb-collapse-btn:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
  .sb-collapse-btn svg { width: 14px; height: 14px; stroke: currentColor; }
  .sb-collapse-btn .sb-chev { transform-box: fill-box; transform-origin: center; }
  .sb-tip {
    position: fixed; z-index: 60; pointer-events: none; transform: translateY(-50%);
    background: #10142A; color: #FFFFFF; border: 1px solid rgba(255,255,255,.12);
    font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap;
    padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow-pop);
  }
  html { --sb-dur: 220ms; }
  html.sb-collapsed { --sidebar-w: 68px; }
  .sidebar { overflow-x: hidden; }
  html.sb-collapsed .sidebar { scrollbar-width: none; }
  html.sb-collapsed .sidebar .brand { opacity: 0; }
  html.sb-collapsed .sidebar .brand-drop { opacity: 1; }
  html.sb-collapsed .sb-collapse-btn .sb-chev { transform: scaleX(-1); }
  .nav-section-label { position: relative; white-space: nowrap; overflow: hidden; }
  .nav-section-label::after {
    content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px;
    background: var(--sb-line); opacity: 0;
  }
  html.sb-collapsed .nav-section-label { color: transparent; }
  html.sb-collapsed .nav-section-label::after { opacity: 1; }
  .nav-item { position: relative; white-space: nowrap; overflow: hidden; }
  html.sb-collapsed .nav-item .nav-label,
  html.sb-collapsed .nav-item .nav-balance,
  html.sb-collapsed .nav-item .tag { opacity: 0; }
  html.sb-anim .sidebar { transition: width var(--sb-dur) var(--ease); }
  html.sb-anim .sb-collapse-btn { transition: left var(--sb-dur) var(--ease), background-color .12s, border-color .12s, color .12s; }
  html.sb-anim .sb-chev { transition: transform var(--sb-dur) var(--ease); }
  html.sb-anim .sidebar .brand,
  html.sb-anim .nav-item .nav-label, html.sb-anim .nav-item .nav-balance, html.sb-anim .nav-item .tag,
  html.sb-anim .nav-section-label, html.sb-anim .nav-section-label::after {
    transition: opacity 90ms var(--ease), color 90ms var(--ease);
  }
  html.sb-anim:not(.sb-collapsed) .sidebar .brand,
  html.sb-anim:not(.sb-collapsed) .nav-item .nav-label, html.sb-anim:not(.sb-collapsed) .nav-item .nav-balance, html.sb-anim:not(.sb-collapsed) .nav-item .tag,
  html.sb-anim:not(.sb-collapsed) .nav-section-label, html.sb-anim:not(.sb-collapsed) .nav-section-label::after {
    transition: opacity 160ms var(--ease) 70ms, color 160ms var(--ease) 70ms;
  }
  html.sb-anim.sb-collapsed .sidebar .brand-drop { transition: opacity 160ms var(--ease) 70ms; }
  html.sb-anim:not(.sb-collapsed) .sidebar .brand-drop { transition: opacity 90ms var(--ease); }
  html.sb-anim .sidebar-footer { transition: opacity 140ms var(--ease); }
  html.sb-anim.sb-foot-out .sidebar-footer { opacity: 0; transition-duration: 80ms; }
  html.sb-anim #app-shell { overflow-x: clip; }
  html.sb-anim .main { will-change: transform; background: var(--bg); }
  html.sb-collapsed .nav-item .nav-count {
    position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
    font-size: 9.5px; box-shadow: 0 0 0 2px var(--sb-bg);
  }
  html.sb-compact .sidebar-account-row,
  html.sb-compact .sidebar-plan { display: none; }
  html.sb-compact .sidebar-account-actions { flex-direction: column; border-top: 0; }
  html.sb-compact .sidebar-account-actions .sidebar-icon-btn { flex: none; height: 32px; }
  .nav-section-label {
    font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--sb-text); opacity: .55; padding: 0 12px; margin: 20px 0 8px;
  }
  .nav-section-label:first-of-type { margin-top: 0; }
  .nav-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer;
    color: var(--sb-text); font-size: 13.5px; font-weight: 500; margin-bottom: 2px; text-decoration: none;
  }
  .nav-item:hover { background: var(--sb-bg-hover); color: var(--sb-text-active); }
  .nav-item.active { background: var(--sb-accent-wash); color: var(--sb-text-active); font-weight: 600; box-shadow: inset 2.5px 0 0 var(--sb-accent); }
  .nav-item.active .icon { color: var(--sb-accent-fg); }
  .nav-item .icon {
    width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .nav-item .icon svg { width: 18px; height: 18px; stroke: currentColor; }
  .nav-item .tag { margin-left: auto; background: var(--sb-bg-hover); color: var(--sb-text); border-color: var(--sb-border); }
  .nav-item .nav-balance {
    margin-left: auto; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
    color: var(--sb-text); background: var(--sb-bg-hover); border: 1px solid var(--sb-border);
    padding: 1px 7px; border-radius: 999px; line-height: 1.5;
  }
  .nav-item.active .nav-balance { color: var(--sb-accent-fg); }
  .sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sb-border); }
  .main { flex: 1; min-width: 0; }
  .topbar {
    height: 70px; border-bottom: 1px solid var(--border); display: flex; align-items: center;
    justify-content: space-between; padding: 0 38px; position: sticky; top: var(--shell-top, 0px); background: var(--bg); z-index: 5;
  }
  .topbar h1 { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
  .ebay-badge, .store-chip {
    display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted);
    text-decoration: none;
    background: var(--panel); border: 1px solid var(--border); padding: 5px 12px; border-radius: var(--radius-pill);
  }
  .store-chip { color: var(--text); font-weight: 600; }
  .store-chip svg { width: 13px; height: 13px; stroke: var(--muted); flex-shrink: 0; }
  .ebay-badge .led { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
  .ebay-badge.connected .led { background: var(--ok); box-shadow: 0 0 6px color-mix(in srgb, var(--ok) 60%, transparent); }
  .meter-chip {
    display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    color: var(--text); text-decoration: none; white-space: nowrap;
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  }
  .meter-chip[hidden] { display: none; }
  .meter-chip:hover { border-color: var(--muted-2); }
  .meter-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .meter-chip { --chip-tone: var(--info); --chip-wash: var(--info-wash); }
  .meter-chip.is-track { --chip-tone: var(--st-transit); --chip-wash: var(--st-transit-wash); }
  .meter-chip-dial {
    position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
    display: grid; place-items: center; color: var(--chip-tone);
  }
  .meter-chip.is-ai .meter-chip-dial { background: var(--chip-wash); }
  .meter-chip.is-ai .meter-chip-dial svg { width: 14px; height: 14px; }
  .meter-chip-ring { position: absolute; inset: 0; width: 28px; height: 28px; transform: rotate(-90deg); }
  .meter-chip-ring circle { fill: none; stroke-width: 2.6; }
  .meter-chip-ring .ring-bg { stroke: var(--chip-wash); }
  .meter-chip-ring .ring-val { stroke: var(--chip-tone); stroke-linecap: round; transition: stroke-dasharray var(--dur) var(--ease); }
  .meter-chip-glyph { width: 13px; height: 13px; }
  .meter-chip-col { display: flex; flex-direction: column; line-height: 1.2; }
  .meter-chip-num { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .meter-chip-unit { font-size: 10.5px; color: var(--muted); }
  .meter-chip.is-store { --chip-tone: var(--accent-fg); --chip-wash: var(--accent-wash); cursor: default; }
  .meter-chip.is-store:hover { border-color: var(--border); }
  button.meter-chip.is-store {
    background: var(--panel); color: var(--text); box-shadow: none; text-align: left;
    font-weight: 400; font-size: inherit; line-height: inherit;
  }
  button.meter-chip.is-store:hover { background: var(--panel); }
  button.meter-chip.is-store:active { transform: none; }
  button.meter-chip.is-store.is-switchable { cursor: pointer; }
  button.meter-chip.is-store.is-switchable:hover,
  button.meter-chip.is-store[aria-expanded="true"] { border-color: var(--muted-2); }
  .meter-chip-caret { width: 13px; height: 13px; flex-shrink: 0; margin-left: -2px; color: var(--muted); transition: transform var(--dur-fast) var(--ease); }
  .meter-chip.is-store:not(.is-switchable) .meter-chip-caret { display: none; }
  .meter-chip.is-store[aria-expanded="true"] .meter-chip-caret { transform: rotate(180deg); }
  .store-switcher { position: relative; }
  .store-switcher[hidden] { display: none; }
  .store-menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 30;
    min-width: max(100%, 272px); max-width: min(340px, calc(100vw - 32px));
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop); padding: 6px;
    transform-origin: top right; animation: menu-pop var(--dur-fast) var(--ease);
  }
  .store-menu[hidden] { display: none; }
  .store-menu-label { padding: 6px 8px 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .store-menu-list { display: flex; flex-direction: column; gap: 2px; max-height: min(360px, 60vh); overflow-y: auto; }
  .store-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; text-align: left;
    background: none; border: none; box-shadow: none; border-radius: var(--radius-md);
    color: var(--text); font-weight: 400; font-size: 13px; cursor: pointer;
  }
  .store-menu button:hover, .store-menu button:focus-visible { background: var(--panel-2); outline: none; }
  .store-menu button:active { transform: none; }
  .store-menu button.store-menu-item[aria-checked="true"] { background: var(--accent-wash); }
  .store-menu-logo {
    width: 36px; height: 26px; flex-shrink: 0; border-radius: 7px;
    background: #FFFFFF; border: 1px solid var(--border); display: grid; place-items: center;
  }
  .store-menu-logo .ebay-logo { width: 25px; height: auto; display: block; }
  .store-menu-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
  .store-menu-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .store-menu-meta { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; color: var(--muted); }
  .store-menu-meta .id-chip-flag { width: 13px; height: 9px; border-radius: 2px; }
  .store-menu-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .store-menu-meta.warn { color: var(--warn); }
  .store-menu-check { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-fg); visibility: hidden; }
  .store-menu-item[aria-checked="true"] .store-menu-check { visibility: visible; }
  .store-menu-sep { height: 1px; background: var(--border-soft); margin: 6px 2px; }
  .store-menu button.store-menu-add { color: var(--muted); font-size: 12.5px; font-weight: 600; }
  .store-menu button.store-menu-add:hover, .store-menu button.store-menu-add:focus-visible { color: var(--accent-fg); background: var(--accent-wash); }
  .store-menu-add-icon {
    width: 36px; height: 26px; flex-shrink: 0; border-radius: 7px; border: 1.5px dashed currentColor;
    display: grid; place-items: center; font-size: 16px; font-weight: 400; line-height: 1;
  }
  .meter-chip-logo {
    width: 40px; height: 28px; flex-shrink: 0; border-radius: 8px;
    background: #FFFFFF; border: 1px solid var(--border);
    display: grid; place-items: center;
  }
  .meter-chip-logo .ebay-logo { width: 28px; height: auto; display: block; }
  .meter-chip.is-store .meter-chip-num { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
  .meter-chip.is-low { --chip-tone: var(--warn); --chip-wash: var(--warn-wash); background: var(--warn-wash); border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); }
  .meter-chip.is-low .meter-chip-num { color: var(--warn); }
  .topbar-right { display: flex; align-items: center; gap: 10px; }
  .bell { position: relative; }
  button.bell-btn {
    position: relative; width: 40px; height: 40px; padding: 0; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: none; font-weight: 400; font-size: inherit; line-height: 1; cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease);
  }
  button.bell-btn:hover, button.bell-btn[aria-expanded="true"] { background: var(--panel); border-color: var(--muted-2); }
  button.bell-btn:active { transform: none; }
  button.bell-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .bell-btn svg { width: 18px; height: 18px; }
  .bell-count {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--danger); color: var(--danger-ink);
    font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px var(--bg);
  }
  .bell-count[hidden] { display: none; }
  .bell-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
    width: 440px; max-width: calc(100vw - 32px); max-height: min(640px, calc(100vh - 100px));
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-pop);
    transform-origin: top right; animation: menu-pop var(--dur-fast) var(--ease);
  }
  .bell-panel[hidden] { display: none; }
  .bell-head, .bell-confirm { display: flex; align-items: center; gap: 2px; padding: 14px 12px 8px 18px; flex-shrink: 0; }
  .bell-head h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
  .bell-confirm { padding-bottom: 12px; background: var(--danger-wash); border-bottom: 1px solid var(--border-soft); }
  .bell-head[hidden], .bell-confirm[hidden] { display: none; }
  .bell-confirm span { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--text); }
  button.bell-link {
    background: none; border: none; box-shadow: none; padding: 5px 8px; border-radius: var(--radius-sm);
    color: var(--accent-fg); font-size: 12px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
  }
  button.bell-link:hover { background: var(--accent-wash); }
  button.bell-link:active { transform: none; }
  button.bell-link.is-quiet { color: var(--muted); }
  button.bell-link.is-quiet:hover { background: var(--panel-2); color: var(--text); }
  button.bell-link.is-danger { color: var(--danger); }
  button.bell-link.is-danger:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); }
  button.bell-link:disabled, button.bell-link:disabled:hover { opacity: .45; cursor: default; background: none; color: var(--muted); }
  .bell-tabs {
    display: flex; gap: 4px; padding: 2px 14px 10px; flex-shrink: 0; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .bell-tabs::-webkit-scrollbar { display: none; }
  button.bell-tab {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid transparent;
    background: none; box-shadow: none; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.3; cursor: pointer;
  }
  button.bell-tab:hover { background: var(--panel-2); color: var(--text); }
  button.bell-tab:active { transform: none; }
  button.bell-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  button.bell-tab[aria-selected="true"], button.bell-tab[aria-selected="true"]:hover { background: var(--text); color: var(--panel); }
  .bell-tab-n {
    min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;
    background: var(--panel-3); color: var(--muted);
  }
  .bell-tab-n:empty { display: none; }
  .bell-tab-n.is-hot { background: var(--danger); color: var(--danger-ink); }
  button.bell-tab[aria-selected="true"] .bell-tab-n:not(.is-hot) { background: color-mix(in srgb, var(--panel) 22%, transparent); color: var(--panel); }
  .bell-list {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 8px;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  }
  .bell-list::-webkit-scrollbar { width: 8px; }
  .bell-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; border: 2px solid var(--panel); }
  .bell-list::-webkit-scrollbar-track { background: transparent; }
  .bell-list .empty-state { padding: 40px 18px; }
  .bell-skel { padding: 8px 4px 0; }
  .bell-day {
    padding: 12px 10px 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted-2);
  }
  .bell-row { position: relative; border-radius: 12px; }
  .bell-row + .bell-row { margin-top: 1px; }
  .bell-item {
    display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px;
    border-radius: 12px; color: var(--text); text-decoration: none;
  }
  .bell-row.is-unread.is-action .bell-item { background: color-mix(in srgb, var(--info) 6%, transparent); }
  .bell-item:hover, .bell-row.is-unread .bell-item:hover { background: var(--panel-2); }
  .bell-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .bell-thumb {
    position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px;
    display: grid; place-items: center; color: var(--t); background: var(--w);
    --t: var(--info); --w: var(--info-wash);
  }
  .bell-thumb.has-img { background: #FFFFFF; border: 1px solid var(--border); }
  .bell-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; display: block; padding: 2px; }
  .bell-glyph { width: 20px; height: 20px; }
  .bell-thumb.has-img .bell-glyph { display: none; }
  .bell-badge {
    position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%;
    display: none; place-items: center; background: var(--t); color: var(--panel); box-shadow: 0 0 0 2px var(--panel);
  }
  .bell-badge svg { width: 11px; height: 11px; }
  .bell-thumb.has-img .bell-badge { display: grid; }
  .bell-thumb.t-order { --t: var(--ok); --w: var(--ok-wash); }
  .bell-thumb.t-dispute { --t: var(--st-check); --w: var(--st-check-wash); }
  .bell-thumb.t-ao, .bell-thumb.t-late, .bell-thumb.t-reconnect { --t: var(--danger); --w: var(--danger-wash); }
  .bell-thumb.t-policy, .bell-thumb.t-setup { --t: var(--warn); --w: var(--warn-wash); }
  .bell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .bell-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .bell-title { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
  .bell-row.is-unread .bell-title { font-weight: 650; }
  .bell-money {
    display: inline-flex; align-items: center; margin-left: 7px; padding: 1px 8px; border-radius: var(--radius-pill);
    background: var(--ok-wash); color: var(--ok); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
    vertical-align: 1px;
  }
  .bell-time { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .bell-row.is-unread .bell-time { color: var(--info); font-weight: 600; }
  .bell-row.is-unread .bell-time::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--info); }
  .bell-body {
    font-size: 12.5px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .bell-meta { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 3px; font-size: 11.5px; color: var(--muted-2); }
  .bell-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .bell-meta i { font-style: normal; }
  .bell-tag {
    flex-shrink: 0; padding: 1px 7px; border-radius: var(--radius-pill); font-size: 10.5px; font-weight: 600;
    background: var(--panel-3); color: var(--muted);
  }
  .bell-tag.is-bad { background: var(--danger-wash); color: var(--danger); }
  .bell-tag.is-ok { background: var(--ok-wash); color: var(--ok); }
  .bell-acts {
    position: absolute; top: 7px; right: 8px; display: flex; gap: 2px; padding: 2px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow-pop);
    opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease);
  }
  .bell-row:hover .bell-acts, .bell-acts:focus-within { opacity: 1; pointer-events: auto; }
  .bell-acts:empty { display: none; }
  button.bell-act {
    width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border-radius: 7px;
    background: none; border: none; box-shadow: none; color: var(--muted); cursor: pointer;
  }
  button.bell-act svg { width: 14px; height: 14px; }
  button.bell-act:hover { background: var(--panel-2); color: var(--text); }
  button.bell-act:active { transform: none; }
  @media (hover: none) {
    .bell-acts { top: auto; bottom: 6px; opacity: 1; pointer-events: auto; box-shadow: none; }
  }
  .bell-foot {
    flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 18px 11px; border-top: 1px solid var(--border-soft); font-size: 11.5px; color: var(--muted-2);
  }
  .bell-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-fg); font-weight: 600; text-decoration: none; }
  .bell-foot a:hover { text-decoration: underline; }
  .bell-foot a svg { width: 14px; height: 14px; }
  .bell-foot a[hidden] { display: none; }
  .tg-head { display: flex; gap: 14px; align-items: flex-start; }
  .tg-mark {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
    display: grid; place-items: center; background: #2AABEE; color: #FFFFFF;
  }
  .tg-mark svg { width: 21px; height: 21px; margin-left: -2px; }
  .tg-intro h2 { margin: 2px 0 4px; }
  .tg-intro p { margin: 0; max-width: 620px; }
  #tg-body { margin-top: 16px; }
  .tg-steps { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
  .tg-steps b { color: var(--text); }
  .tg-connected {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 14px; border-radius: var(--radius-md); background: var(--ok-wash); border: 1px solid var(--ok-line);
    font-size: 13px; color: var(--text); margin-bottom: 12px;
  }
  .tg-connected .tg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
  .tg-connected .muted { font-size: 12px; }
  .tg-wait { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
  .tg-wait a { color: var(--accent-fg); font-weight: 600; }
  .tg-problem { margin: 0 0 12px; font-size: 12.5px; color: var(--warn); }
  .tg-link { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
  .tg-qr { width: 168px; height: 168px; flex-shrink: 0; padding: 8px; border-radius: var(--radius-md); background: #FFFFFF; border: 1px solid var(--border); }
  .tg-qr svg { width: 100%; height: 100%; display: block; }
  .tg-ways { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
  .tg-way { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); line-height: 1.5; }
  .tg-way > b { color: var(--text); font-size: 13px; }
  .tg-way a { color: var(--accent-fg); font-weight: 600; }
  .tg-code { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .tg-code code { font-family: var(--font-mono); font-size: 12.5px; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--border); color: var(--text); user-select: all; overflow-wrap: anywhere; }
  .tg-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: tg-spin .8s linear infinite; flex-shrink: 0; }
  @keyframes tg-spin { to { transform: rotate(360deg); } }
  .tg-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .tg-actions > button { flex: 0 0 auto; width: auto; }
  .content { padding: 32px 38px 84px; max-width: 1180px; }
  .content:has(#revisions-page.active) { max-width: 1600px; }
  .content:has(#listings-page.active) { max-width: 1900px; }
  .content:has(#orders-page.active) { max-width: none; }
  .content:has(#messages-page.active) {
    max-width: none; padding: 16px 24px 20px;
    height: calc(100dvh - 70px - var(--shell-top, 0px)); min-height: 520px;
    display: flex; flex-direction: column;
  }
  .content:has(#dashboard-page.active) { max-width: 1900px; }
  .content:has(#settings-page.active .settings-tab-panel.active[data-tab="templates"]) { max-width: 1600px; }
  .page { display: none; }
  .page.active { display: block; animation: page-in var(--dur) var(--ease); }
  @keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .page-header { margin-bottom: 22px; }
  .page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
  .page-header-row > button { flex-shrink: 0; }
  .page-header h1 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 4px; }
  .page-header p { color: var(--muted); font-size: 13px; margin: 0; }
  .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
  .stat { display: block; color: inherit; text-decoration: none; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 13px 14px; }
  .stat-icon {
    width: 26px; height: 26px; border-radius: var(--radius-sm); background: var(--panel-2); color: var(--muted);
    display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
  }
  .stat-icon svg { width: 13px; height: 13px; stroke: currentColor; }
  .stat-icon.si-money { background: var(--accent-wash); color: var(--accent-fg); }
  .stat-icon.si-cart { background: var(--info-wash); color: var(--info); }
  .stat.warn-stat .stat-icon { background: var(--warn-wash); color: var(--warn); }
  .stat .num { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .stat .lbl { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
  .stat.stat-clickable { cursor: pointer; transition: border-color .12s, transform .05s; }
  .stat.stat-clickable:hover { border-color: var(--muted-2); }
  .stat.stat-clickable:active { transform: scale(.98); }
  .onboarding-step { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 13px; }
  .onboarding-step:not(:last-child) { border-bottom: 1px solid var(--border-soft); }
  .onboarding-check {
    width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted-2);
  }
  .onboarding-step.done { color: var(--muted); }
  .onboarding-step.done .onboarding-check { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
  .onboarding-step a.onboarding-action { margin-left: auto; font-size: 12.5px; }
  .dash-section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
  .dash-section-head h2 { margin: 0; }
  .dash-section-head:first-of-type { margin-top: 8px; }
  .dash-range-select { width: auto; margin: 0; padding: 7px 30px 7px 12px; font-size: 12.5px; }
  .dr-wrap { position: relative; flex: 0 0 auto; }
  .dr-pop {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: 300px; max-width: calc(100vw - 32px);
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop); padding: 14px; transform-origin: top right; animation: menu-pop var(--dur-fast) var(--ease);
  }
  .dr-h { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 0 0 7px; }
  .dr-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
  .dr-chip {
    padding: 7px 4px; font-size: 12.5px; font-weight: 500; background: var(--panel-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: none; white-space: nowrap;
  }
  .dr-chip:hover { background: var(--panel-3); border-color: var(--muted-2); }
  .dr-chip[aria-pressed="true"], .dr-chip[aria-pressed="true"]:hover { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent-fg); font-weight: 600; }
  .dr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dr-fields label { margin: 0; }
  .dr-fields input { margin: 4px 0 0; padding: 7px 8px; font-size: 12.5px; }
  .dr-note { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
  .dr-err { font-size: 11.5px; color: var(--danger); margin: 8px 0 0; }
  .dr-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
  .dr-actions button { padding: 7px 14px; font-size: 12.5px; }
  .store-mgmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 12px; margin-bottom: 20px; }
  .store-card {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 13px 14px; cursor: pointer;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
                transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .store-card:hover { border-color: var(--muted-2); transform: translateY(-1px); box-shadow: var(--shadow-pop); }
  .store-card:active { transform: scale(.99); box-shadow: none; }
  .store-card.active { border-color: var(--accent-line); background: var(--accent-wash); }
  .store-card.active::before {
    content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--accent);
  }
  .store-card .sc-logo {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--radius-md);
    background: #FFFFFF; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
  }
  .store-card .sc-logo .ebay-logo { width: 30px; height: auto; display: block; }
  .store-card .sc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .store-card .sc-name {
    font-size: 13.5px; font-weight: 600; color: var(--text); padding-right: 20px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .store-card .sc-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; color: var(--muted); }
  .store-card .sc-meta .sc-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .store-card .sc-flag { width: 14px; height: 10px; border-radius: 2px; flex-shrink: 0; }
  .store-card .sc-pill {
    flex-shrink: 0; margin-left: auto; padding: 1.5px 6px; border-radius: var(--radius-pill);
    font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5;
    color: var(--accent-fg); background: var(--panel); border: 1px solid var(--accent-line);
  }
  .store-card .sc-pill.warn { color: var(--warn); background: var(--warn-wash); border-color: transparent; }
  .store-edit-btn {
    position: absolute; top: 7px; right: 7px; background: none; border: none; color: var(--muted-2);
    cursor: pointer; padding: 5px; border-radius: var(--radius-sm); display: flex; opacity: 0;
    transition: opacity var(--dur) var(--ease), color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
  }
  .store-card:hover .store-edit-btn, .store-edit-btn:focus-visible { opacity: 1; }
  .store-edit-btn:hover { background: var(--panel-2); color: var(--text); }
  .store-edit-btn svg { width: 14px; height: 14px; stroke: currentColor; }
  @media (hover: none) { .store-edit-btn { opacity: 1; } }
  .store-card.add-store {
    flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    background: transparent; border: 1.5px dashed var(--border); color: var(--muted);
    font-size: 12.5px; font-weight: 600;
  }
  .store-card.add-store:hover {
    border-color: var(--accent); color: var(--accent-fg); background: var(--accent-wash); box-shadow: none;
  }
  .store-card.add-store .add-icon {
    width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed currentColor;
    display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 400; line-height: 1;
  }
  .stat-row-8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
  @media (max-width: 820px) { .stat-row-8 { grid-template-columns: repeat(2, 1fr); } }
  .stat.warn-stat .num { color: var(--warn); }
  .breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
  .breadcrumb a { color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 6px; }
  .breadcrumb a:hover { color: var(--text); }
  .breadcrumb a svg { width: 13px; height: 13px; stroke: currentColor; }
  .breadcrumb .bc-sep { color: var(--muted-2); }
  .info-banner {
    display: flex; align-items: flex-start; gap: 10px; background: var(--accent-wash);
    border: 1px solid var(--accent-line); border-radius: var(--radius-md); padding: 12px 14px; margin: 14px 0 18px;
    font-size: 12.5px; color: var(--text);
  }
  .info-banner .ib-icon { color: var(--accent-fg); flex-shrink: 0; }
  .info-banner .ib-close { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 2px; }
  .ai-field-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
  .ai-field-row input { margin-bottom: 0; }
  button.ai-btn {
    background: var(--info-wash); color: var(--info); border: 1px solid var(--info);
    box-shadow: none; white-space: nowrap; font-weight: 700;
  }
  button.ai-btn:hover { background: var(--info); color: #fff; }
  .reward-card {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: var(--info-wash); border-color: color-mix(in srgb, var(--info) 32%, var(--border));
  }
  .reward-card[hidden] { display: none; }
  .reward-icon {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
    background: var(--panel); color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 28%, var(--border));
  }
  .reward-icon svg { width: 22px; height: 22px; }
  .reward-main { flex: 1 1 260px; min-width: 0; }
  .reward-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .reward-head h2 { margin: 0; }
  .reward-tag {
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--info);
    background: var(--panel); border: 1px solid color-mix(in srgb, var(--info) 32%, var(--border)); border-radius: 999px; padding: 2px 8px;
  }
  .reward-main p { margin: 5px 0 0; }
  .reward-ctl { flex-shrink: 0; }
  .reward-card button.ai-btn { background: var(--info); color: #fff; padding-inline: 18px; }
  .reward-card button.ai-btn:hover { background: color-mix(in srgb, var(--info) 86%, #000); }
  .reward-card button.ai-btn:disabled { opacity: .6; cursor: default; }
  .promo-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--accent-wash);
    border: 1px solid var(--accent-line); border-radius: var(--radius-md); padding: 10px 14px; margin: 12px 0;
    font-size: 12.5px; color: var(--text);
  }
  .promo-row .promo-row-label { font-weight: 700; color: var(--accent-fg); }
  .promo-row-rate { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .promo-row-rate input { width: 64px; margin-bottom: 0; }
  .promo-row-rate label { margin-bottom: 0; }
  .opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
  .opt-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .opt-tile {
    --tone: var(--accent); --tone-fg: var(--accent-fg); --tone-wash: var(--accent-wash); --tone-line: var(--accent-line);
    display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  }
  .opt-tile.is-ai { --tone: var(--info); --tone-fg: var(--info); --tone-wash: var(--info-wash); --tone-line: color-mix(in srgb, var(--info) 45%, transparent); }
  .opt-tile.is-warn { --tone: var(--warn); --tone-fg: var(--warn); --tone-wash: var(--warn-wash); --tone-line: color-mix(in srgb, var(--warn) 45%, transparent); }
  .opt-tile:has(.opt-head input:checked) { border-color: var(--tone-line); background: var(--tone-wash); }
  .opt-head { display: flex; align-items: center; gap: 10px; }
  .opt-ico {
    width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; background: var(--tone-wash); color: var(--tone-fg);
  }
  .opt-ico svg { width: 16px; height: 16px; stroke: currentColor; }
  label.opt-title { display: block; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--text); cursor: pointer; }
  .opt-head .tswitch { margin: 0 0 0 auto; }
  .opt-badge { align-self: flex-start; flex-shrink: 0; display: inline-flex; align-items: flex-start; gap: 5px; padding: 4px 9px 4px 7px;
    border-radius: var(--radius-sm); font-size: 11.5px; font-weight: 700; line-height: 1.4;
    background: var(--tone-wash); color: var(--tone-fg); border: 1px solid var(--tone-line); }
  .opt-badge svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 2px; }
  .opt-tile .tswitch input:checked + .tslider { background: var(--tone); }
  .opt-desc { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
  .opt-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 2px; font-size: 12px; color: var(--muted); transition: opacity var(--dur-fast) var(--ease); }
  .opt-foot label { margin: 0; font-size: 12px; }
  .opt-foot input { width: 72px; margin: 0; padding: 6px 10px; }
  .opt-tile:has(.opt-head input:not(:checked)) .opt-foot { opacity: .55; }
  .opt-sub { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--muted); cursor: pointer; }
  .opt-tile:has(.opt-head input:not(:checked)) .opt-sub { opacity: .55; }
  .opt-tile .row { margin-top: 2px; }
  .bulk-plan-notice { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 12px 14px;
    border-radius: var(--radius-md); background: var(--warn-wash); color: var(--warn); font-size: 13px; line-height: 1.55; }
  .bulk-plan-notice[hidden] { display: none; }
  .bulk-plan-notice p { margin: 0; font-weight: 600; }
  .bulk-plan-notice .bpn-acts { display: flex; flex-wrap: wrap; gap: 8px; }
  .bulk-plan-notice .bpn-acts button[hidden] { display: none; }
  .opt-tile .row input, .opt-tile .row select { margin-bottom: 0; }
  .opt-pick { display: grid; gap: 4px; margin-top: auto; padding-top: 2px; }
  .opt-pick label { margin: 0; font-size: 12px; }
  .opt-pick select { margin: 0; }
  .opt-pick + .opt-pick { margin-top: 0; padding-top: 6px; }
  .opt-pick-h { display: flex; align-items: center; gap: 6px; }
  .opt-tile:has(.opt-head input:not(:checked)) .opt-pick { opacity: .55; }
  .opt-sub-line { display: flex; align-items: center; gap: 6px; }
  .opt-sub-line .opt-sub { margin-top: 0; }
  .opt-tile.is-wide { grid-column: span 2; }
  @media (max-width: 1100px) { .opt-grid, .opt-grid.is-two { grid-template-columns: minmax(0, 1fr); } .opt-tile.is-wide { grid-column: auto; } }
  .listing-filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
  .listing-filter-bar select, .listing-filter-bar input { width: auto; margin: 0; }
  #orders-amazon-select { max-width: 220px; }
  .search-input-wrap { position: relative; flex: 1; min-width: 200px; }
  .search-input-wrap input { padding-left: 30px; width: 100%; }
  .search-input-wrap .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
  .search-input-wrap .search-icon svg { width: 14px; height: 14px; stroke: currentColor; }
  .search-input-wrap .search-icon-btn { pointer-events: auto; background: none; border: 0; padding: 0; cursor: pointer; }
  .search-input-wrap .search-icon-btn:hover { color: var(--text); }
  .filter-toggle-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12.5px; color: var(--muted); }
  .view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
  .view-toggle-btn { background: var(--panel); border: none; padding: 7px 10px; cursor: pointer; color: var(--muted); display: flex; align-items: center; }
  .view-toggle-btn + .view-toggle-btn { border-left: 1px solid var(--border); }
  .view-toggle-btn svg { width: 15px; height: 15px; stroke: currentColor; }
  .view-toggle-btn.active { background: var(--panel-2); color: var(--text); }
  .view-toggle-btn:hover:not(.active) { color: var(--text); }
  .img-zoom-preview {
    display: none; position: fixed; z-index: 9999; pointer-events: none;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop); padding: 8px;
  }
  .img-zoom-preview img { display: block; width: 140px; height: 140px; border-radius: 6px; object-fit: contain; }
  .adv-filters { display: none; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 14px; }
  .adv-filters.open { display: block; }
  .adv-filters-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .adv-filters-row:last-child { margin-bottom: 0; }
  .adv-filters-row > div { flex: 1; min-width: 140px; }
  .listing-grid-head { padding: 2px 2px 14px; }
  .listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  @media (max-width: 1500px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 860px) { .listing-grid { grid-template-columns: 1fr; } }
  .listing-card {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; transition: border-color .12s, box-shadow .12s;
  }
  .listing-card:hover { border-color: var(--muted-2); box-shadow: var(--shadow-pop); }
  .lc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 0 14px; }
  .lc-top-right { display: flex; align-items: center; gap: 6px; }
  .lc-body { display: flex; gap: 16px; padding: 12px 16px 14px; }
  .lc-thumb {
    width: 140px; height: 140px; border-radius: var(--radius-md); background: var(--panel-2);
    flex-shrink: 0; overflow: hidden; display: block;
  }
  .lc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .lc-info { min-width: 0; flex: 1; }
  .lc-title {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.45; margin-bottom: 8px;
  }
  .lc-title:hover { text-decoration: underline; }
  a.listing-edit-btn { cursor: pointer; }
  .lc-meta-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
  .id-chip-group {
    display: inline-flex; align-items: center; background: var(--panel-2);
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    position: relative; max-width: 100%; transition: border-color .12s;
  }
  .id-chip-text {
    display: inline-flex; align-items: center; padding: 6px 6px 6px 14px;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    text-decoration: none; max-width: 100%; transition: background-color .12s;
  }
  .id-chip-text:hover { background: var(--panel-3); }
  .id-chip-text .mono { color: var(--text); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 92px; }
  .id-chip-icon-btn {
    display: inline-flex; align-items: center; gap: 6px; background: none;
    border: none; border-left: 1px solid var(--border); padding: 6px 12px 6px 10px;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    cursor: pointer; flex-shrink: 0; transition: background-color .12s;
  }
  .id-chip-icon-btn:hover { background: var(--panel-3); }
  .id-chip-icon-btn:has(+ .row-menu.open) { background: var(--panel-3); }
  .id-chip-group:has(.id-chip-icon-btn:has(+ .row-menu.open)) { border-color: var(--text); }
  .id-chip-brand { font-weight: 800; font-size: 12.5px; letter-spacing: -.01em; flex-shrink: 0; }
  .id-chip-brand.amazon { color: #131921; display: inline-flex; align-items: center; }
  html[data-theme="dark"] .id-chip-brand.amazon { color: #E9EBF3; }
  .id-chip-amazon-icon { height: 14px; width: auto; display: block; }
  .id-chip-brand.ebay { display: inline-flex; align-items: center; }
  .id-chip-brand.ebay .ebay-logo { height: 11px; width: auto; display: block; }
  .id-chip-flag { font-size: 11px; line-height: 1; flex-shrink: 0; border-radius: 2.5px; overflow: hidden; display: block; }
  .lc-checked { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
  .lc-checked svg { width: 11px; height: 11px; stroke: currentColor; flex-shrink: 0; }
  .lc-bridge {
    display: flex; align-items: center; padding: 12px 14px; margin: 0 16px 12px; gap: 4px;
    background: var(--panel-2); border-radius: var(--radius-md);
  }
  .lc-price { flex: 1 1 0; min-width: 0; text-align: center; }
  .lc-price-label {
    display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 700; margin-bottom: 3px;
  }
  .lc-price-val { font-variant-numeric: tabular-nums; font-size: 14.5px; font-weight: 700; color: var(--text); }
  .lc-price-val.dim { color: var(--muted); font-size: 12.5px; }
  .lc-bridge-mid { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 4px; }
  .lc-bridge-mid svg { width: 22px; height: 12px; stroke: var(--muted-2); }
  .lc-margin { font-size: 10px; font-weight: 700; color: var(--ok); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .lc-margin.lc-margin-neg { color: var(--danger); }
  .pt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
  .pt-head h2 { margin: 0; }
  .pt-head span { font-size: 12px; color: var(--muted); }
  .pt-table { font-size: 13.5px; font-variant-numeric: tabular-nums; }
  .pt-table th, .pt-table td { padding: 11px 16px; white-space: nowrap; }
  .pt-table thead th {
    position: sticky; top: calc(70px + var(--shell-top, 0px)); z-index: 1; background: var(--panel);
    font-size: 11px; letter-spacing: .05em; padding-top: 12px; padding-bottom: 10px;
  }
  .pt-table .num { text-align: right; }
  .pt-table tbody tr.pt-day:hover td { background: var(--panel-2); }
  .pt-table td { border-bottom-color: var(--border-soft); color: var(--text); }
  .pt-date { display: inline-flex; gap: 10px; align-items: baseline; }
  .pt-date .wd { width: 30px; color: var(--muted); font-size: 12px; }
  .pt-date .pt-tag { font-size: 11px; color: var(--accent-fg); background: var(--accent-wash); border-radius: var(--radius-pill); padding: 1px 7px; }
  .pt-table .pt-cost { color: var(--muted); }
  .pt-table .pt-profit { font-weight: 600; color: var(--ok); }
  .pt-table .pt-profit.neg { color: var(--danger); }
  .pt-table .pt-margin { color: var(--muted); width: 64px; }
  .pt-table .pt-margin.neg { color: var(--danger); }
  .pt-bar-cell { width: 22%; min-width: 90px; padding-left: 4px !important; }
  .pt-bar { height: 6px; border-radius: var(--radius-pill); background: var(--panel-3); overflow: hidden; }
  .pt-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); opacity: .85; }
  .pt-bar i.neg { background: var(--danger); }
  .pt-note { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
  .pt-table tr.pt-empty td { color: var(--muted-2); }
  .pt-table tr.pt-empty .pt-date .wd { color: var(--muted-2); }
  .pt-table tr.pt-week td {
    background: var(--panel-2); color: var(--muted); font-size: 12px;
    padding-top: 7px; padding-bottom: 7px; border-bottom-color: var(--border);
  }
  .pt-table tr.pt-week b { color: var(--text); font-weight: 600; }
  .pt-table tfoot td {
    border-top: 2px solid var(--border); border-bottom: 0; font-weight: 700; padding-top: 14px;
  }
  @media (max-width: 760px) {
    .pt-scroll { overflow-x: auto; }
    .pt-table thead th { position: static; }
    .pt-bar-cell { display: none; }
    .pt-table th, .pt-table td { padding: 10px 10px; }
  }
  .lc-footer {
    padding: 10px 16px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--border-soft);
    display: flex; justify-content: space-between; gap: 8px; align-items: center;
  }
  .lc-footer-stats { display: flex; gap: 12px; }
  .lc-footer-stats b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
  .ld-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
  .ld-row:last-child { border-bottom: none; }
  .ld-row input { margin: 0; flex: 1; min-width: 0; }
  .ld-img-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--panel-2); flex-shrink: 0; }
  .ld-row .gear-btn { flex-shrink: 0; }
  .row-menu-wrap { position: relative; text-align: right; }
  .gear-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px 6px; border-radius: var(--radius-sm); }
  .gear-btn:hover { background: var(--panel-2); color: var(--text); }
  .row-menu {
    display: none; position: absolute; right: 0; top: 100%; margin-top: 4px; background: var(--panel-3);
    border: 1px solid var(--border); border-radius: var(--radius-md); min-width: 130px; z-index: 8; overflow: hidden;
    box-shadow: var(--shadow-pop);
  }
  .row-menu.open { display: block; transform-origin: top right; animation: menu-pop var(--dur-fast) var(--ease); }
  .row-menu.pinned { position: fixed; right: auto; margin-top: 0; z-index: 60; }
  @keyframes menu-pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
  .row-menu button, .row-menu a { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); text-decoration: none; padding: 9px 12px; font-size: 12.5px; border-radius: 0; cursor: pointer; }
  .row-menu button:hover, .row-menu a:hover { background: var(--panel-2); }
  .sidebar-account-card {
    background: var(--sb-bg-hover); border: 1px solid var(--sb-border); border-radius: 12px;
    transition: border-color var(--dur-fast) var(--ease);
  }
  .sidebar-account-card:hover { border-color: var(--sb-card-line); }
  .sidebar-account-row { padding: 10px 12px 9px; min-width: 0; }
  .sidebar-account-row #sidebar-email {
    display: block; font-size: 12.5px; font-weight: 500; color: var(--sb-text-active); line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .sidebar-account-actions {
    display: flex; align-items: stretch; gap: 2px; padding: 4px;
    border-top: 1px solid var(--sb-border);
  }
  .sidebar-icon-btn {
    flex: 1; height: 30px; padding: 0; display: grid; place-items: center;
    background: none; border: 1px solid transparent; border-radius: 8px; box-shadow: none;
    color: var(--sb-text); cursor: pointer; text-decoration: none;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  }
  .sidebar-icon-btn svg { width: 16px; height: 16px; stroke: currentColor; }
  .sidebar-icon-btn:hover { background: var(--sb-hover-soft); color: var(--sb-text-active); }
  .sidebar-icon-btn.is-signout:hover { color: var(--sb-danger); }
  .sidebar-icon-btn:focus-visible, .sidebar-plan:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: -2px; }
  .sidebar-plan[hidden] { display: none; }
  .sidebar-plan {
    display: flex; flex-direction: column; gap: 7px; padding: 9px 12px 11px;
    border-top: 1px solid var(--sb-border);
    color: var(--sb-text); text-decoration: none; font-size: 11px;
    transition: background var(--dur-fast) var(--ease);
  }
  .sidebar-plan:hover { background: var(--sb-hover-faint); }
  .sidebar-plan-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .sidebar-plan-pill {
    font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
    color: var(--sb-accent-fg); background: var(--sb-accent-wash); padding: 2px 7px; border-radius: var(--radius-pill);
    white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis;
  }
  .sidebar-plan-usage { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .sidebar-plan-usage b { color: var(--sb-text-active); font-weight: 600; }
  .sidebar-plan-meter { height: 4px; border-radius: var(--radius-pill); background: var(--sb-track); overflow: hidden; }
  .sidebar-plan-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sb-accent); transition: width var(--dur) var(--ease); }
  .sidebar-plan-meter[hidden] { display: none; }
  .sidebar-plan.pb-full .sidebar-plan-meter i { background: var(--sb-warn); }
  .sidebar-plan.pb-full .sidebar-plan-usage b { color: var(--sb-warn); }
  .sidebar-plan-renew { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--sb-text); font-variant-numeric: tabular-nums; }
  .sidebar-plan-renew[hidden] { display: none; }
  .sidebar-plan-renew b { color: var(--sb-text-active); font-weight: 600; }
  .sidebar-plan-renew.is-soon b { color: var(--sb-warn); }
  .sidebar-plan-renew.is-over b { color: var(--sb-danger); }
  .bulk-bar { display: none; align-items: center; gap: 12px; background: var(--panel-3); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 12px; font-size: 12.5px; }
  .bulk-bar.active { display: flex; }
  .pagination {
    --pg-ctl: 28px;
    display: flex; align-items: center; justify-content: flex-end; gap: 14px;
    margin-top: 14px; font-size: 12.5px; color: var(--muted);
  }
  .pagination .pg-size { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
  .pagination .pg-select { position: relative; display: inline-flex; align-items: center; }
  .pagination .pg-select svg {
    position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
    width: 13px; height: 13px; stroke: currentColor; color: var(--muted); pointer-events: none;
  }
  .pagination .pagesize-select {
    width: auto; height: var(--pg-ctl); margin: 0; appearance: none; -webkit-appearance: none;
    padding: 0 24px 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--panel); color: var(--text); font: inherit;
    font-variant-numeric: tabular-nums; cursor: pointer;
    transition: border-color .12s, background-color .12s;
  }
  .pagination .pagesize-select:hover { background: var(--panel-2); }
  .pagination .pg-range { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .pagination .pg-nav { display: inline-flex; }
  .pagination .pg-nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--pg-ctl); height: var(--pg-ctl); padding: 0; margin-left: -1px;
    border: 1px solid var(--border); border-radius: 0; background: var(--panel);
    color: var(--text); box-shadow: none; cursor: pointer;
    transition: background-color .12s, border-color .12s;
  }
  .pagination .pg-nav-btn svg { width: 14px; height: 14px; stroke: currentColor; }
  .pagination .pg-nav-btn:first-child { margin-left: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .pagination .pg-nav-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .pagination .pg-nav-btn:hover:not(:disabled) { background: var(--panel-2); }
  .pagination .pg-nav-btn:disabled { opacity: 1; color: var(--muted-2); background: var(--panel); cursor: default; }
  .checkbox-dropdown { position: relative; display: inline-block; }
  .checkbox-dropdown-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 8px 14px; }
  .checkbox-dropdown-btn::after { content: '▾'; font-size: 10px; }
  .checkbox-dropdown-panel {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 4px; background: var(--panel-3);
    border: 1px solid var(--border); border-radius: var(--radius-md); min-width: 190px; max-height: 230px;
    overflow-y: auto; z-index: 9; padding: 6px; box-shadow: var(--shadow-pop);
  }
  .checkbox-dropdown-panel.open { display: block; transform-origin: top left; animation: menu-pop var(--dur-fast) var(--ease); }
  .checkbox-dropdown-panel label {
    display: flex; align-items: center; gap: 8px; padding: 7px 8px; font-size: 12.5px; cursor: pointer;
    border-radius: var(--radius-sm); margin: 0;
  }
  .checkbox-dropdown-panel label:hover { background: var(--panel-2); }
  .cols-wrap { position: relative; flex: 0 0 auto; }
  .cols-wrap[hidden] { display: none; }
  .cols-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 9px 14px; }
  .cols-btn svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
  .cols-btn.is-custom::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .cols-panel {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 6px; width: 272px; max-width: calc(100vw - 32px);
    max-height: min(70vh, 540px); overflow-y: auto; background: var(--panel-3); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-pop); z-index: 20; padding: 6px; text-align: left;
  }
  .cols-wrap.is-left .cols-panel { right: auto; left: 0; }
  .cols-panel.open { display: block; transform-origin: top right; animation: menu-pop var(--dur-fast) var(--ease); }
  .cols-wrap.is-left .cols-panel.open { transform-origin: top left; }
  .cols-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 8px 8px; }
  .cols-head b { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .cols-panel button.cols-reset {
    background: none; border: none; box-shadow: none; padding: 3px 6px; font-size: 12px; font-weight: 600;
    color: var(--accent-fg); border-radius: var(--radius-sm);
  }
  .cols-panel button.cols-reset:hover { background: var(--panel-2); }
  .cols-row { display: flex; align-items: center; gap: 4px; padding: 3px 2px 3px 0; border-radius: var(--radius-sm); }
  .cols-row:hover { background: var(--panel-2); }
  .cols-row.is-dragging { opacity: .4; }
  .cols-grip { width: 18px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--muted-2); cursor: grab; flex-shrink: 0; }
  .cols-grip svg { width: 10px; height: 14px; fill: currentColor; }
  .cols-row.is-fixed .cols-grip { visibility: hidden; }
  .cols-row label {
    display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; margin: 0; padding: 4px 2px;
    font-size: 12.5px; font-weight: 500; color: var(--text); letter-spacing: 0; cursor: pointer;
  }
  .cols-row.is-fixed label { cursor: default; color: var(--muted); }
  .cols-ad { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .cols-row label:has(input:not(:checked)) .cols-ad { color: var(--muted); }
  .cols-sub { font-size: 11px; color: var(--muted); font-weight: 400; }
  .cols-fixed-note { font-size: 11px; color: var(--muted-2); padding-right: 8px; white-space: nowrap; }
  .cols-panel button.cols-mv {
    background: none; border: none; box-shadow: none; width: 24px; height: 24px; padding: 0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: var(--radius-sm);
  }
  .cols-panel button.cols-mv svg { width: 12px; height: 12px; stroke: currentColor; }
  .cols-panel button.cols-mv:hover:not(:disabled) { background: var(--panel); color: var(--text); }
  .cols-panel button.cols-mv:disabled { opacity: .25; }
  .cols-note { font-size: 11.5px; color: var(--muted); padding: 8px 8px 4px; margin-top: 6px; border-top: 1px solid var(--border); }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  td { padding: 14px 14px; border-bottom: 1px solid var(--border-soft); }
  tr:last-child td { border-bottom: none; }
  td.mono, .mono { font-variant-numeric: tabular-nums; }
  tbody tr:hover { background: var(--panel-2); }
  #orders-table-wrap td { padding: 9px 14px; }
  #listings-table-wrap td { padding: 12px 14px; }
  .status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; }
  .status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
  .status-pill.completed, .status-pill.listed { background: var(--ok-wash); color: var(--ok); }
  .status-pill.failed, .status-pill.publish_failed { background: var(--danger-wash); color: var(--danger); }
  .status-pill.ready, .status-pill.fetching, .status-pill.publishing, .status-pill.pending { background: var(--info-wash); color: var(--info); }
  .status-pill.draft { background: var(--warn-wash); color: var(--warn); }
  .content:has(#order-detail-page.active) { max-width: 1560px; }
  .od-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .od-main, .od-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
  .od-layout .card { margin-bottom: 0; }
  #od-alert:empty { display: none; }
  .od-band { border-radius: var(--radius-md); padding: 14px 18px; font-size: 13px; line-height: 1.55; }
  .od-band.warn { background: var(--warn-wash); color: var(--warn); }
  .od-strip.card { padding: 18px 26px 20px; }
  .od-fulfil-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr) auto; gap: 12px; align-items: end; }
  .od-fulfil-form input, .od-fulfil-form select { margin-bottom: 0; }
  .od-fulfil-form button { white-space: nowrap; }
  .od-fulfil-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
  .od-fulfil-line .mono { font-family: var(--font-mono); font-size: 12.5px; }
  .od-ao-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
  .od-ao-pick select { max-width: 200px; }
  .od-body.card { padding: 6px 26px 18px; display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 0 32px; }
  .od-rows     { grid-column: 1; grid-row: 1; min-width: 0; }
  .od-side-col { grid-column: 2; grid-row: 1; align-self: start; margin-top: 20px; min-width: 0; }
  .od-facts { margin-top: 22px; min-width: 0; }
  .od-facts .od-row { grid-template-columns: minmax(0, 1fr); gap: 4px 0; padding: 11px 0; }
  .od-facts .od-row-k { padding-top: 0; font-size: 10.5px; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
  .od-facts > .od-row { padding-left: 10px; padding-right: 10px; margin-left: -10px; margin-right: -10px; }
  .od-facts > .od-row:hover { background: var(--panel-2); }
  .od-facts > .od-row:hover + .od-row { border-top-color: transparent; }
  .od-photo-img, .od-photo-none {
    width: 100%; height: 320px; border-radius: var(--radius-md);
    border: 1px solid var(--border); background: var(--panel-2); padding: 10px;
    object-fit: contain; display: block;
  }
  .od-photo-none { display: flex; align-items: center; justify-content: center;
    background: var(--panel-3); font-family: var(--font-mono); font-size: 15px; color: var(--muted-2); }
  .od-photo-t { font-size: 13px; line-height: 1.5; margin-top: 14px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .od-photo-m { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
  .od-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 20px;
    align-items: start; padding: 13px 0; border-top: 1px solid var(--border-soft); }
  .od-row:first-child { border-top: none; }
  .od-row.is-tall { padding: 16px 0; }
  .od-row-k { font-size: 12.5px; color: var(--muted); line-height: 1.5; padding-top: 3px; }
  .od-row-v { font-size: 13.5px; line-height: 1.55; min-width: 0; }
  .od-row-v.num { font-variant-numeric: tabular-nums; }
  .od-row-v .mono { font-family: var(--font-mono); font-size: 12.5px; }
  .od-row-c { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 5px; max-width: 56ch; }
  .od-row-c.od-row-ok { color: var(--ok); font-weight: 600; }
  .od-row-c.od-row-ok::before { content: '✓ '; }
  .od-row-c.od-row-bad { color: var(--danger); font-weight: 600; }
  .od-row textarea, .od-row input, .od-row select { margin-bottom: 0; }
  .od-more { font-size: 12px; color: var(--muted); margin-left: 8px; }
  .od-row.is-alarm { background: var(--danger-wash); margin: 0 -26px; padding: 15px 26px; border-top-color: transparent; }
  .od-row.is-alarm + .od-row { border-top-color: transparent; }
  .od-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px;
    border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; line-height: 1; }
  .od-pill svg { width: 15px; height: 15px; stroke-width: 1.9; flex-shrink: 0; }
  .od-pill.is-icon { padding: 6px; gap: 0; }
  .od-pill.is-icon svg { width: 17px; height: 17px; }
  .od-pill.is-ready     { background: var(--panel-2);         color: var(--muted); }
  .od-pill.is-start     { background: var(--info-wash);       color: var(--info); }
  .od-pill.is-done      { background: var(--st-buy-wash);     color: var(--st-buy); }
  .od-pill.is-waiting   { background: var(--st-wait-wash);    color: var(--st-wait); }
  .od-pill.is-obtained  { background: var(--st-transit-wash); color: var(--st-transit); }
  .od-pill.is-delivered { background: var(--ok-wash);         color: var(--ok); }
  .od-pill.is-check     { background: var(--st-check-wash);   color: var(--st-check); }
  .od-pill.is-left      { background: var(--st-manual-wash);  color: var(--st-manual); }
  .od-pill.is-error,
  .od-pill.is-void,
  .od-pill.is-cancel    { background: var(--st-error-wash); color: var(--st-error); }
  .od-status-t { font-size: 13.5px; line-height: 1.6; margin-top: 9px; max-width: 52ch; }
  .ao-stop { margin-top: 12px; max-width: 64ch; display: grid; gap: 9px; }
  .ao-stop-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .ao-stop-t { font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--text); }
  .ao-stop-side { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-pill);
                  background: var(--panel-2); color: var(--muted); white-space: nowrap; }
  .ao-stop-side.is-amazon   { background: var(--warn-wash); color: var(--warn); }
  .ao-stop-side.is-check    { background: var(--st-check-wash); color: var(--st-check); }
  .ao-stop-side.is-account,
  .ao-stop-side.is-settings { background: var(--info-wash); color: var(--info); }
  .ao-stop-q { margin: 0; padding: 9px 12px; border-left: 3px solid var(--warn); background: var(--panel-2);
               border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13px; line-height: 1.55; color: var(--text); }
  .ao-stop-q-by { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
  .ao-stop-why { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text); }
  .ao-stop-fix { font-size: 13.5px; line-height: 1.6; padding: 9px 12px; border: 1px solid var(--border);
                 border-radius: var(--radius-md); background: var(--panel); }
  .ao-stop-k { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase;
               letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
  .ao-stop-bought { font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .ao-stop-bought.is-maybe { color: var(--st-check); }
  .ao-stop-bought.is-yes   { color: var(--ok); }
  .ao-stop-more { font-size: 12.5px; color: var(--muted); width: max-content; max-width: 100%; }
  .ao-stop-more:hover { color: var(--text); }
  .ao-ex { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel); }
  .ao-ex-l { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); }
  .ao-ex-l.is-ok::before { content: '✓ '; color: var(--ok); font-weight: 700; }
  .ao-ex-l.is-bad { color: var(--danger); }
  .ao-ex button { justify-self: start; max-width: 100%; white-space: normal; text-align: left; }
  .ao-ex-s:empty { display: none; }
  .ao-ex-s { margin: 0; font-size: 12.5px; color: var(--muted); }
  .od-val {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 12.5px; line-height: 1.3;
    padding: 4px 9px; border-radius: var(--radius-sm);
    background: var(--panel-2); border: 1px solid var(--border-soft);
    color: var(--text); text-decoration: none; cursor: pointer;
    max-width: 100%; word-break: break-all; text-align: left;
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  }
  .od-val:hover { background: var(--panel-3); border-color: var(--border); }
  .od-val:active { transform: none; }
  .od-val:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 1px; }
  .od-val-i { width: 13px; height: 13px; flex-shrink: 0; opacity: .45; }
  .od-val:hover .od-val-i { opacity: .8; }
  .od-val.is-link:hover { color: var(--accent-fg); }
  .od-row { border-top-color: var(--border-soft); border-radius: var(--radius-sm); }
  .od-rows > .od-row:hover { background: var(--panel-2); }
  .od-rows > .od-row:hover + .od-row { border-top-color: transparent; }
  .od-rows > .od-row { padding-left: 10px; padding-right: 10px; margin-left: -10px; margin-right: -10px; }
  .od-row.is-alarm:hover { background: var(--danger-wash); }
  .od-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .od-acts button { display: inline-flex; align-items: center; gap: 6px; }
  .od-acts button svg { width: 15px; height: 15px; flex-shrink: 0; }
  .od-profit { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
  .od-profit.up { color: var(--ok); }
  .od-profit.down { color: var(--danger); }
  .od-profit.disc { color: var(--disc); }
  .od-disc { color: var(--disc); font-weight: 600; }
  .od-margin { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
  .od-side .card { padding: 20px 22px; }
  #od-address { font-size: 13px; line-height: 1.8; }
  #od-address .nm { font-weight: 600; font-size: 13.5px; }
  .od-side-acts { display: flex; gap: 14px; margin-top: 14px; font-size: 12px; flex-wrap: wrap; }
  #od-flow-card { container-type: inline-size; }
  #od-sum { display: grid; gap: 18px 24px; align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border-soft); }
  @container (min-width: 540px) {
    #od-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @container (min-width: 980px) {
    #od-sum { grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 14px 28px; }
    .od-sum-k.is-rep { display: none; }
  }
  .od-sum-c { min-width: 0; }
  .od-sum-k { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; white-space: nowrap;
    text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
  .od-sum-v { font-size: 13px; line-height: 1.45; min-width: 0; min-height: 26px;
    display: flex; align-items: center; }
  .od-sum-v .od-val { max-width: 100%; word-break: normal; overflow-wrap: break-word; }
  .od-sum-mail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .od-sum-m { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
  .od-sum-s { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
  .od-sum-s .bad { color: var(--danger); font-weight: 600; }
  .od-sum-sep { grid-column: 1 / -1; border-top: 1px solid var(--border-soft); margin: -2px 0; }
  .od-sum-c.is-cancelled .od-sum-v, .od-sum-c.is-cancelled .od-sum-k { opacity: .75; }
  #od-amz-orders { padding: 0 0 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border-soft); }
  .od-amz-tek { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; margin-top: 6px; }
  .od-amz-add { margin-top: 12px; }
  .od-amz-track { margin-top: 10px; max-width: 560px; }
  .od-amz-track input { margin-bottom: 0; }
  .od-fs { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 16px; padding: 11px 0; }
  .od-fs-n { position: relative; display: flex; justify-content: center; }
  .od-fs-n::before { content: ''; position: absolute; left: 50%; margin-left: -1px;
    top: 27px; bottom: -22px; width: 2px; background: var(--border-soft); }
  .od-fs:last-child .od-fs-n::before { display: none; }
  .fs-icon.is-sm { width: 24px; height: 24px; }
  .fs-icon.is-sm svg { width: 14px; height: 14px; }
  .fs-icon.is-next { background: transparent; color: var(--muted-2);
    box-shadow: inset 0 0 0 1.5px var(--border); }
  .fs-icon.is-next svg { opacity: .6; }
  .od-fs.is-now .fs-icon {
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 26%, transparent),
                0 0 0 3px var(--accent-line);
  }
  .od-fs-b { display: grid; grid-template-columns: minmax(120px, 168px) 116px minmax(0, 1fr) auto;
    gap: 0 16px; align-items: start; }
  .od-fs-l { font-size: 13px; font-weight: 600; line-height: 1.5; padding-top: 3px; }
  .od-fs-t { font-size: 12px; color: var(--muted); line-height: 1.5; padding-top: 4px;
    font-variant-numeric: tabular-nums; white-space: nowrap; }
  .od-fs-h { font-size: 12.5px; color: var(--muted); line-height: 1.55; padding-top: 3px; }
  .od-fs.is-next .od-fs-l { font-weight: 500; color: var(--muted); }
  .od-fs.is-next .od-fs-h { color: var(--muted-2); }
  .od-fs.is-msg .od-fs-n { justify-content: flex-start; padding-left: 21px; }
  .od-fs.is-msg .od-fs-n::before { top: 0; }
  .od-fs.is-msg .od-fs-n::after { content: ''; position: absolute; left: 14px; top: 19px;
    width: 8px; height: 2px; background: var(--border-soft); }
  .od-msg-dot { display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    background: var(--panel-2); color: var(--muted);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 22%, transparent); }
  .od-msg-dot svg { width: 11px; height: 11px; stroke-width: 1.8; }
  .od-msg-dot.is-next { background: transparent; color: var(--muted-2);
    box-shadow: inset 0 0 0 1.5px var(--border); }
  .od-msg-dot.is-next svg { opacity: .6; }
  .od-msg-dot.is-bad { background: var(--danger-wash); color: var(--danger); }
  .od-msg-dot.is-fb-positive { background: var(--ok-wash); color: var(--ok); }
  .od-msg-dot.is-fb-negative { background: var(--st-error-wash); color: var(--st-error); }
  .od-msg-dot.is-fb-neutral, .od-msg-dot.is-fb-withdrawn { background: var(--panel-2); color: var(--muted); }
  .od-fs.is-fb .od-fs-h { color: var(--text); }
  .od-fs.is-msg .od-fs-l { font-size: 12.5px; font-weight: 500; }
  .od-fs-h.is-bad { color: var(--danger); }
  @media (max-width: 900px) {
    .od-fs-b { grid-template-columns: minmax(0, 1fr); gap: 3px 0; }
    .od-fs-l, .od-fs-t, .od-fs-h { padding-top: 0; }
    .od-fs-m { padding-top: 7px; }
  }
  .linkish { background: none; border: none; padding: 0; font: inherit; color: var(--muted);
             text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
  .linkish:hover { color: var(--text); background: none; }
  .linkish:disabled { opacity: .45; cursor: default; text-decoration: none; }
  @media (max-width: 1080px) {
    .od-layout { grid-template-columns: 1fr; }
  }
  @media (max-width: 780px) {
    .od-body.card { grid-template-columns: 1fr; padding: 6px 18px 18px; }
    .od-side-col { display: contents; }
    .od-photo { grid-column: 1; grid-row: 1; margin: 18px 0 6px; }
    .od-rows  { grid-column: 1; grid-row: 2; }
    .od-facts { grid-column: 1; grid-row: 3; margin-top: 0; }
    .od-facts .od-row { gap: 5px 0; }
    .od-photo-img, .od-photo-none { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 300px; }
    .od-row { grid-template-columns: 1fr; gap: 5px 0; }
    .od-row-k { padding-top: 0; }
    .od-row.is-alarm { margin: 0 -18px; padding: 14px 18px; }
    .od-tr { grid-template-columns: 1fr; gap: 3px 0; }
    .od-fulfil-form { grid-template-columns: 1fr; }
    .od-strip.card { padding: 16px 18px 18px; }
  }
  .fs-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 26%, transparent);
  }
  .fs-icon svg { width: 20px; height: 20px; stroke-width: 1.9; }
  .fs-icon.is-ready     { background: var(--panel-2);   color: var(--muted); }
  .fs-icon.is-start     { background: var(--info-wash); color: var(--info); }
  .fs-icon.is-error,
  .fs-icon.is-cancel    { background: var(--st-error-wash); color: var(--st-error); }
  .fs-icon.is-done      { background: var(--info-wash); color: var(--info); }
  .fs-icon.is-waiting   { background: var(--st-wait-wash); color: var(--st-wait); }
  .fs-icon.is-check     { background: var(--warn-wash); color: var(--warn); }
  .fs-icon.is-left      { background: var(--panel-2);   color: var(--muted); }
  .fs-icon.is-obtained  { background: var(--ok-wash);   color: var(--ok); }
  .fs-icon.is-delivered { background: var(--ok-wash);   color: var(--ok); }
  .kv-table td { padding: 8px 0; border: none; font-size: 13px; vertical-align: top; }
  .kv-table td:first-child { color: var(--muted); width: 42%; }
  .kv-table td:last-child { font-weight: 600; }
  .kv-table tr:hover { background: none; }
  .az-snap { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
  .az-snap-img { width: 132px; height: 132px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--panel-2); flex-shrink: 0; }
  .az-snap-main { flex: 1; min-width: 260px; }
  .az-snap-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
  .az-snap-price { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
  .az-snap-rating { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
  .az-snap-rating b { color: var(--text); font-weight: 600; }
  .az-snap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin-bottom: 14px; }
  .az-snap-field label { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
  .az-snap-field div { font-size: 13px; font-weight: 600; color: var(--text); }
  @media (max-width: 560px) { .az-snap-grid { grid-template-columns: 1fr; } }
  tr.row-link { cursor: pointer; }
  a.row-link { color: inherit; text-decoration: none; }
  a.row-link:hover .batch-id { text-decoration: underline; }
  .batch-id-link { color: inherit; text-decoration: none; }
  .batch-id-link:hover { color: var(--accent-fg); text-decoration: underline; }
  .status-led { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
  .status-led.ok { background: var(--ok); }
  .status-led.warn { background: var(--led-warn, var(--warn)); }
  .status-led.bad { background: var(--danger); }
  .status-led.pending { background: var(--muted-2); }
  .revision-status-ok { color: var(--ok); font-weight: 700; font-size: 14px; }
  #batch-modal-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 50;
    align-items: flex-start; justify-content: center; padding: 40px 20px; backdrop-filter: blur(3px);
  }
  #batch-modal-overlay.active { display: flex; animation: modal-scrim-in var(--dur) var(--ease); }
  @keyframes modal-scrim-in { from { opacity: 0; } to { opacity: 1; } }
  #batch-modal {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    width: 100%; max-width: 1200px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: var(--shadow-pop);
    animation: modal-pop var(--dur) var(--ease);
  }
  @keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
  .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
  #batch-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 20px 20px; }
  #batch-modal-pagination { flex-shrink: 0; }
  #batch-modal-body thead th {
    position: sticky; top: 0; z-index: 3; background: var(--panel);
    border-bottom: none; box-shadow: inset 0 -1px 0 var(--border);
  }
  #draft-batch-modal-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 50;
    align-items: flex-start; justify-content: center; padding: 40px 20px; backdrop-filter: blur(3px);
  }
  #draft-batch-modal-overlay.active { display: flex; animation: modal-scrim-in var(--dur) var(--ease); }
  #draft-batch-modal {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    width: 100%; max-width: 1200px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: var(--shadow-pop);
    animation: modal-pop var(--dur) var(--ease);
  }
  #draft-batch-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 4px 20px 20px; }
  .drafts-filter-view { display: none; }
  .drafts-filter-view.active { display: block; }
  #bulk-edit-modal-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 50;
    align-items: flex-start; justify-content: center; padding: 40px 20px; backdrop-filter: blur(3px);
  }
  #bulk-edit-modal-overlay.active { display: flex; animation: modal-scrim-in var(--dur) var(--ease); }
  #bulk-edit-modal {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    width: 100%; max-width: 480px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: var(--shadow-pop);
    animation: modal-pop var(--dur) var(--ease);
  }
  #bulk-edit-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 20px 20px; }
  .lock-badge { font-size: 11px; margin-left: 4px; cursor: help; }
  #listing-action-modal-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 50;
    align-items: flex-start; justify-content: center; padding: 40px 20px; backdrop-filter: blur(3px);
  }
  #listing-action-modal-overlay.active { display: flex; animation: modal-scrim-in var(--dur) var(--ease); }
  #listing-action-modal {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    width: 100%; max-width: 640px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: var(--shadow-pop);
    animation: modal-pop var(--dur) var(--ease);
  }
  #listing-action-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 20px 20px; }
  #listing-action-modal-body td.la-title { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .la-spin { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--border); border-top-color: var(--muted-2); animation: la-spin .7s linear infinite; margin-right: 6px; vertical-align: -1px; }
  @keyframes la-spin { to { transform: rotate(360deg); } }
  #dedupe-modal-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 50;
    align-items: flex-start; justify-content: center; padding: 40px 20px; backdrop-filter: blur(3px);
  }
  #dedupe-modal-overlay.active { display: flex; animation: modal-scrim-in var(--dur) var(--ease); }
  #dedupe-modal {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    width: 100%; max-width: 640px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: var(--shadow-pop); animation: modal-pop var(--dur) var(--ease);
  }
  #dedupe-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 20px 20px; }
  .dedupe-foot { flex: 0 0 auto; border-top: 1px solid var(--border); padding: 12px 20px 16px; background: var(--panel); }
  .dd-grp { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
  .dd-grp:first-child { border-top: 0; }
  .dd-img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; border: 1px solid var(--border);
    background: var(--panel-2); flex: 0 0 auto; padding: 2px; }
  .dd-body { min-width: 0; flex: 1 1 auto; }
  .dd-t { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dd-s { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .dd-n { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--warn);
    background: var(--warn-wash); border-radius: var(--radius-pill); padding: 2px 8px; white-space: nowrap; }
  .dd-sum { font-size: 13px; }
  .dd-sum b { font-size: 15px; }
  #revision-history-modal-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 50;
    align-items: flex-start; justify-content: center; padding: 40px 20px; backdrop-filter: blur(3px);
  }
  #revision-history-modal-overlay.active { display: flex; animation: modal-scrim-in var(--dur) var(--ease); }
  #revision-history-modal {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    width: 100%; max-width: 1100px; max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: var(--shadow-pop);
    animation: modal-pop var(--dur) var(--ease);
  }
  #revision-history-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 20px 20px; }
  #revision-history-modal-pagination { flex-shrink: 0; }
  #revision-history-modal-body thead th {
    position: sticky; top: 0; z-index: 3; background: var(--panel);
    border-bottom: none; box-shadow: inset 0 -1px 0 var(--border);
  }
  #publish-result-modal-overlay {
    display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 50;
    align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px);
  }
  #publish-result-modal-overlay.active { display: flex; animation: modal-scrim-in var(--dur) var(--ease); }
  #publish-result-modal {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
    width: 100%; max-width: 380px; overflow: hidden; box-shadow: var(--shadow-pop);
    animation: modal-pop var(--dur) var(--ease);
  }
  .pr-bar { height: 4px; }
  .pr-bar.ok { background: var(--ok); }
  .pr-bar.bad { background: var(--danger); }
  .pr-body { padding: 30px 26px 24px; text-align: center; }
  .pr-icon-circle {
    width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    animation: pr-pop .35s var(--ease) both;
  }
  @keyframes pr-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .pr-icon-circle.ok { background: var(--ok-wash); color: var(--ok); }
  .pr-icon-circle.bad { background: var(--danger-wash); color: var(--danger); }
  .pr-headline { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
  .pr-subtitle {
    margin: 0 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pr-meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
  .pr-price-pill { background: var(--ok-wash); color: var(--ok); font-weight: 700; font-size: 13px; padding: 5px 13px; border-radius: var(--radius-pill); }
  .pr-item-id { font-size: 11.5px; color: var(--muted-2); font-family: var(--font-mono); }
  #publish-result-error {
    margin: 0 0 20px; padding: 12px 14px; background: var(--danger-wash); border: 1px solid var(--danger);
    border-radius: var(--radius-md); color: var(--danger); font-size: 13px; text-align: left; line-height: 1.5;
  }
  .pr-actions { display: flex; flex-direction: column; gap: 8px; }
  #publish-result-view-link {
    display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
    padding: 11px 18px; border-radius: var(--radius-md); border: 1px solid transparent; background: var(--accent);
    color: var(--accent-ink); font-weight: 600; font-size: 13.5px; box-shadow: var(--glow);
  }
  #publish-result-view-link:hover { background: var(--accent-strong); }
  .subtabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .subtabs { scrollbar-width: none; -ms-overflow-style: none; }
  .subtabs::-webkit-scrollbar { display: none; }
  .subtab { display: block; text-decoration: none; padding: 10px 4px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; margin-right: 24px; white-space: nowrap; }
  .subtab:hover { color: var(--text); }
  .subtab.active { color: var(--text); border-bottom-color: var(--accent); border-bottom-width: 2.5px; }
  #messages-page.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  #messages-page .breadcrumb { flex-shrink: 0; }
  .mbx {
    flex: 1; min-height: 0; display: grid;
    grid-template-columns: 244px minmax(330px, 430px) minmax(0, 1fr);
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
  }
  .mbx-rail {
    display: flex; flex-direction: column; gap: 2px; min-height: 0;
    padding: 14px 10px; background: var(--panel-2);
    border-right: 1px solid var(--border); overflow-y: auto;
  }
  .mbx-rail-head {
    display: flex; align-items: center; gap: 8px; padding: 2px 9px 9px;
    font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2);
  }
  .mbx-folder {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    padding: 9px 11px; border-radius: var(--radius-sm); border: 1px solid transparent;
    background: transparent; box-shadow: none; color: var(--muted);
    font-size: 13.5px; font-weight: 600; cursor: pointer;
  }
  .mbx-folder:hover { background: var(--panel-3); color: var(--text); }
  .mbx-folder.active { background: var(--panel); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-pop); }
  .mbx-folder svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mbx-folder .mbx-fname { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
  .mbx-fc {
    display: none; margin-left: auto; flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--danger); color: var(--danger-ink);
    font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
    align-items: center; justify-content: center;
  }
  .mbx-fc.on { display: inline-flex; }
  .mbx-fc.warn { background: var(--warn); color: var(--panel); }
  .mbx-rail-foot { margin-top: auto; padding: 14px 11px 2px; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
  .mbx-rail-foot b { color: var(--muted); font-weight: 600; }
  .mbx-listpane { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--border); }
  .mbx-search { position: relative; padding: 12px 12px 9px; flex-shrink: 0; }
  .mbx-search input {
    margin: 0; padding: 10px 32px 10px 36px; border-radius: var(--radius-pill);
    background: var(--panel-2); border-color: transparent; font-size: 13px;
  }
  .mbx-search input:focus { background: var(--bg); }
  .mbx-search .mbx-search-icon {
    position: absolute; left: 24px; top: 50%; transform: translateY(-50%); pointer-events: none;
    width: 15px; height: 15px; stroke: var(--muted-2); fill: none; stroke-width: 1.8; stroke-linecap: round;
  }
  .mbx-search-clear {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; box-shadow: none; color: var(--muted-2);
    font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 50%; cursor: pointer; display: none;
  }
  .mbx-search-clear:hover { background: var(--panel-3); color: var(--text); }
  .mbx-search.has-q .mbx-search-clear { display: block; }
  .mbx-bar {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    padding: 0 16px 10px; min-height: 30px; font-size: 12px; color: var(--muted);
  }
  .mbx-bar input[type="checkbox"]:indeterminate { background: var(--accent); border-color: var(--accent); }
  .mbx-bar input[type="checkbox"]:indeterminate::after {
    content: ''; position: absolute; left: 2.5px; top: 5.5px; width: 9px; height: 3px;
    background: var(--accent-ink); border: 0; border-radius: 1px; transform: none;
  }
  .mbx-bar-count { font-weight: 600; }
  .mbx-bar-tools { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .mbx-tool {
    background: transparent; border: 1px solid var(--border); box-shadow: none; color: var(--muted);
    padding: 4px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; cursor: pointer;
  }
  .mbx-tool:hover { background: var(--panel-2); color: var(--text); border-color: var(--muted-2); }
  .mbx-tool.danger-tool:hover { background: var(--danger-wash); color: var(--danger); border-color: var(--danger-line); }
  .mbx-list { flex: 1; min-height: 0; overflow-y: auto; }
  .mbx-list .empty-state { padding: 34px 18px; }
  .mbx-skel { padding: 12px 14px; }
  .mbx-foot { flex-shrink: 0; border-top: 1px solid var(--border); padding: 8px 14px; }
  .mbx-foot .pagination { --pg-ctl: 26px; margin-top: 0; gap: 12px; font-size: 11.5px; }
  .mbx-row {
    display: grid; grid-template-columns: auto 60px minmax(0, 1fr); gap: 13px;
    padding: 13px 16px; border-bottom: 1px solid var(--border-soft);
    text-decoration: none; color: inherit; cursor: pointer; position: relative;
  }
  .mbx-row:hover { background: var(--panel-2); }
  .mbx-divider {
    padding: 9px 16px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted-2); background: var(--panel-2); border-bottom: 1px solid var(--border-soft);
  }
  .mbx-row.active { background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }
  .mbx-row.selected { background: var(--info-wash); }
  .mbx-row-check { display: flex; align-items: flex-start; padding-top: 4px; }
  .mbx-row-check input { margin: 0; }
  .mbx-thumb { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
  .mbx-thumb img {
    width: 60px; height: 60px; object-fit: contain; border-radius: 10px;
    border: 1px solid var(--border); background: #fff; display: block;
  }
  .mbx-thumb.is-blank {
    border: 1px dashed var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: var(--muted-2); background: var(--panel-2);
  }
  .mbx-thumb.is-blank svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.5; }
  .mbx-ava {
    position: absolute; right: -5px; bottom: -5px; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff; border: 2px solid var(--panel); box-sizing: content-box;
  }
  .mbx-row:hover .mbx-ava { border-color: var(--panel-2); }
  .mbx-main { min-width: 0; display: grid; gap: 4px; align-content: start; }
  .mbx-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .mbx-who { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbx-when { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
  .mbx-item {
    font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--text); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .mbx-item:hover { color: var(--accent-fg); text-decoration: underline; }
  .mbx-snip { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
  .mbx-snip .mbx-snip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbx-you { flex-shrink: 0; font-weight: 700; color: var(--muted-2); }
  .mbx-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
  .mbx-tag {
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
    background: var(--panel-3); color: var(--muted); white-space: nowrap;
  }
  .mbx-tag.count { font-variant-numeric: tabular-nums; }
  .mbx-tag.clip { display: inline-flex; align-items: center; gap: 3px; }
  .mbx-tag.clip svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .mbx-waited { font-variant-numeric: tabular-nums; background: var(--panel-3); color: var(--muted); }
  .mbx-waited.warn { background: var(--warn-wash); color: var(--warn); }
  .mbx-waited.danger { background: var(--danger-wash); color: var(--danger); }
  .mbx-await {
    justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 1px;
    padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700;
    background: var(--warn-wash); color: var(--warn); font-variant-numeric: tabular-nums;
  }
  .mbx-await.danger { background: var(--danger-wash); color: var(--danger); }
  .mbx-await svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
  .mbx-thumb.is-ebay {
    border: 1px solid var(--border); border-radius: 10px; background: #fff;
    display: flex; align-items: center; justify-content: center;
  }
  .mbx-thumb.is-ebay > .ebay-logo { width: 72%; height: auto; }
  .mbx-ava.is-ebay { background: #fff; }
  .mbx-ava.is-ebay .ebay-logo { width: 17px; height: auto; display: block; }
  .mbx-row.unread .mbx-who { font-weight: 700; }
  .mbx-row.unread .mbx-item { font-weight: 600; }
  .mbx-row.unread::after {
    content: ''; position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  }
  .mbx-row.active.unread::after { display: none; }
  .mbx-read { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); }
  .mbx-read-rest { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .mbx-read-head { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
  .mbx-read-head .mbx-thumb, .mbx-read-head .mbx-thumb img { width: 50px; height: 50px; }
  .mbx-read-who { min-width: 0; flex: 1; }
  .mbx-read-title {
    font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .mbx-read-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
  .mbx-read-sub .sep { color: var(--muted-2); }
  .mbx-read-sub b { color: var(--text); font-weight: 600; }
  .mbx-read-ids { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
  .id-chip-brand.order { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text); }
  .id-chip-brand.order svg { width: 15px; height: 15px; display: block; flex-shrink: 0; }
  .id-chip-group[data-kind="order"] .id-chip-text { min-width: 0; }
  .id-chip-group[data-kind="order"] .id-chip-text .mono { max-width: none; min-width: 0; }
  .mbx-read-more { font-size: 12px; font-weight: 600; color: var(--muted); cursor: default; }
  .mbx-read-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .mbx-back {
    display: none; background: transparent; border: 1px solid var(--border); box-shadow: none;
    color: var(--muted); padding: 5px 10px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1; cursor: pointer;
  }
  .mbx-back:hover { background: var(--panel-2); color: var(--text); }
  .mbx-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 20px 8px; background: var(--panel-2); }
  .mbx-day { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
  .mbx-day::before, .mbx-day::after { content: ''; height: 1px; flex: 1; background: var(--border); }
  .mbx-msg { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 16px; }
  .mbx-msg.mine { flex-direction: row-reverse; }
  .mbx-msg-ava { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
  .mbx-bubble {
    max-width: min(74%, 640px); padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .mbx-msg.theirs .mbx-bubble { background: var(--panel); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
  .mbx-msg.mine .mbx-bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; }
  .mbx-bubble .mbx-text { white-space: pre-wrap; }
  .mbx-bubble .mbx-when-in { font-size: 10.5px; opacity: .72; margin-top: 6px; }
  .mbx-photos { display: flex; flex-wrap: wrap; gap: 6px; }
  .mbx-photos + .mbx-text { margin-top: 7px; }
  .mbx-photos img { max-width: 190px; max-height: 190px; border-radius: 9px; border: 1px solid var(--border); object-fit: cover; display: block; }
  .mbx-composer { flex-shrink: 0; border-top: 1px solid var(--border); background: var(--panel); padding: 14px 18px 16px; max-height: 62%; overflow-y: auto; }
  .mbx-composer textarea { margin: 0; min-height: 104px; resize: vertical; font-size: 13.5px; line-height: 1.7; padding: 11px 13px; }
  .mbx-composer-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
  .mbx-composer .fine-print { margin-top: 8px; }
  .slash-menu { position: fixed; z-index: 60; background: var(--panel-3); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); max-height: 300px; overflow-y: auto; padding: 4px; transform-origin: bottom left; animation: menu-pop var(--dur-fast) var(--ease); }
  .slash-menu-head { padding: 6px 10px 4px; font-size: 11px; color: var(--muted); }
  .slash-menu-item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; width: 100%; text-align: left; background: none; border: none; box-shadow: none; color: var(--text); padding: 7px 10px; font-size: 13px; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; }
  .slash-menu-item:hover { background: var(--panel-2); }
  .slash-menu-item:active { transform: none; }
  .slash-menu-item[aria-selected="true"] { background: var(--accent-wash); }
  .slash-menu-cmd { font-family: var(--font-mono); font-size: 12.5px; color: var(--info); min-width: 76px; }
  .slash-menu-cmd.none { color: var(--muted); font-family: inherit; font-size: 11.5px; font-weight: 400; }
  .slash-menu-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .slash-menu-peek { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 400; color: var(--muted); }
  .slash-menu-empty { padding: 8px 10px 10px; font-size: 12.5px; color: var(--muted); }
  .odp {
    position: fixed; top: var(--shell-top, 0px); right: 0; bottom: 0; z-index: 45;
    width: 440px; max-width: 100vw; display: flex; flex-direction: column;
    background: var(--panel); border-left: 1px solid var(--border);
    box-shadow: -14px 0 36px rgba(23,27,42,.12);
    visibility: hidden; transform: translateX(104%);
    transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .odp.is-open { visibility: visible; transform: none; transition: transform var(--dur) var(--ease), visibility 0s; }
  @media (prefers-reduced-motion: reduce) { .odp, .odp.is-open { transition: none; } }
  @media (max-width: 720px) { .odp { width: 100vw; border-left: none; } }
  .odp-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; flex-shrink: 0; }
  .odp-ava { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center;
    justify-content: center; color: #fff; font-size: 15px; font-weight: 700; }
  .odp-who { min-width: 0; flex: 1; }
  .odp-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .odp-user { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
  .odp-user > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .odp-x { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 50%; box-shadow: none; align-self: flex-start; }
  .odp-x:hover { background: var(--panel-2); color: var(--text); }
  .odp-x svg { width: 16px; height: 16px; stroke-width: 1.9; }
  .odp-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
  .odp-tab { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; border-bottom: 2px solid transparent;
    border-radius: 0; box-shadow: none; margin-bottom: -1px; padding: 9px 8px 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
  .odp-tab:hover { background: none; color: var(--text); }
  .odp-tab:active { transform: none; }
  .odp-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
  .odp-tab svg { width: 15px; height: 15px; }
  .odp-tab-n { font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: var(--radius-pill); background: var(--panel-2); color: var(--muted); }
  .odp-tab[aria-selected="true"] .odp-tab-n { background: var(--accent-wash); color: var(--accent-fg); }
  .odp-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .odp-item { display: flex; align-items: center; gap: 11px; padding: 11px 18px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0; }
  .odp-thumb { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2);
    object-fit: contain; padding: 2px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
  .odp-thumb svg { width: 18px; height: 18px; }
  .odp-item-b { min-width: 0; flex: 1; }
  .odp-item-t { font-size: 12.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .odp-item-m { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
  .odp-pick { display: flex; gap: 6px; flex-shrink: 0; }
  .odp-pick button { width: 32px; height: 32px; padding: 2px; border-radius: 7px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
    background: var(--panel-2); border: 1px solid var(--border); box-shadow: none; color: var(--muted); font-size: 12px; font-weight: 700; }
  .odp-pick button:hover { background: var(--panel-2); border-color: var(--muted-2); }
  .odp-pick button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); color: var(--text); }
  .odp-pick img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
  .odp .mbx-thread { padding: 16px 16px 6px; }
  .odp-empty { margin: auto; max-width: 300px; text-align: center; padding: 28px 10px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
  .odp-empty-i { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
    background: var(--panel); border: 1px solid var(--border); color: var(--muted); }
  .odp-empty-i svg { width: 20px; height: 20px; }
  .odp-empty b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 4px; }
  .odp-composer { flex-shrink: 0; border-top: 1px solid var(--border); background: var(--panel); padding: 12px 16px 14px; max-height: 62%; overflow-y: auto; }
  .odp-send-row .odp-status .linkish { font-size: 12px; margin-left: 4px; }
  .odp-composer textarea { margin: 0; min-height: 96px; max-height: 42vh; resize: none; font-size: 13.5px; line-height: 1.6; padding: 10px 12px; display: block; }
  .odp-send-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
  .odp-send-row .odp-status { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
  .odp-send-row button { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
  .odp-send-row button svg { width: 15px; height: 15px; }
  .odp-fine { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
  .odp-ai-line { display: grid; gap: 3px; margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.5; }
  .odp-ai-line[hidden] { display: none; }
  .odp-ai-line .linkish { font-size: 12px; margin-left: 4px; }
  .odp-fine a { color: inherit; }
  .odp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 16px; flex-shrink: 0; border-bottom: 1px solid var(--border-soft); }
  .odp-stat { background: var(--panel-2); border-radius: var(--radius-md); padding: 10px 12px; min-width: 0; }
  .odp-stat-k { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
  .odp-stat-v { font-size: 16px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .odp-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 8px 14px; }
  .odp-note { font-size: 12px; color: var(--muted); padding: 6px 10px 10px; line-height: 1.5; }
  .odp-ord { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px;
    border-radius: var(--radius-md); border: 1px solid transparent; color: inherit; text-decoration: none; }
  a.odp-ord:hover { background: var(--panel-2); }
  .odp-ord.is-current { background: var(--accent-wash); border-color: var(--accent-line); }
  .odp-ord .odp-thumb { width: 52px; height: 52px; border-radius: 9px; padding: 3px; }
  .odp-ord-t { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .odp-ord-m { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
  .odp-this { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-fg); margin-top: 4px; }
  .odp-ord-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .odp-ord-p { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .odp-st { font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
  .odp-st.is-ok { background: var(--ok-wash); color: var(--ok); }
  .odp-st.is-transit { background: var(--st-transit-wash); color: var(--st-transit); }
  .odp-st.is-wait { background: var(--panel-2); color: var(--muted); }
  .odp-st.is-warn { background: var(--warn-wash); color: var(--warn); }
  .odp-st.is-bad { background: var(--danger-wash); color: var(--danger); }
  .odp-foot { flex-shrink: 0; border-top: 1px solid var(--border); padding: 12px 16px; display: flex; justify-content: flex-end; }
  .odp-foot button { display: inline-flex; align-items: center; gap: 7px; }
  .odp-foot button svg { width: 15px; height: 15px; }
  .odp-skel { padding: 16px; }
  @media (min-width: 721px) { html:has(#odp.is-open) #toast-stack { right: 460px; max-width: calc(100vw - 480px); } }
  @media (max-width: 720px) { html:has(#odp.is-open) #toast-stack { bottom: auto; top: calc(var(--shell-top, 0px) + 12px); } }
  .rb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: var(--radius-pill);
    background: var(--info-wash); color: var(--info); border: 1px solid transparent; box-shadow: none; font-size: 12px; font-weight: 600; line-height: 1; }
  .rb-chip:hover { background: var(--info-wash); border-color: currentColor; }
  .rb-chip svg { width: 14px; height: 14px; stroke-width: 1.9; }
  span.rb-chip { padding: 3px 8px 3px 6px; font-size: 11px; cursor: default; }
  span.rb-chip:hover { border-color: transparent; }
  span.rb-chip svg { width: 12px; height: 12px; }
  .od-head-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .od-head-acts:empty { display: none; }
  .od-head-acts button.secondary { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; }
  .od-head-acts button svg { width: 15px; height: 15px; }
  .ord-buyer-n { display: flex; align-items: center; gap: 5px; }
  .ord-buyer-n > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ord-rb { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; padding: 2px 6px 2px 4px; border-radius: var(--radius-pill);
    background: var(--info-wash); color: var(--info); border: 1px solid transparent; box-shadow: none; font-size: 10.5px; font-weight: 700; line-height: 1.2; }
  .ord-rb:hover { background: var(--info-wash); border-color: currentColor; }
  .ord-rb svg { width: 11px; height: 11px; stroke-width: 2; }
  .tpl-cmd { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--panel-2); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11.5px; color: var(--info); vertical-align: 1px; }
  .tpl-shortcut-field { display: flex; align-items: stretch; max-width: 260px; }
  .tpl-shortcut-field span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-right: none; border-radius: var(--radius-md) 0 0 var(--radius-md); background: var(--panel-2); color: var(--muted); font-family: var(--font-mono); }
  .tpl-shortcut-field input { margin: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-mono); }
  .mbx-notice-frame { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: #fff; }
  .mbx-notice-foot { flex-shrink: 0; padding: 11px 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); background: var(--panel); }
  .mbx-read-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px; text-align: center; color: var(--muted); }
  .mbx-read-empty svg { width: 104px; height: 104px; margin-bottom: 6px; }
  .mbx-read-empty b { font-size: 15px; color: var(--text); font-weight: 600; }
  .mbx-read-empty p { max-width: 320px; margin: 0; font-size: 13px; line-height: 1.65; }
  @media (max-width: 1240px) { .mbx { grid-template-columns: 212px minmax(300px, 360px) minmax(0, 1fr); } }
  @media (max-width: 1000px) {
    .content:has(#messages-page.active) { padding: 12px 14px 16px; }
    .mbx { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .mbx-rail { flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; }
    .mbx-rail-head, .mbx-rail-foot { display: none; }
    .mbx-rail { scrollbar-width: none; -ms-overflow-style: none; }
    .mbx-rail::-webkit-scrollbar { display: none; }
    .mbx-rail nav { display: flex; align-items: center; gap: 4px; }
    .mbx-rail nav + nav { margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--border); }
    .mbx-folder { width: auto; flex-shrink: 0; }
    .mbx-folder .mbx-fname { white-space: nowrap; }
    .mbx-listpane { border-right: 0; }
    .mbx-back { display: inline-flex; }
    .mbx[data-view="list"] .mbx-read { display: none; }
    .mbx[data-view="thread"] .mbx-listpane { display: none; }
    .mbx[data-view="thread"] .mbx-rail { display: none; }
    .mbx-bubble { max-width: 86%; }
  }
  .content:has(#returns-page.active) { max-width: 1500px; }
  .nav-item .nav-count {
    margin-left: auto; flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--danger); color: var(--danger-ink);
    font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .nav-item .nav-count[hidden] { display: none; }
  #returns-page .subtabs, #orders-page .subtabs { margin-bottom: 14px; }
  .rtn-tab-n {
    display: inline-flex; align-items: center; justify-content: center; margin-left: 6px;
    min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; vertical-align: 1px;
    font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
    background: var(--panel-3); color: var(--muted);
  }
  .rtn-tab-n.is-due { background: var(--danger); color: var(--danger-ink); }
  .rtn-tab-n:empty { display: none; }
  .rtn-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
  .rtn-filters select { width: auto; margin: 0; }
  .rtn-filters .search-input-wrap { max-width: 440px; }
  .rtn-filters .search-input-wrap input { margin: 0; }
  .rtn-sync { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .rtn-refresh { display: inline-flex; align-items: center; justify-content: center; padding: 6px 8px; }
  .rtn-refresh svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .rtn-refresh.is-busy svg { animation: rtn-spin .9s linear infinite; }
  @keyframes rtn-spin { to { transform: rotate(360deg); } }
  .rtn-band {
    display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px;
    border-radius: var(--radius-md); background: var(--warn-wash); color: var(--warn); font-size: 13px; line-height: 1.5;
  }
  .rtn-band a { color: inherit; font-weight: 700; white-space: nowrap; }
  .rtn-band[hidden] { display: none; }
  .rtn { display: grid; grid-template-columns: minmax(330px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
  .rtn-listpane { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
  .rtn-list { min-height: 120px; }
  .rtn-list .empty-state { padding: 34px 18px; }
  .rtn-skel { padding: 12px 14px; }
  .rtn-foot { border-top: 1px solid var(--border); padding: 8px 14px; }
  .rtn-foot .pagination { --pg-ctl: 26px; margin-top: 0; gap: 12px; font-size: 11.5px; }
  .rtn-foot:has(.pagination:empty) { display: none; }
  .rtn-card {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 13px; padding: 13px 16px;
    border-bottom: 1px solid var(--border-soft); text-decoration: none; color: inherit;
  }
  .rtn-card:last-child { border-bottom: 0; }
  .rtn-card:hover { background: var(--panel-2); }
  .rtn-card.active { background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }
  .rtn-thumb {
    width: 64px; height: 64px; flex-shrink: 0; overflow: hidden; border-radius: 10px;
    border: 1px solid var(--border); background: var(--panel); display: flex; align-items: center; justify-content: center;
  }
  .rtn-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .rtn-thumb.is-blank { border-style: dashed; background: var(--panel-2); color: var(--muted-2); }
  .rtn-thumb.is-blank svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .rtn-main { min-width: 0; display: grid; gap: 4px; align-content: start; }
  .rtn-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .rtn-kind {
    flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
    background: var(--st-transit-wash); color: var(--st-transit);
  }
  .rtn-kind.k-inquiry { background: var(--st-buy-wash); color: var(--st-buy); }
  .rtn-kind.k-case { background: var(--st-check-wash); color: var(--st-check); }
  .rtn-kind.k-cancel { background: var(--st-manual-wash); color: var(--st-manual); }
  .rtn-status { font-size: 12.5px; font-weight: 600; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rtn-title { font-size: 13px; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .rtn-card:hover .rtn-title { color: var(--accent-fg); }
  .rtn-meta { font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rtn-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
  .rtn-amt { margin-left: auto; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
  .rtn-due {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; white-space: nowrap;
    font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--panel-3); color: var(--muted);
  }
  .rtn-due.warn { background: var(--warn-wash); color: var(--warn); }
  .rtn-due.bad { background: var(--danger-wash); color: var(--danger); }
  .rtn-due svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
  .rtn-detail {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0;
    position: sticky; top: calc(86px + var(--shell-top, 0px)); max-height: calc(100dvh - 104px - var(--shell-top, 0px)); overflow-y: auto;
  }
  .rtn-idle { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 30px; text-align: center; color: var(--muted); }
  .rtn-idle svg { width: 38px; height: 38px; stroke: var(--muted-2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
  .rtn-idle b { font-size: 14.5px; color: var(--text); font-weight: 600; }
  .rtn-idle p { max-width: 320px; margin: 0; font-size: 13px; line-height: 1.6; }
  .rtn-d { padding: 18px 22px 22px; }
  .rtn-back { display: none; font-size: 12.5px; font-weight: 600; text-decoration: none; margin-bottom: 10px; }
  .rtn-d-warn { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--warn-wash); color: var(--warn); font-size: 12.5px; line-height: 1.5; }
  .rtn-d-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .rtn-d-ebay { margin-left: auto; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .rtn-d-ebay:hover { text-decoration: underline; }
  .rtn-d-status { font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 10px 0 3px; }
  .rtn-d-ebay-row { margin-left: auto; }
  .rtn-d-next { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }
  .rtn-d-next b { color: var(--text); font-weight: 600; }
  .rtn-zone { border-top: 1px solid var(--border-soft); margin-top: 18px; padding-top: 16px; }
  .rtn-zone:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
  .rtn-zone-h { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px; }
  .rtn-sec { border-top: 1px solid var(--border-soft); margin-top: 18px; padding-top: 16px; }
  .rtn-sec-h { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px; }
  .rtn-hero-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .rtn-hero-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
  .rtn-hero-item .rtn-thumb { width: 64px; height: 64px; border-radius: 12px; }
  .rtn-hero-t { font-size: 13.5px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .rtn-hero-status { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 14px 0 4px; }
  .rtn-hero-sub { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }
  .rtn-hero-sub b { color: var(--text); font-weight: 600; }
  .rtn-hero-money { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
  .rtn-jr { list-style: none; margin: 0; padding: 0; position: relative; }
  .rtn-jr li { position: relative; padding: 0 0 18px 26px; }
  .rtn-jr li:last-child { padding-bottom: 0; }
  .rtn-jr li::before {
    content: ""; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: var(--panel-3);
  }
  .rtn-jr li:last-child::before { display: none; }
  .rtn-jr li.is-done::before { background: var(--ok); opacity: .35; }
  .rtn-jr-dot {
    position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--panel); border: 2px solid var(--panel-3); box-sizing: border-box;
  }
  .rtn-jr li.is-done .rtn-jr-dot { background: var(--ok); border-color: var(--ok); }
  .rtn-jr li.is-now .rtn-jr-dot { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-wash, rgba(22,163,74,.14)); }
  .rtn-jr li.is-bad .rtn-jr-dot { background: var(--danger); border-color: var(--danger); }
  .rtn-jr-t { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
  .rtn-jr li.is-todo .rtn-jr-t { color: var(--muted); font-weight: 500; }
  .rtn-jr li.is-bad .rtn-jr-t { color: var(--danger); }
  .rtn-jr-when { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 8px; font-weight: 500; }
  .rtn-jr-note { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; overflow-wrap: anywhere; }
  .rtn-jr-note .mono { color: var(--text); }
  .rtn-jr-split { display: flex; align-items: center; gap: 10px; padding-left: 26px; margin: 6px 0 18px; position: relative; }
  .rtn-jr-split::before { content: ""; position: absolute; left: 5px; top: -18px; bottom: -10px; width: 2px; background: var(--panel-3); }
  .rtn-jr-split span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
  .rtn-jr-split::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
  .rtn-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 14px 18px; }
  .rtn-facts div { min-width: 0; }
  .rtn-facts span { display: block; font-size: 11px; color: var(--muted-2); letter-spacing: .02em; }
  .rtn-facts b { display: block; font-size: 13.5px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .rtn-facts b.ok { color: var(--ok); }
  .rtn-facts b.bad { color: var(--danger); }
  .rtn-prod-t { font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
  .rtn-prod-m { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
  .rtn-links { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 7px; font-size: 12.5px; font-weight: 600; }
  .rtn-links a { text-decoration: none; }
  .rtn-links a:hover { text-decoration: underline; }
  .rtn-kv { display: grid; grid-template-columns: minmax(124px, 42%) minmax(0, 1fr); gap: 7px 14px; font-size: 13px; margin: 0; }
  .rtn-kv dt { color: var(--muted); }
  .rtn-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
  .rtn-kv .num { font-variant-numeric: tabular-nums; }
  .rtn-kv .tot { font-weight: 700; }
  .rtn-kv .ok { color: var(--ok); font-weight: 600; }
  .rtn-kv .bad { color: var(--danger); font-weight: 600; }
  .rtn-reason { font-size: 14px; font-weight: 600; }
  .rtn-quote {
    margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--border); background: var(--panel-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
  }
  .rtn-quote-by { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; white-space: normal; }
  .rtn-photo { display: inline-block; margin-top: 4px; }
  .rtn-photo img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
  .rtn-tl { list-style: none; margin: 0; padding: 0; }
  .rtn-tl li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 11px; padding: 6px 0; font-size: 13px; line-height: 1.5; }
  .rtn-tl-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--muted-2); }
  .rtn-tl li.w-you .rtn-tl-dot { background: var(--accent); }
  .rtn-tl li.w-ebay .rtn-tl-dot { background: var(--st-check); }
  .rtn-tl-when { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .rtn-tl-note { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
  .rtn-amz { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin: 4px 0 14px; }
  .rtn-amz-step { position: relative; padding-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
  .rtn-amz-step::before, .rtn-amz-step::after {
    content: ""; position: absolute; top: 6px; height: 2px; background: var(--panel-3); }
  .rtn-amz-step::before { left: 0; width: 50%; }
  .rtn-amz-step::after { right: 0; width: 50%; }
  .rtn-amz-step.is-done::before { background: var(--ok); }
  .rtn-amz-step:has(+ .rtn-amz-step.is-done)::after { background: var(--ok); }
  .rtn-amz-step:first-child::before, .rtn-amz-step:last-child::after { background: transparent; }
  .rtn-amz-dot {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 14px; height: 14px; border-radius: 50%; background: var(--panel-3);
    border: 2px solid var(--panel); box-sizing: border-box; }
  .rtn-amz-step.is-done .rtn-amz-dot { background: var(--ok); }
  .rtn-amz-step.is-now .rtn-amz-dot { background: var(--panel); border-color: var(--muted-2); }
  .rtn-amz-step.is-bad .rtn-amz-dot { background: var(--panel); border-color: var(--danger); }
  .rtn-amz-step.is-done .rtn-amz-lbl { color: var(--text); font-weight: 600; }
  .rtn-amz-step.is-bad .rtn-amz-lbl { color: var(--danger); font-weight: 600; }
  .rtn-amz-lbl { display: block; padding: 0 6px; line-height: 1.35; }
  .rtn-amz-when { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .rtn-amz-line { font-size: 12.5px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
  .rtn-amz-line .mono { color: var(--text); }
  .rtn-amz-note { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
  .rtn-amz-note.is-bad { color: var(--danger); font-weight: 600; }
  .rtn-amz-more { border: 0; background: none; padding: 0; margin-top: 2px; font: inherit; font-size: 12.5px;
    color: var(--accent); cursor: pointer; text-decoration: underline; }
  .rtn-jr-more { padding-bottom: 0; }
  .rtn-jr-more .rtn-jr-dot { opacity: 0; }
  .rtn-jr-more::before { display: none; }
  .rtn-amz-ev { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--border); }
  .rtn-amz-ev li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 12px;
    padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid var(--border); }
  .rtn-amz-ev .d { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .rtn-amz-ev .l { color: var(--muted); white-space: nowrap; }
  @media (max-width: 720px) {
    .rtn-amz { grid-auto-flow: row; grid-template-columns: 1fr; gap: 2px; }
    .rtn-amz-step { padding: 5px 0 5px 26px; text-align: left; }
    .rtn-amz-step::before, .rtn-amz-step::after { top: 0; bottom: 0; left: 6px; width: 2px; height: auto; }
    .rtn-amz-step::before { height: 50%; top: 0; }
    .rtn-amz-step::after { height: 50%; top: 50%; right: auto; left: 6px; }
    .rtn-amz-dot { top: 50%; left: 0; transform: translateY(-50%); }
    .rtn-amz-lbl { padding: 0; }
    .rtn-amz-when { display: inline; margin-left: 8px; }
    .rtn-amz-ev li { grid-template-columns: auto minmax(0, 1fr); }
    .rtn-amz-ev .l { display: none; }
    .rtn-hero-status { font-size: 20px; }
  }
  .rtn-amz-ask { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
  .rtn-amz-ask input { flex: 1 1 260px; min-width: 0; margin: 0; }
  .rtn-amz-err { color: var(--danger); font-size: 12.5px; font-weight: 600; margin: 8px 0 0; }
  .rtn-acts { display: flex; gap: 8px; flex-wrap: wrap; }
  .rtn-form { margin-top: 12px; padding: 14px 16px 4px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel-2); }
  .rtn-form textarea { min-height: 84px; }
  .rtn-ai { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 12px; }
  .rtn-ai .fine-print { margin: 0; flex: 1 1 220px; }
  .rtn-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
  .rtn-form-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .rtn-count { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .rtn-form .fine-print { margin: -6px 0 12px; }
  .rtn-form-err { color: var(--danger); font-size: 12.5px; font-weight: 600; margin: -4px 0 10px; }
  .rtn-form-err:empty { display: none; }
  .rtn-form input[type="file"] { padding: 7px 10px; cursor: pointer; }
  .rtn-form input[type="file"]::file-selector-button {
    margin-right: 10px; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
  }
  .rtn-form .rtn-file { overflow-wrap: anywhere; }
  .rtn-form .rtn-file.has-file { color: var(--text); font-weight: 600; }
  .rtn-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
  .rtn-note.is-warn { padding: 10px 14px; border-radius: var(--radius-md); background: var(--warn-wash); color: var(--warn); }
  .rtn-note.is-ok { padding: 10px 14px; border-radius: var(--radius-md); background: var(--ok-wash); color: var(--ok); }
  .rtn-note.rtn-sent { margin: 0 0 12px; }
  .rtn-note a { font-weight: 600; white-space: nowrap; }
  .od-dispute {
    display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-top: 9px; padding: 6px 11px;
    border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none;
  }
  .od-dispute:hover { background: var(--panel-3); }
  .od-dispute.is-due { background: var(--danger-wash); color: var(--danger); }
  .od-dispute svg { width: 14px; height: 14px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  @media (max-width: 1100px) {
    .rtn { grid-template-columns: minmax(0, 1fr); }
    .rtn-detail { position: static; max-height: none; overflow: visible; }
    .rtn-detail.is-idle { display: none; }
    .rtn-back { display: inline-block; }
    .rtn-sync { margin-left: 0; }
  }
  .subpage { display: none; }
  #batch-result-filter-tabs {
    display: flex; gap: 3px; margin: 0 20px 14px; padding: 4px;
    background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-md);
    overflow-x: auto; overflow-y: hidden; flex-shrink: 0;
  }
  #batch-result-filter-tabs .subtab {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; margin: 0; border-radius: calc(var(--radius-md) - 2px);
    border-bottom: none; white-space: nowrap;
  }
  #batch-result-filter-tabs .subtab.active { background: var(--panel); box-shadow: var(--shadow-pop); }
  #batch-result-filter-tabs .subtab[data-resultfilter="success"].active { color: var(--ok); }
  #batch-result-filter-tabs .subtab[data-resultfilter="failed"].active { color: var(--danger); }
  #batch-result-filter-tabs .subtab[data-resultfilter="blocked"].active { color: var(--warn); }
  #batch-result-filter-tabs .subtab[data-resultfilter="progress"].active { color: var(--info); }
  #batch-result-filter-tabs .rf-count { opacity: .6; font-weight: 700; font-size: 11.5px; }
  .subpage.active { display: block; animation: page-in var(--dur-fast) var(--ease); }
  .step-track { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
  .step-track .st { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 12.5px; font-weight: 600; }
  .step-track .st .st-num {
    width: 20px; height: 20px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
  }
  .step-track .st.active { color: var(--text); }
  .step-track .st.active .st-num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .step-track .st.done .st-num { background: var(--accent-wash); color: var(--accent-fg); border-color: var(--accent-line); }
  .step-track .st-line { flex: 1; height: 1px; background: var(--border); max-width: 60px; }
  .review-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
  @media (max-width: 760px) { .review-layout { grid-template-columns: 1fr; } }
  .od-header-card { display: flex; align-items: center; gap: 16px; }
  .od-header-thumb { width: 96px; height: 96px; border-radius: var(--radius-md); object-fit: contain;
                     border: 1px solid var(--border); flex-shrink: 0; background: var(--panel-2); padding: 6px; }
  .od-header-card #od-header-title { font-size: 16px !important; white-space: normal !important; line-height: 1.35; }
  .photo-main-preview { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--panel-2); margin-bottom: 14px; }
  .photo-main-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .photo-preview-badge {
    position: absolute; left: 8px; bottom: 8px; font-size: 10px; font-weight: 600;
    padding: 3px 8px; border-radius: var(--radius-pill); background: rgba(0,0,0,.72); color: #fff;
  }
  .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-bottom: 8px; }
  .photo-cell { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--border); cursor: pointer; aspect-ratio: 1; }
  .photo-cell.selected { border-color: var(--accent-line); }
  .photo-cell.primary { border-color: var(--info); }
  .photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .photo-grid.framed .photo-cell img { object-fit: contain; background: #fff; }
  .photo-cell .badge {
    position: absolute; top: 3px; left: 3px; font-size: 9px; padding: 1px 5px; border-radius: var(--radius-sm);
    background: rgba(0,0,0,.7); color: #fff; font-weight: 600;
  }
  .photo-cell input[type=radio] { position: absolute; top: 3px; right: 3px; }
  .wm-preview {
    --wm-b: 4px; --wm-tl: #EA4335; --wm-tr: #4285F4; --wm-br: #FBBC05; --wm-bl: #34A853;
    width: 200px; height: 200px; padding: var(--wm-b); box-sizing: border-box;
    border-radius: var(--radius-md); overflow: hidden;
    background:
      linear-gradient(to right,  var(--wm-tl), var(--wm-tr)) top    left  / 100% var(--wm-b) no-repeat,
      linear-gradient(to right,  var(--wm-bl), var(--wm-br)) bottom left  / 100% var(--wm-b) no-repeat,
      linear-gradient(to bottom, var(--wm-tl), var(--wm-bl)) top    left  / var(--wm-b) 100% no-repeat,
      linear-gradient(to bottom, var(--wm-tr), var(--wm-br)) top    right / var(--wm-b) 100% no-repeat;
  }
  .wm-preview.off { padding: 0; background: none; border: 1px solid var(--border); }
  .wm-preview-inner {
    width: 100%; height: 100%; background: var(--panel-2); display: flex;
    align-items: center; justify-content: center; font-size: 12px; color: var(--muted);
  }
  .pb-preview {
    position: relative; width: 200px; height: 200px; box-sizing: border-box;
    border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border);
    background: var(--panel-2); display: flex; align-items: center;
    justify-content: center; font-size: 12px; color: var(--muted);
  }
  .pb-preview.off .pb-pill { display: none; }
  .pb-pill {
    position: absolute; left: 7.6px; bottom: 7.6px; height: 17.6px;
    display: inline-flex; align-items: center; padding: 0 8px; max-width: 184.8px;
    border-radius: var(--radius-pill); background: #0F172A; color: #fff;
    border: 1.5px solid #fff; box-sizing: border-box;
    font-size: 8px; font-weight: 800; letter-spacing: .06em;
    white-space: nowrap; overflow: hidden;
  }
  .category-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; max-height: 180px; overflow-y: auto; }
  .category-option { display: flex; gap: 8px; align-items: flex-start; padding: 8px 9px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; }
  .category-option:hover { background: var(--panel-2); }
  .category-option input { margin: 2px 0 0; }
  .category-option .name { font-size: 13px; }
  .category-option .path { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
  .cat-search { margin-bottom: 12px; }
  .cat-search .search-input-wrap input { margin-bottom: 0; }
  .cat-search-results { margin-top: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); max-height: 240px; overflow-y: auto; }
  .cat-search-results[hidden] { display: none; }
  .cat-search-results .empty-state { padding: 18px 14px; }
  .cat-search-head { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-bottom: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
  .cat-search-head button { flex: 0 0 auto; padding: 2px 8px; font-size: 11.5px; }
  .cat-search-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cat-result { display: flex; width: 100%; gap: 8px; align-items: center; justify-content: space-between; text-align: left; padding: 8px 9px; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--text); font: inherit; font-weight: 400; cursor: pointer; }
  .cat-result:active { transform: none; }
  .cat-result + .cat-result { border-top: 1px solid var(--border); }
  .cat-result:hover, .cat-result:focus-visible { background: var(--panel-2); outline: none; }
  .cat-result .name { font-size: 13px; font-weight: 500; }
  .cat-result:hover .cat-go { color: var(--text); }
  .cat-result .path { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
  .cat-result .cat-go { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }
  .specifics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  @media (max-width: 700px) { .specifics-grid { grid-template-columns: 1fr; } }
  .specifics-grid label { margin-top: 6px; }
  .char-count { text-align: right; font-size: 11px; color: var(--muted); margin-top: -8px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
  .char-count.over { color: var(--danger); }
  .empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
  .empty-state .es-icon {
    width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%;
    background: var(--panel-2); color: var(--muted-2);
    display: flex; align-items: center; justify-content: center;
  }
  .empty-state .es-icon svg { width: 19px; height: 19px; stroke: currentColor; }
  .empty-state .es-icon.ok { background: var(--ok-wash); color: var(--ok); }
  .empty-state .es-icon.bad { background: var(--danger-wash); color: var(--danger); }
  .empty-state p { max-width: 380px; margin: 0 auto; font-size: 13px; line-height: 1.55; }
  .empty-state .es-action { margin-top: 14px; }
  .magazasiz-kapi { display: none; }
  body.magazasiz :is(#list-items-page, #listings-page, #orders-page, #messages-page, #returns-page) > .magazasiz-kapi { display: block; }
  body.magazasiz :is(#list-items-page, #listings-page, #orders-page, #messages-page, #returns-page) > :not(.breadcrumb, .page-header, .magazasiz-kapi) { display: none !important; }
  body.magazasiz #settings-page > .settings-tab-panel[data-magaza-sart] { display: none !important; }
  body.magazasiz #settings-page:has(> .settings-tab-panel.active[data-magaza-sart]) > .magazasiz-kapi { display: block; }
  body.magazasiz #settings-load-failed { display: none !important; }
  .magazasiz-kapi .es-icon { background: var(--accent-wash); color: var(--accent-fg); }
  .magazasiz-kapi .empty-state p.mk-baslik { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
  .tswitch { position: relative; display: inline-block; width: 34px; height: 19px; flex-shrink: 0; }
  .tswitch input { opacity: 0; width: 0; height: 0; }
  .tslider { position: absolute; inset: 0; background: var(--switch-off); border-radius: 999px; transition: background .15s; cursor: pointer; }
  .tslider::before { content: ""; position: absolute; width: 15px; height: 15px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
  .tswitch input:checked + .tslider { background: var(--accent); }
  .tswitch input:checked + .tslider::before { transform: translateX(15px); }
  .settings-tab-panel { display: none; }
  .settings-tab-panel.active { display: block; animation: page-in var(--dur-fast) var(--ease); }
  .billing-tab-panel { display: none; }
  .billing-tab-panel.active { display: block; animation: page-in var(--dur-fast) var(--ease); }
  [data-fill].fill-pending :is(input, select, textarea, button) {
    background: var(--panel-2) !important; border-color: transparent !important; color: transparent !important;
    box-shadow: none !important; pointer-events: none;
  }
  [data-fill].fill-pending :is(input, textarea)::placeholder { color: transparent; }
  [data-fill].fill-pending input::after { display: none; }
  [data-fill].fill-pending :is(iframe, .pill-list, .pill-total, #pricing-example-result, .wm-preview, #wm-preview-note, .pb-preview, #pb-preview-note, #support-signature-preview, #tracking-origin-hint, .lt-line-numbers) { visibility: hidden; }
  .accordion { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; }
  .accordion-header {
    display: flex; align-items: center; justify-content: space-between; padding: 18px 22px;
    cursor: pointer; font-size: 14px; font-weight: 600;
  }
  .accordion-header:hover { background: var(--panel-2); }
  .accordion-chevron { color: var(--muted); font-size: 13px; transition: transform .15s; flex-shrink: 0; margin-left: 12px; }
  .accordion.open .accordion-chevron { transform: rotate(180deg); }
  .accordion-body { display: none; padding: 0 20px 20px; border-top: 1px solid var(--border); }
  .accordion.open .accordion-body { display: block; padding-top: 18px; }
  .accordion-body .card { background: none; border: none; padding: 0; margin: 0 0 20px; }
  .accordion-body .card:last-child { margin-bottom: 0; }
  .store-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md);
    border: 1px solid var(--border); margin-bottom: 6px;
  }
  .store-row .store-name { font-size: 13px; font-weight: 500; }
  .store-row.active { border-color: var(--accent); background: var(--accent-wash); }
  .store-row button { margin-left: auto; padding: 5px 12px; font-size: 12px; }
  .subhead {
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--muted-2); margin: 26px 0 12px; padding-top: 20px; border-top: 1px solid var(--border-soft);
  }
  .card > .subhead:first-child { margin-top: 0; padding-top: 0; border-top: none; }
  .checkbox-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
  .fine-print { font-size: 12px; color: var(--muted); margin: 2px 0 12px; }
  .set-list {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    overflow: hidden; margin: 4px 0 14px; background: var(--panel);
  }
  .set-row {
    display: flex; align-items: flex-start; gap: 13px; padding: 13px 15px; margin: 0;
    cursor: pointer; transition: background var(--dur-fast) var(--ease);
  }
  .set-row:hover { background: var(--panel-2); }
  .set-list > * + * { border-top: 1px solid var(--border-soft); }
  .set-main { flex: 0 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .set-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; }
  .set-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
  .set-desc a { color: var(--accent-fg); }
  .set-row > input { order: -1; margin-top: 1px; }
  .set-master {
    display: flex; align-items: flex-start; gap: 14px; margin: 0; cursor: pointer;
    padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--panel-2);
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  }
  .set-master:has(input:checked) { border-color: var(--accent-line); background: var(--accent-wash); }
  .set-master > input { width: 19px; height: 19px; min-width: 19px; margin-top: 1px; }
  .set-master > input:checked::after { left: 5.5px; top: 2px; width: 4.5px; height: 9.5px; }
  .set-master-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
  .set-master .set-desc { font-size: 12.5px; }
  .set-master + .subhead { margin: 20px 0 10px; padding-top: 0; border-top: none; }
  .set-master:has(input:not(:checked)) ~ .subhead,
  .set-master:has(input:not(:checked)) ~ .set-list { opacity: .55; }
  .card > .set-list:last-child, .set-list:last-child { margin-bottom: 0; }
  .set-sub { padding: 12px 15px 14px; background: var(--panel-2); }
  .set-sub > label:first-child { margin-top: 0; }
  .set-sub > :last-child { margin-bottom: 0; }
  .set-sub .fine-print { margin-bottom: 0; }
  .set-fields { overflow: visible; }
  .set-field { flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; cursor: default; }
  .set-field:hover { background: none; }
  .set-field > .set-main { flex: 1 1 300px; max-width: 620px; margin: 0; letter-spacing: normal; }
  .set-ctl { flex: 0 0 240px; }
  .set-ctl > :is(input, select) { margin: 0; height: 39px; }
  .set-ctl .checkbox-dropdown { display: block; }
  .set-ctl .checkbox-dropdown-btn { width: 100%; height: 39px; justify-content: space-between; padding: 0 12px; font-size: 13px; }
  .set-ctl .checkbox-dropdown-panel { right: 0; }
  .set-opt { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; margin: 0; cursor: pointer; }
  .set-opt input { margin-top: 2px; }
  .set-opt .set-title { font-size: 12.5px; }
  .set-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
  .set-chip {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer;
    padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: var(--panel); font-size: 12.5px; font-weight: 500;
    transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  }
  .set-chip:hover { border-color: var(--accent-line); }
  .set-chip:has(input:checked) { border-color: var(--accent-line); background: var(--accent-wash); }
  .ffl { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; margin-bottom: 20px; }
  .ffl-card {
    display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px 22px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  }
  .ffl-card.is-paused { background: var(--panel-2); }
  .ffl-head { display: flex; align-items: flex-start; gap: 12px; }
  .ff-logo {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--radius-md);
    background: #FFFFFF; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
  }
  .ff-logo img { width: 24px; height: 24px; display: block; }
  .ffl-id { flex: 1; min-width: 0; }
  .ffl-name { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
  .ffl-name:hover { color: var(--accent-fg); }
  .ffl-email { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ffl-head .status-pill { flex-shrink: 0; margin-top: 2px; }
  .ffl-problem { margin: -6px 0 0; font-size: 12.5px; color: var(--danger); }
  .ffl-problem a { color: inherit; font-weight: 600; }
  .ffl-q { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text); }
  .ffl-q { flex-wrap: wrap; row-gap: 2px; }
  .ffl-q > span:first-child { flex: 0 0 auto; }
  .ffl-saved { font-size: 12px; font-weight: 500; color: var(--ok); opacity: 0; transition: opacity var(--dur) var(--ease); }
  .ffl-saved.is-on { opacity: 1; }
  .ffl-saved.is-err { color: var(--danger); }
  .ffl-checks { display: flex; flex-direction: column; gap: 2px; }
  label.ff-check {
    display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 0;
    font-size: 13.5px; font-weight: 400; color: var(--text); letter-spacing: 0; cursor: pointer;
  }
  label.ff-check input { margin: 0; }
  label.ff-check .ff-code { margin-left: -4px; font-size: 11.5px; color: var(--muted-2); }
  label.ff-check:has(input:disabled) { cursor: progress; }
  .ffl-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 14px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--muted);
  }
  .ffl-foot b { color: var(--text); font-weight: 600; }
  .ffl-foot a { font-weight: 600; text-decoration: none; white-space: nowrap; }
  .ffl-foot a:hover { text-decoration: underline; }
  .ffl-skel { height: 270px; border-radius: var(--radius-lg); }
  .ffl-2fa { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 500; }
  .ffl-2fa svg { width: 13px; height: 13px; stroke: currentColor; flex-shrink: 0; }
  .ffl-2fa.is-on { color: var(--ok); }
  .ffl-2fa.is-off { color: var(--warn); }
  .ffl-2fa.ffp-2fa { margin-top: 0; }
  .ffl-2fa-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
  .ffl-2fa-row .ffl-2fa { margin-top: 0; }
  button.ffl-otp {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 11.5px; font-weight: 500;
    line-height: 1.5; border-radius: var(--radius-sm);
  }
  button.ffl-otp svg { width: 12px; height: 12px; stroke: currentColor; flex-shrink: 0; }
  .ffl-facts { display: flex; flex-direction: column; gap: 4px; }
  .ffl-states { margin: 0; font-size: 13px; color: var(--muted); }
  .ffl-states b { color: var(--text); font-weight: 600; }
  .ffl-actions { display: flex; align-items: center; gap: 6px; }
  .ffl-foot .ffl-remove, .ffp-actions .ffp-remove { color: var(--danger); }
  .ffp { max-width: 960px; }
  .ffp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .ffp-head .ff-logo { width: 52px; height: 52px; border-radius: 12px; }
  .ffp-head .ff-logo img { width: 30px; height: 30px; }
  .ffp-id { flex: 1; min-width: 220px; }
  .ffp-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
  .ffp-sub { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
  .ffp-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
  .ffp-actions { display: flex; align-items: center; gap: 8px; }
  .ffp-actions .ffp-remove { color: var(--danger); }
  .ffp-part + .ffp-part { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
  .ffp-q { margin: 0 0 3px; font-size: 13.5px; font-weight: 600; color: var(--text); }
  .ffp-hint { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
  .ffp-stores { display: flex; flex-wrap: wrap; gap: 2px 26px; }
  .ffp-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
  .ffp-tools button { padding: 5px 12px; font-size: 12px; }
  .ffp-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 18px; }
  .ffp-sub-h { margin: 14px 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
  .ffp-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
  .ffp-foot p { margin: 0; }
  .ffp .accordion-header .ffp-acc-note { margin-left: auto; margin-right: 12px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
  .ffp .accordion-header .ffp-acc-note.is-bad { color: var(--danger); }
  .ffp-field { margin-bottom: 14px; }
  .ffp-field input, .ffp-field select { margin-bottom: 0; }
  .ffp-field .fine-print { margin: 5px 0 0; }
  .ffp-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .ffp-row input { flex: 1; min-width: 200px; }
  .ffp-row button { flex: 0 0 auto; }
  .ffp-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; }
  .ffp-card-saved { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13.5px; }
  .ffp-card-saved .ffp-remove { margin-left: auto; color: var(--danger); }
  #ffa-signin { scroll-margin-top: 88px; }
  .ffn-finish .ff-risk { margin: 0; }
  .ffn-finish .ffp-foot { margin-top: 16px; }
  #fulfillment-page .page-header-row > div { flex: 1 1 420px; min-width: 0; }
  .info-banner.ffa-gap { background: var(--warn-wash); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
  .info-banner.ffa-gap .ib-icon { color: var(--warn); }
  .ffa-gap ul { margin: 4px 0 0; padding-left: 18px; }
  .ffa-gap li + li { margin-top: 2px; }
  .sync-progress { height: 5px; border-radius: var(--radius-pill); background: var(--panel-3); overflow: hidden; margin: 12px 0 4px; max-width: 440px; }
  .sync-progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: var(--radius-pill); transition: width var(--dur) var(--ease); }
  .sync-skipped { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel); max-width: 540px; }
  .sync-skipped > summary {
    cursor: pointer; padding: 10px 14px; font-size: 12.5px; font-weight: 600;
    list-style: none; display: flex; align-items: center; gap: 9px;
  }
  .sync-skipped > summary::-webkit-details-marker { display: none; }
  .sync-skipped > summary::before { content: '⌄'; color: var(--muted); font-size: 13px; line-height: 1; transition: transform .15s; }
  .sync-skipped[open] > summary::before { transform: rotate(180deg); }
  .sync-skipped ul { margin: 0; padding: 0 14px 10px; list-style: none; max-height: 230px; overflow-y: auto; }
  .sync-skipped li { display: flex; gap: 14px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--border-soft); font-size: 12.5px; }
  .sync-skipped li b { flex: 0 0 auto; font-family: var(--font-mono); font-weight: 500; }
  .sync-skipped li span { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; }
  .fee-preset-row { display: flex; gap: 10px; flex-wrap: wrap; }
  .fee-preset-btn {
    flex: 1 1 160px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
    background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 9px 14px; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  }
  .fee-preset-btn:hover { border-color: var(--accent-line); background: var(--accent-wash); }
  .fee-preset-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .fee-preset-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .fee-preset-rate { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .info-tip {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%; background: var(--panel-3); color: var(--muted);
    font-size: 10px; font-weight: 700; cursor: help; flex-shrink: 0; font-family: var(--font-ui);
  }
  .info-tip:hover, .info-tip:focus { color: var(--text); background: var(--panel-2); outline: none; }
  .info-tip .info-tip-bubble { display: none; }
  .info-tip:hover .info-tip-bubble, .info-tip:focus .info-tip-bubble { display: block; }
  .info-tip-bubble {
    position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
    background: var(--panel-3); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 10px 12px; font-size: 12px; font-weight: 400; color: var(--text); width: 230px;
    line-height: 1.45; z-index: 20; box-shadow: var(--shadow-pop); text-align: left; cursor: auto;
  }
  .hover-tip {
    position: fixed; z-index: 90; display: none; max-width: 280px;
    background: var(--panel-3); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 8px 11px; font-size: 12px; line-height: 1.45; color: var(--text);
    box-shadow: var(--shadow-pop); pointer-events: none; text-align: left;
  }
  .hover-tip.on { display: block; }
  .hover-tip b { display: block; margin-bottom: 2px; }
  [data-tip] { cursor: help; }
  .pill-box { margin: 10px 0 16px; }
  .pill-input-row { display: flex; gap: 8px; margin-bottom: 6px; }
  .pill-input-row input { margin-bottom: 0; }
  .pill-input-row .pill-add-input { flex: 1.4; }
  .pill-input-row .pill-search-input { flex: 1; }
  .pill-list {
    display: flex; flex-wrap: wrap; gap: 8px; background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 12px; min-height: 52px; max-height: 180px; overflow-y: auto;
  }
  .pill {
    display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: 4px 6px 4px 12px; font-size: 12.5px; font-family: var(--font-mono);
  }
  .pill-x {
    background: var(--border); color: var(--text); border: none; border-radius: 50%; width: 18px; height: 18px;
    font-size: 10px; line-height: 1; cursor: pointer; padding: 0; font-family: var(--font-ui);
  }
  .price-ending-box { margin: 4px 0 10px; }
  .price-ending-box .pill-input-row input { max-width: 180px; }
  .price-ending-box .pill-list { min-height: 46px; background: var(--panel); }
  .price-ending-error { color: var(--danger); font-size: 12.5px; margin: 0 0 6px; }
  .fs-line { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; }
  .fs-mark { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
             border: 2px solid var(--border); background: var(--panel); }
  .fs-line.is-done .fs-mark { background: var(--ok); border-color: var(--ok); }
  .fs-line.is-now  .fs-mark { border-color: var(--led-warn); background: var(--panel); box-shadow: inset 0 0 0 3px var(--led-warn); }
  .fs-line.is-err  .fs-mark { background: var(--danger); border-color: var(--danger); }
  .fs-body { flex: 1; min-width: 0; }
  .fs-name { font-size: 13px; font-weight: 600; }
  .fs-line:not(.is-done):not(.is-now):not(.is-err) .fs-name { color: var(--muted); font-weight: 500; }
  .fs-hint { font-size: 12px; color: var(--muted); margin-top: 1px; }
  .fs-at   { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .conv-why { display: flex; flex-wrap: wrap; gap: 6px; }
  .conv-why span {
    background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-pill);
    padding: 2px 9px; font-size: 11.5px; font-weight: 500;
  }
  .ff-risk {
    border: 1px solid var(--danger-line); background: var(--danger-wash);
    border-radius: var(--radius-md); padding: 14px 16px; margin: 4px 0 14px;
  }
  .ff-risk strong { display: block; margin-bottom: 6px; font-size: 13px; }
  .ff-risk p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.55; }
  .ff-risk p:last-of-type { margin-bottom: 0; }
  .pill-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
  .pill-actions button { padding: 6px 12px; font-size: 12px; }
  .pill-total { margin-left: auto; }
  .field-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0; }
  .trend-card {
    --tn-bg: var(--panel); --tn-edge: var(--border); --tn-box: var(--panel-2); --tn-box-edge: var(--border);
    --tn-text: var(--text); --tn-strong: var(--text); --tn-muted: var(--muted); --tn-faint: var(--muted-2);
    --tn-grid: var(--border-soft); --tn-zero: #C9CFDC; --tn-bar: #65A30D; --tn-loss: #DC4B4B; --tn-stub: rgba(22,26,40,.14);
    --tn-avg: rgba(22,26,40,.62); --tn-tab-on: var(--panel); --tn-tab-shadow: 0 0 0 1px var(--border);
    --tn-tip-bg: var(--panel); --tn-tip-edge: var(--border); --tn-tip-shadow: var(--shadow-pop);
    --tn-up: var(--ok); --tn-down: var(--danger); --tn-neg: var(--danger); --tn-focus: var(--accent);
    --tn-r-profit: #5E9B1B; --tn-r-cost: #5667CF; --tn-r-fees: #B7791F; --tn-r-ad: #B0579B;
    --tn-r-other: rgba(22,26,40,.22); --tn-r-unk: #5C5F67; --tn-r-track: rgba(22,26,40,.07);
    padding: 0; overflow: visible; container-type: inline-size; container-name: trendcard;
    background: var(--tn-bg); border: 1px solid var(--tn-edge); border-radius: 16px; color: var(--tn-text); }
  html[data-theme="dark"] .trend-card {
    --tn-bg: #11152B; --tn-edge: #242B4D; --tn-box: rgba(255,255,255,.03); --tn-box-edge: #1F2542;
    --tn-text: #EDEFF7; --tn-strong: #FFFFFF; --tn-muted: #8C93B0; --tn-faint: #6E7594;
    --tn-grid: rgba(255,255,255,.055); --tn-zero: rgba(255,255,255,.2); --tn-bar: #A9DD8F; --tn-loss: #E88989; --tn-stub: rgba(255,255,255,.18);
    --tn-avg: rgba(255,255,255,.82); --tn-tab-on: rgba(255,255,255,.1); --tn-tab-shadow: none;
    --tn-tip-bg: #0B0E1F; --tn-tip-edge: #262D4E; --tn-tip-shadow: 0 12px 30px rgba(0,0,0,.45);
    --tn-up: #A8DD8F; --tn-down: #F29A9A; --tn-neg: #F29A9A; --tn-focus: #A9DD8F;
    --tn-r-profit: #66A04A; --tn-r-cost: #7482D6; --tn-r-fees: #B3822C; --tn-r-ad: #C176AE;
    --tn-r-other: rgba(255,255,255,.3); --tn-r-unk: #B6B9C2; --tn-r-track: rgba(255,255,255,.08); }
  .trend-card [hidden] { display: none !important; }
  .trend-card .tn-in { padding: 24px 26px 18px; transition: opacity .15s ease; }
  .trend-card .tn-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px 30px; align-items: start; }
  .trend-card.is-empty .tn-split { grid-template-columns: minmax(0, 1fr); }
  .trend-card .tn-main { min-width: 0; }
  .trend-card .tn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; min-height: 30px; }
  .trend-card .tn-eyebrow { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--tn-muted); }
  .trend-card .tn-ctls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .trend-card .tn-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--tn-box); border: 1px solid var(--tn-box-edge); }
  .trend-card .tn-tab { padding: 4px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--tn-muted); box-shadow: none;
    font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.5; cursor: pointer; transition: background-color .12s, color .12s; }
  .trend-card .tn-tab:hover { background: transparent; color: var(--tn-strong); }
  .trend-card .tn-tab[aria-pressed="true"], .trend-card .tn-tab[aria-pressed="true"]:hover { background: var(--tn-tab-on); color: var(--tn-strong); box-shadow: var(--tn-tab-shadow); }
  .trend-card .tn-tab:focus-visible { outline: 2px solid var(--tn-focus); outline-offset: 1px; }
  .trend-card .tn-hero { margin-top: 4px; font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--tn-strong); overflow-wrap: anywhere; }
  .trend-card .tn-hero.neg { color: var(--tn-neg); }
  .trend-card .tn-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 9px; font-size: 13px; color: var(--tn-muted); }
  .trend-card .tn-meta b { color: var(--tn-text); font-weight: 500; font-variant-numeric: tabular-nums; }
  .trend-card .tn-chart { margin-top: 22px; }
  .trend-card .tn-plot { position: relative; border-radius: 6px; touch-action: pan-y; }
  .trend-card .tn-plot:focus { outline: none; }
  .trend-card .tn-plot:focus-visible { outline: 1.5px solid var(--tn-focus); outline-offset: 6px; }
  .trend-card .tn-plot svg { display: block; width: 100%; overflow: visible; }
  .trend-card .tn-grid { stroke: var(--tn-grid); shape-rendering: crispEdges; }
  .trend-card .tn-zero { stroke: var(--tn-zero); shape-rendering: crispEdges; }
  .trend-card .tn-tick { fill: var(--tn-faint); font-family: var(--font-ui); font-size: 11px; font-variant-numeric: tabular-nums; }
  .trend-card .tn-bar { fill: var(--tn-bar); transition: opacity .12s; }
  .trend-card .tn-bar.neg { fill: var(--tn-loss); }
  .trend-card .tn-bar.z { fill: var(--tn-stub); }
  .trend-card .tn-plot.is-sel .tn-bar:not(.on) { opacity: .38; }
  .trend-card .tn-avg { fill: none; stroke: var(--tn-avg); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
  @keyframes tn-fade { from { opacity: 0; } }
  .trend-card.tn-anim .tn-fade { animation: tn-fade .45s ease both; }
  @media (prefers-reduced-motion: reduce) { .trend-card.tn-anim .tn-fade { animation: none !important; } }
  .trend-card .tn-tip { position: absolute; z-index: 6; left: 0; top: 0; pointer-events: none; min-width: 150px; max-width: 240px; padding: 10px 12px; border-radius: 10px;
    background: var(--tn-tip-bg); border: 1px solid var(--tn-tip-edge); box-shadow: var(--tn-tip-shadow); color: var(--tn-text); font-size: 12px; line-height: 1.45; }
  .trend-card .tn-tt-h { font-weight: 600; font-size: 12.5px; margin-bottom: 6px; white-space: nowrap; }
  .trend-card .tn-tt-h span { color: var(--tn-muted); font-weight: 500; }
  .trend-card .tn-tt-r { display: flex; justify-content: space-between; gap: 18px; margin-top: 3px; color: var(--tn-muted); white-space: nowrap; }
  .trend-card .tn-tt-r b { color: var(--tn-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
  .trend-card .tn-tt-r i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: 3px; }
  .trend-card .tn-tt-note { margin-top: 7px; font-size: 11.5px; color: var(--tn-muted); }
  .trend-card .tn-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; min-height: 20px; }
  .trend-card .tn-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--tn-muted); }
  .trend-card .tn-legend i { display: inline-block; margin-right: 7px; vertical-align: 1px; }
  .trend-card .tn-legend .lb { width: 8px; height: 10px; border-radius: 2px; background: var(--tn-bar); }
  .trend-card .tn-legend .lb.neg { background: var(--tn-loss); }
  .trend-card .tn-legend .ll { width: 14px; height: 2px; border-radius: 2px; background: var(--tn-avg); vertical-align: 3px; }
  .trend-card .trend-link { margin-left: auto; color: var(--tn-muted); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .trend-card .trend-link:hover { color: var(--tn-strong); }
  .trend-card .trend-link:focus-visible { outline: 2px solid var(--tn-focus); outline-offset: 2px; border-radius: 4px; }
  .trend-card .tn-empty { padding: 26px 0 10px; }
  .trend-card .tn-es-t { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--tn-strong); }
  .trend-card .tn-es-s { margin: 8px 0 0; max-width: 600px; font-size: 13.5px; line-height: 1.55; color: var(--tn-muted); }
  .trend-card .tn-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
  .trend-card .tn-wk { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 12px; align-items: baseline; padding: 12px 16px; font-size: 13px;
    background: var(--tn-box); border: 1px solid var(--tn-box-edge); border-radius: 12px; }
  .trend-card .tn-wk span { color: var(--tn-muted); white-space: nowrap; }
  .trend-card .tn-wk b { color: var(--tn-strong); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .trend-card .tn-wk .tn-delta { text-align: right; min-width: 52px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .trend-card .tn-delta.up { color: var(--tn-up); }
  .trend-card .tn-delta.down { color: var(--tn-down); }
  .trend-card .tn-mix { padding: 14px 16px 12px; background: var(--tn-box); border: 1px solid var(--tn-box-edge); border-radius: 12px; }
  .trend-card .tn-mix-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .trend-card .tn-mix-t { font-size: 13px; font-weight: 600; color: var(--tn-strong); white-space: nowrap; }
  .trend-card .tn-mix-s { font-size: 12px; color: var(--tn-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trend-card .tn-mix-body { display: grid; justify-items: center; gap: 12px; margin-top: 10px; }
  .trend-card .tn-donut { display: block; width: 148px; height: 148px; }
  .trend-card .tn-dc-k { fill: var(--tn-muted); font-family: var(--font-ui); font-size: 11px; text-anchor: middle; }
  .trend-card .tn-dc-v { fill: var(--tn-strong); font-family: var(--font-ui); font-weight: 600; text-anchor: middle; font-variant-numeric: tabular-nums; }
  .trend-card .tn-dc-v.neg { fill: var(--tn-neg); }
  .trend-card .tn-mix-list { width: 100%; display: grid; gap: 6px; font-size: 12.5px; }
  .trend-card .tn-mix-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 42px; gap: 8px; align-items: center; color: var(--tn-muted); }
  .trend-card .tn-mix-row i { width: 10px; height: 10px; border-radius: 3px; }
  .trend-card .tn-mix-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trend-card .tn-mix-row b { color: var(--tn-strong); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .trend-card .tn-mix-row .pc { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
  .trend-card .tn-mix-rev { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--tn-box-edge); font-size: 12.5px; color: var(--tn-muted); }
  .trend-card .tn-mix-rev b { color: var(--tn-strong); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .trend-card .tn-mix-note { width: 100%; margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--tn-muted); }
  .trend-card .tn-mix-note + .tn-mix-note { margin-top: -6px; }
  .trend-card .tn-dayline { display: none; min-height: 18px; margin-bottom: 8px; font-size: 12.5px; line-height: 18px; color: var(--tn-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .trend-card .tn-dayline b { color: var(--tn-strong); font-weight: 600; }
  .trend-card .tn-dayline b.neg { color: var(--tn-neg); }
  @container trendcard (max-width: 740px) {
    .trend-card .tn-split { grid-template-columns: minmax(0, 1fr); }
    .trend-card .tn-wk { grid-template-columns: auto auto auto; justify-content: start; column-gap: 16px; }
    .trend-card .tn-mix-body { grid-template-columns: 148px minmax(0, 340px); justify-content: start; justify-items: stretch; align-items: center; column-gap: 28px; }
    .trend-card .tn-donut { justify-self: center; }
    .trend-card .tn-mix-note { grid-column: 2; }
  }
  @container trendcard (max-width: 560px) {
    .trend-card .tn-in { padding: 18px 16px 14px; }
    .trend-card .tn-mix-body { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .trend-card .tn-mix-list, .trend-card .tn-mix-note { max-width: 360px; grid-column: auto; }
    .trend-card .tn-dayline { display: block; }
    .trend-card .tn-tip { display: none !important; }
    .trend-card .tn-hero { font-size: 32px; margin-top: 10px; }
    .trend-card .tn-head { align-items: flex-start; }
  }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  #toast-stack {
    position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex;
    flex-direction: column-reverse; gap: 8px; width: 340px; max-width: calc(100vw - 40px);
  }
  .toast {
    display: flex; align-items: flex-start; gap: 10px; background: var(--panel-3); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 12px 14px; font-size: 12.5px; color: var(--text);
    box-shadow: var(--shadow-pop); animation: toast-in .18s ease-out;
    border-left: 3px solid var(--info);
  }
  .toast.success { border-left-color: var(--ok); }
  .toast.error { border-left-color: var(--danger); }
  .toast.warn { border-left-color: var(--warn); }
  .toast .t-icon { flex-shrink: 0; margin-top: 1px; }
  .toast.success .t-icon { color: var(--ok); }
  .toast.error .t-icon { color: var(--danger); }
  .toast.warn .t-icon { color: var(--warn); }
  .toast.info .t-icon { color: var(--info); }
  .toast .t-msg { display: block; line-height: 1.45; word-break: break-word; }
  .toast .t-close { background: none; border: none; box-shadow: none; color: var(--muted); cursor: pointer; padding: 0 0 0 4px; font-size: 13px; flex-shrink: 0; }
  .toast .t-close:hover { color: var(--text); }
  @keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  .toast .t-body { flex: 1; min-width: 0; }
  .toast .t-detail {
    display: block; margin-top: 3px; font-size: 12px; line-height: 1.4;
    color: var(--muted); word-break: break-word;
  }
  .toast .t-detail:empty { display: none; }
  .toast.error .t-detail { color: var(--text); }
  .save-chip {
    display: none; align-items: center; gap: 7px;
    margin: 12px 0 0; padding: 5px 12px 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 12.5px; line-height: 1.45; font-weight: 600;
    transition: opacity .4s ease;
  }
  .save-chip.pending, .save-chip.ok, .save-chip.bad { display: inline-flex; }
  .save-chip.ok {
    background: var(--ok-wash); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line);
    animation: save-chip-in var(--dur) var(--ease);
  }
  .save-chip.pending { background: var(--panel-2); color: var(--muted); font-weight: 500; }
  .save-chip.bad { background: var(--danger-wash); color: var(--danger); font-weight: 500; box-shadow: inset 0 0 0 1px var(--danger-line); }
  .save-chip.ok::before { content: '✓'; font-size: 11.5px; flex-shrink: 0; }
  .save-chip.bad::before { content: '✕'; font-size: 11.5px; flex-shrink: 0; }
  .save-chip.pending::before {
    content: ''; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
    border: 1.5px solid var(--border); border-top-color: var(--muted-2);
    animation: la-spin .7s linear infinite;
  }
  .save-chip.fading { opacity: 0; }
  @keyframes save-chip-in { from { opacity: 0; transform: translateY(4px) scale(.96); } to { opacity: 1; transform: none; } }
  #store-nickname-modal-overlay, #od-tracking-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 110; align-items: center; justify-content: center;
    padding: 20px; background: var(--scrim); backdrop-filter: blur(3px);
  }
  #store-nickname-modal-overlay.active, #od-tracking-modal-overlay.active { display: flex; animation: modal-scrim-in var(--dur) var(--ease); }
  #store-nickname-modal, #od-tracking-modal {
    width: min(100%, 360px); padding: 24px; text-align: center; background: var(--panel); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); animation: modal-pop var(--dur) var(--ease);
  }
  #store-nickname-modal h2, #od-tracking-modal h2 { margin: 0 0 6px; font-size: 17px; }
  #store-nickname-modal p, #od-tracking-modal p { margin: 0; color: var(--muted); font-size: 12.5px; }
  #store-nickname-modal, #od-tracking-modal { text-align: left; }
  #store-nickname-modal label, #od-tracking-modal label { display: block; margin: 18px 0 6px; }
  .store-nickname-actions, .od-tracking-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
  .is-revalidating {
    background-image: linear-gradient(90deg, transparent, var(--accent), transparent);
    background-repeat: no-repeat;
    background-size: 38% 2px;
    animation: reval-sweep 1.05s linear infinite;
  }
  @keyframes reval-sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
  @media (prefers-reduced-motion: reduce) {
    .is-revalidating { animation: none; background-image: linear-gradient(90deg, var(--accent-line), var(--accent-line)); background-size: 100% 2px; }
  }
  .skel { position: relative; overflow: hidden; background: var(--panel-2); border-radius: var(--radius-sm); color: transparent !important; }
  .skel::after {
    content: ''; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 8%, transparent), transparent);
    animation: skel-sweep 1.3s infinite;
  }
  @keyframes skel-sweep { 100% { transform: translateX(100%); } }
  .ord-table th.num, .ord-table td.num { text-align: right; white-space: nowrap; }
  .omoney { font-variant-numeric: tabular-nums; }
  .omoney.is-est {
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--muted-2);
    cursor: help;
  }
  .omoney.is-none { color: var(--muted-2); cursor: help; }
  .omoney.is-zero { color: var(--muted); }
  .omoney.is-up   { color: var(--ok); font-weight: 600; }
  .omoney.is-down { color: var(--danger); font-weight: 600; }
  .omoney.is-disc { color: var(--disc); font-weight: 600; cursor: help; }
  .omargin { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
  @keyframes ord-flash { from { background: var(--accent-wash); } to { background: transparent; } }
  td.flash { animation: ord-flash 700ms var(--ease); }
  @media (prefers-reduced-motion: reduce) { td.flash { animation: none; } }
  .ord-table td { height: 72px; vertical-align: middle; }
  .ord-table td.is-openable { cursor: pointer; }
  .ord-table td.is-openable:hover .ord-title { text-decoration: underline; }
  .ord-table tbody tr.row-link { cursor: default; }
  .ord-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .ord-thumb { width: 72px; height: 72px; object-fit: contain; border-radius: 8px;
    border: 1px solid var(--border); flex-shrink: 0; background: var(--panel-2); padding: 0; }
  .ord-thumb.is-blank { border-style: dashed; }
  .ord-act-td { width: 1%; white-space: nowrap; }
  .ord-acts { display: flex; gap: 4px; justify-content: flex-end; }
  .ord-act {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0; border-radius: 7px;
    border: 1px solid var(--border); background: var(--panel); color: var(--muted);
    cursor: pointer; flex: 0 0 auto;
  }
  .ord-act svg { width: 15px; height: 15px; }
  .ord-act:hover { color: var(--text); border-color: var(--muted-2); }
  .ord-act.is-go { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
  .ord-act.is-go:hover { background: var(--accent-wash); }
  .ord-act:disabled { opacity: .45; cursor: default; }
  .ord-item-t { min-width: 0; }
  .ord-title { display: block; color: inherit; text-decoration: none;
    font-size: 13.5px; line-height: 1.4; max-width: 230px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ord-when { font-size: 11.5px; color: var(--muted); margin-top: 2px;
    font-variant-numeric: tabular-nums; letter-spacing: .01em; }
  .ord-table td[data-ocell="qty"], .ord-table th.ord-th-qty {
    width: 1%; text-align: center; padding-left: 8px; padding-right: 8px;
  }
  .ord-qty { display: inline-block; font-size: 12.5px; color: var(--muted);
    font-variant-numeric: tabular-nums; }
  .ord-qty.is-many { padding: 1px 6px; border-radius: 5px; font-size: 12px;
    font-weight: 700; color: var(--accent); background: var(--accent-wash); }
  .ord-buyer { max-width: 150px; }
  .ord-buyer-n { font-size: 12.5px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; }
  .ord-buyer-u { font-size: 11px; color: var(--muted); margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @media (max-width: 1100px) { .ord-buyer { max-width: 110px; } }
  .ord-fbm { display: inline-flex; flex-shrink: 0; width: 15px; height: 15px; cursor: help; }
  .ord-fbm svg { width: 15px; height: 15px; stroke-width: 2; }
  .ord-fbm.is-positive { color: var(--ok); }
  .ord-fbm.is-negative { color: var(--st-error); }
  .ord-fbm.is-neutral, .ord-fbm.is-withdrawn { color: var(--muted); }
  .ord-fbm.is-auto { opacity: .5; }
  .ord-sub { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4;
    display: flex; align-items: center; gap: 4px; flex-wrap: nowrap;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
  .ord-sub.is-bad { color: var(--danger); font-weight: 600; }
  .ord-sub.is-late { color: var(--warn); }
  .ord-src-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ord-src-sep { flex: none; opacity: .6; }
  .ord-sm .od-val { font-size: 11px; padding: 2px 6px; gap: 5px; }
  .ord-sm .od-val-i { width: 11px; height: 11px; }
  .ord-stage { display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    justify-content: center; }
  .ord-table td[data-ocell="stage"], .ord-table th.ord-th-stage {
    width: 1%; padding-right: 4px; padding-left: 8px;
  }
  .ord-table th.ord-th-stage { font-size: 0; }
  .ord-table th.ord-th-stage::after { content: ""; font-size: 11px; }
  .ord-table td.ord-note-td, .ord-table th.ord-th-note { padding-left: 4px; }
  .order-notes-input { transition: border-color .18s, background-color .18s; }
  .order-notes-input.is-saved { border-color: var(--ok); background: var(--ok-wash); }
  .ord-state { margin-bottom: 1px; }
  .ord-bad { color: var(--danger); font-size: 12.5px; font-weight: 600; }
  .ord-track { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    justify-content: center; }
  .ord-sum { font-size: 12px; color: var(--muted); padding: 0; }
  .ord-sum:not(:empty) .ord-live:not(:empty) { display: inline-block; padding: 0 0 10px; }
  .ord-live { font-size: 11.5px; color: var(--muted-2); margin-left: 8px; }
  .ord-live b { color: var(--muted); font-weight: 500; }
  .ord-sum .omoney { color: var(--text); font-weight: 600; }
  .od-val.is-plain {
    background: none; border-color: transparent; padding-left: 0; padding-right: 0;
  }
  .od-val.is-plain:hover { background: none; border-color: transparent; text-decoration: underline; }
  .ord-table .od-val {
    white-space: nowrap; word-break: normal;
    overflow: hidden; text-overflow: ellipsis; max-width: 148px;
  }
  .ord-table td[data-ocell="tracking"] .od-val { max-width: none; }
  .ord-table td[data-ocell="tracking"] { min-width: 190px; }
  .ord-table tr.is-line > td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
  .ord-table tr.is-line:not(.is-line-last) > td { border-bottom-color: transparent; }
  .ord-shipby { margin-left:8px; opacity:.85; }
  .ord-shipby::before { content:'·'; margin-right:8px; opacity:.6; }
  .ord-late { display:inline-block; margin-left:8px; padding:0 5px; border-radius:4px;
    font-size:10.5px; letter-spacing:.02em; font-weight:600; vertical-align:1px;
    background:var(--danger-wash); color:var(--danger); }
  .od-late { color:var(--danger); font-weight:600; }
  .ord-part { display:inline-block; margin-left:8px; padding:0 5px; border-radius:4px;
    font-size:10.5px; letter-spacing:.02em; background:var(--chip-bg, rgba(127,127,127,.14));
    color:var(--muted, #7a7a7a); vertical-align:1px; }
  .ord-table td[data-ocell="amazon"] .od-val { max-width: none; }
  .ord-table td[data-ocell="orderid"], .ord-table td[data-ocell="amazon"],
  .ord-table td[data-ocell="tracking"] { white-space: nowrap; }
  #orders-table-wrap { overflow-x: auto; }
  .ord-table { width: max-content; min-width: 100%; }
  .ord-table th { white-space: nowrap; }
  @media (max-width: 1100px) { .ord-title { max-width: 170px; } }
  :root { --topbar-h: 70px; }
  .topbar { height: var(--topbar-h); }
  .content:has(#messages-page.active) { height: calc(100dvh - var(--topbar-h) - var(--shell-top, 0px)); }
  .pt-table thead th { top: calc(var(--topbar-h) + var(--shell-top, 0px)); }
  @media (min-width: 1101px) {
    .rtn-detail { top: calc(var(--topbar-h) + 16px + var(--shell-top, 0px)); max-height: calc(100dvh - var(--topbar-h) - 34px - var(--shell-top, 0px)); }
  }
  .sb-burger, .sb-scrim { display: none; }
  .sidebar > * { flex-shrink: 0; }
  .sidebar { height: calc(100dvh - var(--shell-top, 0px)); }
  #revisions-table-wrap, #batches-table-wrap, #listings-table-wrap:has(> table) { overflow-x: auto; overscroll-behavior-x: contain; }
  @media (max-width: 1180px) {
    .meter-chip.is-ai, .meter-chip.is-track { padding: 5px; gap: 0; }
    .meter-chip.is-ai .meter-chip-col, .meter-chip.is-track .meter-chip-col { display: none; }
    .meter-chip.is-store .meter-chip-num { max-width: 150px; }
  }
  @media (max-width: 900px) {
    :root { --topbar-h: 56px; }
    html.sb-collapsed { --sidebar-w: 244px; }
    .sidebar {
      position: fixed; top: var(--shell-top, 0px); left: 0; bottom: 0; z-index: 40;
      width: min(84vw, 300px); height: auto;
      transform: translateX(-104%); visibility: hidden;
      transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
    }
    html.sb-drawer-open .sidebar { transform: none; visibility: visible; transition: transform var(--dur) var(--ease); box-shadow: var(--shadow-pop); }
    html.sb-drawer-open .sb-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: var(--scrim); }
    html.sb-drawer-open { overflow: hidden; }
    .sb-collapse-btn {
      top: calc(var(--shell-top, 0px) + (var(--topbar-h) - 40px) / 2); left: 12px; z-index: 6;
      width: 40px; height: 40px; border-radius: 12px;
      background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: none;
    }
    .sb-collapse-btn:hover { background: var(--panel); color: var(--text); border-color: var(--muted-2); }
    .sb-collapse-btn:focus-visible { outline-color: var(--accent); }
    .sb-collapse-btn svg:not(.sb-burger) { display: none; }
    .sb-collapse-btn .sb-burger { display: block; width: 20px; height: 20px; }
    html.sb-drawer-open .sb-collapse-btn { left: calc(min(84vw, 300px) + 8px); z-index: 41; }
    .sb-tip { display: none !important; }
    .topbar { padding: 0 12px 0 64px; gap: 8px; }
    .topbar h1 { font-size: 16px; min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar-right { gap: 6px; min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
    .store-switcher { min-width: 0; flex: 0 1 auto; }
    .meter-chip.is-store { min-width: 0; max-width: 100%; padding: 4px 8px 4px 4px; gap: 6px; }
    .meter-chip.is-store .meter-chip-col { min-width: 0; }
    .meter-chip.is-store .meter-chip-num { max-width: none; display: block; overflow: hidden; text-overflow: ellipsis; }
    .meter-chip-logo { width: 34px; height: 30px; }
    .meter-chip { min-height: 40px; }
    .content { padding: 18px 16px 72px; }
    .page-header { margin-bottom: 16px; }
    .page-header h1 { font-size: 19px; }
    #app-shell { overflow-x: clip; }
  }
  @media (max-width: 640px) {
    .card { padding: 18px 16px; }
    .card .card { padding: 14px; }
    .breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  }
  @media (max-width: 560px) {
    .topbar h1 { display: none; }
    .topbar { padding-left: 62px; }
    .topbar-right { justify-content: space-between; }
    .store-switcher { flex: 1 1 auto; }
    .meter-chip.is-store { width: 100%; }
    .meter-chip.is-store .meter-chip-col { flex: 1 1 auto; }
  }
  @media (pointer: coarse) {
    .nav-item { min-height: 44px; }
    .sidebar-icon-btn { height: 40px; }
    .sidebar-account-actions { gap: 8px; }
  }
  :is(#batch-modal-overlay, #draft-batch-modal-overlay, #bulk-edit-modal-overlay, #listing-action-modal-overlay,
      #dedupe-modal-overlay, #revision-history-modal-overlay, #publish-result-modal-overlay,
      #store-nickname-modal-overlay, #od-tracking-modal-overlay, #lt-preview-modal-overlay) { z-index: 210; }
  #toast-stack { z-index: 220; }
  .hover-tip { z-index: 230; }
  .bell-panel { max-height: min(640px, calc(100dvh - var(--shell-top, 0px) - var(--topbar-h) - 16px)); }
  .add-asin-input { width: 100px; font-size: 12px; padding: 4px 6px; }
  @media (max-width: 900px) {
    .store-menu, .bell-panel {
      position: fixed; top: calc(var(--shell-top, 0px) + var(--topbar-h) + 4px); left: 8px; right: 8px;
      width: auto; min-width: 0; max-width: none;
    }
    .store-menu-list { max-height: calc(100dvh - var(--shell-top, 0px) - var(--topbar-h) - 120px); }
    #toast-stack { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .toast .t-close { min-width: 40px; min-height: 40px; margin: -12px -12px -12px 0; padding: 0; }
    :is(#batch-modal-overlay, #draft-batch-modal-overlay, #bulk-edit-modal-overlay, #listing-action-modal-overlay,
        #dedupe-modal-overlay, #revision-history-modal-overlay, #publish-result-modal-overlay,
        #store-nickname-modal-overlay, #od-tracking-modal-overlay, #lt-preview-modal-overlay) { padding: 12px 8px; }
    :is(#batch-modal, #draft-batch-modal, #bulk-edit-modal, #listing-action-modal, #dedupe-modal,
        #revision-history-modal, #publish-result-modal) { max-height: calc(100dvh - 24px); }
    #publish-result-modal { overflow-y: auto; }
    .modal-head { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
    #announce-banner, #plan-limit-banner, #impersonation-banner { padding: 8px 12px; font-size: 12px; gap: 8px; }
    #announce-banner { justify-content: flex-start; text-align: left; }
    #announce-banner.feature > span { flex: 1 1 calc(100% - 70px); min-width: 0; }
    #announce-banner .ab-x { min-width: 40px; min-height: 40px; margin: -6px -8px -6px auto; font-size: 15px; }
    #announce-banner a.ab-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; }
    .subtab { margin-right: 16px; padding: 12px 2px; }
    .subtab:last-child { margin-right: 0; }
    .subtabs.has-more, .bell-tabs {
      -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
      mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    }
  }
  @media (max-width: 640px) {
    .subtab { margin-right: 14px; }
    :is(#batch-modal-overlay, #draft-batch-modal-overlay, #bulk-edit-modal-overlay, #listing-action-modal-overlay,
        #dedupe-modal-overlay, #revision-history-modal-overlay, #publish-result-modal-overlay,
        #store-nickname-modal-overlay, #od-tracking-modal-overlay, #lt-preview-modal-overlay) { align-items: flex-start; padding: 8px; }
    :is(#batch-modal, #draft-batch-modal, #bulk-edit-modal, #listing-action-modal, #dedupe-modal,
        #revision-history-modal, #publish-result-modal) { max-height: calc(100dvh - 16px); }
    #store-nickname-modal-overlay, #od-tracking-modal-overlay { padding-top: max(16px, 6vh); overflow-y: auto; }
    #store-nickname-modal, #od-tracking-modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
  }
  @media (max-height: 500px) {
    #announce-banner, #announce-banner.feature { flex-wrap: nowrap; }
    #announce-banner > span, #announce-banner.feature > span { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  }
  @media (hover: none) {
    .bell-row { display: flex; align-items: center; gap: 2px; }
    .bell-row .bell-item { flex: 1 1 auto; min-width: 0; }
    .bell-acts { position: static; flex-direction: column; padding: 0; border: 0; background: none; box-shadow: none; }
  }
  @media (pointer: coarse) {
    :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) { font-size: 16px; }
    select { max-width: 100%; }
    .dr-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .dr-fields input { min-width: 0; }
    button.bell-act { width: 36px; height: 36px; }
    button.bell-tab { padding: 9px 12px; }
    button.bell-link { padding: 10px 8px; }
    .pagination, .mbx-foot .pagination, .rtn-foot .pagination { --pg-ctl: 40px; }
    .pagination { flex-wrap: wrap; }
    .gear-btn { min-width: 40px; min-height: 40px; }
    .id-chip-text, .id-chip-icon-btn { min-height: 36px; }
    .breadcrumb a { padding: 10px 0; margin: -10px 0; }
    .info-banner .ib-close { min-width: 40px; min-height: 40px; margin: -10px -8px -10px auto; }
    .modal-head button { min-height: 40px; }
    #batch-result-filter-tabs .subtab { min-height: 40px; }
  }
  @media (max-width: 640px) and (pointer: coarse) {
    .breadcrumb { padding-block: 10px; margin-block: -10px -2px; }
  }
  .order-notes-input { font-size: 12px; padding: 6px 8px; min-width: 96px; }
  #orders-date-from, #orders-date-to, #orders-apply-filters-btn { flex: 0 0 auto; }
  @media (pointer: coarse) {
    #order-detail-page .linkish { min-height: 40px; display: inline-flex; align-items: center; }
    .od-side-acts { gap: 6px 20px; }
    .od-val { min-height: 36px; }
    .od-head-acts .rb-chip, .od-head-acts button.secondary, #order-detail-page .od-acts button { min-height: 40px; }
    .ord-rb { padding: 6px 10px 6px 8px; }
    .order-notes-input { min-height: 40px; }
    .ord-act { width: 40px; height: 40px; }
    .cols-panel button.cols-mv { width: 40px; height: 40px; }
    .cols-row label { min-height: 40px; }
    .cols-grip { display: none; }
  }
  @media (max-width: 900px) {
    .od-body .id-chip-text .mono { max-width: none; }
    .od-row-v, .od-sum-v .od-val, #od-address { overflow-wrap: anywhere; }
  }
  @media (max-width: 640px) {
    .od-side .card { padding: 18px 16px; }
    .od-body.card { padding: 6px 16px 16px; }
    .od-row.is-alarm { margin: 0 -16px; padding: 14px 16px; }
    .od-strip.card { padding: 16px; }
    .kv-table td:first-child { padding-right: 12px; }
    #orders-page .listing-filter-bar { gap: 8px; }
    #orders-page .listing-filter-bar .search-input-wrap { order: -2; flex: 1 1 0; min-width: 0; }
    #orders-apply-filters-btn { order: -1; }
    #orders-store-select { flex: 1 1 100%; min-width: 0; }
    #orders-status-select, #orders-range-select, #orders-date-from, #orders-date-to,
    #orders-amazon-select, #orders-feedback-select { flex: 1 1 calc(50% - 4px); min-width: 0; }
    .cols-wrap .cols-panel, .cols-wrap.is-left .cols-panel {
      position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
      width: auto; max-width: none; max-height: min(75dvh, 560px); translate: none !important; z-index: 60;
    }
  }
  #orders-page .card:has(> #orders-table-wrap) { container: ordcard / inline-size; }
  @container ordcard (max-width: 600px) {
    #orders-table-wrap { overflow-x: visible; }
    #orders-table-wrap .ord-table { display: block; width: 100%; min-width: 0; }
    #orders-table-wrap .ord-table thead { display: none; }
    #orders-table-wrap .ord-table tbody { display: block; }
    #orders-table-wrap .ord-table tbody tr.row-link {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense;
      gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--border);
    }
    #orders-table-wrap .ord-table tbody tr.row-link:last-child { border-bottom: 0; }
    #orders-table-wrap .ord-table tbody tr.row-link:hover { background: none; }
    #orders-table-wrap .ord-table tbody tr.row-link.is-line { box-shadow: inset 2px 0 0 var(--accent); padding-left: 12px; }
    #orders-table-wrap .ord-table tbody tr.row-link.is-line:not(.is-line-last) { border-bottom-color: var(--border-soft); }
    #orders-table-wrap .ord-table tr.is-line > td:first-child { box-shadow: none; }
    #orders-table-wrap .ord-table td {
      display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
      height: auto; padding: 0; border: 0; min-width: 0; width: auto; text-align: left; white-space: normal;
    }
    #orders-table-wrap .ord-table td:first-child, #orders-table-wrap .ord-table td[data-ocell="ebay"],
    #orders-table-wrap .ord-table td[data-ocell="asin"], #orders-table-wrap .ord-table td[data-ocell="amazon"],
    #orders-table-wrap .ord-table td[data-ocell="tracking"], #orders-table-wrap .ord-table td.ord-note-td,
    #orders-table-wrap .ord-table td.ord-act-td { grid-column: 1 / -1; }
    #orders-table-wrap .ord-table td.ord-act-td:empty { display: none; }
    #orders-table-wrap .id-chip-text { min-width: 0; }
    #orders-table-wrap .ord-table td[data-ocell]::before, #orders-table-wrap .ord-table td.ord-note-td::before {
      font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2);
    }
    #orders-table-wrap td[data-ocell="qty"]::before { content: "Qty"; }
    #orders-table-wrap td[data-ocell="stage"]::before { content: "Stage"; }
    #orders-table-wrap td.ord-note-td::before { content: "Note"; }
    #orders-table-wrap td[data-ocell="buyer"]::before { content: "Buyer"; }
    #orders-table-wrap td[data-ocell="ebay"]::before { content: "eBay listing"; }
    #orders-table-wrap td[data-ocell="asin"]::before { content: "Amazon product"; }
    #orders-table-wrap td[data-ocell="amazon"]::before { content: "Amazon order"; }
    #orders-table-wrap td[data-ocell="profit"]::before { content: "Profit"; }
    #orders-table-wrap td[data-ocell="paid"]::before { content: "Buyer paid"; }
    #orders-table-wrap td[data-ocell="payout"]::before { content: "eBay pays you"; }
    #orders-table-wrap td[data-ocell="cost"]::before { content: "Amazon cost"; }
    #orders-table-wrap td[data-ocell="tracking"]::before { content: "Tracking"; }
    #orders-table-wrap td[data-ocell="actions"]::before { content: none; }
    #orders-table-wrap .ord-item { align-items: flex-start; width: 100%; }
    #orders-table-wrap .ord-thumb { width: 64px; height: 64px; }
    #orders-table-wrap .ord-title {
      max-width: none; white-space: normal; padding: 2px 0;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    #orders-table-wrap .ord-when { white-space: normal; line-height: 1.6; }
    #orders-table-wrap .ord-shipby, #orders-table-wrap .ord-late, #orders-table-wrap .ord-part { white-space: nowrap; }
    #orders-table-wrap .ord-buyer, #orders-table-wrap .ord-sub, #orders-table-wrap .od-val { max-width: 100%; }
    #orders-table-wrap td[data-ocell="tracking"] .od-val, #orders-table-wrap td[data-ocell="amazon"] .od-val { white-space: normal; overflow-wrap: anywhere; }
    #orders-table-wrap td[data-ocell="stage"] .od-pill.is-icon { padding: 6px 10px 6px 7px; gap: 7px; }
    #orders-table-wrap td[data-ocell="stage"] .od-pill.is-icon::after { content: attr(data-tip-title); font-size: 12px; }
    #orders-table-wrap td[data-ocell="stage"] .od-pill.is-icon[title]::after { content: attr(title); }
    #orders-table-wrap .order-notes-input { width: 100%; }
    #orders-table-wrap .ord-acts { justify-content: flex-start; flex-wrap: wrap; gap: 8px; max-width: 100%; }
    #orders-table-wrap .ord-act {
      width: auto; height: auto; min-height: 40px; max-width: 100%; padding: 6px 12px; gap: 7px;
      white-space: normal; text-align: left; font-size: 12.5px; font-weight: 600; text-decoration: none;
    }
    #orders-table-wrap .ord-act::after { content: attr(title); }
  }
  @media (max-width: 720px) {
    .odp { left: 0; right: 0; width: 100%; top: var(--shell-top, 0px); bottom: auto; height: calc(100dvh - var(--shell-top, 0px)); }
    .odp-head { padding: 10px 8px 8px 14px; }
    .odp-fine { font-size: 11px; margin-top: 6px; line-height: 1.4; }
    .odp-composer textarea { min-height: 64px; }
    .odp-list, .odp .mbx-thread { overscroll-behavior: contain; }
  }
  @media (max-width: 720px), (pointer: coarse) {
    .odp-x { width: 44px; height: 44px; }
  }
  @media (max-width: 1000px) {
    .mbx[data-view="thread"] { grid-template-rows: minmax(0, 1fr); }
    .mbx-read-sub b { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  }
  @media (max-width: 720px), (max-height: 500px) {
    .content:has(#messages-page.active) { min-height: 0; padding: 8px; }
    #messages-page .breadcrumb { display: none; }
    .mbx { border-radius: var(--radius-md); }
    .mbx-search { padding: 8px 10px 6px; }
    .mbx-search input { padding-top: 9px; padding-bottom: 9px; }
    .mbx-bar { padding: 0 12px 6px; min-height: 40px; flex-wrap: wrap; }
    .mbx-bar input[type="checkbox"], .mbx-row-check input { width: 22px; height: 22px; min-width: 22px; }
    .mbx-bar input[type="checkbox"]:checked::after, .mbx-row-check input:checked::after { left: 7px; top: 3px; width: 5px; height: 10px; }
    .mbx-bar input[type="checkbox"]:indeterminate::after { left: 5px; top: 8px; }
    .mbx-bar input[type="checkbox"]::before, .mbx-row-check input::before { content: ""; position: absolute; inset: -10px; }
    .mbx-row-check { padding-top: 0; }
    .mbx-tool { min-height: 36px; padding: 6px 12px; }
    .mbx-row { grid-template-columns: auto 48px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .mbx-thumb, .mbx-thumb img { width: 48px; height: 48px; }
    .mbx-rail { padding: 6px 8px; }
    .mbx-folder { min-height: 40px; padding: 8px 10px; }
    .mbx-foot .pagination { gap: 8px; }
    .mbx-foot .pagination .pg-size { font-size: 0; gap: 0; }
    .mbx-foot .pagination .pg-select { font-size: 13px; }
    .mbx-read-head { align-items: flex-start; gap: 8px; padding: 8px 10px; }
    .mbx-back { width: 40px; height: 40px; padding: 0; justify-content: center; align-items: center; font-size: 22px; flex-shrink: 0; }
    .mbx-read-head .mbx-thumb { display: none; }
    .mbx-read-title { font-size: 14px; line-height: 1.35; }
    .mbx-read-sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-size: 12px; }
    .mbx-read-sub .sep { margin: 0 4px; }
    .mbx-read-ids { gap: 6px; margin: 6px -48px 0; }
    .mbx-read-ids .id-chip-text { padding: 4px 4px 4px 10px; }
    .mbx-read-ids .id-chip-icon-btn { padding: 4px 9px 4px 7px; }
    .mbx-read-ids .id-chip-text .mono { font-size: 12px; max-width: 84px; }
    .mbx-read-actions .gear-btn { width: 40px; height: 40px; }
    #messages-page .mbx-thread { padding: 12px 10px 4px; }
    #messages-page .mbx-msg { gap: 6px; margin-bottom: 12px; }
    #messages-page .mbx-msg-ava { width: 24px; height: 24px; font-size: 10px; }
    #messages-page .mbx-bubble { max-width: 88%; padding: 9px 12px; line-height: 1.5; }
    .mbx-composer { display: flex; flex-direction: column; padding: 8px 10px 10px; max-height: 50%; }
    .mbx-composer textarea { flex: 0 1 auto; min-height: 64px; line-height: 1.5; padding: 9px 11px; resize: none; }
    .mbx-composer-row { margin-top: 8px; }
    .mbx-composer .fine-print { font-size: 11px; margin: 6px 0 0; line-height: 1.4; }
    .slash-menu-item { grid-template-columns: minmax(0, 1fr); min-height: 44px; }
    .slash-menu-cmd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .slash-menu-peek { grid-column: 1; }
  }
  @media (max-height: 500px) {
    .mbx-read-ids { display: none; }
    .mbx-read-title { -webkit-line-clamp: 1; }
    .mbx-composer { max-height: 60%; }
  }
  @media (hover: none) { .slash-menu-head { display: none; } }
  .rtn-prod-m { overflow-wrap: anywhere; }
  .rtn-detail, .rtn-form { scroll-margin-top: calc(var(--shell-top, 0px) + var(--topbar-h) + 12px); }
  @media (max-width: 720px) {
    #returns-page:has(#rtn-detail:not(.is-idle)) :is(.page-header, #rtn-tabs, .rtn-filters, .rtn-band, .rtn-listpane) { display: none; }
    #returns-page .page-header p { display: none; }
    .rtn-filters { gap: 8px; }
    .rtn-filters select { flex: 1 1 100%; }
    .rtn-card { padding: 12px; gap: 10px; grid-template-columns: 52px minmax(0, 1fr); }
    .rtn-thumb { width: 52px; height: 52px; }
    .rtn-d { padding: 14px 14px 18px; }
    .rtn-back { display: inline-flex; align-items: center; min-height: 40px; margin: -8px 0 4px; }
    .rtn-form { padding: 12px 12px 2px; }
    .rtn-foot .pagination .pg-size { font-size: 0; gap: 0; }
    .rtn-foot .pagination .pg-select { font-size: 13px; }
    .rtn-amz-dot { z-index: 1; }
  }
  @media (max-width: 720px), (max-height: 500px), (pointer: coarse) {
    .mbx-composer-row button { min-height: 40px; }
    .rtn-acts button, .rtn-form-foot button, .rtn-ai button { min-height: 40px; }
    .rtn-refresh { min-width: 40px; min-height: 40px; }
  }
  @media (max-width: 640px), (pointer: coarse) {
    .dash-range-select { min-height: 40px; padding: 8px 32px 8px 12px; }
    .dr-fields input { min-height: 40px; min-width: 0; }
    .dr-chip { min-height: 40px; }
    .dr-actions button { min-height: 40px; padding: 9px 16px; }
    .trend-card .tn-tab { min-height: 36px; padding: 6px 14px; }
    .trend-card .trend-link { display: inline-flex; align-items: center; min-height: 40px; }
    .onboarding-step a.onboarding-action { flex-shrink: 0; white-space: nowrap; padding: 10px 0 10px 8px; }
  }
  @media (max-width: 640px) {
    .dash-section-head { position: relative; gap: 12px; }
    .dash-section-head h2 { min-width: 0; }
    .dash-section-head .dr-wrap { position: static; }
    .dash-section-head .dr-pop { left: 0; right: 0; width: auto; max-width: none; }
    .stat .lbl, .store-card .sc-meta, .dr-note, .trend-card .tn-mix-note { font-size: 12.5px; }
    .store-card .sc-pill { font-size: 10.5px; }
    .reward-main { flex-basis: 200px; }
  }
  @media (max-width: 820px) {
    .stat-row-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat .num { overflow-wrap: anywhere; }
  }
  @media (max-width: 380px) {
    .dr-fields { grid-template-columns: minmax(0, 1fr); }
    .stat .num { font-size: 17px; }
  }
  @container trendcard (max-width: 560px) {
    .trend-card .tn-mix-row span { white-space: normal; }
  }
  @media (pointer: coarse) {
    .store-edit-btn { top: 0; right: 0; padding: 13px; }
    .store-card .sc-name { padding-right: 30px; }
  }
  @media (hover: none) {
    .store-card:hover { transform: none; box-shadow: none; }
    .store-card:not(.active):not(.add-store):hover, .stat.stat-clickable:hover { border-color: var(--border); }
  }
  .btn-fixed { flex: 0 0 auto; }
  .bulk-bar > span + button { margin-left: auto; }
  .lst-badge { margin-left: 6px; white-space: nowrap; }
  .draft-acts { white-space: nowrap; }
  .dp-row { flex-wrap: wrap; }
  .dp-row > .card:first-child { min-width: min(100%, 360px); }
  .dp-row > .card:last-child { min-width: min(100%, 320px); }
  @media (max-width: 900px) {
    #review-section { container: review / inline-size; }
    :is(#revisions-table-wrap, #revision-history-modal-body) td { white-space: nowrap; }
    :is(#revisions-table-wrap, #revision-history-modal-body) td:nth-child(11) { white-space: normal; min-width: 220px; }
    .lst-badge { white-space: normal; max-width: 100%; margin-left: 0; }
    #batch-modal-live-note:empty { display: none; }
  }
  @container review (max-width: 700px) {
    .review-layout { grid-template-columns: minmax(0, 1fr); }
    .review-layout .photo-main-preview { max-width: 400px; }
  }
  @media (max-width: 640px) {
    .row { flex-wrap: wrap; }
    .row > * { min-width: 0; }
    .row > div, .row > label { flex: 1 1 140px; }
    .row > button { flex: 1 1 auto; }
    .row:has(> button) { row-gap: 10px; }
    #single-subpage .row:has(#single-store-select) > * { flex-basis: 100%; }
    .dp-row .lt-editor-wrap { height: 300px; }
    .dp-row .lt-preview-frame { height: 380px; }
    .ai-field-row { flex-wrap: wrap; }
    .ai-field-row .ai-btn { flex: 1 1 100%; min-height: 40px; justify-content: center; }
    :is(#ld-specifics-list, #specifics-custom-list) .ld-row { flex-wrap: wrap; row-gap: 8px; }
    .ld-row input:is(.ld-spec-key, .review-spec-key) { flex-basis: 100%; }
    .category-list { max-height: none; }
    .promo-row-rate { margin-left: 0; }
    #publish-result:empty, .photo-cell .badge:empty { display: none; }
    #listings-page .listing-filter-bar { gap: 8px; }
    #listings-store-select { flex: 1 1 100%; min-width: 0; order: -2; }
    #listings-page .listing-filter-bar .search-input-wrap { flex: 1 1 100%; min-width: 0; order: -1; }
    #listings-status-select, #listings-sort-select { flex: 1 1 calc(50% - 4px); min-width: 0; }
    #listings-view-toggle, #listings-cols { display: none; }
    #listings-duplicate-banner { flex-wrap: wrap; }
    #listings-duplicate-banner-text { flex: 1 1 calc(100% - 30px); min-width: 0; }
    .bulk-bar { flex-wrap: wrap; align-items: stretch; gap: 8px; padding: 10px 12px; }
    .bulk-bar > span { flex: 1 1 100%; }
    .bulk-bar > button, .bulk-bar > span + button { flex: 1 1 calc(50% - 4px); margin-left: 0; }
    .listing-card .lc-body { gap: 12px; padding: 12px 14px; }
    .lc-thumb { width: 104px; height: 104px; }
    .listing-card .id-chip-text { min-width: 0; padding: 6px 4px 6px 10px; }
    .listing-card .id-chip-text .mono { font-size: 12px; }
    .listing-card .id-chip-icon-btn { padding: 6px 9px 6px 7px; }
    .lc-footer, .lc-footer-stats { flex-wrap: wrap; row-gap: 4px; }
    .lc-footer-stats span { white-space: nowrap; }
    #listing-action-modal-body table, #listing-action-modal-body tbody { display: block; }
    #listing-action-modal-body thead { display: none; }
    #listing-action-modal-body tr {
      display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; align-items: center;
      padding: 10px 0; border-bottom: 1px solid var(--border-soft);
    }
    #listing-action-modal-body td { padding: 0; border: 0; }
    #listing-action-modal-body td:first-child { grid-row: 1 / span 2; align-self: start; }
    #listing-action-modal-body td.la-title {
      max-width: none; white-space: normal;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    :is(#revisions-table-wrap, #revision-history-modal-body) :is(table, tbody) { display: block; }
    :is(#revisions-table-wrap, #revision-history-modal-body) thead { display: none; }
    :is(#revisions-table-wrap, #revision-history-modal-body) tr {
      display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 12px;
      padding: 14px 0; border-bottom: 1px solid var(--border);
    }
    :is(#revisions-table-wrap, #revision-history-modal-body) tr:last-child { border-bottom: 0; }
    :is(#revisions-table-wrap, #revision-history-modal-body) td {
      display: flex; flex-direction: column; align-items: flex-start; gap: 3px; grid-column: span 2;
      min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere;
    }
    :is(#revisions-table-wrap, #revision-history-modal-body) td::before {
      content: attr(data-label); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2);
    }
    :is(#revisions-table-wrap, #revision-history-modal-body) td:nth-child(-n+2) { grid-column: span 3; }
    :is(#revisions-table-wrap, #revision-history-modal-body) :is(td:nth-child(3), td:nth-child(4)) { grid-column: 1 / -1; }
    :is(#revisions-table-wrap, #revision-history-modal-body) td:nth-child(11) { grid-column: span 4; min-width: 0; }
    #batches-table-wrap :is(table, tbody) { display: block; }
    #batches-table-wrap thead { display: none; }
    #batches-table-wrap tr {
      display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 3px 10px; align-items: center;
      padding: 12px 0; border-bottom: 1px solid var(--border-soft);
    }
    #batches-table-wrap td { padding: 0; border: 0; }
    #batches-table-wrap td:nth-child(1) { grid-row: 1; grid-column: 1; }
    #batches-table-wrap td:nth-child(2) { grid-row: 1; grid-column: 2; font-weight: 600; }
    #batches-table-wrap td:nth-child(10) { grid-row: 1; grid-column: 3; }
    #batches-table-wrap td:nth-child(n+3):nth-child(-n+9), #batches-table-wrap td:nth-child(11) { grid-column: 2 / -1; font-size: 12px; }
    #batches-table-wrap td:nth-child(4)::before { content: "Created "; color: var(--muted-2); }
    #batches-table-wrap td:nth-child(5)::before { content: "Completed "; color: var(--muted-2); }
    #batches-table-wrap td:nth-child(7)::before { content: "Progress "; color: var(--muted-2); }
    #batches-table-wrap td:nth-child(11):empty { display: none; }
    #batch-modal-body :is(table, tbody) { display: block; }
    #batch-modal-body thead { display: none; }
    #batch-modal-body tr {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center;
      padding: 12px 0; border-bottom: 1px solid var(--border-soft);
    }
    #batch-modal-body td { padding: 0; border: 0; min-width: 0; }
    #batch-modal-body td:nth-child(1) { grid-row: 1; grid-column: 1; }
    #batch-modal-body td:nth-child(4) { grid-row: 1; grid-column: 2; }
    #batch-modal-body :is(td:nth-child(2), td:nth-child(3), td:nth-child(5)) { grid-column: 1 / -1; }
    #batch-modal-body :is(td:nth-child(3):has(> .muted:only-child), td:nth-child(5):empty) { display: none; }
    .draft-list-scroll { max-height: none; }
    :is(#single-drafts-table-wrap, #draft-batch-modal-body) :is(table, thead, tbody) { display: block; }
    :is(#single-drafts-table-wrap, #draft-batch-modal-body) thead th:not(:first-child) { display: none; }
    :is(#single-drafts-table-wrap, #draft-batch-modal-body) thead tr { display: flex; border-bottom: 1px solid var(--border-soft); }
    :is(#single-drafts-table-wrap, #draft-batch-modal-body) thead th { padding: 2px 0 10px; border: 0; }
    :is(#single-drafts-table-wrap, #draft-batch-modal-body) tbody tr {
      display: grid; grid-template-columns: 28px 48px minmax(0, 1fr); gap: 2px 10px; align-items: center;
      padding: 12px 0; border-bottom: 1px solid var(--border-soft);
    }
    :is(#single-drafts-table-wrap, #draft-batch-modal-body) td { padding: 0; border: 0; min-width: 0; }
    :is(#single-drafts-table-wrap, #draft-batch-modal-body) :is(td:nth-child(4), td:nth-child(5)) { grid-column: 3; font-size: 12px; }
    :is(#single-drafts-table-wrap, #draft-batch-modal-body) td.draft-row-action { grid-column: 1 / -1; margin-top: 8px; }
    .draft-acts { display: flex; gap: 8px; white-space: normal; }
    .draft-acts button { flex: 1 1 0; }
    #batch-modal-body, #draft-batch-modal-body, #revision-history-modal-body, #listing-action-modal-body { padding-left: 12px; padding-right: 12px; }
    #batch-result-filter-tabs { margin-left: 12px; margin-right: 12px; }
  }
  @media (max-width: 380px) {
    .adv-filters-row:first-child > div { flex-basis: 100%; }
  }
  @media (max-width: 640px), (pointer: coarse) {
    .bulk-bar > button, .draft-row-action button { min-height: 40px; }
  }
  @media (pointer: coarse) {
    .photo-cell input[type=radio] { width: 26px; height: 26px; min-width: 26px; top: 4px; right: 4px; }
    .photo-cell input[type=radio]:checked::after { width: 10px; height: 10px; }
    .photo-cell input[type=radio]::before { content: ""; position: absolute; inset: -8px; }
    .listing-row-check, #listings-select-all { transform: scale(1.375); margin: 6px; }
    .listing-grid-head .checkbox-row { min-height: 40px; gap: 10px; }
    .search-input-wrap .search-icon-btn { padding: 12px; margin-left: -12px; }
    .view-toggle-btn { min-width: 40px; min-height: 40px; justify-content: center; }
    #bulk-policies-refresh-btn, .bulk-schedule-cancel, #listings-dedupe-btn { min-height: 40px; }
  }
  @media (max-width: 900px) {
    .store-row { flex-wrap: wrap; }
    .store-row .store-name { min-width: 0; overflow-wrap: anywhere; }
    #team-members-body .row > div { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
    #team-members-body .row > button, #team-invite-btn { flex: 0 0 auto; }
    #support-signature-fields > div:last-child { max-width: 100%; }
    #support-signature-preview { overflow-wrap: anywhere; }
  }
  @media (max-width: 640px) {
    .accordion-header { padding: 16px; gap: 12px; }
    .accordion-body { padding: 0 16px 16px; }
    .ffp .accordion-header .ffp-acc-note { min-width: 0; text-align: right; }
    .price-range-row, .promoted-range-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; column-gap: 10px; }
    .price-range-row > div:last-child, .promoted-range-row > div:last-child { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
    .price-range-row > div:last-child button, .promoted-range-row > div:last-child button { width: 44px; height: 44px; }
    .store-row .store-name, .store-row > span:not(.store-name) { flex: 1 0 100%; }
    .store-row button { flex: 1 1 0; margin-left: 0; padding: 9px 14px; font-size: 13px; }
    #set-tracking-origin-city { flex: 1 1 100%; }
    .pill-input-row { flex-wrap: wrap; }
    .pill-input-row .pill-add-input { flex: 1 1 0; min-width: 0; }
    .pill-input-row .pill-search-input { flex: 1 1 100%; }
    #template-list-wrap :is(table, tbody) { display: block; }
    #template-list-wrap tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
    #template-list-wrap tr:last-child { border-bottom: 0; }
    #template-list-wrap td { padding: 0; border: 0; }
    #template-list-wrap td:first-child { flex: 1 1 100%; }
    #template-list-wrap td:not(:first-child) { min-width: max-content; }
    .info-tip-bubble {
      position: fixed; left: 16px; right: 16px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
      transform: none; width: auto; z-index: 150; font-size: 13px;
    }
    .ffl { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
    .ffl-card { padding: 16px; }
    .ffl-head { flex-wrap: wrap; }
    .ffl-id { flex: 1 1 160px; }
    .ffl-head .status-pill { margin-left: auto; }
    .ffp-states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
    .ffp-row input { min-width: 0; flex: 1 1 160px; }
    .ffp-id { min-width: min(220px, 100%); }
    .ref-table-wrap :is(table, tbody) { display: block; }
    .ref-table-wrap thead { display: none; }
    .ref-table-wrap tr {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center;
      padding: 12px 0; border-bottom: 1px solid var(--border-soft);
    }
    .ref-table-wrap tr:last-child { border-bottom: 0; }
    .ref-table-wrap td { padding: 0; border: 0; min-width: 0; }
    .ref-table-wrap td:nth-child(1) { grid-column: 1 / -1; overflow-wrap: anywhere; }
    .ref-table-wrap td:nth-child(2) { display: none; }
    .ref-table-wrap td:nth-child(4) { text-align: right; }
    :is(#billing-invoices-body, #billing-activity-body) :is(table, tbody) { display: block; }
    :is(#billing-invoices-body, #billing-activity-body) thead { display: none; }
    :is(#billing-invoices-body, #billing-activity-body) tr {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: baseline;
      padding: 12px 0; border-bottom: 1px solid var(--border-soft);
    }
    :is(#billing-invoices-body, #billing-activity-body) tr:last-child { border-bottom: 0; }
    :is(#billing-invoices-body, #billing-activity-body) td { padding: 0; border: 0; min-width: 0; }
    :is(#billing-invoices-body, #billing-activity-body) td:nth-child(1) { grid-column: 1; grid-row: 1; }
    :is(#billing-invoices-body, #billing-activity-body) td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    #billing-invoices-body td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
    #billing-invoices-body td:nth-child(4) { grid-column: 1; grid-row: 3; }
    #billing-invoices-body td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
    #billing-activity-body td:nth-child(3) { grid-column: 1; grid-row: 3; }
    #billing-activity-body td:nth-child(4) { grid-column: 2; grid-row: 1; }
    #billing-activity-body td:nth-child(5) { grid-column: 2; grid-row: 3; }
    #billing-activity-body td:nth-child(3)::before { content: "Paid with "; }
    #billing-activity-body td:nth-child(5)::before { content: "Balance after "; }
    .plan-slider-feat { grid-template-columns: minmax(0, 1fr); }
    .pack-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  }
  @media (pointer: coarse) {
    .info-tip { width: 24px; height: 24px; font-size: 12px; }
    .info-tip::before { content: ""; position: absolute; inset: -8px; }
    .pill-x { position: relative; flex-shrink: 0; width: 26px; height: 26px; font-size: 12px; }
    .pill-x::after { content: ""; position: absolute; inset: -7px; }
    .store-row button, #template-list-wrap td button, .tg-actions > button,
    .ffl-actions button, button.ffl-otp, .ffp-tools button, .ffp-actions button, .pack-grid button,
    :is(#settings-page, #fulfillment-page, #fulfillment-account-page, #billing-page, #referrals-page, #account-page) button.sm { min-height: 40px; }
    .price-range-row > div:last-child button, .promoted-range-row > div:last-child button { min-width: 40px; min-height: 40px; }
    label.ff-check { min-height: 40px; }
    .ffl-foot a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
    #billing-renewal-toggle, #billing-cancel-pending { min-height: 40px; }
  }
  @media (min-width: 901px) and (hover: none) {
    #sb-collapse-btn { display: none; }
  }
  @media (min-width: 901px) and (pointer: coarse) {
    #announce-banner .ab-x { min-width: 40px; min-height: 40px; margin: -10px -8px; }
    #announce-banner a.ab-cta { display: inline-flex; align-items: center; min-height: 40px; margin-block: -6px; }
  }
  