/* Zireva Dduka — design system (mobile first)
 * Tokens first; every component below uses them. Colour: deep green brand, gold accent, calm green-grey canvas.
 * Depth: hairline borders + soft layered shadows. Motion: short (120–220 ms), eased, off for reduced-motion. */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("../fonts/inter-var-latin.woff2") format("woff2")}
:root{color-scheme:light;
  --bg:#edf2ef; --card:#fff; --surface-2:#f5f8f6; --text:#11211a; --text-2:#33443c; --muted:#5d6d66; --line:#e1e8e4; --line-strong:#cbd6d0;
  --brand:#0f5132; --brand-deep:#0a3a24; --brand-2:#198754; --brand-tint:#e6f3ec; --accent:#f5b301; --danger:#b42318; --warn:#b54708;
  --ok-bg:#e6f4ec; --warn-bg:#fff5e6; --err-bg:#fdeceb; --info-bg:#e9f1fb;
  --radius:16px; --radius-sm:12px;
  --shadow-sm:0 1px 2px rgba(16,40,28,.05);
  --shadow:0 1px 2px rgba(16,40,28,.04),0 8px 24px -10px rgba(16,40,28,.12);
  --shadow-lg:0 2px 6px rgba(16,40,28,.06),0 24px 60px -16px rgba(10,58,36,.30);
  --ring:0 0 0 4px rgba(25,135,84,.18);
  --ease:cubic-bezier(.2,.7,.2,1);
  --tabbar-h:0px;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;min-height:100vh;color:var(--text);font:400 16px/1.5 var(--font);font-feature-settings:"cv11","ss01";
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
  background:radial-gradient(1100px 520px at -10% -12%,rgba(25,135,84,.16),transparent 62%) no-repeat,
             radial-gradient(900px 460px at 110% -8%,rgba(245,179,1,.11),transparent 58%) no-repeat,var(--bg);
  padding-bottom:var(--tabbar-h)}
/* faint dot texture that fades out down the page (fixed layer: no repaint while scrolling) */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(rgba(15,81,50,.10) 1px,transparent 1.3px) 0 0/22px 22px;
  -webkit-mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.35) 45%,transparent 80%);mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.35) 45%,transparent 80%)}
a{color:var(--brand-2);text-decoration-thickness:1px;text-underline-offset:2px;transition:color .15s var(--ease)}
a:hover{color:var(--brand)}
h1,h2,h3{color:var(--text);letter-spacing:-.015em;line-height:1.25}
h1{font-size:1.55rem;font-weight:750;margin:.2rem 0 .9rem;letter-spacing:-.025em}
h2{font-size:1.08rem;font-weight:680;margin:0 0 .8rem}
h3{font-size:.98rem;font-weight:650}
p{margin:.4rem 0 .8rem}
.muted{color:var(--muted)} .small{font-size:.85rem}
strong,b{font-weight:650}
.num,.value,.hero-value,.bal strong,.amt,.wc-total{font-variant-numeric:tabular-nums}
::selection{background:rgba(25,135,84,.2)}
:focus-visible{outline:none;box-shadow:var(--ring);border-radius:8px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none !important;animation:none !important}}

/* ---------- top bar ---------- */
.topbar{position:sticky;top:0;z-index:20;color:#fff;
  background:var(--brand);   /* one solid green, the same as the phone's status bar above it (Android app) */
  box-shadow:0 6px 22px -10px rgba(10,58,36,.55)}
