/* Shop HQ · DIY Printz — corporate theme layer (matches the Shopify "Corp Update" theme).
   Loaded after styles.css. Calm Inter type, navy headings, soft pills, rounded cards. */
:root {
  --navy: #0b1f3a; --ink: #1d1d1f; --ink-2: #3a3a3c; --muted: #6e6e73; --faint: #a1a1a6;
  --line: #e6e6e3; --line-strong: #d2d2d7; --fog: #f5f5f7; --bg: #ffffff; --surface: #ffffff; --surface-2: #fafafa;
  --c: #00AEEF; --m: #FF009D; --y: #FFD400; --g: #1a9d55; --r: #d93848;
  --cyan: #00AEEF; --magenta: #FF009D; --yellow: #FFD400; --green: #1a9d55; --red: #d93848; --lime: #1a9d55;
  --wa: #25D366; --fb: #1877F2; --shop: #5E8E3E; --mail: #6d5dfc;
  --display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px; --r-card: 16px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.18);
  --side-w: 232px; --head-h: 68px;
}
body { background: #fff; color: var(--ink); font-size: 14px; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
h1, h2, h3 { color: var(--navy); }
.cmyk-strip { display: none; }
.cmyk-line { height: 3px; background: linear-gradient(90deg, var(--c) 0 25%, var(--m) 25% 50%, var(--y) 50% 75%, #1d1d1f 75%); }
.only-phone { display: none !important; }
.sm { font-size: 12.5px; color: var(--muted); }
.b { font-weight: 600; color: var(--ink); }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.late { color: var(--r); font-weight: 600; }
.grow { flex: 1; }

/* ---------- buttons ---------- */
.btn { border-radius: var(--r-pill); border: 1.5px solid var(--navy); color: var(--navy); background: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: 0; text-transform: none; min-height: 40px; padding: 0 18px; box-shadow: none; }
.btn:hover { background: var(--fog); color: var(--navy); box-shadow: none; }
.btn-primary, .btn-done { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover, .btn-done:hover { background: #142f55; border-color: #142f55; color: #fff; box-shadow: none; }
.btn-confirm { background: #c2007a; border-color: #c2007a; color: #fff; }
.btn-confirm:hover { background: #a30067; border-color: #a30067; color: #fff; }
.btn-ready { background: #fff; border-color: var(--g); color: #137a43; }
.btn-ready:hover { background: #e7f6ee; color: #137a43; }
.btn-ghost { border-color: transparent; color: var(--ink-2); background: transparent; }
.btn-ghost:hover { background: var(--fog); color: var(--ink); }
.btn-danger { border-color: #f1c2c7; color: #b42335; background: #fff; }
.btn-danger:hover { background: #fdecee; color: #b42335; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12.5px; }
.icon-btn { border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: var(--fog); }
.icon-btn .dot { border-color: #fff; background: var(--m); }
.linkish { text-decoration-color: var(--c); font-weight: 600; color: var(--navy); }

/* ---------- utility bar + header ---------- */
.util-bar { height: 34px; background: #1d1d1f; color: #c7c7cc; font-size: 12.5px; display: flex; align-items: center; gap: 22px; padding: 0 24px; }
.util-bar b { color: #fff; font-weight: 600; }
.util-bar .util-mid { flex: 1; text-align: center; }
.util-bar .util-mid b.warn { color: #ffb4bd; }
.util-bar .util-r { margin-left: auto; }
.hq-head { position: sticky; top: 0; z-index: 40; height: var(--head-h); display: flex; align-items: center; gap: 18px; padding: 0 24px; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hq-head .brand img { height: 30px; width: auto; max-width: 190px; }
.hq-head .hq-tag { font-size: 13px; font-weight: 600; color: var(--navy); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.hq-head .spacer { flex: 1; }
.hq-head .search { width: min(460px, 38vw); flex: 0 1 460px; }
.hq-head .search input { height: 42px; border-radius: var(--r-pill); background: var(--fog); border: 1px solid transparent; color: var(--ink); padding-left: 42px; }
.hq-head .search input::placeholder { color: var(--muted); }
.hq-head .search input:focus { background: #fff; border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(0,174,239,.15); }
.hq-head .search svg { left: 15px; top: 12px; color: var(--muted); }
.hq-head .btn-new { background: var(--navy); border-color: var(--navy); color: #fff; }
.hq-head .btn-new:hover { background: #142f55; color: #fff; }

/* ---------- layout ---------- */
.hq-wrap { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - 34px - 3px - var(--head-h)); }
.side { border-right: 1px solid var(--line); padding: 18px 14px 24px; position: sticky; top: var(--head-h); align-self: start; height: calc(100vh - var(--head-h)); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.nav-a { display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 40px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; border: 0; background: transparent; width: 100%; text-align: left; }
.nav-a svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.nav-a:hover { background: var(--fog); color: var(--ink); }
.nav-a[aria-current="page"] { background: var(--fog); color: var(--navy); font-weight: 600; }
.nav-a[aria-current="page"] svg { color: var(--navy); }
.nav-a .n { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.nav-a .n:empty { display: none; }
.nav-a .n.ext svg { width: 13px; height: 13px; stroke-width: 2; }
.nav-a[data-nav="payments"] .n:not(:empty) { background: #fff6d6; color: #8a6500; padding: 1px 8px; border-radius: 999px; }
.nav-sec { font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 18px 12px 6px; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.hq-main { min-width: 0; padding: 26px 32px 80px; }
main.board-wrap, .board-wrap { max-width: none; padding: 0; margin: 0; }

/* ---------- page head ---------- */
.page-head, .board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1, .board-title { font-family: var(--body); font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--navy); margin: 0; }
.page-head .muted, .board-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.board-title .sw { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { text-align: left; background: var(--fog); border: 0; border-radius: var(--r-card); padding: 18px 20px 16px; position: relative; overflow: hidden; cursor: pointer; transition: background .15s; }
.kpi::before { content: ''; position: absolute; left: 20px; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--cc); }
.kpi:hover { background: #eeeef1; }
.kpi b { display: block; font-size: 30px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.kpi span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- filters ---------- */
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip, .chip-filter { height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.chip i, .chip-filter .ch-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip:hover, .chip-filter:hover { border-color: var(--line-strong); background: var(--fog); }
.chip[aria-pressed="true"], .chip-filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-filter select { color: inherit; }
.seg-mini { display: inline-flex; background: var(--fog); border-radius: var(--r-pill); padding: 3px; }
.seg-mini button { border: 0; background: transparent; height: 30px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.seg-mini button[aria-pressed="true"] { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.note-bar { background: var(--fog); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.note-bar.warn { background: #fff6d6; color: #6b4e00; }

/* ---------- pills ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--fog); color: var(--ink); white-space: nowrap; }
.tag i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.soft { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); display: inline-block; white-space: nowrap; background: var(--fog); color: var(--ink-2); }
.soft.paid, .soft.s-ready { background: #e7f6ee; color: #137a43; }
.soft.unpaid { background: #fdecee; color: #b42335; }
.soft.pend { background: #fff6d6; color: #8a6500; }
.soft.s-new { background: #ffe8f5; color: #c2007a; }
.soft.s-prod { background: #e3f5fd; color: #0077a8; }
.soft.s-done { background: var(--fog); color: var(--muted); }
.pill { border-radius: var(--r-pill); border: 0; background: var(--fog); color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; height: 24px; padding: 0 10px; }
.pill.ch-whatsapp { background: #e6f9ee; color: #0e7a3a; border: 0; }
.pill.ch-facebook { background: #e8f1fe; color: #0d5bc4; border: 0; }
.pill.ch-instore { background: #1d1d1f; color: #fff; border: 0; }
.pill.ch-email { background: #eeecff; color: #4a3bd1; }
.pill.ch-phone { background: #e3f5fd; color: #0077a8; }
.pill.paid { background: #e7f6ee; color: #137a43; border: 0; }
.pill.unpaid { background: #fdecee; color: #b42335; border: 0; }
.pill.partial { background: #fff6d6; color: #8a6500; border: 0; }
.pill.rush, .pill.new { background: #ffe8f5; color: #c2007a; animation: none; }
.pill.overdue { background: #fdecee; color: #b42335; }
.pill.soon { background: #fff6d6; color: #8a6500; border: 0; }
.pill.owner-need { background: #1d1d1f; color: #ffe27a; border: 0; }

/* ---------- tables ---------- */
.tbl { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.tbl, .table-wrap { overflow-x: auto; }
table.hq-table { width: 100%; border-collapse: collapse; }
.hq-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 12px 16px; background: var(--fog); border-bottom: 1px solid var(--line); white-space: nowrap; }
.hq-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hq-table tbody tr:last-child td { border-bottom: 0; }
.hq-table tbody tr { cursor: pointer; transition: background .12s; }
.hq-table tbody tr:hover td, .hq-table tbody tr.sel td { background: #fafafc; }
.hq-table .r, .hq-table th.r { text-align: right; }
.hq-table.compact td { padding: 10px 16px; }
.tbl-skel { display: grid; gap: 10px; }
.tbl-skel .skeleton { height: 54px; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
table.list th { font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--fog); }
table.list .order-no { font-size: 15px; }
table.list tbody tr:hover td { background: #fafafc; }

/* ---------- phone order cards ---------- */
.ocards { display: grid; gap: 10px; }
.ocard { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 14px; color: inherit; }
.ocard .r { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ocard .r + .r { margin-top: 6px; }
.ocard .r.mt { margin-top: 10px; }
.ocard b { font-size: 15px; color: var(--navy); }
.ocard .nm { font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- section labels & board cards ---------- */
.section-label { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--navy); margin: 28px 0 12px; }
.section-label .n { background: var(--fog); color: var(--ink-2); border-radius: var(--r-pill); padding: 2px 9px; font-weight: 600; }
.section-label .ln { height: 1px; }
.section-label.urgent { color: #c2007a; }
.section-label.urgent .n { background: #ffe8f5; color: #c2007a; }
.grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card::before { width: 0; }
.card.unconfirmed { border-color: #f6b3db; box-shadow: 0 0 0 3px rgba(255,0,157,.07); }
.card-top .order-no, .order-no { font-family: var(--body); font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.card-foot { border-top: 1px solid var(--line); background: #fafafa; }
.card.unconfirmed .card-foot { background: #fff5fb; border-top-color: #fbd3ea; }
.thumb { border-radius: 8px; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--r-card); background: #fff; }
.empty h3 { font-family: var(--body); font-size: 19px; font-weight: 700; letter-spacing: 0; color: var(--navy); }
.empty .big-ico { border-radius: 50%; background: var(--fog); color: var(--navy); }
.skeleton { border-radius: var(--r-card); background: linear-gradient(90deg, #f0f0f2 25%, #f8f8fa 50%, #f0f0f2 75%); background-size: 200% 100%; }

/* ---------- alert / pay queue ---------- */
.alert-bar { background: #fff5fb; color: #a30067; border: 1px solid #fbd3ea; border-radius: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; margin-bottom: 18px; }
.alert-bar strong { font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.alert-bar .pulse { width: 9px; height: 9px; background: var(--m); animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 0% { box-shadow: 0 0 0 0 rgba(255,0,157,.45); } 70% { box-shadow: 0 0 0 10px rgba(255,0,157,0); } 100% { box-shadow: 0 0 0 0 rgba(255,0,157,0); } }
.alert-bar .btn { background: #c2007a; border-color: #c2007a; color: #fff; }
.alert-bar .btn:hover { background: #a30067; color: #fff; }
#pay-queue:empty { display: none; }
.pay-queue-inner { max-width: none; padding: 0; margin-bottom: 20px; }
.pay-row { border-top: 1px solid var(--line); }
.pay-row .amt { font-family: var(--body); font-size: 18px; font-weight: 700; color: var(--navy); }
.pay-row .who { font-weight: 600; }

/* ---------- drawer & panels ---------- */
.overlay { background: rgba(15,23,42,.35); backdrop-filter: blur(2px); }
.drawer { background: var(--fog); box-shadow: var(--shadow-lg); }
.drawer-head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 18px 22px 16px; align-items: center; }
.drawer-head .kicker { color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 500; }
.drawer-head h2 { font-family: var(--body); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.drawer-head .order-no { font-size: 24px; }
.drawer-head .cust-name { font-weight: 600; font-size: 16px; margin-top: 2px; }
.drawer-head .icon-btn { color: var(--ink); }
.drawer-actions { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px; }
.drawer-tabs { background: #fff; border-bottom: 1px solid var(--line); }
.drawer-tabs button { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; }
.drawer-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.drawer-body { padding: 20px 22px; }
.drawer-foot { background: #fff; border-top: 1px solid var(--line); }
.panel, .form-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.panel-h { border-bottom: 1px solid var(--line); }
.panel-h h3, .form-sec > h3 { font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--navy); }
.form-sec > h3 { border-bottom: 1px solid var(--line); }
.form-sec > h3 .num { border-radius: 50%; background: var(--navy); }
.kv .k, .field label, .lbl { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); }
.kv .v a { border-bottom-color: rgba(0,174,239,.5); }
.it { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tot { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 700; font-size: 16px; color: var(--navy); }
.totals .g { border-top: 1px solid var(--ink); }
table.items th { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mini-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.mini-row:last-child { border-bottom: 0; }
.file-tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.file-tile .fa a, .file-tile .fa button { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; }
.file-tile .fa a:hover, .file-tile .fa button:hover { background: var(--fog); color: var(--navy); }
.file-tile .prev .ext { font-family: var(--body); font-weight: 700; font-size: 20px; }
.drop { border-radius: 14px; border-color: var(--line-strong); }
.timeline .tdot.note { background: var(--g); }

/* ---------- forms ---------- */
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea, .link-row input, .set-row .ctrl select, .set-row .ctrl input[type=number], .set-row .ctrl input[type=time] { border-radius: 10px; border: 1px solid var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus, .link-row input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,31,58,.1); }
.seg button { border-radius: 12px; border: 1px solid var(--line-strong); font-weight: 600; text-transform: none; letter-spacing: 0; }
.seg button:hover { border-color: var(--navy); }
.seg button[aria-pressed="true"], .seg button[data-v][aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.pay-note { border-radius: 10px; border-left: 0; background: #fff6d6; color: #5c4500; }
.toggle .tr { border-radius: 999px; background: #d2d2d7; }
.toggle .tr::after { border-radius: 50%; }
.toggle input:checked + .tr { background: var(--navy); }
.toggle input:checked + .tr::after { background: #fff; }
.check input { accent-color: var(--navy); }
.staff-list .pill { height: 32px; }

/* ---------- settings ---------- */
.settings-nav { background: #fff; border-right: 1px solid var(--line); }
.settings-nav button { border-left: 3px solid transparent; font-weight: 500; }
.settings-nav button[aria-selected="true"] { border-left-color: var(--navy); background: var(--fog); color: var(--navy); font-weight: 600; }
.staff-rows { display: grid; gap: 2px; }
.staff-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.staff-row:last-child { border-bottom: 0; }
.staff-row .av, .who-chosen .av, .who-grid .av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.code { border-radius: 10px; background: #1d1d1f; }

/* ---------- files page ---------- */
.file-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.fw { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-width: 0; }
.fw-prev { aspect-ratio: 1; border: 0; padding: 0; width: 100%; background: repeating-conic-gradient(#f3f3f5 0 25%, #fff 0 50%) 0 0/14px 14px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.fw-prev img, .fw-prev canvas { width: 100%; height: 100%; object-fit: contain; }
.fw-prev .ext { font-weight: 700; font-size: 20px; color: var(--muted); }
.fw-meta { padding: 10px 12px 12px; border-top: 1px solid var(--line); font-size: 13px; display: grid; gap: 2px; }
.fw-meta .linkish { text-align: left; font-size: 12.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- printers ---------- */
.printer-card { border: 1px solid var(--line); border-radius: var(--r-card); }
.printer-h h2 { font-family: var(--body); font-size: 19px; font-weight: 700; color: var(--navy); }
.kicker { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12.5px; }

/* ---------- auth ---------- */
.auth { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--fog); grid-template-columns: none; }
.auth .util-bar .util-r { color: #a1a1a6; }
.auth-card { flex: 1; background: var(--fog); padding: 40px 20px; }
.auth-box { background: #fff; border-radius: 22px; padding: 34px 30px 26px; width: min(440px, 100%); box-shadow: var(--shadow); }
.auth-logo { height: 34px; width: auto; margin: 0 auto 20px; }
.auth-box h2 { font-family: var(--body); font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.auth-box .sub { font-size: 14px; }
.pin-dots span { border-radius: 50%; border: 2px solid var(--navy); width: 15px; height: 15px; }
.pin-dots span.on { background: var(--navy); }
.pinpad button { font-family: var(--body); font-size: 22px; font-weight: 600; border-radius: 14px; border: 1px solid var(--line); background: var(--fog); height: 60px; padding-top: 0; color: var(--ink); }
.pinpad button:hover { border-color: var(--line-strong); background: #eeeef1; }
.pinpad button:active { background: var(--navy); color: #fff; }
.pinpad button[data-k="ok"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pinpad button[data-k="ok"]:hover { box-shadow: none; background: #142f55; }
.pinpad button.fn { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; }
.step-badge { border-radius: 999px; background: #ffe8f5; color: #c2007a; letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 600; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; text-align: center; }
.who-grid .who { border: 1px solid var(--line); background: var(--fog); border-radius: 16px; padding: 16px 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.who-grid .who:hover { border-color: var(--navy); background: #fff; }
.who-grid .who.last { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(11,31,58,.08); }
.who-grid .who .av { width: 46px; height: 46px; font-size: 18px; }
.who-grid .who .nm { font-weight: 600; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-grid .who .rl { font-size: 11.5px; color: var(--muted); }
.who-chosen { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 0 0 16px; text-align: left; }

/* ---------- toasts / modal ---------- */
.toast { background: #fff; color: var(--ink); border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--c); box-shadow: var(--shadow-lg); }
.toast.ok { border-left-color: var(--g); }
.toast.alert { border-left-color: var(--m); }
.toast.err { border-left-color: var(--r); }
.toast .tt { font-family: var(--body); font-size: 14.5px; font-weight: 700; letter-spacing: 0; color: var(--navy); }
.toast .tb { color: var(--muted); }
.toast .ta .btn { background: var(--navy); border-color: var(--navy); color: #fff; font-size: 12.5px; }
.toast .ta .btn + .btn { background: #fff; color: var(--navy); }
.toast .x { color: var(--muted); }
.modal { background: rgba(15,23,42,.4); }
.modal-box { border-top: 0; border-radius: 18px; overflow: hidden; }
.modal-box h3 { font-family: var(--body); font-size: 19px; font-weight: 700; letter-spacing: 0; color: var(--navy); }
.modal-box .mf { background: #fff; border-top: 1px solid var(--line); }
.unlock { border-radius: 14px; border: 1px solid #f0d77a; background: #fff6d6; }

/* ---------- phone tab bar + menu sheet ---------- */
.tabbar { display: none; }
.sheet-nav { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 16px; padding: 8px; }

@media (max-width: 1180px) {
  :root { --side-w: 204px; }
  .hq-main { padding: 22px 22px 80px; }
  .hq-head .search { width: auto; flex: 1 1 260px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .util-bar .util-mid { display: none; }
}
@media (max-width: 900px) {
  .only-phone { display: revert !important; }
  .ocards.only-phone { display: grid !important; }
  .icon-btn.only-phone { display: inline-grid !important; }
  .only-desk { display: none !important; }
  .util-bar { padding: 0 14px; font-size: 12px; }
  .util-bar .util-r { display: none; }
  .hq-head { height: auto; min-height: 58px; flex-wrap: wrap; gap: 8px; padding: 8px 12px 10px; padding-top: max(8px, env(safe-area-inset-top)); }
  .hq-head .brand { flex: 1; min-width: 0; }
  .hq-head .brand img { height: 24px; }
  .hq-head .hq-tag { font-size: 12px; padding-left: 9px; }
  .hq-head .spacer { display: none; }
  .hq-head .btn-new { display: none; }
  .hq-head .search { order: 5; flex: 1 1 100%; width: 100%; }
  .hq-head .search input { height: 44px; font-size: 16px; }
  .hq-wrap { display: block; }
  .side { display: none; }
  .hq-main { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
  .page-head h1, .board-title { font-size: 24px; }
  .page-head .muted, .board-sub { font-size: 13px; }
  .kpis { gap: 10px; margin-bottom: 16px; }
  .kpi { padding: 14px 14px 12px; border-radius: 14px; }
  .kpi b { font-size: 24px; }
  .kpi span { font-size: 12px; }
  .filter-row { flex-direction: column; align-items: stretch; flex-wrap: nowrap; min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; min-width: 0; max-width: calc(100% + 28px); padding: 0 14px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips.right { margin: 0 -14px; }
  .chip, .chip-filter { flex: none; height: 38px; min-height: 38px; }
  .seg-mini { flex: none; }
  .seg-mini button { height: 32px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; font-size: 11px; font-weight: 500; color: var(--muted); position: relative; }
  .tabbar button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar button[aria-current="page"] { color: var(--navy); font-weight: 600; }
  .tabbar .tb-plus .plus { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin-top: -14px; box-shadow: 0 6px 16px rgba(11,31,58,.3); }
  .tabbar .tb-plus .plus svg { width: 22px; height: 22px; stroke-width: 2.4; }
  .tabbar .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 999px; background: var(--m); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
  .tabbar .count:empty { display: none; }
  .fab, .bottom-nav { display: none !important; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .alert-bar { flex-wrap: nowrap; }
  .grid { grid-template-columns: 1fr; }
  .tbl.only-desk { display: none !important; }
  .tbl { border-radius: 14px; }
  .tbl .hq-table.compact td:nth-child(4), .tbl .hq-table.compact td:nth-child(5) { display: none; }
  .drawer-head { padding: 14px 14px 12px; padding-top: max(14px, env(safe-area-inset-top)); }
  .drawer-body { padding: 14px; }
  .drawer-actions { padding: 10px 14px; }
  .file-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .auth-box { padding: 26px 18px 20px; border-radius: 18px; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .unlock { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* icon glyphs from the nav set (stroke-only) */
#lock svg, #menu svg, .nav-a svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-foot { flex-wrap: wrap; row-gap: 8px; }
.filters .chip-filter[data-scope] { border-style: dashed; }
.filters .chip-filter[data-scope][aria-pressed="true"] { border-style: solid; background: var(--fog); color: var(--navy); border-color: var(--line-strong); }
.pay-bar { display: flex; align-items: center; gap: 12px; background: #fff9e6; border: 1px solid #f3e1a1; color: #5c4500; border-radius: 14px; padding: 9px 12px 9px 16px; margin-bottom: 18px; font-size: 14px; flex-wrap: wrap; }
.pay-bar .pdot { width: 9px; height: 9px; border-radius: 50%; background: var(--y); flex: none; }
.pay-bar .btn { border-color: #c9a227; color: #5c4500; background: #fff; }
@media (max-width: 900px) { .pay-bar { font-size: 13px; } .alert-bar { flex-wrap: nowrap; padding: 8px 10px 8px 14px; margin-bottom: 12px; } .alert-bar strong { flex: 1 1 auto; min-width: 0; font-size: 13px; } .alert-bar .btn { flex: 0 0 auto; padding: 6px 12px; font-size: 12px; min-height: 0; } .pay-bar .btn { flex: 0 0 auto; } }
