:root {
  --shell:#354A5F; --shell-d:#25313F; --accent:#0070F2; --accent-d:#0040B0;
  --bg:#F7F7F7; --card:#FFFFFF; --line:#D9D9D9; --line-soft:#E5E5E5;
  --ink:#32363A; --ink-2:#6A6D70;
  --good:#107E3E; --good-bg:#EAF7EE; --warn:#E9730C; --warn-bg:#FEF3E6;
  --bad:#BB0000; --bad-bg:#FBEAEA;
}
* { box-sizing:border-box; }
body { margin:0; font:14px/1.5 -apple-system,"Segoe UI",Arial,sans-serif; color:var(--ink); background:var(--bg); }
.container { max-width:1120px; margin:0 auto; padding:20px 24px; }
.container.narrow { max-width:440px; padding-top:9vh; }

.topnav { display:flex; flex-wrap:wrap; gap:2px; align-items:center; background:var(--shell); color:#fff; padding:0 16px; height:44px; }
.topnav a { color:rgba(255,255,255,.82); text-decoration:none; font-size:13px; padding:0 10px; height:44px; display:flex; align-items:center; gap:7px; border-bottom:3px solid transparent; }
.topnav a svg { width:17px; height:17px; flex:none; opacity:.85; }
.topnav a:hover svg { opacity:1; }
.topnav a:not(.brand) { position:relative; }
.topnav a:not(.brand)::after {
  content:"";
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:1px; height:58%;
  background:linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.38) 50%, rgba(255,255,255,0) 100%);
}
.topnav a:not(.brand):last-of-type::after { display:none; }
.topnav a:hover { color:#fff; background:rgba(255,255,255,.06); }
.topnav .brand { font-weight:700; font-size:16px; color:#fff; padding-right:16px; letter-spacing:.2px; display:flex; align-items:center; }
.topnav .brand-icon { height:26px; width:auto; margin-right:8px; }
.topnav .brand span { color:#6FC3E8; }
.topnav .brand em { font-style:normal; opacity:.7; font-weight:400; font-size:12px; margin-left:4px; }
.topnav .spacer { flex:1; }
.topnav .who { font-size:12px; opacity:.75; padding:0 8px; }
.topnav .btn.ghost { color:#fff; border-color:rgba(255,255,255,.35); height:28px; padding:0 12px; font-size:12px; }
.topnav .btn.ghost:hover { background:rgba(255,255,255,.1); }
.topnav .zentoryx-mark { height:20px; width:auto; margin-left:14px; opacity:.92; display:block; }

.profile-menu { position:relative; height:44px; display:flex; align-items:center; }
.who-btn {
  background:none; border:none; color:rgba(255,255,255,.85); font:inherit; font-size:12.5px;
  padding:0 10px; height:44px; display:flex; align-items:center; gap:5px; cursor:pointer;
}
.who-btn:hover { color:#fff; }
.who-btn .caret { font-size:9px; opacity:.7; color:#6FC3E8; }
.qr-box { margin:12px 0; }

.disclaimer-critical {
  background:#FDEAEA; border:2px solid var(--bad); border-radius:4px;
  padding:14px 16px; margin:12px 0;
}
.disclaimer-critical b, .disclaimer-critical strong { color:var(--bad); }
.disclaimer-critical p { color:#7A0000; font-weight:600; margin:0 0 6px; }
.disclaimer-critical p:last-child { margin-bottom:0; }

.disclaimer-amber {
  background:var(--warn-bg); border:2px solid var(--warn); border-radius:4px;
  padding:14px 16px; margin:12px 0;
}
.disclaimer-amber b, .disclaimer-amber strong { color:var(--warn); }
.disclaimer-amber p { color:#7A3D00; margin:0 0 6px; }
.disclaimer-amber p:last-child { margin-bottom:0; }

.critical-popup-overlay { position:fixed; inset:0; background:rgba(37,49,63,.6); z-index:200; }
.critical-popup {
  position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:201;
  background:#fff; border:3px solid var(--bad); border-radius:6px; padding:24px;
  max-width:440px; width:90%; box-shadow:0 12px 40px rgba(0,0,0,.3);
}
.critical-popup h3 { color:var(--bad); font-size:18px; margin:0 0 12px; font-weight:700; }
.critical-popup p { color:#7A0000; font-weight:600; font-size:14px; margin:0 0 10px; }
.critical-popup .fine { color:var(--ink-2); font-weight:400; }

.line-card { background:#fff; border:1px solid var(--line); border-radius:4px; padding:12px; margin:10px 0; }
.line-card .lf-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:10px; }
.line-card .lf-wide { grid-column:1 / -1; }
.line-card label { margin:0; font-size:11px; }
.line-card input, .line-card select { width:100%; max-width:none; margin-top:4px; }
.line-card .lf-foot { margin-top:10px; display:flex; justify-content:space-between; align-items:center; }
.profile-menu:focus-within .who-btn, .profile-menu:hover .who-btn { color:#fff; }
.profile-dropdown {
  position:absolute; top:44px; right:0; min-width:170px; z-index:50;
  background:#fff; color:var(--ink); border:1px solid var(--line); border-top:2px solid var(--accent);
  border-radius:0 0 4px 4px; box-shadow:0 8px 24px rgba(0,0,0,.18); overflow:hidden;
  display:none;
}
.profile-menu:hover .profile-dropdown, .profile-menu:focus-within .profile-dropdown { display:block; }
.profile-dropdown a { display:block; height:auto; padding:10px 14px; color:var(--ink); text-decoration:none; font-size:13px; font-weight:600; border:none; }
.profile-dropdown a:hover { background:rgba(0,112,242,.08); color:var(--accent-d); }

.app-body { display:flex; align-items:flex-start; min-height:calc(100vh - 44px); position:relative; }

.sidebar {
  flex:none; width:168px; background:var(--shell-d);
  border-right:1px solid rgba(255,255,255,.1);
  display:flex; flex-direction:column; padding:10px 0;
  position:sticky; top:44px; height:calc(100vh - 44px); overflow-y:auto;
}
.sidebar a {
  display:flex; align-items:center; gap:10px; padding:10px 16px;
  color:rgba(255,255,255,.72); text-decoration:none; font-size:13px; font-weight:600;
  border-left:3px solid transparent; white-space:nowrap; position:relative;
}
.sidebar a:not(:last-child)::after {
  content:""; position:absolute; left:16px; right:16px; bottom:0; height:1px;
  background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.14) 50%, rgba(255,255,255,0) 100%);
}
.sidebar a svg { width:17px; height:17px; flex:none; opacity:.8; }
.sidebar a:hover { background:rgba(255,255,255,.06); color:#fff; border-left-color:#6FC3E8; }
.sidebar a:hover svg { opacity:1; }

.app-main { flex:1; min-width:0; }

.how-it-works-fab {
  position:fixed; bottom:26px; right:26px; z-index:60;
  height:48px; min-width:48px; border-radius:24px; border:none;
  background:linear-gradient(135deg, #0070F2 0%, #4FA8FF 100%); color:#fff; cursor:pointer;
  display:flex; align-items:center; overflow:hidden;
  box-shadow:0 6px 18px rgba(0,112,242,.45), 0 2px 6px rgba(0,0,0,.15);
  transition:min-width .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, transform .2s ease;
  padding:0; white-space:nowrap;
  animation:fabPulse 3s ease-in-out infinite;
}
.how-it-works-fab .fab-icon {
  width:48px; height:48px; flex:none; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:18px;
}
.how-it-works-fab .fab-label {
  max-width:0; opacity:0; overflow:hidden; font-size:13.5px; font-weight:700;
  transition:max-width .3s ease, opacity .2s ease .08s;
}
.how-it-works-fab:hover {
  min-width:180px; transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(0,112,242,.55), 0 4px 10px rgba(0,0,0,.18);
  animation-play-state:paused;
}
.how-it-works-fab:hover .fab-label { max-width:150px; opacity:1; padding-right:18px; }
.how-it-works-fab:active { transform:translateY(0); }
.how-it-works-fab:focus-visible { outline:2px solid #fff; outline-offset:2px; }
@keyframes fabPulse {
  0%, 100% { box-shadow:0 6px 18px rgba(0,112,242,.45), 0 2px 6px rgba(0,0,0,.15); }
  50% { box-shadow:0 6px 22px rgba(0,112,242,.7), 0 2px 6px rgba(0,0,0,.15); }
}

h1 { font-size:22px; font-weight:600; margin:18px 0 14px; color:var(--ink); }
h2 { font-size:15px; font-weight:600; margin:22px 0 10px; color:var(--ink); }
h3 { font-size:13px; font-weight:600; margin:14px 0 6px; }

.card { background:var(--card); border:1px solid var(--line); border-radius:4px; padding:18px; margin:12px 0; }
label { display:block; margin:12px 0; font-size:12.5px; color:var(--ink-2); font-weight:600; }
label.checkbox { display:flex; align-items:flex-start; gap:8px; font-weight:400; cursor:pointer; }
label.checkbox input[type="checkbox"] {
  flex-shrink:0; margin-top:3px; width:auto; max-width:none; padding:0; border:none; background:none;
}
input, select, textarea {
  width:100%; max-width:420px; padding:7px 10px; margin-top:5px;
  border:1px solid var(--line); border-radius:3px; font:inherit; font-size:13.5px;
  background:#fff; color:var(--ink);
}
input:focus, select:focus, textarea:focus { outline:2px solid var(--accent); outline-offset:-1px; border-color:var(--accent); }
.pw-wrap { position:relative; width:100%; max-width:420px; margin-top:5px; }
.pw-wrap input { margin-top:0; padding-right:34px; max-width:100%; }
.pw-toggle {
  position:absolute; right:4px; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer; padding:5px; line-height:0;
  display:flex; align-items:center; justify-content:center; color:#B0B3B6;
}
.pw-toggle:hover { color:#8A8D90; }
.pw-toggle svg { width:17px; height:17px; transition:transform .14s ease, opacity .14s ease; }
.pw-toggle.pw-animating svg { transform:scale(.55); opacity:0; }
.rowform { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.rowform input, .rowform select { width:auto; margin:0; }

.btn {
  display:inline-block; border:1px solid var(--line); background:#fff; color:var(--ink);
  padding:7px 16px; border-radius:3px; font:inherit; font-size:13px; font-weight:600;
  cursor:pointer; text-decoration:none; line-height:1.3;
}
.btn:hover { border-color:#B4B8BB; background:#FAFAFA; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
.btn.primary:hover { background:var(--accent-d); border-color:var(--accent-d); }
.btn.ghost { background:transparent; border-color:transparent; color:var(--accent); }
.btn.ghost:hover { background:rgba(0,112,242,.07); }
.btn.right { float:right; }
.btn.small { padding:3px 10px; font-size:12px; }
.inline-form { display:inline-block; margin:2px 0; }
.inline-form + .inline-form { margin-left:8px; }

.tbl { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:4px; overflow:hidden; margin:12px 0; font-size:13px; }
.tbl th { text-align:left; background:#F2F3F5; color:var(--ink-2); font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.3px; padding:8px 12px; border-bottom:1px solid var(--line); }
.tbl td { padding:9px 12px; border-top:1px solid var(--line-soft); vertical-align:top; }
.tbl tr:hover td { background:#FAFBFC; }
.tbl td.r, .tbl th.r { text-align:right; }

.grid4 { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin:14px 0; }
.stat { background:var(--card); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:3px; padding:13px 15px; }
.stat span { font-size:11px; color:var(--ink-2); display:block; text-transform:uppercase; letter-spacing:.3px; }
.stat b { font-size:20px; font-weight:600; display:block; margin-top:3px; }
.stat.good { border-left-color:var(--good); } .stat.good b { color:var(--good); }
.stat.warn { border-left-color:var(--warn); } .stat.warn b { color:var(--warn); }
.stat.bad { border-left-color:var(--bad); } .stat.bad b { color:var(--bad); }

.pill { font-size:10.5px; font-weight:600; padding:2px 9px; border-radius:9px; background:#EEF0F2; color:var(--ink-2); margin-left:6px; text-transform:uppercase; letter-spacing:.2px; }
.pill.paid, .pill.kept, .pill.gentle { background:var(--good-bg); color:var(--good); }
.pill.part_paid, .pill.firm, .pill.d15 { background:var(--warn-bg); color:var(--warn); }
.pill.unpaid, .pill.broken, .pill.bad, .pill.formal, .pill.cancelled { background:var(--bad-bg); color:var(--bad); }
.pill.lang { background:#EAF1FB; color:var(--accent-d); }

.flash { padding:9px 24px; font-size:13px; font-weight:600; }
.flash.ok { background:var(--good-bg); color:var(--good); border-bottom:1px solid #C5E8CF; }
.flash.err { background:var(--bad-bg); color:var(--bad); border-bottom:1px solid #F3C6C6; }

.hero { text-align:center; padding:34px 0; }
.hero h1 { font-size:30px; }
.hero .tag { font-size:18px; font-weight:600; color:var(--ink); }

.trader-hero-bg {
  width:100vw; position:relative; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw;
  background-size:cover; background-position:center 30%;
  min-height:82vh;
  display:flex; align-items:center; justify-content:center;
  padding:40px 20px;
}
.glass-card {
  background:rgba(15,17,15,.72); border-radius:14px; padding:30px 26px;
  max-width:440px; width:100%; box-shadow:0 10px 36px rgba(0,0,0,.35);
}
.glass-card h1 { color:#fff; margin-top:0; text-align:center; }
.glass-card h1 span { color:#6FC3E8; }
.hero-icon {
  height:72px; width:auto; display:block; margin:0 auto 14px;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.9)) drop-shadow(0 0 36px rgba(255,255,255,.65)) drop-shadow(0 0 60px rgba(255,255,255,.4));
}
.glass-card p, .glass-card .fine { color:#EDEDEA; }
.glass-card a { color:#8FD9C4; }
.glass-card .btn.ghost { color:#8FD9C4; }
.glass-card label { color:#F2F2EE; }
.glass-card .tag { color:#fff !important; }
.fine { font-size:11.5px; color:var(--ink-2); font-weight:400; }
.mono { font-family:ui-monospace,Consolas,monospace; }
.mono.big { font-size:17px; letter-spacing:1.5px; }
.small { font-size:11.5px; }
.msg { background:#F2F6FB; border-left:3px solid var(--accent); padding:10px 12px; border-radius:0 3px 3px 0; font-size:13px; }
.reminder .rowline, .rowline { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.inline { display:inline; }
.neg { color:var(--bad); } .pos { color:var(--good); }
.lowstock td { background:var(--warn-bg); }
.check { display:flex; align-items:center; gap:8px; font-weight:400; }
.check input { width:auto; margin:0; }
.viral { border-color:var(--accent); background:#F2F6FB; text-align:center; }

/* Walkthrough */
.nm-tour-overlay { position:fixed; inset:0; background:rgba(37,49,63,.55); z-index:90; }
.nm-tour-box { position:fixed; z-index:100; background:#fff; border-radius:4px; padding:18px;
  max-width:340px; box-shadow:0 8px 28px rgba(0,0,0,.22); border:1px solid var(--line); }
.nm-tour-box h3 { margin:0 0 6px; font-size:15px; }
.nm-tour-box p { margin:0 0 12px; font-size:13px; color:var(--ink-2); }
.nm-tour-box label { display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:400; margin:0 0 14px; }
.nm-tour-box input[type=checkbox] { width:15px; height:15px; margin:0; flex-shrink:0; }
.nm-tour-target { position:relative; z-index:95; outline:3px solid var(--accent); border-radius:3px; }
.nm-tour-close {
  position:absolute; top:8px; right:8px; width:24px; height:24px; border-radius:50%;
  background:none; border:none; cursor:pointer; font-size:18px; line-height:1;
  color:var(--ink-2); display:flex; align-items:center; justify-content:center;
}
.nm-tour-close:hover { background:#F2F3F5; color:var(--ink); }

/* ===== Mobile-only navigation (hamburger + unified drawer) ===== */
.mobile-menu-btn {
  display:none; background:none; border:none; color:#fff; cursor:pointer;
  padding:0 12px; height:44px; align-items:center;
}

.mobile-drawer-backdrop {
  display:none; position:fixed; inset:0; background:rgba(20,26,33,.5); z-index:98;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.mobile-drawer-backdrop.open { opacity:1; pointer-events:auto; }

.mobile-drawer {
  display:none; position:fixed; top:0; left:0; height:100vh; height:100dvh; width:78vw; max-width:300px;
  background:var(--shell); z-index:99; box-shadow:8px 0 28px rgba(0,0,0,.25);
  transform:translateX(-100%); transition:transform .3s cubic-bezier(.34,1,.4,1);
  flex-direction:column; overflow-y:auto;
}
.mobile-drawer.open { transform:translateX(0); }

.mobile-drawer-section { border-bottom:1px solid rgba(255,255,255,.1); }
.mobile-drawer-section summary {
  padding:14px 20px; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:rgba(255,255,255,.55) !important; cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between;
}
.mobile-drawer-section summary::-webkit-details-marker { display:none; }
.mobile-drawer-section summary::after { content:'▾'; font-size:11px; transition:transform .2s ease; }
.mobile-drawer-section[open] summary::after { transform:rotate(180deg); }
.mobile-drawer-section[open] summary { color:rgba(255,255,255,.85); }

.mobile-drawer-header {
  display:flex; align-items:center; justify-content:space-between;
  background:var(--shell-d); color:#fff; padding:16px 18px; font-weight:700; font-size:15px;
  flex:none;
}
.mobile-drawer-header button {
  background:none; border:none; color:rgba(255,255,255,.75); font-size:24px; line-height:1;
  cursor:pointer; padding:0 4px;
}

.mobile-drawer-links { display:flex; flex-direction:column; padding:8px 0; }
.mobile-drawer-links a {
  display:flex; align-items:center; gap:14px; padding:13px 20px;
  color:rgba(255,255,255,.85); text-decoration:none; font-size:14px; font-weight:600;
  border-left:3px solid transparent;
}
.mobile-drawer-links a svg { width:20px; height:20px; flex:none; opacity:.85; }
.mobile-drawer-links a:hover, .mobile-drawer-links a:active { background:rgba(255,255,255,.06); color:#fff; border-left-color:#6FC3E8; }
.mobile-drawer-divider { height:1px; background:rgba(255,255,255,.1); margin:8px 0; }

/* Actual mobile breakpoint — everything above this stays exactly as
   already tested and approved on desktop. Below it, the permanent
   sidebar and full top-nav link set (which have nowhere to fit on a
   narrow screen) are replaced by the hamburger + unified drawer above. */
@media screen and (max-width: 768px) {
  .mobile-menu-btn { display:flex; }

  /* Hide every desktop nav link except the brand — the drawer now
     carries all of these same destinations instead. */
  .topnav a:not(.brand) { display:none; }
  .topnav .spacer { display:none; }
  .topnav .profile-menu { display:none; }
  .topnav .zentoryx-mark { height:14px; margin-left:auto; margin-right:4px; }

  .mobile-drawer-backdrop, .mobile-drawer { display:flex; }

  /* The permanent sidebar was designed for desktop's spare width —
     168px is a large fraction of a phone screen. Replaced by the same
     drawer, not shown separately here at all. */
  .sidebar { display:none; }
  .app-body { display:block; }
  .app-main { width:100%; }

  /* Horizontal scroll works but isn't a natural mobile interaction —
     turn each row into a compact card instead, so browsing a list stays
     a normal vertical scroll. The header row's actual text becomes each
     cell's data-label (set by mobile-cards.js), and the row's first
     column — normally the primary identifier, like an invoice number or
     a party name — gets shown as the card's title with no label prefix,
     since it's already self-explanatory. Every other column packs
     together as small label/value pairs, wrapping naturally rather than
     forcing one line per column. */
  table { display:block; width:100%; border:none; }
  table tr:first-child { display:none; }   /* the <th> header row itself */
  table tr:not(:first-child) {
    display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px;
    background:#fff; border:1px solid #E5E7EA; border-radius:8px;
    padding:10px 12px; margin-bottom:8px;
  }
  table td { border:none; padding:0; white-space:normal; }
  table td:first-child {
    flex:0 0 100%; font-weight:700; font-size:14.5px; color:var(--ink);
    margin-bottom:2px;
  }
  table td:not(:first-child) { font-size:12.5px; color:var(--ink-2); }
  table td:not(:first-child)::before {
    content: attr(data-label) ": "; font-weight:600; color:#8A93A0;
  }
}

/* ============================================================
   Shared list search/sort/filter controls (list-controls.js)
   Used across Stock, Parties, Purchases, Invoices, Payments,
   Reconciliation, and the Super Admin lists — one set of rules,
   not styled per-page.
   ============================================================ */
.list-controls { display:flex; align-items:center; gap:8px; margin:10px 0; }
.list-search {
  flex:1 1 auto; padding:8px 12px; border:1px solid var(--line); border-radius:6px;
  font-size:14px; max-width:420px;
}
.list-mobile-sort-btn { display:none; } /* shown only below the mobile breakpoint, see below */

/* Desktop per-column sort/filter button + popover */
.list-th-menu-btn {
  background:none; border:none; cursor:pointer; margin-left:6px; font-size:11px;
  color:var(--ink-2); padding:0 2px; vertical-align:middle;
}
.list-th-menu-btn.list-th-has-filter { color:#B8860B; font-weight:700; }
.list-th-popover {
  position:absolute; top:100%; left:0; z-index:20; background:#fff;
  border:1px solid var(--line); border-radius:6px; box-shadow:0 4px 14px rgba(0,0,0,.15);
  padding:8px; min-width:180px; text-align:left; font-weight:400; text-transform:none;
}
.list-th-popover button {
  display:block; width:100%; text-align:left; background:none; border:none;
  padding:6px 8px; font-size:13px; cursor:pointer; border-radius:4px; color:var(--ink);
}
.list-th-popover button:hover { background:#F2F3F5; }
.list-th-filter-row { display:flex; gap:4px; margin:6px 0; padding-top:6px; border-top:1px solid var(--line-soft); }
.list-th-filter-row input {
  flex:1; min-width:0; padding:5px 8px; border:1px solid var(--line); border-radius:4px; font-size:13px;
}
.list-th-filter-row button {
  width:auto; flex-shrink:0; background:var(--brand,#2563EB); color:#fff; padding:5px 10px;
}
.list-th-clear { color:var(--bad); font-size:12px; }

/* Mobile: hide the desktop per-column button, show ONE button instead —
   matches the same breakpoint the mobile-card table transformation
   above already uses, so both switch over at the same point. */
@media screen and (max-width: 768px) {
  .list-th-menu-btn { display:none; }
  .list-mobile-sort-btn {
    display:inline-block; padding:8px 12px; border:1px solid var(--line); border-radius:6px;
    background:#fff; font-size:13px; white-space:nowrap;
  }
  .list-controls { flex-wrap:wrap; }
  .list-search { max-width:none; flex-basis:100%; order:1; }
  .list-mobile-sort-btn { order:2; }
}

.list-mobile-sheet-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:100;
  display:flex; align-items:flex-end;
}
.list-mobile-sheet {
  background:#fff; width:100%; max-height:80vh; overflow-y:auto;
  border-radius:12px 12px 0 0; padding:16px;
}
.list-mobile-sheet-header {
  display:flex; justify-content:space-between; align-items:center;
  font-weight:700; font-size:16px; margin-bottom:12px;
}
.list-mobile-sheet-header button {
  background:none; border:none; color:var(--brand,#2563EB); font-weight:600; font-size:14px;
}
.list-mobile-row { padding:10px 0; border-bottom:1px solid var(--line-soft); }
.list-mobile-row-label { font-weight:600; font-size:13px; margin-bottom:6px; }
.list-mobile-row-controls { display:flex; gap:6px; margin-bottom:6px; }
.list-mobile-row-controls button {
  flex:1; padding:6px; border:1px solid var(--line); border-radius:4px; background:#fff; font-size:12.5px;
}
.list-mobile-row-controls button.active { background:var(--brand,#2563EB); color:#fff; border-color:var(--brand,#2563EB); }
.list-mobile-row input {
  width:100%; padding:6px 8px; border:1px solid var(--line); border-radius:4px; font-size:13px;
}
.list-mobile-sheet-clear-all {
  width:100%; margin-top:12px; padding:10px; border:1px solid var(--bad); color:var(--bad);
  background:#fff; border-radius:6px; font-size:13px;
}

