/* Dokan Khata UI layer: dashboard, onboarding, admin billing, sidebar menu, dark theme. Plain CSS (no build step). */
:root{--soft:#f6f9fa;--ok:#067647;--ok-bg:#e7f8ef;--warn:#b54708;--warn-bg:#fff4e0;--bad:#d92d20;--bad-bg:#fdecea;--shadow:0 1px 2px rgba(15,42,51,.06),0 4px 14px rgba(15,42,51,.05)}
html[data-theme=dark]{--bg:#0e1517;--card:#162024;--soft:#1c282d;--tx:#e6eef0;--mu:#9db0b6;--line:#2a3a40;--cream:#1c2622;--ok:#4ade80;--ok-bg:#12301f;--warn:#fbbf24;--warn-bg:#33270e;--bad:#f87171;--bad-bg:#3a1717;--red:#f87171;--grn:#4ade80;--shadow:0 1px 2px rgba(0,0,0,.4);color-scheme:dark}

/* ---------- Sidebar accordion (shop + admin) ---------- */
.sidebar .nav-group,.sidebar .nav-group.open,body.panel .sidebar .nav-group,body.panel .sidebar .nav-group.open{background:transparent!important;border:0!important;box-shadow:none!important;margin:0;border-radius:12px}
.sidebar .nav-group .nav-parent{background:transparent;color:inherit;border-radius:12px}
.sidebar .nav-group .nav-parent:hover{background:rgba(255,255,255,.09);color:#fff}
.sidebar .nav-group:has(a.on)>.nav-parent{color:#fff}
.sidebar .nav-group:has(a.on)>.nav-parent .ico{opacity:1}
.sidebar .nav-chev{transition:transform .25s ease;opacity:.7;margin-left:auto}
.sidebar .nav-group.open .nav-chev{transform:rotate(180deg)}
.sidebar .nav-sub{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s cubic-bezier(.2,.7,.2,1)}
.sidebar .nav-group.open .nav-sub{grid-template-rows:1fr}
.sidebar .nav-sub-inner{min-height:0;overflow:hidden;padding:0 0 0 22px!important;display:flex;flex-direction:column;gap:1px;opacity:0;transition:opacity .2s ease}
.sidebar .nav-group.open .nav-sub-inner{opacity:1;padding-bottom:6px!important}
.sidebar .nav-sub-inner{position:relative}
.sidebar .nav-sub-inner::before{content:"";position:absolute;left:21px;top:2px;bottom:8px;width:1px;background:rgba(255,255,255,.18)}
.sidebar .nav-sub a{position:relative;display:flex;align-items:center;gap:8px;margin:0 0 0 0!important;padding:7px 10px 7px 16px!important;border-radius:0 10px 10px 0!important;background:transparent!important;box-shadow:none!important;color:rgba(255,255,255,.72)!important;font-weight:550;font-size:13.5px}
.sidebar .nav-sub a::before{content:none!important;display:none!important}
.sidebar .nav-sub a:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
.sidebar .nav-sub a.on{color:#fff!important;background:rgba(255,255,255,.10)!important;font-weight:700}
.sidebar .nav-sub a.on::after{content:"";position:absolute;left:-1px;top:6px;bottom:6px;width:3px;border-radius:3px;background:#2fd3a0}
.sidebar .nav-sub .nav-count{margin-left:auto;font-size:11px;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff}
@media (prefers-reduced-motion:reduce){.sidebar .nav-sub,.sidebar .nav-sub-inner,.sidebar .nav-chev{transition:none}}
html[data-theme=dark] .sidebar{background:linear-gradient(180deg,#0a1a1f,#0f2a30)!important}

/* ---------- Theme controls ---------- */
.hd-theme{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--tx);cursor:pointer}
.hd-theme svg{width:18px;height:18px;display:none}
html:not([data-theme-mode]) .hd-theme .t-sun,html[data-theme-mode=light] .hd-theme .t-sun,html[data-theme-mode=dark] .hd-theme .t-moon,html[data-theme-mode=system] .hd-theme .t-sys{display:block}
.top-theme,.set-theme,.dr-sel{border:1px solid var(--line);background:var(--card);color:var(--tx);border-radius:10px;padding:6px 10px;font:inherit}

/* ---------- Dashboard ---------- */
.dash-top{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.dash-top>*{margin:0;min-width:0}
.sub-top{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px 18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px;border-left:4px solid var(--ok)}
.sub-top.is-warn{border-left-color:var(--warn)}.sub-top.is-bad{border-left-color:var(--bad)}
.sub-top .crown,.bx-crown{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--ok-bg);color:var(--ok)}
.sub-top.is-warn .crown,.bx-hero.is-warn .bx-crown{background:var(--warn-bg);color:var(--warn)}
.sub-top.is-bad .crown,.bx-hero.is-bad .bx-crown{background:var(--bad-bg);color:var(--bad)}
.sub-bar{height:8px;border-radius:999px;background:var(--soft);overflow:hidden;border:1px solid var(--line)}
.sub-bar i{display:block;height:100%;border-radius:999px;background:var(--ok);transition:width .4s}
.is-warn .sub-bar i{background:var(--warn)}.is-bad .sub-bar i{background:var(--bad)}
.ds{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow);margin-bottom:14px}
.ds-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.ds-head h2{margin:0;font-size:17px}
.seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:12px;background:var(--soft);border:1px solid var(--line)}
.seg a,.seg button{padding:6px 12px;border-radius:9px;border:0;background:transparent;color:var(--mu);font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.seg a.on,.seg button.on{background:var(--card);color:var(--tx);box-shadow:var(--shadow)}
.ds-custom{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin-bottom:12px}
.ds-custom input{border:1px solid var(--line);background:var(--card);color:var(--tx);border-radius:10px;padding:6px 10px}
.ds-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.ds-box{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 14px;min-width:0;display:flex;flex-direction:column;gap:4px}
.ds-box span{color:var(--mu);font-size:13px}
.ds-box b{font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ds-box b.pos{color:var(--ok)}.ds-box b.neg{color:var(--bad)}.ds-box b.warn{color:var(--warn)}
.notice-card{background:var(--warn-bg);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:14px}
@media (max-width:1100px){.ds-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.dash-top{grid-template-columns:1fr}.ds-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-box b{font-size:17px}}

/* ---------- Onboarding + category cards ---------- */
.ob-wrap{min-height:100vh;display:grid;place-items:start center;padding:28px 14px;background:var(--bg)}
.ob-card{width:min(640px,100%);background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}
.ob-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;flex-wrap:wrap}
ol.stepper{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 18px;counter-reset:s}
ol.stepper li{flex:1;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;background:var(--soft);color:var(--mu);font-weight:650;font-size:14px;counter-increment:s}
ol.stepper li::before{content:counter(s);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--line);color:var(--tx);font-size:12px}
ol.stepper li.on{background:var(--ok-bg);color:var(--tx)}ol.stepper li.on::before{background:var(--p);color:#fff}
ol.stepper li.done::before{content:"✓";background:var(--ok);color:#fff}
.cat-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 14px}
.cat-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:16px;border:1.5px solid var(--line);background:var(--card);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.cat-card input{position:absolute;opacity:0;pointer-events:none}
.cat-card svg{width:40px;height:40px}
.cat-card:has(input:checked){border-color:var(--p2);box-shadow:0 0 0 3px rgba(14,124,134,.18)}
.cat-card.locked{opacity:.85;cursor:default;background:var(--soft)}
.cat-tick{position:absolute;top:10px;right:10px;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;font-size:12px;color:#fff}
.cat-card:has(input:checked) .cat-tick,.cat-card.locked .cat-tick{background:var(--p2);border-color:var(--p2)}
.cat-card:focus-within{outline:2px solid var(--p2);outline-offset:2px}
@media (max-width:600px){.cat-cards{grid-template-columns:1fr}}

/* ---------- Products / categories / sell ---------- */
.cat-pick{display:flex;gap:8px;align-items:center}.cat-pick select{flex:1;min-width:0}
.imei-box{border:1px dashed var(--line);border-radius:14px;padding:12px;margin-bottom:12px;background:var(--soft)}
.cat-row{border-bottom:1px solid var(--line);padding:8px 0}
.cat-row summary{display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;list-style:none}
.cat-row summary::-webkit-details-marker{display:none}
.cat-edit{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 6px}
.cat-edit input,.cat-edit select{flex:1;min-width:140px}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.stock-picks{margin:8px 0 12px}
.stock-pick-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;max-height:260px;overflow:auto}
.stock-pick{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--tx);font:inherit;font-size:13px;cursor:pointer}
.stock-pick:hover{border-color:var(--p2)}.stock-pick.on{border-color:var(--p2);box-shadow:0 0 0 3px rgba(14,124,134,.18)}
.stock-pick .num{font-variant-numeric:tabular-nums}

/* ---------- Admin user: products + billing ---------- */
.au-shopchips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.au-chip{padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--tx);font-size:13px;font-weight:600}
.au-chip.on{background:var(--p);border-color:var(--p);color:#fff}
.au-prod-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
.au-search{display:flex;gap:6px}.au-search input{min-width:200px}
.au-cats{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:8px}
.bx-hero{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;background:var(--card);border:1px solid var(--line);border-left:4px solid var(--ok);border-radius:18px;padding:18px;margin-bottom:14px;box-shadow:var(--shadow)}
.bx-hero.is-warn{border-left-color:var(--warn)}.bx-hero.is-bad{border-left-color:var(--bad)}
.bx-hero-main{display:flex;flex-direction:column;gap:10px;min-width:0}
.bx-id{display:flex;gap:12px;align-items:center}
.bx-shop{font-size:18px;font-weight:750;margin:0}
.bx-tags{display:flex;flex-wrap:wrap;gap:6px}
.bx-tags span{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:650;background:var(--soft);border:1px solid var(--line);color:var(--mu)}
.bx-tags .ok{background:var(--ok-bg);color:var(--ok)}.bx-tags .warn{background:var(--warn-bg);color:var(--warn)}.bx-tags .bad{background:var(--bad-bg);color:var(--bad)}
dl.bx-facts,dl.bx-sum{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0}
dl.bx-facts div,dl.bx-sum div{min-width:0}
dl.bx-facts dt,dl.bx-sum dt{color:var(--mu);font-size:12px}dl.bx-facts dd,dl.bx-sum dd{margin:0;font-weight:650;overflow-wrap:anywhere}
.bx-actions{display:flex;flex-direction:column;gap:8px;align-self:center}
.bx-actions .btn{justify-content:center;width:100%}
.bx-sms{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-bottom:12px}
.bx-sms-card{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--soft)}
.bx-sms-card b{font-size:22px;display:block}
dialog.bx-dlg{border:1px solid var(--line);border-radius:18px;padding:20px;width:min(440px,calc(100vw - 24px));background:var(--card);color:var(--tx);box-shadow:0 20px 60px rgba(0,0,0,.25)}
dialog.bx-dlg::backdrop{background:rgba(8,20,24,.55)}
dialog.bx-dlg h3{margin:0 0 12px}
.bx-dlg-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;flex-wrap:wrap}
@media (max-width:760px){.bx-hero{grid-template-columns:1fr}.bx-actions{display:grid;grid-template-columns:1fr 1fr}dl.bx-facts{grid-template-columns:1fr 1fr}}

/* ---------- Dark theme: shared surfaces ---------- */
html[data-theme=dark] body{background:var(--bg);color:var(--tx)}
html[data-theme=dark] .card,html[data-theme=dark] .panel,html[data-theme=dark] .dk-drawer,html[data-theme=dark] .topbar,html[data-theme=dark] .bottom-nav,html[data-theme=dark] .tabs{background-color:var(--card);color:var(--tx);border-color:var(--line)}
html[data-theme=dark] input:not([type=checkbox]):not([type=radio]):not([type=range]),html[data-theme=dark] select,html[data-theme=dark] textarea{background-color:var(--soft);color:var(--tx);border-color:var(--line)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#6f8489}
html[data-theme=dark] table.data th{color:var(--mu);border-color:var(--line)}
html[data-theme=dark] table.data td{border-color:var(--line)}
html[data-theme=dark] table.data tr:hover td{background:rgba(255,255,255,.02)}
html[data-theme=dark] .muted{color:var(--mu)}
html[data-theme=dark] .btn.ghost{background:transparent;color:var(--tx);border-color:var(--line)}
html[data-theme=dark] a:not(.btn):not(.on){color:inherit}
html[data-theme=dark] hr{border-color:var(--line)}
html[data-theme=dark] img{filter:none}
html[data-theme=dark] .flash,html[data-theme=dark] .alert{background:var(--soft);color:var(--tx)}
/* auto-derived dark overrides for fixed light colours */
html[data-theme=dark] .imei-warn{color:var(--mu)}
html[data-theme=dark] .promo-list{background-color:var(--card)}
html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .field textarea,html[data-theme=dark] .input{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .field input:focus,html[data-theme=dark] .field select:focus,html[data-theme=dark] .field textarea:focus,html[data-theme=dark] .input:focus{background-color:var(--card)}
html[data-theme=dark] .flash.ok{background-color:var(--soft)}
html[data-theme=dark] .flash.bad{background-color:var(--soft)}
html[data-theme=dark] .tg{background-color:var(--soft)}
html[data-theme=dark] .tr{background-color:var(--soft)}
html[data-theme=dark] .ta{background-color:var(--soft);color:var(--mu)}
html[data-theme=dark] .tb{background-color:var(--soft);color:var(--mu)}
html[data-theme=dark] .tx{background-color:var(--soft);color:var(--mu)}
html[data-theme=dark] table.data td{border-color:var(--line)}
html[data-theme=dark] table.data tr:hover td{background-color:var(--card)}
html[data-theme=dark] .rowline{border-color:var(--line)}
html[data-theme=dark] .seg{background-color:var(--soft)}
html[data-theme=dark] .sample{background-color:var(--soft);color:var(--mu)}
html[data-theme=dark] .lang-switch{background-color:var(--soft)}
html[data-theme=dark] .kpi-ico{background-color:var(--soft)}
html[data-theme=dark] .kpi-ico.green{background-color:var(--soft)}
html[data-theme=dark] .kpi-ico.amber{background-color:var(--soft);color:var(--mu)}
html[data-theme=dark] .top-search{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .profile-menu summary{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .menu-pop{background-color:var(--card)}
html[data-theme=dark] .menu-pop a:hover,html[data-theme=dark] .menu-pop button:hover{background-color:var(--soft)}
html[data-theme=dark] body{background-color:var(--card)}
html[data-theme=dark] .pos-card{background-color:var(--card)}
html[data-theme=dark] .pos-card img,html[data-theme=dark] .thumb{background-color:var(--soft)}
html[data-theme=dark] .banner-lock{background-color:var(--soft);color:var(--mu);border-color:var(--line)}
html[data-theme=dark] .banner-lock a{color:var(--mu)}
html[data-theme=dark] .drop{background-color:var(--card)}
html[data-theme=dark] .invoice{background-color:var(--card)}
html[data-theme=dark] .tabs a{background-color:var(--card)}
html[data-theme=dark] tr.rowlink:hover,html[data-theme=dark] tr.rowlink:focus{background-color:var(--card)}
html[data-theme=dark] .confirm-card{background-color:var(--card)}
html[data-theme=dark] .photo-sheet{background-color:var(--card)}
html[data-theme=dark] .tech-chip,html[data-theme=dark] .total-card{background-color:var(--card)}
html[data-theme=dark] .share-box div{background-color:var(--card)}
html[data-theme=dark] table.sheet th{background-color:var(--card)}
html[data-theme=dark] table.sheet td{border-color:var(--line)}
html[data-theme=dark] table.sheet tbody tr:hover td{background-color:var(--card)}
html[data-theme=dark] .toolbar select,html[data-theme=dark] .filters > select,html[data-theme=dark] .filters > input:not([type=checkbox]){background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .toolbar select:focus,html[data-theme=dark] .filters > select:focus,html[data-theme=dark] .filters > input:focus{background-color:var(--card)}
html[data-theme=dark] .search-box{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .search-box:focus-within{background-color:var(--card)}
html[data-theme=dark] .promo-row:hover{background-color:var(--card)}
html[data-theme=dark] .check-row{background-color:var(--soft);border-color:var(--line)}
html[data-theme=dark] .via-btn{background-color:var(--card)}
html[data-theme=dark] .via-note{color:var(--mu)}
html[data-theme=dark] .login-method{border-color:var(--line)}
html[data-theme=dark] .range-tabs a{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .range-tabs input[type=date]{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] table.sheet tfoot td{background-color:var(--card)}
html[data-theme=dark] .share-box div.shop{background-color:var(--soft)}
html[data-theme=dark] form.chips .chip{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .card .chips .chip{background-color:var(--soft);border-color:var(--line)}
html[data-theme=dark] .sms-top{background-color:var(--card)}
html[data-theme=dark] .sms-top.is-low{background-color:var(--card)}
html[data-theme=dark] .sms-top.is-out{background-color:var(--card)}
html[data-theme=dark] .sms-top-ic{background-color:var(--soft)}
html[data-theme=dark] .sms-credit.is-low{background-color:var(--card)}
html[data-theme=dark] .sms-credit-ic{background-color:var(--soft)}
html[data-theme=dark] .notif.unread{background-color:var(--soft)}
html[data-theme=dark] .notif-ic.ok{background-color:var(--soft)}
html[data-theme=dark] .notif-ic.bad{background-color:var(--soft)}
html[data-theme=dark] .notif-ic.warn{background-color:var(--soft);color:var(--mu)}
html[data-theme=dark] .notif-preview{background-color:var(--card)}
html[data-theme=dark] .notif-reason.warn{color:var(--mu)}
html[data-theme=dark] .due-row.due-overdue{background-color:var(--card)}
html[data-theme=dark] .pay-head{background-color:var(--soft)}
html[data-theme=dark] .overdue-card{background-color:var(--card)}
html[data-theme=dark] .overdue-ic{background-color:var(--soft)}
html[data-theme=dark] .bk-bar{background-color:var(--soft)}
html[data-theme=dark] .dash-custom button{background-color:var(--card)}
html[data-theme=dark] .dash-mini > div,html[data-theme=dark] .dash-mini > a{background-color:var(--card)}
html[data-theme=dark] .dash-formula{background-color:var(--card)}
html[data-theme=dark] .dash-bar{background-color:var(--soft)}
html[data-theme=dark] .dash-feed .ic.sale{background-color:var(--soft)}
html[data-theme=dark] .dash-feed .ic.buy{background-color:var(--soft)}
html[data-theme=dark] .dash-feed .ic.due{background-color:var(--soft)}
html[data-theme=dark] .dash-feed .ic.expense{background-color:var(--soft)}
html[data-theme=dark] .dash-feed .ic.tech{background-color:var(--soft)}
html[data-theme=dark] .perm-grid{border-color:var(--line)}
html[data-theme=dark] .warn-note{background-color:var(--card)}
html[data-theme=dark] details[data-pop] > summary{background-color:var(--card)}
html[data-theme=dark] .pop{background-color:var(--card)}
html[data-theme=dark] .pp-sub,html[data-theme=dark] .pp-row{background-color:var(--card)}
html[data-theme=dark] .pp-sub{border-color:var(--line)}
html[data-theme=dark] .pp-sub.warn{background-color:var(--soft);border-color:var(--line)}
html[data-theme=dark] .pp-row.danger{background-color:var(--soft)}
html[data-theme=dark] .dk-drawer{background-color:var(--card)}
html[data-theme=dark] .dr-x{background-color:var(--soft)}
html[data-theme=dark] .dr-row{background-color:var(--card)}
html[data-theme=dark] .dr-row:hover{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .dr-sel{background-color:var(--card)}
html[data-theme=dark] .dr-tabs button{background-color:var(--soft)}
html[data-theme=dark] .nt-row.new{background-color:var(--card)}
html[data-theme=dark] .nt-row.tip{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .dk-modal{background-color:var(--card)}
html[data-theme=dark] .qr-card img,html[data-theme=dark] .qr-empty{background-color:var(--card)}
html[data-theme=dark] .shop-card{background-color:var(--card)}
html[data-theme=dark] .sc-plan{background-color:var(--card)}
html[data-theme=dark] .sc-plan.warn{background-color:var(--card)}
html[data-theme=dark] .sc-plan.bad{background-color:var(--soft)}
html[data-theme=dark] .sc-stats div{background-color:var(--card)}
html[data-theme=dark] .shop-card.add{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .pin-box{background-color:var(--card)}
html[data-theme=dark] .pin-box:focus{background-color:var(--card)}
html[data-theme=dark] .seg label:has(input:checked){background-color:var(--card)}
html[data-theme=dark] .mk-nav{background-color:var(--soft)}
html[data-theme=dark] .mk-nav a{color:var(--mu)}
html[data-theme=dark] .mk-stat{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .mk-stat span{color:var(--mu)}
html[data-theme=dark] .mk-stat b{color:var(--tx)}
html[data-theme=dark] .mk-stat.ok b{color:var(--mu)}
html[data-theme=dark] .mk-stat.bad b{color:var(--mu)}
html[data-theme=dark] .mk-stat.warn b{color:var(--mu)}
html[data-theme=dark] .mk-tabs{border-color:var(--line)}
html[data-theme=dark] .mk-tab{color:var(--mu)}
html[data-theme=dark] .mk-tab small{background-color:var(--soft)}
html[data-theme=dark] .mk-list{border-color:var(--line)}
html[data-theme=dark] .mk-row{border-color:var(--line)}
html[data-theme=dark] .mk-row:hover{background-color:var(--card)}
html[data-theme=dark] .mk-av{color:var(--mu)}
html[data-theme=dark] .mk-av.g{color:var(--mu)}
html[data-theme=dark] .mk-who b{color:var(--tx)}
html[data-theme=dark] .mk-who small{color:var(--mu)}
html[data-theme=dark] .mk-empty{color:var(--mu)}
html[data-theme=dark] .mk-chips{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .mk-chip{background-color:var(--soft);color:var(--tx)}
html[data-theme=dark] .mk-chip button{color:var(--tx)}
html[data-theme=dark] .mk-sig{color:var(--mu)}
html[data-theme=dark] .mk-meter span{background-color:var(--soft);color:var(--mu)}
html[data-theme=dark] .mk-meter b{color:var(--tx)}
html[data-theme=dark] .mk-save-tpl summary{color:var(--mu)}
html[data-theme=dark] .mk-bar{background-color:var(--soft)}
html[data-theme=dark] .mk-date{color:var(--mu)}
html[data-theme=dark] .mk-dropzone{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .mk-dropzone:hover{background-color:var(--soft)}
html[data-theme=dark] .mk-invalid ul{color:var(--tx)}
html[data-theme=dark] .mk-name:hover,html[data-theme=dark] .mk-name:focus{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] body.panel .topbar{border-color:var(--line)}
html[data-theme=dark] body.panel .topbar h1{color:var(--tx)}
html[data-theme=dark] body.panel .card{border-color:var(--line)}
html[data-theme=dark] body.panel .tabs{background-color:var(--soft)}
html[data-theme=dark] body.panel .tabs a{color:var(--mu)}
html[data-theme=dark] body.panel table.data th{background-color:var(--soft);color:var(--mu)}
html[data-theme=dark] body.panel .statgrid > div{background-color:var(--card)}
html[data-theme=dark] .sx-side{background-color:var(--card);color:var(--tx);border-color:var(--line)}
html[data-theme=dark] .sx-side small{color:var(--mu)}
html[data-theme=dark] .sx-link{background-color:var(--card);color:var(--mu);border-color:var(--line)}
html[data-theme=dark] .sx-exp small{color:var(--mu)}
html[data-theme=dark] .bad-text{color:var(--mu)}
html[data-theme=dark] .sx-actions{background-color:var(--card)}
html[data-theme=dark] .sx-pack-shop{border-color:var(--line)}
html[data-theme=dark] .sc-manage{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .sc-manage > summary{color:var(--mu)}
/* dark: remaining light surfaces found by audit */
html[data-theme=dark] .dl-group,html[data-theme=dark] .card.user-head,html[data-theme=dark] .pop-row.on,html[data-theme=dark] .pp-sub,html[data-theme=dark] .sx-side.on{background:var(--soft)!important;background-image:none!important;color:var(--tx)!important;border-color:var(--line)!important}
html[data-theme=dark] .dl-group a{background-color:transparent}
html[data-theme=dark] .pill.ok{background:var(--ok-bg)!important;color:var(--ok)!important}
html[data-theme=dark] .tabs a.on,html[data-theme=dark] .au-tabs a.on{background:var(--soft);color:var(--tx)}
html[data-theme=dark] .dl-big>a{background:var(--card)!important;color:var(--tx)!important;border-color:var(--line)!important}
.bx-sms-card{display:flex;flex-direction:column;gap:6px}
.bx-sms-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.bx-sms-top small{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bx-sms-card em{font-style:normal;font-size:12px}
.bx-sms-act{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.bx-sms-act .btn{flex:1;justify-content:center}
.bx-sms{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
/* r28b compact Business summary header */
.ds-head{align-items:flex-start;gap:8px 12px;margin-bottom:12px}
.ds-head>div:first-child{min-width:0}
.ds-head h2{line-height:1.25}
.ds-tabs{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0}
.ds .seg{display:inline-flex;flex-wrap:nowrap;gap:2px;padding:3px;margin:0;border:1px solid var(--line);border-radius:999px;background:var(--soft);width:auto;max-width:100%}
.ds .seg a{flex:0 0 auto;padding:4px 11px;min-height:0;height:auto;border-radius:999px;font-size:12.5px;font-weight:600;line-height:1.4;white-space:nowrap;color:var(--mu);text-decoration:none;box-shadow:none;border:0;background:transparent}
.ds .seg a.on{background:var(--card);color:var(--tx);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.ds .ds-custom{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0}
.ds .ds-custom input{padding:3px 8px;font-size:12.5px;height:30px;border-radius:8px;width:auto;min-width:0}
.ds .ds-custom .btn{height:30px;padding:0 12px;font-size:12.5px}
@media (max-width:700px){.ds-head{flex-direction:column;align-items:stretch}.ds-tabs{justify-content:flex-start}.ds .seg{display:flex;width:100%}.ds .seg a{flex:1 1 auto;padding:5px 4px;text-align:center}.ds .ds-custom{width:100%}.ds .ds-custom input{flex:1 1 0}}
/* r28c mobile: SMS + package cards side by side */
@media (max-width:700px){
.dash-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px;align-items:stretch}
.dash-top>.sms-top,.dash-top>.sub-top{margin:0;padding:10px;border-radius:14px;display:grid;grid-template-columns:26px minmax(0,1fr);grid-template-rows:1fr auto;gap:6px 8px;align-content:start;min-width:0;height:100%;box-sizing:border-box}
.sms-top-ic,.sub-top-ic{width:26px!important;height:26px!important;border-radius:8px!important;grid-row:1;grid-column:1;align-self:start;display:grid;place-items:center}
.sms-top-ic svg,.sub-top-ic svg{width:15px!important;height:15px!important}
.sms-top-main,.sub-top-main{grid-row:1;grid-column:2;min-width:0;display:flex;flex-direction:column;gap:3px}
.sms-top-main small,.sub-top-main small{display:flex;flex-wrap:wrap;align-items:center;gap:3px 5px;font-size:11px;line-height:1.3;font-weight:600;color:var(--mu)}
.sms-top-main small .pill,.sub-top-main small .pill{padding:1px 6px;font-size:10px;line-height:1.4;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.sms-top-main b,.sub-top-main b{font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sms-top-main em,.sub-top-main em{font-size:10.5px;line-height:1.35;font-style:normal;color:var(--mu);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sub-bar{height:5px;margin-top:2px}
.sms-top-btn,.sub-top-btn{grid-row:2;grid-column:1/-1;width:100%;justify-content:center;text-align:center;margin:0!important;padding:5px 6px!important;font-size:11.5px!important;min-height:0;height:28px;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center}
}
@media (max-width:340px){.dash-top>.sms-top,.dash-top>.sub-top{padding:8px;grid-template-columns:22px minmax(0,1fr);gap:5px 6px}.sms-top-ic,.sub-top-ic{width:22px!important;height:22px!important}.sms-top-main b,.sub-top-main b{font-size:13.5px}}
@media (max-width:700px){.pop,.pop.right{position:absolute;left:auto;right:0;top:calc(100% + 8px);width:min(300px,calc(100vw - 20px));max-width:calc(100vw - 20px)}}
@media (max-width:700px){.ds .seg a{flex:1 1 0;min-width:0;padding:5px 2px;overflow:hidden;text-overflow:ellipsis}.ds .ds-custom{flex-wrap:nowrap}.ds .ds-custom input{flex:1 1 0;min-width:0;width:0;padding:3px 4px}.ds .ds-custom .btn{flex:none;padding:0 8px}}@media (max-width:400px){.ds .seg a{font-size:11px}}
@media (max-width:400px){.dl-groups{grid-template-columns:minmax(0,1fr)}.dl-big{grid-template-columns:repeat(3,minmax(0,1fr))}.dl-big a{min-width:0;overflow-wrap:anywhere}}
/* r28d mobile top bar: one row */
@media (max-width:700px){
.topbar{flex-wrap:nowrap!important;gap:6px!important;min-width:0}
.topbar>*{flex-shrink:0}
.topbar h1{flex:1 1 auto!important;min-width:0!important;font-size:17px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar .menu-btn{width:34px;height:34px;padding:0;display:inline-grid;place-items:center}
.topbar .sample{font-size:10px;padding:1px 6px;line-height:1.5;white-space:nowrap}
.topbar .hd-theme,.topbar .hd-lang{display:none!important}
.hd-switch>summary{padding:2px!important;gap:0!important}
.hd-switch>summary>svg,.hd-switch .hd-name{display:none!important}
.topbar .hd-ic{height:34px;min-width:34px;padding:0 6px}
.topbar .hd-av{width:30px;height:30px}
}
@media (max-width:360px){.topbar{gap:4px!important}.topbar .hd-ic{min-width:30px;padding:0 4px}.topbar h1{font-size:16px!important}}
@media (max-width:700px){
.topbar .top-search{display:none!important}
.topbar .top-theme,.topbar select.top-theme,.topbar .top-theme select{max-width:74px;height:32px;font-size:12px;padding:0 4px;flex-shrink:0}
.topbar .lang-switch,.topbar .lang-sw{transform:none;font-size:11px;flex-shrink:0}
.topbar .lang-switch a,.topbar .lang-sw a{padding:3px 7px}
}
@media (max-width:359px){.topbar .sample{display:none}}
@media (max-width:700px){.topbar{padding-top:8px!important;padding-bottom:8px!important;min-height:0!important}.main>.content,.content{padding-top:10px!important}.dash-top{margin-top:0}}
@media (max-width:400px){body.panel .topbar h1{font-size:15px!important}.topbar select.top-theme{max-width:62px}.topbar .lang-switch a{padding:3px 5px;font-size:10.5px}}
/* ===== r29: consistent layout system ===== */
/* shared filter bar */
.pf{padding:12px 14px;margin-bottom:12px;display:flex;flex-direction:column;gap:10px}
.pf .pf-seg{align-self:flex-start;display:inline-flex;flex-wrap:nowrap;gap:2px;padding:3px;margin:0;border:1px solid var(--line);border-radius:999px;background:var(--soft);max-width:100%;overflow-x:auto;scrollbar-width:none}
.pf .pf-seg a{flex:0 0 auto;padding:5px 12px;border-radius:999px;font-size:13px;font-weight:600;line-height:1.4;white-space:nowrap;color:var(--mu);text-decoration:none;background:transparent;border:0;box-shadow:none;min-height:0}
.pf .pf-seg a.on{background:var(--card);color:var(--tx);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.pf-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 10px;margin:0}
.pf-f{display:flex;flex-direction:column;gap:3px;margin:0;min-width:0}
.pf-f>span{font-size:11.5px;font-weight:600;color:var(--mu);line-height:1.2}
.pf-f input,.pf-f select,.pf-go{height:34px;box-sizing:border-box;font-size:13px;border-radius:9px}
.pf-f input,.pf-f select{border:1px solid var(--line);background:var(--card);color:var(--tx);padding:0 9px;min-width:0;width:auto;max-width:170px;margin:0}
.pf-go{padding:0 16px;display:inline-flex;align-items:center;justify-content:center;margin:0}
.pf-label{margin:0;font-size:12px;line-height:1.4}
.pf-label small{font-size:11px}
@media (max-width:700px){
.pf .pf-seg{align-self:stretch;display:flex}.pf .pf-seg a{flex:1 1 auto;text-align:center;padding:5px 6px;font-size:12px}
.pf-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.pf-f input,.pf-f select{max-width:none;width:100%}
.pf-go{grid-column:1/-1;width:100%}
}
/* generic filter / toolbar forms: same control height, aligned to baseline */
.content form.filters,.content .card.filters,.content .toolbar,.content .sx-filter,.content .mk-filter{align-items:flex-end}
.content .filters input:not([type=checkbox]):not([type=radio]),.content .filters select,.content .filters .btn,.content .toolbar input:not([type=checkbox]):not([type=radio]),.content .toolbar select,.content .toolbar .btn{height:34px;box-sizing:border-box;font-size:13px}
/* r42b: filter bar - equal height, centered text */
html[data-theme=dark] .content .search-box input:not([type=checkbox]):not([type=radio]):not([type=range]){background-color:transparent;background-image:none}
.content .filters select,.content .toolbar select{padding:0 30px 0 10px;line-height:normal}
.content .toolbar .search-box,.content .filters .search-box{height:34px;box-sizing:border-box}
.content .toolbar .search-box input,.content .filters .search-box input{height:100%;padding:0;border:0;background:transparent;line-height:normal}
.content .toolbar .toolbar-chk{height:34px;font-size:13px}
.content .toolbar-chk input{width:15px;height:15px}
.content .field.inline{margin:0}
/* stat grids: fluid, equal height, no lonely card */
.kpis,.kpi-grid{grid-template-columns:repeat(auto-fit,minmax(min(124px,100%),1fr))!important;align-items:stretch;gap:12px!important}
.kpis>*,.kpi-grid>*{height:100%;box-sizing:border-box;margin:0}
@media (max-width:700px){.kpis,.kpi-grid,.ds-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.kpis>:last-child:nth-child(odd),.kpi-grid>:last-child:nth-child(odd),.ds-grid>:last-child:nth-child(odd){grid-column:1/-1}}
@media (min-width:701px){.ds-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}}
.dl-grid{grid-template-columns:repeat(auto-fit,minmax(92px,1fr))}
/* tables never push the page wider */
.main,.content{min-width:0}
.content .card:has(>table),.content .card:has(>.tbl),.table-wrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.content table th{white-space:nowrap}
/* page headers: title + actions one row, wrap clean */
.page-head,.pg-head,.dash-head,.service-head,.mk-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:0 0 12px}
.page-head h1,.pg-head h1,.service-head h1{font-size:19px;margin:0;min-width:0}
.page-head .btn,.pg-head .btn,.service-head .btn{height:36px;padding:0 14px;font-size:13.5px;border-radius:10px;display:inline-flex;align-items:center;gap:6px}
/* desktop top bar: never wrap labels */
.topbar .sample{white-space:nowrap}
@media (max-width:1200px){.topbar .hd-lbl{display:none}}
/* forms & dialogs */
dialog .field,.dk-drawer .field{margin-bottom:10px}
dialog .actions,.modal .actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:12px}
.bars{overflow-x:auto;max-width:100%}.mk-tabs{flex-wrap:wrap}@media (max-width:700px){.mk-tabs{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:6px}.mk-tab{min-width:0!important;width:auto!important;white-space:normal}}
.topbar{min-width:0;max-width:100%}.topbar h1{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar>*{min-width:0}
/* r29b: balanced grids — rows always fill, no orphan */
.kpis,.kpi-grid,.grid[style*="auto-fit"],.grid2[style*="auto-fit"]{display:flex!important;flex-wrap:wrap;align-items:stretch}
.kpis,.kpi-grid,.grid[style*="auto-fit"]{gap:12px!important}
.kpis>*,.kpi-grid>*,.grid[style*="auto-fit"]>*{flex:1 1 150px;min-width:0;height:auto;margin:0}
.grid2[style*="auto-fit"]>*{flex:1 1 calc(50% - 14px);min-width:min(220px,100%)}
@media (max-width:700px){.kpis>*,.kpi-grid>*,.grid[style*="auto-fit"]>*{flex:1 1 calc(50% - 6px)}.grid2[style*="auto-fit"]>*{flex-basis:100%}}
.dl-grid{display:flex!important;flex-wrap:wrap;justify-content:center;gap:4px}
.dl-grid>a{flex:0 0 96px;min-width:0}
@media (max-width:700px){.dl-grid>a{flex:0 0 calc((100% - 12px)/4)}}
.card.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.card.filters>*{flex:1 1 170px;min-width:0;margin:0}
.card.filters>button,.card.filters>.btn,.card.filters>a{flex:0 0 auto}
.card:has(table.data),.card:has(table){overflow-x:auto}
.bars{gap:4px}.bars div{min-width:0;flex:1 1 0;overflow:hidden;font-size:10px}
@media (max-width:700px){form.card table.data{width:100%;table-layout:fixed}form.card table.data th,form.card table.data td{white-space:normal;word-break:break-word;padding-left:6px;padding-right:6px}}
/* r29b: dark-mode contrast */
html[data-theme=dark] .dl-group h3{color:#7fd3cf}
html[data-theme=dark] .dash-custom button{color:var(--tx);background:var(--soft);border-color:var(--line)}
html[data-theme=dark] .dash-custom button.on{background:#0f766e;color:#fff}
html[data-theme=dark] .pill.bad{background:var(--bad-bg);color:#fca5a5}
html[data-theme=dark] .btn.red,html[data-theme=dark] .btn.danger{background:#b42318;border-color:#b42318;color:#fff}
html[data-theme=dark] .mk-nav{background:var(--soft)}
html[data-theme=dark] .mk-nav a{color:var(--mu)}
html[data-theme=dark] .mk-nav a.on{background:var(--card);color:#7fd3cf}
html[data-theme=dark] .muted[style*="#f6f7f9"]{background:var(--soft)!important}
html[data-theme=dark] .pk-card{background:var(--card);border-color:var(--line)}
html[data-theme=dark] .pk-price{color:var(--tx)}
html[data-theme=dark] .pk-old{color:#a3b1bd}
html[data-theme=dark] .pk-soon{background:var(--soft);border-color:var(--line);color:var(--mu)}
html[data-theme=dark] .pk-ico{background:#ffffffee}
html[data-theme=dark] .mk-stat{background:var(--card);border-color:var(--line)}
html[data-theme=dark] .pk-hero{background:linear-gradient(135deg,#2a2410,#33270e);border-color:#a16207}
html[data-theme=dark] .pk-hero ul,html[data-theme=dark] .pk-hero h2,html[data-theme=dark] .pk-hero h3,html[data-theme=dark] .pk-hero strong{color:#fde68a}
html[data-theme=dark] .pk-strip{background:linear-gradient(135deg,#0f2a22,#12301f);border-color:#166534}
html[data-theme=dark] .pk-feat,html[data-theme=dark] .pk-strip .foot{color:#a7f3d0}
html[data-theme=dark] .pk-strip .foot{border-color:#166534}
html[data-theme=dark] .pk-save{background:#12301f;color:#86efac}
html[data-theme=dark] .pk-hero strong{color:#fcd34d!important}

/* ---------- r30: Buy SMS credit (shop) + SMS packages (admin) ---------- */
.sp-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sp-h{margin:18px 0 2px}.sp-sub{margin:0 0 10px}
.sp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.sp-opt{position:relative;display:flex;cursor:pointer}
.sp-radio{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.sp-card{position:relative;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:18px 16px 14px;border:2px solid var(--line);border-radius:16px;background:var(--card);box-shadow:var(--shadow);transition:border-color .15s,transform .15s,box-shadow .15s}
.sp-opt:hover .sp-card{transform:translateY(-2px);border-color:#9be3c8}
.sp-radio:focus-visible+.sp-card{outline:3px solid #7c5cff;outline-offset:2px}
.sp-radio:checked+.sp-card{border-color:var(--g2);box-shadow:0 0 0 3px rgba(16,185,129,.18),var(--shadow)}
.sp-name{font-size:13px;font-weight:700;color:var(--mu);text-transform:uppercase;letter-spacing:.04em}
.sp-count{font-size:26px;font-weight:800;color:var(--tx);line-height:1.1}.sp-count small{font-size:14px;font-weight:600;color:var(--mu)}
.sp-price{font-size:20px;font-weight:800;color:var(--g2)}
.sp-rate{font-size:13px;color:var(--tx)}
.sp-save{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--ok-bg);color:var(--ok)}
.sp-valid{font-size:12px}
.sp-pick{margin-top:auto;align-self:stretch;text-align:center;padding:8px 10px;border-radius:10px;border:1px solid var(--line);font-weight:700;color:var(--tx);margin-top:8px}
.sp-pick-on{display:none}
.sp-radio:checked+.sp-card .sp-pick{background:linear-gradient(90deg,#10b981,#12a47a);border-color:transparent;color:#fff}
.sp-radio:checked+.sp-card .sp-pick-on{display:inline}.sp-radio:checked+.sp-card .sp-pick-off{display:none}
.sp-badge{position:absolute;top:-11px;right:12px;font-size:11px;font-weight:800;padding:3px 10px;border-radius:999px;color:#fff;background:linear-gradient(90deg,#7c5cff,#5b8cff)}
.sp-best .sp-badge{background:linear-gradient(90deg,#f59e0b,#ea580c)}
.sp-popular{border-color:#c4b5fd}
.sp-custom .field{width:100%}.sp-custom input{width:100%}
.sp-pay{margin-top:16px}.sp-pay-h{font-size:16px}
.sp-steps{margin:8px 0 12px;padding-left:20px;color:var(--mu);line-height:1.7}
.sp-methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-bottom:10px}
.sp-m{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;background:var(--soft)}
.sp-m span{display:flex;flex-direction:column}.sp-m small{color:var(--mu)}
.sp-m:has(input:checked){border-color:var(--g2);box-shadow:0 0 0 2px rgba(16,185,129,.15)}
.sp-err{color:var(--bad);font-size:12px}
.sp-adm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;align-items:end}
.sp-row-off td{opacity:.55}
.sp-inline{display:inline}
@media (max-width:640px){.sp-top{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sp-top .kpi b{font-size:15px}.sp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sp-card{padding:16px 11px 11px}.sp-count{font-size:21px}.sp-price{font-size:17px}}
html[data-theme=dark] .sp-opt:hover .sp-card{border-color:#1f6f57}
html[data-theme=dark] .sp-popular{border-color:#4c3d8f}
html[data-theme=dark] .sp-price{color:#34d399}
html[data-theme=dark] .sp-m{background:var(--soft)}
.sp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.sp-grid>.sp-opt:last-child{grid-column:1/-1}
.sp-custom{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 16px}
.sp-custom .field{width:auto;flex:1 1 200px}.sp-custom .sp-pick{margin-top:0;align-self:center;flex:0 0 140px}
@media (max-width:640px){.sp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-custom .sp-pick{flex:1 1 100%}}
.sp-steps{list-style:decimal}.sp-steps li{display:list-item}

/* r30b: requests filter + pending tag */
.sp-filter{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.sp-filter .btn{margin-left:auto;flex:none;white-space:nowrap}
.sp-seg{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%;min-width:0}
.sp-seg::-webkit-scrollbar{display:none}
.sp-seg a{white-space:nowrap;text-decoration:none;flex:0 0 auto}
.sp-seg a b{font-weight:700;margin-left:4px;padding:0 6px;border-radius:999px;background:var(--line);font-size:11.5px}
.tag.sp-pend{background:#fef3c7;color:#78350f}
html[data-theme=dark] .tag.sp-pend{background:#422006;color:#fcd34d}
@media (max-width:520px){.sp-filter{flex-wrap:wrap}.sp-seg{display:flex;width:100%}.sp-seg a{flex:1 0 auto;text-align:center;padding:6px 8px}.sp-filter .btn{margin-left:0;width:100%;justify-content:center}}
@media (max-width:520px){.sp-seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;overflow:visible}.sp-seg a{padding:6px 2px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:3px;min-width:0}.sp-seg a b{margin-left:0;padding:0 4px;font-size:10.5px}}
/* r31: dashboard top row — three equal compact cards (r31b: action on the right) */
.dt3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 12px}
.dt3-c{--ac:var(--ok);--acb:var(--ok-bg);position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:10px;row-gap:2px;align-items:center;min-width:0;margin:0;padding:11px 14px 12px 16px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.dt3-c::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:var(--ac)}
.dt3-c.is-warn{--ac:var(--warn);--acb:var(--warn-bg)}.dt3-c.is-bad,.dt3-c.is-due{--ac:var(--bad);--acb:var(--bad-bg)}
.dt3-h{grid-column:1;grid-row:1;display:flex;align-items:center;gap:7px;min-width:0}
.dt3-v{grid-column:1;grid-row:2;display:block;font-size:20px;font-weight:800;line-height:1.2;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dt3-d{grid-column:1;grid-row:3;font-style:normal;font-size:12px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dt3-s{grid-column:2;grid-row:1;justify-self:end;display:flex}
.dt3-a{grid-column:2;grid-row:2/4;align-self:center;justify-self:end;display:flex}
.dt3-a .btn{min-height:0;width:128px;justify-content:center;text-align:center;padding:6px 8px;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dt3-ic{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--acb);color:var(--ac)}
.dt3-ic svg,.dt3-ic svg.ill{width:15px!important;height:15px!important}
.dt3-h small{min-width:0;font-size:12.5px;font-weight:650;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dt3-chip{padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.6;background:var(--acb);color:var(--ac);white-space:nowrap}
.dt3-link{font-size:12px;font-weight:650;color:var(--ac);text-decoration:none;line-height:1.6}.dt3-link:hover{text-decoration:underline}
.dt3-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--soft)}.dt3-bar i{display:block;height:100%;background:var(--ac)}
html[data-theme=dark] .dt3-c{background-color:var(--card);border-color:var(--line)}
html[data-theme=dark] .dt3-chip{filter:brightness(1.25)}
@media (max-width:1100px){.dt3-a .btn{width:104px;font-size:11.5px;padding:5px 6px}.dt3-v{font-size:18px}}
@media (max-width:820px){.dt3{gap:8px}.dt3-c{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;padding:9px 9px 10px 11px}
 .dt3-a{grid-column:1/-1;grid-row:4;justify-self:stretch;margin-top:5px}.dt3-a .btn{width:100%}}
@media (max-width:640px){.dt3{gap:6px;margin-bottom:10px}.dt3-c{padding:8px 7px 9px 9px;border-radius:12px;column-gap:4px;row-gap:1px}.dt3-c::before{top:8px;bottom:8px;width:2px}
 .dt3-h{gap:4px}.dt3-ic{width:18px;height:18px;border-radius:6px}.dt3-ic svg,.dt3-ic svg.ill{width:11px!important;height:11px!important}
 .dt3-h small{font-size:10.5px}.dt3-chip,.dt3-link{font-size:9.5px;padding:0 5px}
 .dt3-v{grid-column:1/-1;font-size:14px}.dt3-d{grid-column:1/-1;font-size:10px}
 .dt3-a{margin-top:4px}.dt3-a .btn{padding:4px 3px;font-size:10.5px;white-space:normal}}
@media (max-width:340px){.dt3{gap:4px}.dt3-c{padding:7px 5px 8px 7px}.dt3-v{font-size:12.5px}.dt3-a .btn{font-size:10px}}
/* r32: site staff badge, package cell, site admins */
.sb-name{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.staff-badge{display:inline-block;padding:0 7px;border-radius:999px;font-size:10px;font-weight:750;line-height:1.7;letter-spacing:.02em;white-space:nowrap;background:#e0e7ff;color:#3730a3}
.staff-badge.sb-super{background:#fee2e2;color:#991b1b}
html[data-theme=dark] .staff-badge{background:#1e1b4b;color:#c7d2fe}
html[data-theme=dark] .staff-badge.sb-super{background:#450a0a;color:#fecaca}
.pk-cell{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;min-width:0}
.pk-cell b{font-weight:650}.pk-cell small{flex-basis:100%;font-size:12px;white-space:nowrap}
.pk-cell .pk-bad{color:var(--bad);font-weight:650}
.pk-more{font-size:11px;font-weight:700;padding:0 6px;border-radius:999px;background:var(--soft);color:var(--mu)}
.sa-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.sa-head p{margin:0}
.sa-act{display:flex;gap:6px;align-items:center;white-space:nowrap}.sa-act form{margin:0}
.sa-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end;margin-top:10px}.sa-form .field{margin:0}
@media (max-width:700px){.sa-head{flex-direction:column;align-items:stretch}.sa-form{grid-template-columns:1fr}}
/* r31b: business summary — 10 stats fill evenly (5+5), never a lone card */
@media (min-width:701px){.ds-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media (min-width:1700px){.ds-grid{grid-template-columns:repeat(10,minmax(0,1fr))!important}}
@media (min-width:701px) and (max-width:1280px){.ds-box b{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media (max-width:1180px){.dt3-c{column-gap:6px;padding:10px 10px 11px 13px}.dt3-a .btn{width:92px;font-size:11px;padding:5px 4px}.dt3-v{font-size:16px}.dt3-chip,.dt3-link{font-size:10px;padding:0 6px}.dt3-h small{font-size:11.5px}.dt3-d{font-size:11px}.dt3-ic{width:22px;height:22px}}
@media (max-width:640px){.dt3-h{flex-wrap:wrap;row-gap:2px}.dt3-h small{flex-basis:100%;order:2}.dt3-s{align-self:start}.dt3-a .btn{width:100%}}
@media (max-width:640px){.dt3-h{grid-column:1/-1;grid-row:1}.dt3-s{grid-column:2;grid-row:1;position:relative;z-index:1}}
@media (max-width:340px){.dt3-v{font-size:12px}.dt3-a .btn{font-size:9.5px;white-space:nowrap;padding:4px 2px}.dt3-d{font-size:9.5px}}
/* r33 package / expiry split */
.pk-trial{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:600;background:#e0ecff;color:#1d4ed8;vertical-align:middle}
.ex-cell{white-space:nowrap;font-weight:500}
.ex-soon{color:#b45309}
.ex-bad{color:#dc2626}
.ex-chip{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:600;background:#fee2e2;color:#b91c1c;vertical-align:middle}
html[data-theme=dark] .pk-trial{background:#1e3a5f;color:#93c5fd}
html[data-theme=dark] .ex-soon{color:#fbbf24}
html[data-theme=dark] .ex-bad{color:#f87171}
html[data-theme=dark] .ex-chip{background:#4c1d1d;color:#fca5a5}
.pk-cell{white-space:nowrap}

/* ---------- r34: repair jobs ---------- */
.page-head .quick{display:flex;gap:8px;flex-wrap:wrap}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.jb-pills{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}
.jb-pills .chip{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.jb-pills .chip input{position:absolute;opacity:0;pointer-events:none}
.jb-pills .chip b{font-size:11px;padding:0 6px;border-radius:999px;background:var(--soft)}
.jb-checks{display:flex;gap:8px 16px;flex-wrap:wrap}
.jb-checks .check{display:inline-flex;gap:6px;align-items:center;font-weight:500}
.jb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.jb-grid>.card{margin:0;min-width:0}
.jb-wide{grid-column:1/-1}
.jb-kv{display:grid;grid-template-columns:minmax(110px,38%) 1fr;gap:6px 12px;margin:0}
.jb-kv dt{color:var(--mu);font-size:13px}.jb-kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
.jb-photos{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.jb-photos img{width:84px;height:84px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.jb-part{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.jb-part select{flex:1;min-width:180px}.jb-part input{width:72px}.jb-part input,.jb-part select{border:1px solid var(--line);background:var(--card);color:var(--tx);border-radius:10px;padding:7px 10px;height:38px}.jb-part input[name=name]{flex:1 1 100%;width:auto;min-width:0}.jb-part input[name=unit_cost]{flex:1;width:auto;min-width:0}@media(min-width:700px){.jb-part input[name=name]{flex:1 1 160px}.jb-part input[name=unit_cost]{flex:0 0 120px}}
.jb-preview{background:var(--soft);border-radius:10px;padding:8px 10px;margin:6px 0;white-space:pre-wrap;font-size:13px}
.jb-sms{margin:6px 0 10px}
.jb-flag{background:var(--warn-bg);color:var(--warn);border-radius:12px;padding:10px 14px;margin:0 0 12px;font-weight:600}
.jb-up{color:var(--ok)}.jb-down{color:var(--bad)}
.jb-tl{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--line)}
.jb-tl li{position:relative;padding:6px 0 10px 10px}
.jb-tl li::before{content:"";position:absolute;left:-21px;top:11px;width:10px;height:10px;border-radius:50%;background:var(--line);border:2px solid var(--card)}
.jb-tl li.now::before{background:var(--ok)}
.jb-tl small{margin-left:6px}
.jb-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}
.jb-stat{margin:0;display:flex;flex-direction:column;gap:4px}.jb-stat strong{font-size:22px}
@media (max-width:760px){.three,.jb-grid,.jb-stats{grid-template-columns:1fr}}
.dl-big>a{position:relative}.dl-big .dl-cnt{position:absolute;top:8px;right:10px;font-size:12px;font-weight:700;padding:1px 8px;border-radius:999px;background:var(--warn-bg);color:var(--warn)}
/* r34: tile rows always fill — columns follow the tile count */
@media (min-width:701px){.ds-grid:has(>:nth-child(8):last-child),.ds-grid:has(>:nth-child(12):last-child),.ds-grid:has(>:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))!important}.ds-grid:has(>:nth-child(6):last-child),.ds-grid:has(>:nth-child(9):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (min-width:1700px){.ds-grid:has(>:nth-child(8):last-child){grid-template-columns:repeat(8,minmax(0,1fr))!important}.ds-grid:has(>:nth-child(12):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}}
.dl-big:has(>a:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}
.dl-big:has(>a:only-child){grid-template-columns:minmax(0,1fr)!important}
/* r34: status chips (own style; the hero .chip is white-on-colour) */
.jb-pills .chip{padding:6px 12px;border-radius:999px;background:var(--card);color:var(--tx);border:1px solid var(--line);font-weight:600;font-size:13px;text-decoration:none;position:relative}
.jb-pills .chip.on,.jb-pills .chip:has(input:checked){background:var(--p);color:#fff;border-color:var(--p)}
.jb-pills .chip.on b,.jb-pills .chip:has(input:checked) b{background:#ffffff33;color:#fff}
.jb-pills .chip:hover{border-color:var(--p)}
.jb-pills .chip:has(input:focus-visible){outline:2px solid var(--p);outline-offset:2px}
.jb-hr{border:0;border-top:1px solid var(--line);margin:16px 0 12px}
.jb-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:6px}
@media (max-width:600px){.jb-pills{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.jb-pills .chip{flex:none}form .jb-pills{flex-wrap:wrap;overflow:visible}}
/* r36: My account */
.acc{max-width:980px;display:grid;gap:16px}.acc>.card,.acc-grid>.card{margin:0}
.acc-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.acc-avatar{flex:0 0 64px;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font-size:26px;font-weight:700;color:#fff;background:linear-gradient(135deg,#0e7c86,#0b5d66)}
.acc-id{flex:1 1 220px;min-width:0}.acc-id h2{margin:0 0 4px;font-size:20px;overflow-wrap:anywhere}
.acc-meta{display:flex;flex-wrap:wrap;gap:4px 14px;color:var(--mu);font-size:14px}.acc-mail{overflow-wrap:anywhere}
.acc-tags{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.acc-bal{font-size:13px;color:var(--mu)}.acc-bal b{color:var(--tx)}
.acc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.acc-card{display:flex;flex-direction:column}
.acc-title{display:flex;flex-direction:column;gap:2px;margin-bottom:14px}.acc-title strong{font-size:16px}
.acc-card .field input{height:44px;width:100%;box-sizing:border-box}
.acc-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.acc-foot{margin-top:auto;padding-top:4px;display:flex;justify-content:flex-end}.acc-foot .btn{min-width:150px;height:42px}
.acc-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.acc-methods .login-method{margin:0}
.acc-add{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.acc-add>strong{display:block;margin-bottom:10px}
@media(max-width:860px){.acc-grid,.acc-methods{grid-template-columns:1fr}}
@media(max-width:560px){.acc-two{grid-template-columns:1fr}.acc-head{align-items:flex-start}.acc-avatar{flex-basis:52px;width:52px;height:52px;font-size:22px}.acc-tags{flex-direction:row;flex-wrap:wrap;align-items:center;text-align:left;width:100%;gap:8px 12px}.acc-foot .btn{width:100%}}
/* r36: My shops in settings */
.set-shops{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.set-shops .ss-ico{flex:0 0 44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--soft);font-weight:700}
.set-shops .ss-txt{flex:1 1 200px;min-width:0}.set-shops .ss-act{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:560px){.set-shops .ss-act{width:100%}.set-shops .ss-act .btn{flex:1}}
/* r45: period filter on one line (PC), compact wrap (mobile); "Showing" line removed */
.pf.period-filter{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px}
.pf.period-filter .pf-seg{align-self:center;flex:0 1 auto;height:34px;box-sizing:border-box;align-items:center}
.pf.period-filter .pf-form{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;flex:1 1 auto;justify-content:flex-end}
.pf.period-filter .pf-f{flex-direction:row;align-items:center;gap:0;height:34px;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;background:var(--card);overflow:hidden}
.pf.period-filter .pf-f>span{padding:0 4px 0 9px;font-size:11.5px;white-space:nowrap}
.pf.period-filter .pf-f input,.pf.period-filter .pf-f select{border:0;height:32px;border-radius:0;padding:0 8px 0 4px;background:transparent;box-shadow:none;max-width:150px}
.pf.period-filter .pf-f select{padding-right:22px}
.pf.period-filter .pf-f:focus-within{border-color:var(--p);box-shadow:0 0 0 3px rgba(11,93,107,.12)}
.pf.period-filter .pf-go{height:34px;flex:none}
@media (max-width:1180px){.pf.period-filter .pf-form{flex-wrap:wrap;justify-content:flex-start}}
@media (max-width:640px){
.pf.period-filter{padding:8px;gap:8px}
.pf.period-filter .pf-seg{display:flex;width:100%;overflow-x:auto;flex-wrap:nowrap}
.pf.period-filter .pf-seg a{flex:1 0 auto}
.pf.period-filter .pf-form{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}
.pf.period-filter .pf-f input,.pf.period-filter .pf-f select{max-width:none;width:100%;flex:1;min-width:0}
.pf.period-filter .pf-go{grid-column:1/-1;width:100%}
}
@media (min-width:641px){
.pf.period-filter{flex-wrap:nowrap;gap:10px}
.pf.period-filter .pf-seg{flex:none}
.pf.period-filter .pf-seg a{padding:4px 9px;font-size:12.5px}
.pf.period-filter .pf-form{flex:1 1 0;min-width:0;flex-wrap:nowrap}
.pf.period-filter .pf-f{flex:1 1 auto;min-width:0}
.pf.period-filter .pf-f>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.pf.period-filter .pf-f input,.pf.period-filter .pf-f select{width:100%;max-width:none;min-width:0;padding:0 6px 0 8px;font-size:12.5px}
.pf.period-filter .pf-f:has(select){flex:0 0 78px}
.pf.period-filter .pf-f:has([name=to]){position:relative;margin-left:10px;overflow:visible}
.pf.period-filter .pf-f:has([name=to])::before{content:'–';position:absolute;left:-12px;top:50%;transform:translateY(-50%);color:var(--mu)}
.pf.period-filter .pf-go{padding:0 14px}
}
@media (min-width:641px) and (max-width:1100px){.pf.period-filter{flex-wrap:wrap}.pf.period-filter .pf-form{flex:1 1 100%}}
/* r45: manual warranty popup */
.mw-dlg{width:min(620px,94vw)}
.mw-dlg h2{display:flex;align-items:center;gap:8px;font-size:17px;margin:0 0 12px}
.mw-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.mw-grid .field{margin:0}
.mw-full{grid-column:1/-1}
.mw-mode{display:flex;gap:14px;font-weight:600}
.mw-mode span{display:inline-flex;align-items:center;gap:5px}
.mw-period{display:flex;gap:6px}.mw-period input{flex:1;min-width:0}.mw-period select{flex:0 0 96px}
.mw-acts{display:flex;gap:6px;justify-content:flex-end;margin-top:4px}.mw-acts form{margin:0}
.pill.mw-badge{background:rgba(11,93,107,.12);color:var(--p)}
@media (max-width:560px){.mw-grid{grid-template-columns:1fr}}
.mw-mode{flex-wrap:wrap;margin-bottom:6px;font-size:12.5px}
.mw-mode input[type=radio]{width:15px;height:15px;min-height:0;padding:0;margin:0;flex:none;accent-color:var(--p);box-shadow:none}
/* r46: start date + period on one row, auto expiry */
.mw-when{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}
.mw-when .field{margin:0}
.mw-when input,.mw-when select{height:40px;box-sizing:border-box}
.mw-exp{grid-column:1/-1;margin:0;font-size:12.5px}
@media (max-width:560px){.mw-when{grid-template-columns:1fr 1fr}.mw-period select{flex-basis:84px}}
/* r47: link-style group parent (Servicing → jobs) */
.sidebar .nav-group a.nav-parent{text-decoration:none}
.sidebar .nav-group a.nav-parent.on{background:rgba(255,255,255,.14);color:#fff}
.sidebar .nav-group a.nav-parent .nav-count{margin-left:auto}
.sidebar .nav-group a.nav-parent .nav-count+.nav-chev{margin-left:6px}
/* r48b visual QA: topbar title room, kbd hint, mobile title wrap */
.topbar .hd-kbd{white-space:nowrap}
@media (min-width:900px){.topbar .hd-search{min-width:0!important}.topbar .hd-name{max-width:130px}}
@media (max-width:1400px) and (min-width:900px){.topbar .hd-kbd{display:none}}
@media (max-width:480px){
 .topbar .sample,.topbar .hd-theme,.topbar .hd-lang{display:none!important}
 body.panel .topbar h1{white-space:normal!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.15;font-size:15px!important;overflow:hidden}
}
/* r48b: expense table lost its action buttons behind the 300px breakdown on laptop widths */
@media (max-width:1439px) and (min-width:901px){.expense-layout{grid-template-columns:minmax(0,1fr)!important}.expense-layout>.breakdown{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:4px 18px}.expense-layout>.breakdown>strong{grid-column:1/-1}}