.topbar::after{content:none}
.topbar-inner{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem 1rem;max-width:1140px;margin:0 auto}
.brand{display:inline-flex;align-items:center;gap:.55rem;color:#fff;text-decoration:none;font-weight:800;font-size:1.08rem;letter-spacing:-.01em;white-space:nowrap}
.brand:hover{color:#fff}
.brand img{width:30px;height:30px;border-radius:9px;box-shadow:0 2px 8px rgba(0,0,0,.25),0 0 0 1px rgba(255,255,255,.12)}
.brand span{color:var(--accent)}
.brand .lock{display:inline-flex;flex-direction:column;justify-content:center;line-height:1;color:var(--accent)}
.brand .lock small{margin-bottom:2px;font-size:.52rem;font-weight:750;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.78)}
.brand .lock b{font-weight:800;color:var(--accent)}
.brand.big{color:var(--brand);font-size:1.75rem;margin:0}
.who{display:flex;gap:.5rem;align-items:center;font-size:.85rem;min-width:0}
.shop-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw;padding:.3rem .7rem;border-radius:999px;background:rgba(255,255,255,.1)}
.shop-switch select{width:auto;max-width:46vw;margin:0;padding:.38rem 2rem .38rem .75rem;min-height:0;border-radius:999px;font-size:.85rem;font-weight:600;
  color:#fff;border:1px solid rgba(255,255,255,.22);background-color:rgba(255,255,255,.12);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.shop-switch select option{color:var(--text)}
.shop-switch select:hover{background-color:rgba(255,255,255,.18)}
.btn-logout{display:inline-flex;align-items:center;gap:.35rem;background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:999px;
  padding:.38rem .8rem;font:600 .85rem var(--font);cursor:pointer;white-space:nowrap;transition:background .15s var(--ease)}
.btn-logout:hover{background:rgba(255,255,255,.2)}
.btn-logout svg{width:16px;height:16px}
.btn-logout .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.btn-logout{padding:.42rem .55rem}
.brand{min-width:0}
@media (min-width:760px){.btn-logout .lbl{position:static;width:auto;height:auto;clip:auto}.btn-logout{padding:.38rem .8rem}}
@media (max-width:380px){.brand:not(.big){font-size:0;gap:0}.brand:not(.big) span{font-size:0}.brand:not(.big) .lock{display:none}}
.user-chip{display:none;align-items:center;gap:.45rem;font-weight:600;white-space:nowrap}
.avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;font-size:.78rem;font-weight:750;
  color:var(--brand-deep);background:linear-gradient(135deg,#ffe28a,var(--accent));box-shadow:0 0 0 2px rgba(255,255,255,.25)}
.nav{position:relative;z-index:1;display:none;gap:.25rem;overflow-x:auto;padding:0 .75rem .6rem;max-width:1140px;margin:0 auto;scrollbar-width:none}
.nav a{display:inline-flex;align-items:center;gap:.45rem;color:rgba(255,255,255,.82);text-decoration:none;padding:.45rem .85rem;border-radius:999px;white-space:nowrap;font-size:.92rem;font-weight:550;
  transition:background .15s var(--ease),color .15s var(--ease)}
.nav a svg{width:17px;height:17px;opacity:.9}
.nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.nav a.active{background:#fff;color:var(--brand);box-shadow:0 2px 10px -2px rgba(0,0,0,.25)}
.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.sprite{position:absolute;width:0;height:0;overflow:hidden}

/* phones: navigation at the bottom, like an app; wider screens: in the top bar */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:space-around;gap:.2rem;
  padding:.35rem .4rem calc(.35rem + env(safe-area-inset-bottom));background:#fff;
  border-top:1px solid var(--line);box-shadow:0 -8px 24px -12px rgba(16,40,28,.22)}
.tabbar a{flex:1;max-width:96px;display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.25rem 0;text-decoration:none;
  color:var(--muted);font-size:.7rem;font-weight:600;letter-spacing:.01em;border-radius:12px}
.tabbar a .pip{display:flex;align-items:center;justify-content:center;width:52px;height:30px;border-radius:999px;transition:background .2s var(--ease),transform .2s var(--ease)}
.tabbar a.active{color:var(--brand)}
.tabbar a.active .pip{background:var(--brand-tint)}
.tabbar a:active .pip{transform:scale(.92)}
body.has-tabbar{--tabbar-h:calc(66px + env(safe-area-inset-bottom))}
body.typing .tabbar{display:none}
body.typing{--tabbar-h:0px}
@media (min-width:760px){
  body.has-tabbar{--tabbar-h:0px}
  .tabbar{display:none}
  .nav{display:flex}
  .user-chip{display:inline-flex}
  .topbar-inner{padding:.75rem 1.25rem}
}

/* ---------- layout ---------- */
.wrap{max-width:1140px;margin:0 auto;padding:1.25rem 1rem 2rem;animation:page-in .28s var(--ease) both}
@keyframes page-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (min-width:760px){.wrap{padding:1.75rem 1.25rem 2.5rem}}
.plain-wrap{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1.25rem}
.foot{text-align:center;color:var(--muted);font-size:.75rem;padding:1rem 1rem 1.75rem;opacity:.8}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1.1rem;margin-bottom:1rem;box-shadow:var(--shadow)}
@media (min-width:760px){.card{padding:1.35rem 1.4rem}}
.card > h2:first-child{margin-top:0}
.card.narrow{max-width:460px}
.login-card{background:var(--card);border:1px solid rgba(255,255,255,.6);border-radius:22px;padding:1.75rem 1.5rem;width:100%;max-width:400px;box-shadow:var(--shadow-lg)}
.hero{margin-bottom:1rem}
.grid-2{display:grid;gap:1rem}
@media(min-width:760px){.grid-2{grid-template-columns:1fr 1fr}}

/* ---------- forms ---------- */
label{display:block;font-weight:600;font-size:.875rem;color:var(--text-2);margin-bottom:.9rem}
input,select,textarea,button{font-family:inherit}
input,select{display:block;width:100%;margin-top:.35rem;min-height:46px;padding:.65rem .85rem;font-size:1rem;font-weight:450;color:var(--text);
  border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:#fff;box-shadow:var(--shadow-sm);
  transition:border-color .15s var(--ease),box-shadow .15s var(--ease),background-color .15s var(--ease)}
input::placeholder,textarea::placeholder{color:#93a29b}
input:hover,select:hover,textarea:hover{border-color:#b3c3bb}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand-2);box-shadow:var(--ring)}
select{appearance:none;-webkit-appearance:none;padding-right:2.4rem;cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6d66' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center/16px}
input[type=checkbox],input[type=radio]{width:1.15rem;height:1.15rem;min-height:0;padding:0;box-shadow:none;accent-color:var(--brand-2);cursor:pointer}
input[type=date]{min-height:46px}
input:disabled,select:disabled{background:var(--surface-2);color:var(--muted);cursor:not-allowed}
fieldset{border:1px solid var(--line);border-radius:var(--radius-sm);padding:.7rem .9rem;margin:0 0 .9rem}
legend{font-weight:650;font-size:.875rem;padding:0 .35rem}
label.check{display:flex;align-items:center;gap:.6rem;font-weight:500;color:var(--text);margin:.35rem 0}
label.check input{width:1.15rem;margin:0}
.form-grid{display:grid;gap:0 1.1rem}
@media(min-width:760px){.form-grid{grid-template-columns:1fr 1fr}.form-grid fieldset,.form-grid button,.form-grid h2,.form-grid h3,.form-grid p,.form-grid .presence-status{grid-column:1/-1}.form-grid button{justify-self:start}}
.pw{display:flex;gap:.5rem;align-items:center}
.pw input{flex:1}
.pw .link{margin-top:.35rem;font-weight:600;color:var(--brand-2)}
.inline-form{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.inline-form input{width:auto;flex:1 1 140px;margin:0}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.6rem 1.05rem;border-radius:var(--radius-sm);
  border:1px solid var(--line-strong);background:#fff;color:var(--text);font:600 .95rem/1.2 var(--font);text-decoration:none;cursor:pointer;
  box-shadow:var(--shadow-sm);transition:transform .12s var(--ease),box-shadow .15s var(--ease),background-color .15s var(--ease),border-color .15s var(--ease),filter .15s var(--ease)}
.btn:hover{background:#f8fbf9;border-color:#b3c3bb;color:var(--text);box-shadow:0 4px 12px -4px rgba(16,40,28,.18)}
.btn:active{transform:scale(.98)}
.btn-primary{background:linear-gradient(180deg,#1f9a61,#157347);border-color:#137044;color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 6px 16px -6px rgba(21,115,71,.55)}
.btn-primary:hover{background:linear-gradient(180deg,#22a467,#167a4b);border-color:#137044;color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 10px 22px -8px rgba(21,115,71,.6)}
.btn-danger{background:#fff;border-color:#e7b4ae;color:var(--danger)}
.btn-danger:hover{background:#fff6f5;border-color:var(--danger);color:var(--danger)}
.btn-block{display:flex;width:100%;min-height:52px;padding:.85rem;font-size:1.05rem;border-radius:14px}
.link{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:.3rem}

/* ---------- alerts & pills ---------- */
.alert{position:relative;padding:.8rem 1rem .8rem 1.05rem;border-radius:var(--radius-sm);margin-bottom:1rem;width:100%;max-width:1140px;
  border:1px solid transparent;border-left-width:4px;box-shadow:var(--shadow-sm);animation:page-in .25s var(--ease) both}
.alert-success{background:var(--ok-bg);border-color:#bfe3cd;border-left-color:var(--brand-2);color:#0d3f27}
.alert-error{background:var(--err-bg);border-color:#f3c3be;border-left-color:var(--danger);color:#8f1c13}
.alert-info{background:var(--info-bg);border-color:#c7daf2;border-left-color:#2a78d6;color:#173a63}
.plain-wrap .alert{max-width:400px}
.pill{display:inline-flex;align-items:center;gap:.3rem;padding:.18rem .6rem;border-radius:999px;font-size:.78rem;font-weight:650;line-height:1.4}
.pill-ok{background:var(--ok-bg);color:var(--brand)} .pill-warn{background:var(--warn-bg);color:var(--warn)} .pill-muted{background:#eaefec;color:var(--muted)}

/* ---------- dashboard figures ---------- */
.stats{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1rem}
@media(min-width:760px){.stats{grid-template-columns:repeat(4,1fr);gap:1rem}}
.stat{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.95rem 1rem;display:flex;flex-direction:column;min-width:0;box-shadow:var(--shadow);overflow:hidden}
.stat-warn::before,.stat-net::before,.stat-bad::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px}
.stat .label{font-size:.72rem;font-weight:650;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.stat .value{font-size:1.4rem;font-weight:760;margin:.25rem 0 .1rem;letter-spacing:-.02em;overflow-wrap:anywhere}
.stat .sub{font-size:.8rem;color:var(--muted)}
.stat-warn{border-color:#f3d3a6;background:linear-gradient(180deg,#fff,var(--warn-bg))}
.stat-warn::before{background:#f0a030;opacity:1}
.table{width:100%;border-collapse:separate;border-spacing:0;font-size:.9rem}
.table th,.table td{text-align:left;padding:.6rem .5rem;border-bottom:1px solid var(--line);vertical-align:top}
.table thead th{font-size:.72rem;font-weight:650;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;background:var(--surface-2);border-bottom-color:var(--line-strong)}
.table thead th:first-child{border-top-left-radius:10px} .table thead th:last-child{border-top-right-radius:10px}
.table tbody tr{transition:background-color .12s var(--ease)}
.table tbody tr:hover td{background:#f8fbf9}
.table tr:last-child td{border-bottom:0}
.table .num{text-align:right;font-variant-numeric:tabular-nums}
.list{margin:0;padding-left:1.1rem}

/* ---------- tiles (shop screen, More) ---------- */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
@media(min-width:760px){.tiles{grid-template-columns:repeat(3,1fr);gap:1rem}}
.tile{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1rem 1rem 1.1rem;min-height:112px;
  display:flex;flex-direction:column;gap:.3rem;text-decoration:none;color:var(--text);box-shadow:var(--shadow);overflow:hidden;
  transition:transform .15s var(--ease),box-shadow .2s var(--ease),border-color .2s var(--ease)}
.tile strong{font-size:1.02rem;font-weight:680;padding-right:1.4rem}
.tile span{font-size:.84rem;color:var(--muted);line-height:1.4}
.tile em{margin-top:auto;font-size:.74rem;font-weight:650;color:var(--warn);font-style:normal}
.tile.disabled{opacity:.55}

/* staff */
.staff-row{border-top:1px solid var(--line);padding:.6rem 0}
.staff-row summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.staff-row.inactive summary strong{text-decoration:line-through;color:var(--muted)}
.staff-actions{display:grid;gap:.75rem;padding:.75rem 0 .25rem}

/* ---- Milestone 2: shop screens ---- */
.big-cta{margin:.5rem 0 .75rem}
.balances{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:1rem}
.bal{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:.55rem .6rem;display:flex;flex-direction:column;min-width:0}
.bal span{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.2px}
.bal strong{font-size:1.02rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bal-mtn{border-top:3px solid #ffcb05} .bal-airtel{border-top:3px solid #e40000}
.tile:not(.disabled):active{transform:scale(.98)}
.tile:not(.disabled){border-left:4px solid var(--brand-2)}
.tile-momo{border-left-color:#ffcb05 !important}

.seg{display:flex;gap:.5rem;margin-bottom:.8rem}
.seg label{flex:1;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:2px solid var(--line);border-radius:10px;padding:.6rem .4rem;cursor:pointer;background:#fff;font-weight:700}
.seg label small{font-weight:500;color:var(--muted);font-size:.75rem}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label:has(input:checked){border-color:var(--brand-2);background:var(--ok-bg)}
.seg label.mtn:has(input:checked){border-color:#e0b000;background:#fff8d6}
.seg label.airtel:has(input:checked){border-color:#e40000;background:#fdecea}
.seg label:has(input:disabled){opacity:.45;cursor:not-allowed}
.seg-big label{padding:.85rem .4rem;font-size:1.05rem}

.tabs{display:flex;gap:.25rem;margin-bottom:1rem;overflow-x:auto}
.tabs a{padding:.45rem .85rem;border-radius:999px;text-decoration:none;color:var(--text);background:#fff;border:1px solid var(--line);white-space:nowrap;font-size:.9rem}
.tabs a.active{background:var(--brand-2);color:#fff;border-color:var(--brand-2)}

.search{margin:0 0 .75rem}
.prod-list{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}
.prod{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:.6rem .7rem;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between}
.prod.out{opacity:.5}
.prod.selected{border-color:var(--brand-2);background:#f3fbf6}
.prod.hidden{display:none}
.prod-info{display:flex;flex-direction:column;min-width:0;flex:1 1 180px}
.prod-inputs{display:flex;gap:.4rem;align-items:center}
.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.stepper button{width:2.4rem;height:2.6rem;border:0;background:#eef2f0;font-size:1.2rem;cursor:pointer}
.stepper input{width:3rem;margin:0;border:0;border-radius:0;text-align:center;padding:.5rem 0;-moz-appearance:textfield}
.stepper input::-webkit-inner-spin-button{-webkit-appearance:none}
.prod .price{width:6.5rem;margin:0;text-align:right}
.price.too-low{border-color:var(--danger);background:var(--err-bg)}
.checkout{box-shadow:0 -4px 16px rgba(0,0,0,.06)}
#sale-form .checkout{position:sticky;bottom:0}
.total-bar{position:sticky;bottom:0;z-index:2;background:var(--brand);color:#fff;border-radius:10px;padding:.55rem .9rem;display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}
.total-bar strong{font-size:1.2rem;font-variant-numeric:tabular-nums}
.total-row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.6rem}
.total-row strong{font-size:1.5rem;font-variant-numeric:tabular-nums}
.credit-only{display:none}
.sale:has(input[value=CREDIT]:checked) .credit-only{display:block}

.entry{border-bottom:1px solid var(--line);padding:.55rem 0}
.entry-main{display:flex;gap:.6rem;align-items:baseline}
.entry .time{color:var(--muted);font-size:.8rem;font-variant-numeric:tabular-nums}
.entry .what{flex:1;font-size:.92rem}
.entry .amt{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.entry.voided .what,.entry.voided .amt,tr.voided td{text-decoration:line-through;color:var(--muted)}
details.void summary{cursor:pointer;color:var(--danger);font-size:.85rem;margin-top:.25rem}
details.void form{margin-top:.4rem}
.debtor summary{cursor:pointer;display:flex;gap:.5rem;align-items:baseline;flex-wrap:wrap}
.debtor .owed{margin-left:auto;font-weight:800;font-variant-numeric:tabular-nums}
.debtor .owed.has{color:var(--warn)}
.debtor form{margin-top:.5rem}

/* ---- Milestone 3: closing & reports ---- */
.grid-2.tight{gap:0 .75rem;grid-template-columns:1fr 1fr}
.denoms summary{cursor:pointer;color:var(--brand-2);font-weight:600;margin-bottom:.6rem}
.denom-grid{display:grid;grid-template-columns:1fr 1fr;gap:.4rem .75rem;margin-bottom:.75rem}
.denom{display:flex;align-items:center;gap:.4rem;margin:0;font-weight:600}
.denom span{min-width:4.6rem;text-align:right;font-variant-numeric:tabular-nums}
.denom input{margin:0;padding:.5rem}
.tile-close{border-left-color:var(--danger) !important}
.report-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}
.report-head h1{margin-bottom:.2rem}
.badge{display:inline-block;padding:.3rem .8rem;border-radius:999px;font-weight:800;font-size:.85rem}
.badge-ok{background:var(--ok-bg);color:var(--brand)} .badge-short{background:var(--err-bg);color:var(--danger)}
.badge-over{background:var(--warn-bg);color:var(--warn)} .badge-pending{background:#eceff1;color:var(--muted)}
.recon{display:grid;gap:.75rem;margin:1rem 0}
@media(min-width:900px){.recon{grid-template-columns:repeat(3,1fr)}}
.recon-card{margin:0;border-top:4px solid var(--line)}
.recon-card.status-ok{border-top-color:var(--brand-2)} .recon-card.status-short{border-top-color:var(--danger)} .recon-card.status-over{border-top-color:#f0a030}
.recon-top{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}
.recon-top h2{margin-bottom:.4rem}
.recon-card .var{font-weight:800}
.status-short .var{color:var(--danger)} .status-over .var{color:var(--warn)} .status-ok .var{color:var(--brand)}
.recon-table tr.sum td{font-weight:700;border-top:2px solid var(--line)}
.recon-table tr.var-row td{font-size:1.05rem}
.warn-text{color:var(--warn);margin:.5rem 0 0}
tr.bad td{background:var(--err-bg)}
.stat-net{border-color:var(--brand-2)} .stat-bad{border-color:#f1a39b;background:var(--err-bg)}
.v-short{color:var(--danger);font-weight:700} .v-over{color:var(--warn);font-weight:700} .v-ok{color:var(--brand)}
.table-wrap{overflow-x:auto}
.days-table td,.days-table th{white-space:nowrap}
.month-nav{display:flex;flex-wrap:wrap;gap:.4rem}
.last-close{display:block;text-decoration:none;color:inherit;border-left:5px solid var(--line)}
.last-close.status-ok{border-left-color:var(--brand-2)} .last-close.status-short{border-left-color:var(--danger)} .last-close.status-over{border-left-color:#f0a030}
.last-close .balances{margin-bottom:.4rem}
/* phone fit fixes */
.card .balances{gap:.35rem}
.card .bal{padding:.45rem .45rem}
.card .bal strong{font-size:.9rem;overflow-wrap:normal;white-space:nowrap}
.days-table{font-size:.85rem}
.days-table td,.days-table th{padding:.45rem .25rem}
.dot{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;margin-left:.25rem;vertical-align:middle}
.dot-warn{background:#f0a030} .dot-ok{background:var(--brand-2)}

/* ---- Milestone 4: owner tools ---- */
.owner-prod{text-decoration:none;color:inherit}
.prod-nums{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:.1rem;font-variant-numeric:tabular-nums}
.steps{padding-left:1.2rem;margin-top:0}
.steps li{margin-bottom:.35rem}
.count-cat{margin:1rem 0 .4rem;font-size:.95rem;color:var(--muted)}
.count-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin:0 0 .4rem;font-weight:500}
.count-row input{width:5rem;margin:0;text-align:center}
.cat-row{justify-content:space-between;border-bottom:1px solid var(--line);padding:.3rem 0}
.block-link{display:block;text-decoration:none;color:inherit}
input[type=file]{padding:.5rem}
.owner-prod{flex-wrap:nowrap;align-items:flex-start}
.owner-prod .prod-info{flex:1 1 auto;min-width:0}
.owner-prod .prod-nums{flex:0 0 auto}

/* ---- Milestone 5: WhatsApp ---- */
pre.wa{white-space:pre-wrap;font:inherit;font-size:.88rem;background:#e7f7df;border-radius:10px;padding:.7rem .8rem;margin:.5rem 0}
details.msg{border-top:1px solid var(--line);padding:.5rem 0}
details.msg summary{cursor:pointer}
.add-recipient{margin-top:1rem;border-top:1px solid var(--line);padding-top:1rem}
.wa-share{background:#25d366;border-color:#25d366;color:#fff;margin-bottom:1rem}

/* ---- Milestone 5: offline ---- */
.sync-bar{background:var(--info-bg);border:1px solid #bcd3ee;border-radius:10px;padding:.6rem .8rem;margin-bottom:1rem;font-size:.9rem}
.sync-bar.sync-warn{background:var(--warn-bg);border-color:#f5c27a}
.sync-bar.hidden{display:none}
.sync-bar ul{margin:.4rem 0 0;padding-left:1.1rem}
.sync-bar .link{color:var(--brand-2);font-weight:700;text-decoration:underline;padding:0}
.toast{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:50;max-width:520px;margin:0 auto;box-shadow:0 6px 24px rgba(0,0,0,.18)}

/* ---- Phase 1: profit dashboard & reports ---- */
.section-head{font-size:1rem;margin:.25rem 0 .6rem}
.stat .delta{font-size:.78rem;color:var(--muted)}
.stat .delta-good{color:var(--brand);font-weight:700} .stat .delta-bad{color:var(--danger);font-weight:700}
.viz-wrap{margin:.25rem 0 .5rem}
.viz{display:block;width:100%;height:auto;overflow:visible}
.viz-lg{display:none;max-width:760px}
@media(min-width:640px){.viz-sm{display:none}.viz-lg{display:block}}
.viz .viz-grid{stroke:#e8ecea;stroke-width:1;shape-rendering:crispEdges}
.viz .viz-zero{stroke:#aab5b0;stroke-width:1;shape-rendering:crispEdges}
.viz text{font-family:inherit;font-size:11px}
.viz .viz-tick{fill:var(--muted);font-variant-numeric:tabular-nums}
.viz .viz-val{fill:var(--text);font-weight:700}
.viz .viz-hit{fill:transparent}
.viz .viz-pos,.meter .viz-pos,.key-pos{fill:var(--brand-2);background:var(--brand-2)}
.viz .viz-neg,.key-neg{fill:var(--danger);background:var(--danger)}
.viz .viz-partial{fill-opacity:.45}
.key-partial{background:var(--brand-2);opacity:.45}
.viz-col:hover .viz-pos,.viz-col:hover .viz-neg,.viz-col:focus .viz-pos,.viz-col:focus .viz-neg{filter:brightness(1.18)}
.viz-col:focus{outline:none}
.viz-col:focus .viz-hit{fill:rgba(25,135,84,.08)}
.viz-legend{display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin:.2rem 0 .6rem}
.viz-legend span{display:inline-flex;align-items:center;gap:.35rem}
.key{display:inline-block;width:.75rem;height:.75rem;border-radius:3px}
.viz-tip{position:absolute;z-index:60;pointer-events:none;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.12);padding:.45rem .65rem;font-size:.82rem;max-width:260px;display:none}
.viz-tip.show{display:block}
.viz-tip strong{display:block;font-size:1rem}
.viz-tip span{display:block;color:var(--muted)}
details.explain{margin-top:.6rem}
details.explain summary{cursor:pointer;color:var(--brand-2);font-weight:600;font-size:.9rem}
details.explain ul{padding-left:1.1rem;font-size:.88rem;color:var(--muted)}
.profit-hero{display:flex;flex-direction:column;gap:.15rem;border-left:5px solid var(--brand-2)}
.profit-hero.is-loss{border-left-color:var(--danger);background:var(--err-bg)}
.profit-hero .label{font-size:.8rem;text-transform:uppercase;letter-spacing:.3px;font-weight:700;color:var(--brand)}
.profit-hero.is-loss .label{color:var(--danger)}
.hero-value{font-size:2.4rem;font-weight:800;line-height:1.1;overflow-wrap:anywhere}
.statement td{padding:.5rem .3rem}
.statement tr.sum td{font-weight:700;border-top:2px solid var(--line)}
.statement tr.total td{font-weight:800;font-size:1.1rem;border-top:3px double var(--text);border-bottom:0}
.statement tr.bad td.num,.statement tr.total.bad td{color:var(--danger)}
.sub-head{font-size:.95rem;margin:1.1rem 0 .4rem}
.bar-table .bar-col{width:35%;min-width:70px}
.meter{display:block;width:100%;height:8px;border-radius:4px;overflow:hidden}
.meter .meter-track{fill:#eef2f0}
.meter .viz-cost{fill:#5b7083}
form.inline{display:inline}
.danger-link{color:var(--danger);text-decoration:underline;font-size:.85rem}

/* ---- Phase 2: staff performance & targets ---- */
.metrics{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:.5rem 0}
@media(min-width:760px){.metrics{grid-template-columns:repeat(5,1fr)}}
.metric{border:1px solid var(--line);border-radius:10px;padding:.5rem .6rem;display:flex;flex-direction:column;min-width:0}
.metric .k{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.2px}
.metric .v{font-size:1.05rem;font-weight:800;overflow-wrap:anywhere}
.metric .s{font-size:.78rem;color:var(--muted)}
.metric .delta-good{color:var(--brand);font-weight:700} .metric .delta-bad{color:var(--danger);font-weight:700}
.metric.m-warn{border-color:#f5c27a;background:var(--warn-bg)}
.metric.m-bad{border-color:#f1a39b;background:var(--err-bg)}
.person h2 a{color:inherit;text-decoration:none}
.target{margin:.25rem 0 .75rem}
.target-top{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.35rem}
.target-state{font-size:.85rem;font-weight:700;color:var(--brand)}
.target-behind .target-state{color:var(--warn)}
.target .meter{height:10px}
.target p{margin:.35rem 0 0}
.meter .viz-warn{fill:#e08a00}
.inline-label{margin:0;font-weight:600;font-size:.9rem}
.plain-list{list-style:none;margin:0;padding:0}
.plain-list li{border-bottom:1px solid var(--line);padding:.5rem 0}
tr.current td{background:#f3fbf6}

/* ---- Phase 3: receipts, sales history, debtors ---- */
.receipt-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.wa-btn{background:#25d366;border-color:#25d366;color:#fff}
.receipt{background:#fff;border:1px solid var(--line);border-radius:6px;max-width:80mm;margin:0 auto 1rem;padding:5mm 4mm;
  font:13px/1.35 ui-monospace,"Cascadia Mono",Consolas,"Courier New",monospace;color:#000;box-shadow:0 4px 18px rgba(0,0,0,.08)}
.receipt header{text-align:center;display:flex;flex-direction:column;border-bottom:1px dashed #000;padding-bottom:2mm;margin-bottom:2mm}
.receipt .r-shop{font-size:16px;text-transform:uppercase}
.receipt .r-meta{display:flex;flex-direction:column;border-bottom:1px dashed #000;padding-bottom:2mm;margin-bottom:2mm}
.receipt table{width:100%;border-collapse:collapse}
.receipt td{padding:0;vertical-align:top}
.receipt .num{text-align:right;white-space:nowrap}
.receipt .r-line td{padding-bottom:1.5mm}
.receipt .r-line td:first-child{padding-left:4mm}
.receipt .r-totals{border-top:1px dashed #000;margin-top:1mm;padding-top:1mm}
.receipt .r-total td{font-weight:800;font-size:15px;padding:1mm 0}
.receipt footer{text-align:center;border-top:1px dashed #000;margin-top:2mm;padding-top:2mm}
.receipt .r-void{text-align:center;font-weight:800;font-size:18px;border:2px solid #000;padding:1mm;margin:0 0 2mm}
.receipt.is-void .r-items,.receipt.is-void .r-totals{text-decoration:line-through}
.wa-form{max-width:80mm;margin:0 auto 1rem}
.wa-form .inline-form{margin-top:.3rem}
.last-sale{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between;background:var(--ok-bg);border-color:#b7dfc6}
.filters .filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .75rem}
@media(min-width:760px){.filters .filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.filters label{margin-bottom:.6rem}
.filters .btn{margin-right:.75rem}
.day-head{font-size:.9rem;color:var(--muted);margin:1rem 0 .2rem;border-bottom:1px solid var(--line);padding-bottom:.2rem}
.day-head:first-child{margin-top:0}
a.sale-row{display:block;text-decoration:none;color:inherit}
a.sale-row:hover .what{text-decoration:underline}
.owed-total{font-size:1.25rem}
.age-bars{display:flex;flex-direction:column;gap:.45rem;margin:.25rem 0 .5rem}
.age-bar{display:grid;grid-template-columns:7.5rem 1fr 6.5rem;gap:.5rem;align-items:center}
.age-bar .k{font-size:.85rem}
.age-bar .v{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.meter .viz-neg{fill:var(--danger)}
.age-pill{font-size:.75rem;font-weight:700;border-radius:999px;padding:.1rem .5rem;background:var(--ok-bg);color:var(--brand)}
.age-pill.age-d30{background:var(--warn-bg);color:var(--warn)}
.age-pill.age-old{background:var(--err-bg);color:var(--danger)}
.debtor .wa-btn{margin:.25rem 0 .5rem}
.statement-mini{margin:.5rem 0;font-size:.85rem}

@media print{
  @page{margin:4mm}
  body{background:#fff}
  .topbar,.foot,.no-print,.sync-bar,.alert,.toast{display:none !important}
  .wrap{padding:0;max-width:none}
  .receipt{border:0;box-shadow:none;margin:0 auto;padding:0;max-width:80mm;width:100%}
}

/* ---- Phase 4: suppliers, shopping list, expenses ---- */
.pay-form{margin:.5rem 0}
.expense{display:flex;gap:.75rem;align-items:flex-start}
.expense .expense-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}
.thumb{flex:0 0 72px;width:72px;height:72px;border-radius:8px;overflow:hidden;border:1px solid var(--line);background:#eef2f0}
.thumb img{width:72px;height:72px;object-fit:cover;display:block}
.thumb.no-photo{display:flex;align-items:center;justify-content:center;font-size:.72rem;color:var(--muted);text-align:center}
.review-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:.4rem}
input[type=file]{font-size:.9rem}
@media print{.tabs,.month-nav{display:none !important}}

/* ---- System check ---- */
.health-ok{border-left:5px solid var(--brand-2)} .health-bad{border-left:5px solid #f0a030;background:var(--warn-bg)}
pre.log{white-space:pre-wrap;word-break:break-all;font-size:.75rem;background:#f6f7f6;border-radius:8px;padding:.6rem;max-height:320px;overflow:auto}

.balances.cash-only{grid-template-columns:1fr}

/* ---- Offline ---- */
.sync-bar details{margin-top:.3rem}
.sync-bar details summary{cursor:pointer;font-weight:600}
.offline-panel{border-color:#f5c27a;background:var(--warn-bg)}
.offline-panel[hidden]{display:none}
.offline-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}
.saved-screens{list-style:none;padding:0;margin:.75rem 0;display:flex;flex-direction:column;gap:.4rem}
.toast .btn{margin-left:.4rem;padding:.35rem .7rem}
.offline-receipt{position:fixed;inset:0;z-index:70;background:rgba(20,30,25,.55);overflow:auto;padding:1rem}
.offline-receipt .receipt-actions{max-width:80mm;margin:0 auto .6rem}
.offline-receipt .receipt{margin-bottom:.6rem}
.offline-receipt > p{max-width:80mm;margin:0 auto;color:#fff}
@media print{
  body.printing-offline-receipt > *:not(.offline-receipt){display:none !important}
  body.printing-offline-receipt .offline-receipt{position:static;background:none;padding:0}
  body.printing-offline-receipt .offline-receipt .no-print{display:none !important}
}


/* ---- Agent banking ---- */
.balances.n1{grid-template-columns:1fr}
.balances.n2,.balances.n4{grid-template-columns:1fr 1fr}
.bal-bank{border-top:3px solid #1f4e9c}
.tile-bank{border-left-color:#1f4e9c !important}
.seg label.bank:has(input:checked){border-color:#1f4e9c;background:#e8eef9}
.seg label.bank-float:has(input:checked),.seg label.bank:has(input:checked){border-color:#1f4e9c}
label .hint{display:block;font-weight:400;font-size:.8rem;color:var(--muted);margin-top:.15rem}

/* ---- Confirmation dialog (Zireva Dduka) ---- */
body.sq-open{overflow:hidden}
.sq-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:1.25rem;
  background:rgba(10,32,22,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;transition:opacity .18s ease}
.sq-modal.is-in{opacity:1}
.sq-dialog{width:100%;max-width:380px;background:#fff;border-radius:20px;overflow:hidden;
  box-shadow:0 24px 60px rgba(8,30,20,.35),0 2px 8px rgba(8,30,20,.15);transform:translateY(12px) scale(.97);transition:transform .2s ease}
.sq-modal.is-in .sq-dialog{transform:none}
.sq-head{display:flex;align-items:center;gap:.6rem;padding:.8rem 1.1rem;background:linear-gradient(135deg,#0f5132 0%,#198754 100%);color:#fff}
.sq-head img{border-radius:9px;box-shadow:0 2px 6px rgba(0,0,0,.25);background:#fff}
.sq-brand{font-weight:800;font-size:1.05rem;letter-spacing:.2px}
.sq-brand b{color:#ffc107}
.sq-body{padding:1.3rem 1.3rem .4rem;text-align:center}
.sq-mark{width:52px;height:52px;margin:0 auto .7rem;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:1.6rem;font-weight:800;color:#0f5132;background:#e7f5ed;box-shadow:inset 0 0 0 2px #b7dfc6}
.is-danger .sq-mark{color:var(--danger);background:var(--err-bg);box-shadow:inset 0 0 0 2px #f1a39b}
.sq-body h2{margin:0 0 .4rem;font-size:1.15rem;color:#10231a}
.sq-body p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.5}
.sq-foot{display:flex;gap:.6rem;padding:1.1rem 1.3rem 1.3rem}
.sq-btn{flex:1;min-height:48px;border-radius:12px;font:inherit;font-weight:700;font-size:1rem;cursor:pointer;border:1px solid var(--line)}
.sq-cancel{background:#fff;color:var(--text)}
.sq-ok{background:linear-gradient(135deg,#198754,#0f5132);border-color:#0f5132;color:#fff;box-shadow:0 4px 12px rgba(15,81,50,.3)}
.is-danger .sq-ok{background:linear-gradient(135deg,#d0342c,#a4221b);border-color:#a4221b;box-shadow:0 4px 12px rgba(164,34,27,.3)}
.sq-btn:focus-visible{outline:3px solid #ffc107;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.sq-modal,.sq-dialog{transition:none}}

/* Opening count corrections */
.correction{border-left:4px solid var(--brand-2)}
.correction.is-ask{box-shadow:0 0 0 2px var(--info-bg)}
.correction.is-pending{border-left-color:var(--muted)}
.correction h2{margin-top:0}
.correction td s{color:var(--muted)}
.correction .inline-form{margin-top:.6rem}
details.decline{margin-top:.5rem}
details.decline summary{cursor:pointer;color:var(--danger);font-size:.9rem}
details.decline form{margin-top:.5rem}

/* Product import */
.alert-warn{background:var(--warn-bg);color:var(--text);border-left:4px solid var(--warn)}
.grid2{display:grid;grid-template-columns:1fr;gap:0 .8rem}
@media (min-width:640px){.grid2{grid-template-columns:1fr 1fr}}
.map-table td:first-child{width:42%;font-weight:600}
.map-table select{margin:0;width:100%}
.map-table tr.bad td:first-child{color:var(--danger)}
details.import-paste{margin:.4rem 0 .8rem}
details.import-paste summary{cursor:pointer;color:var(--brand-2)}
textarea{width:100%;box-sizing:border-box;font:inherit;font-size:.85rem;padding:.5rem;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text)}
.import-notes{margin:.3rem 0 .8rem;padding-left:1.2rem}
.price-table input{margin:0;padding:.5rem .55rem;min-width:6.5rem}
.price-table td{vertical-align:middle}
.price-table tr.hidden{display:none}
.sticky-save{position:sticky;bottom:.6rem;margin-top:.8rem;box-shadow:0 6px 18px rgba(0,0,0,.18)}

/* Stock count: items not on the list */
.extras{margin-top:1rem}
.extra-row{display:grid;grid-template-columns:1fr 5.5rem;gap:.4rem;margin-bottom:.6rem;padding-bottom:.6rem;border-bottom:1px dashed var(--line)}
.extra-row input{margin:0}
.extra-row input[name="extra_price[]"]{grid-column:1 / -1}
@media (min-width:640px){.extra-row{grid-template-columns:1fr 6rem 9rem}.extra-row input[name="extra_price[]"]{grid-column:auto}}
.btn-small{padding:.45rem .8rem;font-size:.9rem}
.extra-card{border:1px solid var(--line);border-radius:12px;padding:.8rem;margin:.6rem 0}
.extra-card.is-pending{border-color:var(--warn);background:var(--warn-bg)}
.extra-card h3{margin:0 0 .3rem;font-size:1rem}
.extra-card details{margin-top:.5rem}
.extra-card details summary{cursor:pointer;font-weight:600;color:var(--brand-2)}
.extra-card form{margin-top:.5rem}
.hint-box{background:var(--info-bg);border-radius:10px;padding:.6rem .8rem;margin:.6rem 0}
.extra-ignore{margin-top:.6rem}

/* Working capital */
.wc-card{border-top:4px solid var(--brand-2)}
.wc-card.wc-loss{border-top-color:var(--danger)}
.wc-card.wc-gain{border-top-color:var(--warn)}
.wc-card.wc-open{border-top-color:var(--muted)}
.wc-badge{font-weight:700;font-size:.85rem;padding:.2rem .6rem;border-radius:999px;background:var(--ok-bg);color:var(--brand)}
.wc-loss .wc-badge{background:var(--err-bg);color:var(--danger)}
.wc-gain .wc-badge{background:var(--warn-bg);color:var(--warn)}
.wc-open .wc-badge{background:var(--bg);color:var(--muted)}
.wc-total{font-size:1.7rem;font-weight:800;margin:.2rem 0;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.wc-total .muted{display:block;font-size:.8rem;font-weight:500;letter-spacing:0}
.wc-accounts{margin:0 0 .6rem}
.wc-msg{margin:.6rem 0 0}
.wc-loss .wc-msg strong{color:var(--danger)}
.wc-gain .wc-msg strong{color:var(--warn)}
.wc-table tr.sum td{font-weight:700;border-top:2px solid var(--line)} .wc-table tr.var-row td{font-size:1.05rem}
.wc-month{margin:-.4rem 0 1rem;padding:0 .2rem}
.wc-what{margin:0 0 .5rem}
.wc-pair{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:.2rem 0 .6rem}
.wc-pair p{margin:0;background:var(--bg);border-radius:10px;padding:.5rem .7rem}
.wc-pair span{display:block}
.wc-pair strong{font-size:1.1rem;font-variant-numeric:tabular-nums}
.month-to-date{margin:-.3rem 0 1rem}

/* Products: tick several to remove from the shop */
.select-bar label.check{margin:0}
.select-bar p{margin:.35rem 0 0}
.select-dock{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;gap:.5rem;margin:0 -1rem;padding:.7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background:var(--card);border-top:1px solid var(--line);box-shadow:0 -4px 14px rgba(0,0,0,.08)}
.select-dock [data-select-count]{margin-right:auto;font-weight:600}
.btn:disabled{opacity:.45;cursor:default}
.prod-pick{cursor:pointer}
.prod-pick input{width:1.25rem;height:1.25rem;margin:.15rem 0 0;flex:0 0 auto;accent-color:var(--danger)}
.prod-pick.selected{border-color:var(--danger);background:#fff7f6}

/* Settings: shops with Close / Reopen / Delete */
.shop-list{list-style:none;padding:0}
.shop-list li{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.55rem 0;border-bottom:1px solid var(--line)}
.shop-list li.inactive > span:first-child{color:var(--muted)}
.shop-actions{display:flex;gap:.4rem;flex:0 0 auto}
.shop-actions .btn{padding:.45rem .75rem;font-size:.88rem}

/* Offline page (offline.html) */
.offline-brand{display:flex;align-items:center;gap:.6rem;margin-bottom:1.1rem}
.offline-brand img{border-radius:12px;box-shadow:0 2px 8px rgba(15,81,50,.25)}
.offline-card{text-align:center;padding:1.75rem 1.4rem;box-shadow:0 6px 24px rgba(15,81,50,.08)}
.offline-icon{width:68px;height:68px;margin:0 auto .9rem;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--warn-bg);color:var(--warn)}
.offline-title{margin:0 0 .4rem;font-size:1.45rem}
.offline-lead{color:var(--muted);margin:0 0 1.1rem}
.offline-status{text-align:center;font-size:.88rem;color:var(--muted);margin:0 0 1rem;min-height:1.3rem}
.offline-status .dot{display:inline-block;vertical-align:middle;margin:0 .45rem .15rem 0;width:.6rem;height:.6rem;border-radius:50%;background:var(--accent);animation:offline-pulse 1.6s ease-in-out infinite}
.offline-status.is-off .dot{background:var(--danger)}
.offline-status.is-on .dot{background:var(--brand-2);animation:none}
.offline-status.is-on{color:var(--brand)}
@keyframes offline-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}
@media (prefers-reduced-motion:reduce){.offline-status .dot{animation:none}}
.offline-queue{margin:1rem 0 0;text-align:left}
.offline-sub{font-size:1rem;margin:1.4rem 0 .2rem;padding-top:1.1rem;border-top:1px solid var(--line)}
#offline-saved{text-align:left}

/* Opening checks (proof of presence) */
.pill-bad{background:var(--err-bg);color:var(--danger)}
.presence{margin:.5rem 0 1rem}
.presence-status{margin:.4rem 0 .6rem;padding:.55rem .75rem;border-radius:10px;font-size:.9rem;font-weight:500;background:var(--info-bg)}
.presence-status.is-ok{background:var(--ok-bg);color:var(--brand)}
.presence-status.is-warn{background:var(--warn-bg);color:var(--warn)}
.presence-status.is-bad{background:var(--err-bg);color:var(--danger)}
.presence-settings .step{border-top:1px solid var(--line);padding-top:.75rem;margin-top:.75rem}
.presence-settings h3{font-size:1rem;margin:0 0 .4rem}
.presence-settings label.check{align-items:flex-start}
.presence-settings label.check input{margin-top:.25rem}
.presence-card .check-row{border-bottom:1px solid var(--line);padding:.4rem 0 .6rem;margin-bottom:.4rem}
.presence-card .check-head{margin:.2rem 0;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.presence-card .check-flags{margin:.3rem 0;padding-left:1.1rem;color:var(--danger);font-size:.88rem}
.check-photo img{display:block;max-width:100%;width:260px;border-radius:10px;border:1px solid var(--line);margin-top:.4rem}

/* Monthly earnings: three sources, validated categorical slots (aqua, blue, orange) */
.viz .viz-s1,.share-bar .viz-s1,.key.viz-s1{fill:#1baf7a;background:#1baf7a}
.viz .viz-s2,.share-bar .viz-s2,.key.viz-s2{fill:#2a78d6;background:#2a78d6}
.viz .viz-s3,.share-bar .viz-s3,.key.viz-s3{fill:#eb6834;background:#eb6834}
.viz-col:hover .viz-s1,.viz-col:hover .viz-s2,.viz-col:hover .viz-s3,.viz-col:focus .viz-s1,.viz-col:focus .viz-s2,.viz-col:focus .viz-s3{filter:brightness(1.12)}
.share-bar{display:block;width:100%;height:14px;border-radius:7px;overflow:hidden;margin:.4rem 0 .6rem}
.share-legend{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.35rem}
.share-legend li{display:grid;grid-template-columns:.75rem 1fr auto 3rem;gap:.5rem;align-items:center;font-variant-numeric:tabular-nums}
.share-legend li .muted{text-align:right}
.earnings-table .rank{font-weight:700;color:var(--brand)}
.earnings-table .best-row td{background:var(--ok-bg)}
.add-bill{margin-top:1rem;border-top:1px solid var(--line);padding-top:.75rem}
.earnings-table .nowrap{white-space:nowrap}


/* =====================================================================
   Design polish (v1.11): component details on top of the rules above.
   ===================================================================== */

/* tiles: colour accent as an inset bar, a chevron, lift on hover */
.tile:not(.disabled){border-left:1px solid var(--line);box-shadow:inset 3px 0 0 var(--brand-2),var(--shadow)}
.tile-momo{box-shadow:inset 3px 0 0 #f2c200,var(--shadow) !important;border-left-color:var(--line) !important}
.tile-bank{box-shadow:inset 3px 0 0 #1f4e9c,var(--shadow) !important;border-left-color:var(--line) !important}
.tile-close{box-shadow:inset 3px 0 0 var(--danger),var(--shadow) !important;border-left-color:var(--line) !important}
a.tile::after{content:"";position:absolute;top:1.05rem;right:.95rem;width:8px;height:8px;border-top:2px solid #a9b8b0;border-right:2px solid #a9b8b0;transform:rotate(45deg);transition:transform .2s var(--ease),border-color .2s var(--ease)}
a.tile:hover{transform:translateY(-2px);border-color:#cfe0d6;color:var(--text)}
a.tile:hover::after{border-color:var(--brand-2);transform:translateX(2px) rotate(45deg)}
.tile:not(.disabled):active{transform:scale(.98)}

/* tabs: a segmented control */
.tabs{display:flex;width:max-content;max-width:100%;gap:.2rem;padding:.25rem;margin-bottom:1rem;overflow-x:auto;background:#e1e9e4;border-radius:14px;
  box-shadow:inset 0 1px 2px rgba(16,40,28,.06);scrollbar-width:none}
.tabs a{padding:.45rem .9rem;border-radius:10px;text-decoration:none;color:var(--text-2);background:transparent;border:0;white-space:nowrap;font-size:.88rem;font-weight:600;
  transition:background .15s var(--ease),color .15s var(--ease),box-shadow .15s var(--ease)}
.tabs a:hover{color:var(--text);background:rgba(255,255,255,.5)}
.tabs a.active{background:#fff;color:var(--brand);border:0;box-shadow:0 1px 3px rgba(16,40,28,.12),0 4px 10px -4px rgba(16,40,28,.12)}

/* big choice buttons (Cash / Credit, MTN / Airtel…) — hidden radios stay inside their label (no sideways scrolling) */
.seg{gap:.6rem}
.seg label{position:relative;border:1.5px solid var(--line-strong);border-radius:14px;background:#fff;color:var(--text);box-shadow:var(--shadow-sm);
  transition:border-color .15s var(--ease),background-color .15s var(--ease),box-shadow .15s var(--ease),transform .12s var(--ease)}
.seg label:hover{border-color:#b3c3bb}
.seg label:active{transform:scale(.98)}
.seg input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;opacity:0;pointer-events:none}
.seg label:has(input:checked){border-color:var(--brand-2);background:var(--brand-tint);box-shadow:0 0 0 3px rgba(25,135,84,.14)}
.seg label.mtn:has(input:checked){border-color:#e0b000;background:#fff8d6;box-shadow:0 0 0 3px rgba(242,194,0,.2)}
.seg label.airtel:has(input:checked){border-color:#e40000;background:#fdecea;box-shadow:0 0 0 3px rgba(228,0,0,.12)}
.seg label.bank:has(input:checked){border-color:#1f4e9c;background:#e8eef9;box-shadow:0 0 0 3px rgba(31,78,156,.14)}
.seg label:has(input:focus-visible){box-shadow:var(--ring)}

/* balances (drawer / floats) */
.balances{gap:.6rem}
.bal{position:relative;border:1px solid var(--line);border-radius:14px;padding:.65rem .75rem;box-shadow:var(--shadow);overflow:hidden}
.bal span{font-size:.68rem;font-weight:650;letter-spacing:.06em}
.bal strong{font-size:1.08rem;font-weight:750;margin-top:.1rem}
.bal-mtn,.bal-airtel,.bal-bank{border-top:1px solid var(--line)}
.bal::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--brand-2)}
.bal-mtn::before{background:#f2c200} .bal-airtel::before{background:#e40000} .bal-bank::before{background:#1f4e9c}
.card .bal{box-shadow:none;background:var(--surface-2)}

/* lists of products, entries */
.prod{border-radius:14px;padding:.75rem .85rem;box-shadow:var(--shadow-sm);transition:border-color .15s var(--ease),box-shadow .15s var(--ease),background-color .15s var(--ease)}
a.prod:hover{border-color:#cfe0d6;box-shadow:var(--shadow)}
.prod-info strong{font-weight:650}
.stepper{border-radius:12px;border-color:var(--line-strong);box-shadow:var(--shadow-sm)}
.stepper button{width:2.6rem;height:2.75rem;background:var(--surface-2);color:var(--text);font-weight:600;transition:background .12s var(--ease)}
.stepper button:hover{background:#e3ebe6}
.stepper button:active{background:#d7e2dc}
.stepper input{min-height:0;box-shadow:none;border-radius:0}
.stepper input:focus{box-shadow:none}
.prod .price{min-height:44px}
.search{margin:0 0 .8rem;padding-left:2.5rem;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a29b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .85rem center/18px}
.entry{padding:.65rem 0}
.total-bar{border-radius:14px;padding:.7rem 1rem;background:linear-gradient(120deg,var(--brand-deep),var(--brand));box-shadow:0 10px 24px -10px rgba(10,58,36,.6)}
.checkout{border-radius:var(--radius)}

/* sticky bars sit above the phone's bottom navigation */
#sale-form .checkout,.total-bar,.select-dock{bottom:var(--tabbar-h)}
.sticky-save{bottom:calc(var(--tabbar-h) + .6rem)}
.toast{bottom:calc(var(--tabbar-h) + 1rem);border-radius:14px}

/* report & status pieces */
.badge{padding:.32rem .8rem;font-weight:750;font-size:.8rem;letter-spacing:.01em}
.recon-card{border-top:1px solid var(--line);box-shadow:inset 0 3px 0 var(--line-strong),var(--shadow)}
.recon-card.status-ok{box-shadow:inset 0 3px 0 var(--brand-2),var(--shadow)}
.recon-card.status-short{box-shadow:inset 0 3px 0 var(--danger),var(--shadow)}
.recon-card.status-over{box-shadow:inset 0 3px 0 #f0a030,var(--shadow)}
.wc-card{border-top:1px solid var(--line);box-shadow:inset 0 3px 0 var(--brand-2),var(--shadow)}
.wc-card.wc-loss{box-shadow:inset 0 3px 0 var(--danger),var(--shadow)}
.wc-card.wc-gain{box-shadow:inset 0 3px 0 var(--warn),var(--shadow)}
.wc-card.wc-open{box-shadow:inset 0 3px 0 var(--line-strong),var(--shadow)}
.wc-pair p{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:.6rem .8rem}
.last-close{border-left:1px solid var(--line);box-shadow:inset 4px 0 0 var(--line-strong),var(--shadow);transition:transform .15s var(--ease)}
.last-close.status-ok{box-shadow:inset 4px 0 0 var(--brand-2),var(--shadow)}
.last-close.status-short{box-shadow:inset 4px 0 0 var(--danger),var(--shadow)}
.last-close.status-over{box-shadow:inset 4px 0 0 #f0a030,var(--shadow)}
a.last-close:hover{transform:translateY(-1px)}
.profit-hero{border-left:1px solid var(--line);background:linear-gradient(135deg,#fff 40%,var(--brand-tint));box-shadow:inset 4px 0 0 var(--brand-2),var(--shadow)}
.profit-hero.is-loss{background:linear-gradient(135deg,#fff 40%,var(--err-bg));box-shadow:inset 4px 0 0 var(--danger),var(--shadow)}
.hero-value{font-size:2.3rem;font-weight:780;letter-spacing:-.03em}
.stat-net{border-color:#bfe3cd;background:linear-gradient(180deg,#fff,var(--brand-tint))}
.stat-net::before{background:var(--brand-2);opacity:1}
.stat-bad{border-color:#f3c3be;background:linear-gradient(180deg,#fff,var(--err-bg))}
.stat-bad::before{background:var(--danger);opacity:1}
.metric{border-radius:12px;background:var(--surface-2)}
.statement tr.total td{border-top:2px solid var(--text)}
.statement tbody tr:hover td{background:transparent}
.sub-head{font-weight:680;color:var(--text)}
.alert-warn{background:var(--warn-bg);border-color:#f3d3a6;border-left-color:var(--warn);color:#5c2d06}
a.alert{text-decoration:none;transition:transform .15s var(--ease),box-shadow .15s var(--ease)}
a.alert:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.hint-box{border:1px solid #c7daf2;border-radius:12px}
.sync-bar{border-radius:14px;box-shadow:var(--shadow-sm)}
details summary{transition:color .15s var(--ease)}
details.explain summary,.denoms summary{list-style-position:inside}
.viz-tip{border-radius:12px;box-shadow:var(--shadow-lg)}
.dot{box-shadow:0 0 0 2px #fff}
.report-head{margin-bottom:.4rem}
.report-head h1{margin-bottom:.3rem}
.month-nav .btn{min-height:40px}
.receipt{border-radius:10px;box-shadow:var(--shadow-lg)}
.thumb{border-radius:10px}
.select-dock{background:rgba(255,255,255,.97)}
pre.wa{border-radius:12px}

/* login & other plain pages (offline page too): brand canvas */
body.plain{background:linear-gradient(180deg,var(--brand) 0,rgba(15,81,50,0) 170px) no-repeat,   /* top edge = status-bar green */
                       radial-gradient(900px 520px at 0% 30%,rgba(46,170,108,.4),transparent 60%) no-repeat,
                       radial-gradient(800px 480px at 100% 100%,rgba(245,179,1,.22),transparent 60%) no-repeat,
                       linear-gradient(150deg,#08301e 0%,var(--brand) 55%,#126b42 100%) fixed;color:var(--text)}
body.plain::before{background:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1.3px) 0 0/22px 22px;-webkit-mask-image:none;mask-image:none}
.login-head{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:1.4rem}
.login-head img{width:64px;height:64px;border-radius:18px;margin-bottom:.8rem;box-shadow:0 10px 24px -8px rgba(10,58,36,.55)}
.login-head .brand.big{font-size:1.65rem}
.login-head p{margin:.25rem 0 0;color:var(--muted)}
.login-foot{margin:1.25rem 0 0;text-align:center;color:rgba(255,255,255,.75);font-size:.8rem}
.offline-body{background:inherit}
.offline-brand .brand{color:#fff}
.offline-brand img{box-shadow:0 6px 16px rgba(0,0,0,.3)}
.tile-group{font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:1.4rem 0 .6rem}
h1 + .tile-group{margin-top:.4rem}
.table code{word-break:break-all;font-size:.8rem}
.table td{overflow-wrap:break-word}
.pill{white-space:nowrap}
.table td.num,.table th{overflow-wrap:normal}
.page-foot-link{text-align:center;margin:1.5rem 0 .5rem;font-size:.9rem}

/* Dashboard: "Needs you" */
.attention{padding:0;overflow:hidden}
.attention > summary{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .6rem;padding:.85rem 2.6rem .85rem 1rem;cursor:pointer;list-style:none;position:relative;
  -webkit-user-select:none;user-select:none;transition:background .15s var(--ease)}
.attention > summary::-webkit-details-marker{display:none}
.attention > summary::after{content:"";position:absolute;right:1.15rem;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid #8a9a92;border-bottom:2px solid #8a9a92;
  transform:rotate(45deg);transition:transform .2s var(--ease)}
.attention[open] > summary::after{transform:rotate(-135deg);margin-top:-2px}
.attention > summary:hover{background:var(--surface-2)}
.attention > summary strong{font-size:1rem}
.needs-chips{display:inline-flex;flex-wrap:wrap;gap:.3rem}
.needs-chip{font-size:.74rem;font-weight:700;padding:.15rem .55rem;border-radius:999px}
.needs-bad{background:var(--err-bg);color:var(--danger)} .needs-warn{background:var(--warn-bg);color:var(--warn)} .needs-info{background:var(--info-bg);color:#2a5ea8}
.att-list{display:flex;flex-direction:column;gap:.15rem;padding:0 .35rem .35rem;border-top:1px solid var(--line)}
.check-seen{color:var(--brand);margin:.35rem 0}
.check-seen-form{margin:.45rem 0 .2rem}
.check-seen-form input{flex:1 1 180px}
.att{display:flex;align-items:center;gap:.75rem;padding:.7rem .75rem;border-radius:12px;text-decoration:none;color:var(--text);font-weight:550;font-size:.93rem;transition:background .15s var(--ease)}
.att:hover{background:var(--surface-2);color:var(--text)}
.att::after{content:"";margin-left:auto;flex:0 0 auto;width:7px;height:7px;border-top:2px solid #a9b8b0;border-right:2px solid #a9b8b0;transform:rotate(45deg)}
.att-mark{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:.85rem}
.att-bad .att-mark{background:var(--err-bg);color:var(--danger)}
.att-warn .att-mark{background:var(--warn-bg);color:var(--warn)}
.att-info .att-mark{background:var(--info-bg);color:#2a5ea8;font-style:italic;font-family:Georgia,serif}
.att + .att{border-top:1px solid var(--line);border-top-left-radius:0;border-top-right-radius:0}
.all-clear{display:flex;align-items:center;gap:.8rem}
.all-clear div{display:flex;flex-direction:column}
.ok-mark{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--ok-bg);color:var(--brand);font-weight:800}
.kpi-note{margin:-.4rem 0 1rem}
.stats-3{grid-template-columns:1fr 1fr}
@media(min-width:760px){.stats-3{grid-template-columns:repeat(3,1fr)}}
.hero p .pill{vertical-align:1px}
.nowrap{white-space:nowrap}
.code-input{font-size:1.4rem;letter-spacing:.25em;text-align:center;font-variant-numeric:tabular-nums}
.setup-key{display:inline-block;margin:.35rem 0;padding:.4rem .6rem;border-radius:8px;background:var(--surface-2);border:1px solid var(--line);font-size:1rem;letter-spacing:.06em;word-break:break-all}
.recovery-codes{columns:2;list-style:none;padding:0;margin:.6rem 0 0}
.recovery-codes li{padding:.15rem 0}
a.pill{text-decoration:none}a.pill:hover{filter:brightness(.97)}

/* Shopping list: cards on phones, table on wider screens and paper */
.only-phone{display:block}.only-wide{display:none}
@media (min-width:640px){.only-phone{display:none !important}.only-wide{display:block !important}}
@media print{.only-phone{display:none !important}.only-wide{display:block !important}}
.buy-list{list-style:none;margin:.2rem 0 .6rem;padding:0;display:flex;flex-direction:column}
.buy-item{display:flex;gap:.8rem;align-items:center;padding:.75rem 0;border-bottom:1px solid var(--line)}
.buy-item:last-child{border-bottom:0}
.buy-main{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.2rem}
.buy-main strong{font-weight:650;line-height:1.3}
.buy-qty{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;min-width:4.6rem;padding:.4rem .5rem;border-radius:12px;background:var(--surface-2);font-variant-numeric:tabular-nums}
.buy-qty strong{font-size:1.35rem;line-height:1.1}
.buy-item.is-urgent .buy-qty{background:var(--err-bg);color:var(--danger)}

/* Phones: nothing may make the page wider than the screen — that left an empty strip on the right and
   moved the bottom bar while scrolling. Wide tables scroll inside their card (.table-wrap) instead. */
html,body{overflow-x:clip}
input,select,textarea{min-width:0;max-width:100%}
.inline-form input{min-width:0}
@media (max-width:420px){.table{font-size:.88rem}.table th,.table td{padding-left:.25rem;padding-right:.25rem}}
.tabbar a{min-width:0}
.tabbar a .pip{width:100%;max-width:52px}
/* Privacy policy page (privacy.html, linked from the login page and the Play Store) */
.policy{max-width:720px;line-height:1.6;background:var(--card);border-radius:var(--radius);padding:1.1rem 1.25rem;margin-top:1rem;margin-bottom:1rem;box-shadow:var(--shadow)}   /* white sheet on the green canvas of body.plain */
@media print{.policy{box-shadow:none;padding:0}}
.policy h2{margin-top:1.6rem;font-size:1.15rem}
.policy li{margin:.4rem 0}
.login-foot a{color:inherit}

/* Staff: role cards and role changes */
.role-pick{display:grid;gap:.6rem;border:0;padding:0;margin:0 0 .9rem}
.role-pick legend{font-weight:700;margin-bottom:.5rem;padding:0}
.role-card{display:flex;gap:.75rem;align-items:flex-start;margin:0;padding:.85rem .95rem;border:2px solid var(--line);border-radius:14px;background:var(--card);cursor:pointer;font-weight:400}
.role-card input{width:20px;height:20px;min-height:0;margin:.15rem 0 0;flex:none;accent-color:var(--brand-2)}
.role-card strong{display:block;font-size:1.02rem}
.role-card span .small{display:block;margin-top:.15rem}
.role-card .role-rule{color:var(--brand);font-weight:600}
.role-card:has(input:checked){border-color:var(--brand-2);background:var(--brand-tint)}
.howto summary{cursor:pointer}
.howto ol{margin:.6rem 0 .4rem;padding-left:1.2rem}
.howto li{margin:.3rem 0}
.role-change{margin-top:.6rem;padding-top:.6rem;border-top:1px dashed var(--line)}
.role-change p{margin:0 0 .4rem}

/* ---- 2.0: many businesses — support / subscription bar, Help & support conversations ---- */
.biz-bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem .75rem;flex-wrap:wrap;padding:.55rem 16px;font-size:.9rem;font-weight:600}
.biz-bar form{margin:0}
.biz-bar-support{background:#b3261e;color:#fff}
.biz-bar-support .btn{background:#fff;color:#b3261e;border-color:#fff}
.biz-bar-warn{background:var(--warn-bg);color:var(--warn);border-bottom:1px solid #f3d3a6}
.biz-bar-stop{background:var(--err-bg);color:#8f1c13;border-bottom:1px solid #f3c3be}
.thread{display:flex;flex-direction:column;gap:.6rem;margin:1rem 0}
.msg{max-width:min(640px,92%);padding:.7rem .85rem;border-radius:14px;border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow);min-width:0}
.msg-me{align-self:flex-end;background:var(--ok-bg);border-color:#bfe3cd}
.msg-them{align-self:flex-start}
.msg-note{align-self:center;background:#fff8e1;border-style:dashed}
.msg-head{display:flex;gap:.5rem;align-items:baseline;flex-wrap:wrap;margin-bottom:.25rem}
.msg-body{overflow-wrap:break-word}
.msg img.thumb{display:block;width:auto;height:auto;max-width:min(220px,100%);max-height:220px;margin-top:.5rem;flex:none}
.biz-code-row{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;margin:0 0 .6rem}
a.stat{text-decoration:none;color:inherit}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.signup-card h2{font-size:1rem;margin:1.1rem 0 .4rem}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
[hidden]{display:none !important}            /* e.g. .btn would otherwise show a button the page hid */
label.check > input[type=checkbox]{flex:0 0 auto}   /* a long label must not squeeze its tick box */

/* Watch: things worth checking */
.watch-list{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1rem}
.watch{border-left:5px solid var(--line)}
.watch-HIGH{border-left-color:var(--danger)}
.watch-WARN{border-left-color:#e0a100}
.watch-INFO{border-left-color:var(--brand-2)}
.watch h2{font-size:1rem;margin:.1rem 0 .3rem}
.watch-meta{display:flex;flex-wrap:wrap;gap:.3rem .6rem;align-items:center;margin-bottom:.35rem;font-size:.8rem}
.watch-acts{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-start;margin-top:.6rem}
.watch-acts form{margin:0}
.watch-acts details{flex:1 1 100%}
.watch-acts details summary{cursor:pointer;color:var(--muted);font-size:.9rem}
.watch-acts details form{display:flex;flex-direction:column;gap:.5rem;margin-top:.5rem}

/* Daily brief */
.brief h2{font-size:1rem;margin:0}
.brief-points{margin:.4rem 0 .5rem;padding-left:1.1rem;display:flex;flex-direction:column;gap:.3rem}
.brief-tomorrow{margin:.3rem 0 0}
.brief-old{border-top:1px solid var(--line);padding:.6rem 0}
.brief-old summary{cursor:pointer;font-weight:600}
.brief-src{font-size:.78rem;color:var(--muted)}

/* Ask Zireva and the help guide */
.ask-q{margin:0 0 .3rem}
.ask-a{margin:0 0 .4rem;white-space:normal}
.guide-answer p{margin:.3rem 0}
.budget-form{display:flex;flex-direction:column;gap:.5rem}
.budget-form p{margin:0}

/* Dashboard daily brief: a folded card */
.brief-card{padding:0;overflow:hidden;transition:opacity .18s var(--ease),transform .18s var(--ease)}
.brief-card.brief-gone{opacity:0;transform:translateX(40px)}
.brief-card[hidden]{display:none}
.brief-card > summary{display:block;padding:.75rem 2.6rem .75rem 1rem;cursor:pointer;list-style:none;position:relative;-webkit-user-select:none;user-select:none}
.brief-card > summary::-webkit-details-marker{display:none}
.brief-card > summary::after{content:"";position:absolute;right:1.15rem;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid #8a9a92;border-bottom:2px solid #8a9a92;
  transform:rotate(45deg);transition:transform .2s var(--ease)}
.brief-card[open] > summary::after{transform:rotate(-135deg);margin-top:-2px}
.brief-title{display:block;font-weight:700;font-size:.95rem}
.brief-peek{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:.88rem;margin-top:.1rem}
.brief-card[open] .brief-peek{-webkit-line-clamp:unset;color:var(--text);font-weight:600}
.brief-body{padding:0 1rem .9rem;border-top:1px solid var(--line)}
.brief-foot{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin:.5rem 0 0}

/* "Ask Zireva" button: floats above the bottom bar; icon only while the page is scrolled down */
.ask-fab{position:fixed;right:1rem;bottom:calc(var(--tabbar-h) + 1rem);z-index:29;display:inline-flex;align-items:center;gap:.5rem;height:48px;padding:0 1.15rem 0 1rem;
  border-radius:999px;background:var(--brand);color:#fff;font-weight:700;font-size:.95rem;text-decoration:none;white-space:nowrap;
  box-shadow:0 10px 24px -8px rgba(15,81,50,.55),0 2px 6px rgba(0,0,0,.18);
  transition:padding .25s var(--ease),gap .25s var(--ease),transform .15s var(--ease)}
.ask-fab:hover{color:#fff}
.ask-fab:active{transform:scale(.95)}
.ask-fab .ico{width:22px;height:22px;flex:none}
.ask-fab-label{display:inline-block;max-width:9.5rem;overflow:hidden;transition:max-width .25s var(--ease),opacity .2s var(--ease)}
.ask-fab.mini{padding:0 .85rem;gap:0}
.ask-fab.mini .ask-fab-label{max-width:0;opacity:0}
body.typing .ask-fab{display:none}
@media print{.ask-fab{display:none}}

/* Ask Zireva chat: a panel that slides up over the screen (phones: a sheet; wide screens: a window at the bottom right), or the whole Ask screen */
body.bot-open{overflow:hidden}
body.bot-open .ask-fab{display:none}
.bot{--bot-kb:0px;position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end;justify-content:center;padding-bottom:var(--bot-kb)}
.bot[hidden]{display:none}
.bot-backdrop{position:absolute;inset:0;background:rgba(10,30,20,.45);opacity:0;transition:opacity .22s var(--ease)}
.bot-in .bot-backdrop{opacity:1}
.bot-panel{position:relative;display:flex;flex-direction:column;width:100%;max-width:520px;height:min(86vh,720px);max-height:calc(var(--bot-vh,100vh) - 1rem);
  background:#f4f8f5;border-radius:22px 22px 0 0;box-shadow:0 -16px 48px -12px rgba(10,30,20,.45);overflow:hidden;
  transform:translateY(105%);transition:transform .25s var(--ease)}
.bot-in .bot-panel{transform:none}
.bot-head{display:flex;align-items:center;gap:.7rem;padding:.8rem .9rem;background:linear-gradient(135deg,#0f5132,#17784b);color:#fff;flex:none}
.bot-avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);flex:none}
.bot-avatar .ico{width:21px;height:21px}
.bot-title{display:flex;flex-direction:column;min-width:0;flex:1}
.bot-title strong{font-size:1rem;line-height:1.2}
.bot-title small{opacity:.8;font-size:.78rem}
.bot-x{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer}
.bot-x:hover{background:rgba(255,255,255,.26)}
.bot-x .ico{width:20px;height:20px}
.bot-msgs{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:.9rem .8rem .4rem;display:flex;flex-direction:column;gap:.55rem;-webkit-overflow-scrolling:touch}
.bot-msg{display:flex;gap:.45rem;align-items:flex-end;max-width:100%}
.bot-msg-me{justify-content:flex-end}
.bot-col{display:flex;flex-direction:column;min-width:0;max-width:86%}
.bot-msg-me .bot-col{align-items:flex-end}
.bot-bubble{padding:.6rem .85rem;border-radius:18px;font-size:.95rem;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid var(--line);color:var(--text)}
.bot-msg-me .bot-bubble{background:var(--brand);border-color:var(--brand);color:#fff;border-bottom-right-radius:6px}
.bot-msg-bot .bot-bubble{border-bottom-left-radius:6px}
.bot-msg-error .bot-bubble{background:var(--err-bg);border-color:#e7b4ae;color:var(--danger)}
.bot-meta{font-size:.72rem;color:var(--muted);margin:.15rem .3rem 0}
.bot-mini{flex:none;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;display:inline-flex;align-items:center;justify-content:center}
.bot-mini .ico{width:15px;height:15px}
.bot-typing .bot-bubble{display:inline-flex;gap:.28rem;align-items:center;padding:.75rem .9rem}
.bot-typing i{width:7px;height:7px;border-radius:50%;background:#9bb3a6;animation:bot-dot 1.1s infinite ease-in-out}
.bot-typing i:nth-child(2){animation-delay:.15s}
.bot-typing i:nth-child(3){animation-delay:.3s}
@keyframes bot-dot{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.bot-typing i{animation:none}.bot-panel,.bot-backdrop{transition:none}}
.bot-chips{flex:none;display:flex;gap:.4rem;overflow-x:auto;padding:.35rem .8rem .5rem;scrollbar-width:none}
.bot-chips::-webkit-scrollbar{display:none}
.bot-chips[hidden]{display:none}
.bot-chip{flex:none;border:1px solid #b9d3c4;background:#fff;color:var(--brand);border-radius:999px;padding:.4rem .8rem;font-size:.85rem;font-weight:600;cursor:pointer;white-space:nowrap}
.bot-chip:hover{background:var(--brand-tint)}
.bot-input{flex:none;display:flex;align-items:flex-end;gap:.5rem;padding:.5rem .8rem .3rem;background:#f4f8f5}
.bot-input textarea{flex:1;resize:none;min-height:44px;max-height:112px;margin:0;border-radius:22px;padding:.6rem 1rem;line-height:1.35;overflow-y:auto}
.bot-send{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--brand);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.bot-send:disabled{opacity:.45;cursor:default}
.bot-send .ico{width:22px;height:22px}
.bot-note{flex:none;margin:0;padding:.1rem 1rem calc(.5rem + env(safe-area-inset-bottom));font-size:.7rem;color:var(--muted);text-align:center}
@media (min-width:760px){
  .bot{align-items:flex-end;justify-content:flex-end;padding:1rem}
  .bot-panel{width:400px;height:min(620px,calc(100vh - 2rem));border-radius:22px;box-shadow:0 24px 64px -16px rgba(10,30,20,.5)}
  .bot-backdrop{background:rgba(10,30,20,.12)}
}
/* the same chat filling the Ask Zireva screen */
.bot.bot-page{position:static;display:block;padding:0;z-index:auto}
.bot-page .bot-panel{max-width:none;width:100%;height:calc(100vh - 13rem);height:calc(100dvh - 13rem);min-height:420px;max-height:none;border-radius:18px;transform:none;
  border:1px solid var(--line);box-shadow:var(--shadow-sm,0 6px 20px -12px rgba(10,30,20,.3))}


/* ---- Subscription: plan cards, how long, the total; then the payment page (summary, how to pay, dialling steps) ---- */
.plans{display:grid;gap:.75rem;margin-bottom:.9rem}
@media (min-width:640px){.plans{grid-template-columns:1fr 1fr}}
.plan-card{position:relative;display:flex;flex-direction:column;gap:.2rem;margin:0;padding:1rem 1.05rem;border:2px solid var(--line);border-radius:var(--radius);
  background:var(--card);cursor:pointer;font-weight:400;transition:border-color .15s var(--ease),box-shadow .15s var(--ease)}
.plan-card input{position:absolute;opacity:0;pointer-events:none}
.plan-card:has(input:checked){border-color:var(--brand-2);background:var(--brand-tint);box-shadow:0 0 0 3px rgba(25,135,84,.14)}
.plan-card:has(input:checked)::after{content:"✓";position:absolute;top:.85rem;right:.9rem;width:24px;height:24px;border-radius:50%;background:var(--brand-2);color:#fff;
  font-size:.8rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.plan-card:has(input:focus-visible){box-shadow:var(--ring)}
.plan-card.is-off{opacity:.6;cursor:not-allowed}
.plan-top{display:flex;align-items:center;gap:.5rem;padding-right:2rem}
.plan-name{font-size:1.1rem;font-weight:750}
.plan-price{margin-top:.15rem;font-size:1.65rem;font-weight:780;letter-spacing:-.02em;line-height:1.2;color:var(--brand);font-variant-numeric:tabular-nums}
.plan-cur{font-size:.8rem;font-weight:650;color:var(--muted);vertical-align:.4em}
.plan-per{font-size:.85rem;font-weight:500;color:var(--muted)}
.plan-what{font-weight:650}
.plan-year{margin-top:.45rem;padding-top:.5rem;border-top:1px dashed var(--line-strong);font-size:.86rem;color:var(--text-2)}
.plan-year strong{color:var(--brand-2)}
.plan-why{font-size:.8rem;font-weight:600;color:var(--warn)}
.plan-extra{display:flex;gap:.7rem;align-items:flex-start;padding:.75rem .9rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);font-size:.92rem}
.plan-extra-ico{flex:none;width:26px;height:26px;border-radius:50%;background:var(--accent);color:#3d2c00;font-weight:800;display:flex;align-items:center;justify-content:center}
.seg.months{min-width:0}
.seg.months label{padding:.6rem .2rem;font-size:.92rem}
@media (max-width:359px){.seg.months{flex-wrap:wrap}.seg.months label{flex:1 1 40%}}
.seg.months small.free{color:var(--brand-2);font-weight:700}
.pay-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .6rem;margin:.2rem 0 1rem;padding:.8rem 1rem;border-radius:var(--radius-sm);background:var(--brand-tint)}
.pay-total .label,.pay-summary .label{display:block;width:100%;font-size:.72rem;font-weight:650;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.pay-total strong{font-size:1.5rem;font-weight:780;color:var(--brand);font-variant-numeric:tabular-nums}
.pay-summary-row{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}
.pay-summary-plan{display:block;font-size:1.2rem;font-weight:750}
.pay-lines{display:grid;grid-template-columns:1fr auto;gap:.35rem 0;margin:1rem 0 .6rem;padding-top:.8rem;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}
.pay-lines dt,.pay-lines dd{margin:0}
.pay-lines dt{padding-right:1rem}
.pay-lines dd{text-align:right;white-space:nowrap}
.pay-lines .save{color:var(--brand-2);font-weight:600}
.pay-lines .total{padding-top:.5rem;border-top:1px solid var(--line);font-size:1.15rem;font-weight:750}
.pay-lines dd.total{color:var(--brand)}
.methods{display:grid;gap:.6rem;margin-bottom:1rem}
.method{position:relative;display:flex;align-items:center;gap:.8rem;margin:0;padding:.8rem .9rem;border:2px solid var(--line);border-radius:14px;background:var(--card);cursor:pointer;font-weight:400}
.method input{position:absolute;opacity:0;pointer-events:none}
.method-text{display:flex;flex-direction:column}
.method-logo{flex:none;width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:800}
.method-online .method-logo{background:var(--brand);color:#fff;font-size:1.3rem}
.method-mtn .method-logo{background:#ffcb05;color:#1a1a1a}
.method-airtel .method-logo{background:#e40000;color:#fff;font-size:.72rem}
.method-bank .method-logo{background:#0f3d2a;color:var(--accent)}
.method-bank .method-logo svg{width:24px;height:24px}
.method-bank:has(input:checked){border-color:#0f5132;background:#eef5f1;box-shadow:0 0 0 3px rgba(15,81,50,.14)}
.method:has(input:checked){border-color:var(--brand-2);background:var(--brand-tint);box-shadow:0 0 0 3px rgba(25,135,84,.14)}
.method-mtn:has(input:checked){border-color:#e0b000;background:#fff8d6;box-shadow:0 0 0 3px rgba(242,194,0,.2)}
.method-airtel:has(input:checked){border-color:#e40000;background:#fdecea;box-shadow:0 0 0 3px rgba(228,0,0,.12)}
.method:has(input:focus-visible){box-shadow:var(--ring)}
/* only the chosen way's steps and form (browsers without :has show them all) */
.pay-methods .way{display:none}
.pay-methods:has(input[name=pick][value=ONLINE]:checked) .way-online,
.pay-methods:has(input[name=pick][value=MTN]:checked) .way-mtn,
.pay-methods:has(input[name=pick][value=AIRTEL]:checked) .way-airtel,
.pay-methods:has(input[name=pick][value=BANK]:checked) .way-bank{display:block}
@supports not selector(:has(*)){.pay-methods .way{display:block;margin-top:1.2rem}}
.pay-methods .steps{counter-reset:step;list-style:none;margin:0 0 1rem;padding:0}
.pay-methods .steps li{counter-increment:step;position:relative;margin:0;padding:.6rem 0 .6rem 2.6rem;border-bottom:1px solid var(--line)}
.pay-methods .steps li:last-child{border-bottom:0}
.pay-methods .steps li::before{content:counter(step);position:absolute;left:0;top:.5rem;width:1.8rem;height:1.8rem;border-radius:50%;background:var(--brand);color:#fff;
  font-size:.85rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.ussd{display:inline-block;padding:.1rem .55rem;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface-2);color:var(--brand);
  font-size:1.1rem;font-weight:800;letter-spacing:.03em;text-decoration:none}
.pay-code{display:inline-block;padding:.05rem .45rem;border-radius:6px;background:#fff3c4;font-size:1.08rem;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.paid-box{margin-top:.4rem;padding:1rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2)}
.paid-box h3{margin-top:0}

/* bank transfer: the account as a card (copy buttons), the amount and reference, the receipt rule */
.bank-card{position:relative;overflow:hidden;margin:0 0 1rem;border-radius:18px;color:#fff;
  background:linear-gradient(135deg,#0a3a24 0%,#0f5132 48%,#1a7a50 100%);box-shadow:0 18px 36px -18px rgba(10,58,36,.65)}
.bank-card-c1,.bank-card-c2{position:absolute;border-radius:50%;background:rgba(255,255,255,.07);pointer-events:none}
.bank-card-c1{width:220px;height:220px;right:-70px;top:-90px}
.bank-card-c2{width:150px;height:150px;right:40px;bottom:-95px;background:rgba(245,179,1,.12)}
.bank-card-in{position:relative;padding:1.2rem 1.25rem 1.3rem}
.bank-card-ico{display:inline-flex;width:42px;height:42px;border-radius:12px;align-items:center;justify-content:center;background:rgba(255,255,255,.12);color:var(--accent)}
.bank-card-ico svg{width:24px;height:24px}
.bank-card-name{margin:.7rem 0 1rem;color:#fff;font-size:1.2rem;font-weight:750;letter-spacing:-.01em}
.bank-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:.9rem 1rem}
.bank-field{min-width:0}
.bank-field.wide{grid-column:1 / -1}
.bank-field p{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:1.02rem;font-weight:650;overflow-wrap:anywhere}
.bank-field.wide:first-child p{font-size:1.32rem;letter-spacing:.06em}
.bank-field span{display:block;margin-top:.15rem;font-size:.7rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:rgba(255,255,255,.68)}
.copy-btn{flex:none;min-height:0;padding:.18rem .6rem;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(255,255,255,.12);
  color:#fff;font:600 .72rem/1.4 var(--font);letter-spacing:.02em;cursor:pointer}
.copy-btn:hover{background:rgba(255,255,255,.22)}
.copy-btn.done{background:var(--accent);border-color:var(--accent);color:#3d2c00}
.transfer-lines{display:grid;grid-template-columns:auto 1fr;gap:.55rem 1rem;align-items:center;margin:0 0 1rem;padding:.85rem 1rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2)}
.transfer-lines dt{margin:0;font-size:.85rem;color:var(--muted)}
.transfer-lines dd{margin:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;text-align:right;font-variant-numeric:tabular-nums}
.transfer-lines .copy-btn{border-color:var(--line-strong);background:#fff;color:var(--brand)}
.transfer-lines .copy-btn.done{background:var(--accent);border-color:var(--accent);color:#3d2c00}
.pay-notice{margin:.9rem 0 0;padding:.75rem .9rem;border-radius:var(--radius-sm);background:var(--info-bg);border:1px solid #cfe0f5;color:#1d3c63;font-size:.86rem}
.pay-notice strong{display:block;margin-bottom:.15rem}
.pay-notice p{margin:0}
.paid-box input[type=file]{width:100%;padding:.55rem;border:1.5px dashed var(--line-strong);border-radius:12px;background:#fff}
.reported-row{padding:.85rem 0;border-top:1px solid var(--line)}
.reported-row:first-of-type{border-top:0;padding-top:0}
.reported-top{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}
.receipt-form{display:grid;gap:.5rem;margin-top:.7rem}
.claim-actions{margin-top:.6rem;align-items:flex-start}
.claim-actions details summary{cursor:pointer;padding:.55rem .2rem;color:var(--danger);font-weight:600;font-size:.9rem}
.claim-actions details[open]{flex-basis:100%}
.claim-actions details input{flex:1;min-width:0}
/* what a shop does: Mobile Money lines and agent banking, each in its own box (Settings, sign-up, new business) */
fieldset.service{display:grid;gap:.5rem;min-width:0;margin:0;padding:.75rem .9rem .85rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2)}
fieldset.service legend{padding:0 .35rem;font-size:.95rem;font-weight:650;color:var(--text)}
fieldset.service p{margin:0}
/* Platform › Business health: customers to contact now */
.act-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem .8rem;margin-top:.5rem;border-left:4px solid var(--line-strong);border-radius:10px;background:var(--surface-2)}
.act-row.act-bad{border-left-color:var(--danger);background:var(--err-bg)}
.act-row.act-warn{border-left-color:var(--warn);background:var(--warn-bg)}
.act-row.act-info{border-left-color:var(--brand-2)}
.act-main{display:flex;flex-direction:column;gap:.1rem;min-width:0}
.act-row .btn{flex:none}
.table .lost{color:var(--danger);font-weight:650}
.login-legal{margin:.9rem 0 0;font-size:.78rem;color:var(--muted);text-align:center}
