/* Tradersbase demo — mobile-first, 390px friendly, no horizontal scroll */
:root{
  --ink:#1c1917;--muted:#78716c;--bg:#fafaf9;--card:#fff;--line:#e7e5e4;
  --brand:#ea580c;--brand-d:#c2410c;--ok:#16a34a;--blue:#2563eb;--blue2:#dbeafe;
  --ok2:#dcfce7;--gray2:#f5f5f4;--warn2:#fef3c7;--warn:#b45309;
}
*{box-sizing:border-box}
html,body{overflow-x:hidden;max-width:100vw}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:17px;line-height:1.45;padding-bottom:96px;
  -webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;
}
a{color:var(--brand)}
.topbar{
  position:sticky;top:0;z-index:40;background:var(--brand);color:#fff;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 16px;min-height:54px;
}
.topbar a{color:#fff;text-decoration:none}
.brand{font-weight:800;font-size:18px;letter-spacing:.2px;padding:9px 0;min-height:44px;display:inline-flex;align-items:center}
/* The DEMO marker the server injects beside the brand on EVERY rendered page — a
   public demo must never read as a live account. Pill-sized on purpose: brand + tag +
   gear must still fit a 390px header with zero horizontal scroll (topbar is
   space-between, so the tag lands centred between them). */
.topbar .demo-tag{
  flex:0 0 auto;align-self:center;white-space:nowrap;
  font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
  background:#fff;color:#9a3412;border:1px solid rgba(154,52,18,.25);
  border-radius:999px;padding:3px 9px;line-height:1.3;
}
.topbar .tag{font-size:12px;opacity:.9;font-weight:600}
/* header top-right gear = the ONLY Settings entry point now (the Demo badge moved out):
   icon-only, aria-label + title do the naming, 40px round target on the brand orange. */
.topbar .gear{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.15);
  color:#fff;font-size:20px;line-height:1;text-decoration:none;
}
.topbar .gear:active{background:rgba(255,255,255,.34);transform:scale(.96)}
.topr{display:flex;align-items:center;gap:8px}
main{padding:16px 16px 8px;max-width:560px;margin:0 auto}
h1{font-size:25px;line-height:1.2;margin:4px 0 14px;font-weight:800}
h2{font-size:18px;margin:20px 0 10px}
.muted{color:var(--muted);font-size:14px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:14px}
.card.tight{padding:12px 14px}
label{display:block;font-size:14px;font-weight:700;color:var(--muted);margin:14px 0 6px}
input,select,textarea{
  width:100%;font-size:16px;padding:13px 14px;border:1.5px solid var(--line);
  border-radius:12px;background:#fff;color:var(--ink);min-height:52px;
}
input:focus,select:focus,textarea:focus{outline:2px solid var(--brand);border-color:var(--brand)}
input.bad{border-color:#b91c1c;background:#fef2f2}
.ferr{color:#b91c1c;font-size:13px;font-weight:700;margin:6px 0 0}
/* suggestion dropdown under a field (address autocomplete in app.js + the returning-customer
   picker on the quote form): same look everywhere, in normal flow so it pushes content down
   instead of covering it, capped in height and scrollable at 390px (0 h-scroll). */
.sugs{border:1px solid var(--line);border-radius:12px;margin-top:6px;overflow:hidden;background:#fff;max-height:46vh;overflow-y:auto}
.sug{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;width:100%;
     min-height:54px;padding:10px 14px;background:#fff;color:var(--ink);text-align:left;
     border:none;border-bottom:1px solid var(--line);font-size:16px;font-weight:700;border-radius:0}
.sug:last-child{border-bottom:none}
.sug .sub{font-size:13px;font-weight:600;color:var(--muted)}
.sug.on,.sug:focus{background:#fff7ed;box-shadow:inset 3px 0 0 var(--brand);outline:none}
textarea{min-height:88px;resize:vertical}
button,.btn{
  display:flex;align-items:center;justify-content:center;text-align:center;gap:8px;
  width:100%;min-height:54px;padding:13px 16px;border:none;border-radius:12px;cursor:pointer;
  background:var(--brand);color:#fff;font-size:17px;font-weight:700;text-decoration:none;
  font-family:inherit;
}
button:active,.btn:active{transform:scale(.99);filter:brightness(.95)}
.btn.sec{background:#fff;color:var(--ink);border:1.5px solid var(--line)}
.btn.ok{background:var(--ok)}
.btn.blue{background:var(--blue)}
.btn.sm{min-height:46px;font-size:15px;padding:10px 12px;width:auto}
.row{display:flex;gap:10px}
.row>*{flex:1;min-width:0}
/* quote/invoice form action row: every .btn is width:100%, so a no-shrink child made
   the row's children 658px wide — Cancel poked 9px past 390px and Save was crushed to
   32px. Buttons share their row and may wrap instead. The footer now runs a PAIR
   (Save / Save and send) side by side with Cancel on its own row: at 390px each half
   gets ~151px, so both labels stay on one legible line, 0 h-scroll. */
#quote-form .row{flex-wrap:wrap}
#quote-form .row>button{flex:1 1 0 !important;min-width:0}
/* the Save / Save and send pair: 17px labels overflow a ~151px half and wrapped to two
   lines, so the pair runs 15px text + 8px side padding -> both labels ONE legible line,
   54px tall, side by side, 0 h-scroll at 390px. Cancel (own row) keeps the 17px default. */
#quote-form #q-save,#quote-form #q-send{font-size:15px;padding:13px 8px;letter-spacing:-.2px}
.stack{display:flex;flex-direction:column;gap:10px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* dashboard quick actions: two rows of three (labels wrap, styling unchanged) */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;
  display:block;text-decoration:none;color:inherit;min-height:44px;
  -webkit-tap-highlight-color:transparent}
a.stat:active{transform:scale(.98);filter:brightness(.97)}
a.stat:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
/* summary tiles double as filters (invoices page) — whole tile tappable, ≥44px */
button.stat{
  width:100%;text-align:left;font-family:inherit;cursor:pointer;color:var(--ink);
  font-size:17px;line-height:1.45;
}
button.stat:active{transform:scale(.98);filter:brightness(.97)}
button.stat:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
button.stat.on{
  background:var(--brand);border-color:var(--brand-d);color:#fff;
  box-shadow:0 0 0 2px var(--brand-d);
}
button.stat.on .k{color:rgba(255,255,255,.9)}
.stat .v{font-size:24px;font-weight:800;display:block}
.stat .k{font-size:13px;color:var(--muted);font-weight:600;display:block}
/* tappable calendar/dashboard job rows (tap -> edit view) */
.jrow{cursor:pointer;-webkit-tap-highlight-color:transparent;flex-wrap:wrap}
/* map actions get their own full-width line: "Google Maps" + "Apple Maps" sit side by
   side (~157px each at 390px) without squeezing the job text or scrolling sideways */
.jrow .mapbtns{flex:1 0 100%;margin-top:10px}
.jrow:active{background:var(--gray2)}
.jrow:focus-visible{outline:3px solid var(--brand);outline-offset:-3px;border-radius:10px}
.chip.on{background:var(--brand);border-color:var(--brand-d);color:#fff}
.chip:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
/* Quotes | Invoices segmented toggle (invoices page) */
.seg{display:flex;gap:0;background:var(--gray2);border:1px solid var(--line);border-radius:999px;padding:4px;margin:0 0 4px}
.seg-b{
  flex:1;min-height:44px;width:auto;padding:9px 12px;border-radius:999px;background:transparent;
  color:var(--muted);font-size:16px;font-weight:700;border:none;
}
.seg-b.on{background:var(--brand);border-color:var(--brand-d);color:#fff;box-shadow:0 0 0 2px var(--brand-d)}
.seg-b:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
/* email send panel (Send now / Mail app / Copy) — same shell as .chase */
.mailpanel{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.mailpanel .note{margin:0 0 10px}
.mailpanel input{min-height:50px}
.badge.accepted{background:var(--ok2);color:var(--ok)}
.badge.rejected{background:#fee2e2;color:#b91c1c}
.badge.expired{background:var(--gray2);color:var(--muted)}
.badge{display:inline-block;font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;text-transform:uppercase;letter-spacing:.4px}
.badge.paid{background:var(--ok2);color:var(--ok)}
.badge.sent{background:var(--blue2);color:var(--blue)}
.badge.draft{background:var(--gray2);color:var(--muted)}
.badge.overdue{background:#fee2e2;color:#b91c1c}
/* Xero accounting: pushed / paid-via-Xero badges, disabled + spinner states */
.badge.xero{background:#e0f2fe;color:#0369a1}
.row .badge{align-self:center}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.spin{color:transparent;pointer-events:none;position:relative}
.btn.spin::after{
  content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;
  border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;
  animation:xspin .7s linear infinite;
}
@keyframes xspin{to{transform:rotate(360deg)}}
/* payment section on an invoice view (bank transfer details + terms + card-link slot) */
.paybox{border:1px dashed var(--line);background:var(--gray2);border-radius:12px;padding:12px 14px;margin-top:12px}
.bank{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:8px 0;line-height:1.55}
.paybox .ph{font-size:13px;color:var(--muted);margin:8px 0 0}
.phtag{display:inline-block;background:var(--warn2);color:var(--warn);font-size:11px;font-weight:800;
  padding:2px 7px;border-radius:999px;text-transform:uppercase;letter-spacing:.4px;margin-left:4px;vertical-align:1px}
/* chase-payment reminder panel (WhatsApp link + copy) */
.chase{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.chase .msg{margin:0 0 10px;font-size:15px}
.chip{display:inline-block;background:var(--gray2);border:1px solid var(--line);border-radius:999px;padding:7px 13px;font-size:14px;font-weight:600;cursor:pointer;color:var(--ink)}
.list-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.list-item:last-child{border-bottom:none}
.list-item .t{font-weight:700}
.list-item .s{font-size:14px;color:var(--muted)}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;flex:0 0 auto}
.left{display:flex;gap:12px;align-items:center;min-width:0}
.right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}
.thumb{width:76px;height:76px;object-fit:cover;border-radius:12px;border:1px solid var(--line);background:var(--gray2)}
.photo-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.empty{text-align:center;color:var(--muted);padding:26px 10px;font-size:15px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:150px;background:#1c1917;color:#fff;padding:12px 18px;border-radius:999px;font-size:15px;font-weight:600;z-index:60;opacity:0;transition:opacity .25s;pointer-events:none;max-width:92vw;text-align:center}
.toast.show{opacity:1}
/* bottom tab bar — thumb zone (7 items at 390px = 55.7px each: icon/label sized so
   every label stays on one legible line, no clipping, no horizontal scroll) */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(7,1fr);padding-bottom:env(safe-area-inset-bottom);
}
.tabbar a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  min-height:62px;text-decoration:none;color:var(--muted);font-size:10px;font-weight:700;
  padding:6px 0;text-align:center;letter-spacing:-.2px;
}
.tabbar a .ic{font-size:20px;line-height:1}
.tabbar a.active{color:var(--brand)}
/* chat */
.chat-main{max-width:560px;margin:0 auto;padding:14px 14px 190px}
.thread{display:flex;flex-direction:column;gap:10px}
.bubble{max-width:86%;padding:12px 14px;border-radius:16px;font-size:16px;white-space:pre-wrap;word-wrap:break-word}
.bubble.me{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:4px}
.bubble.ai{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px}
.bubble .meta{display:block;font-size:11px;opacity:.7;margin-top:6px}
.preview{background:#fff;border:1.5px solid var(--brand);border-radius:16px;padding:16px;align-self:stretch}
.preview h3{margin:0 0 4px;font-size:17px}
.li-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px dashed var(--line);font-size:15px}
.total-row{display:flex;justify-content:space-between;padding-top:10px;font-weight:800;font-size:18px}
/* VAT breakdown rows (Settings -> VAT ON): Net / VAT 20% sit above the Gross total */
.vat-row{font-weight:700;color:#57534e}
.src{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;display:inline-block;margin-bottom:8px}
.src.openai{background:var(--ok2);color:var(--ok)}
.src.fallback{background:var(--warn2);color:var(--warn)}
/* intent-matched guidance note (orange) + preview action row */
.note{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;
  padding:10px 12px;font-size:14px;line-height:1.4;font-weight:600;margin-top:12px}
.prow .btn{font-size:15px;padding:12px 6px;letter-spacing:-.2px}
.prow .btn.ok,.prow .btn.blue{font-size:15px}
/* in-place amend form */
.amend-form label{margin:12px 0 6px}
.amend-form input{font-size:16px}
.lines{display:flex;flex-direction:column;gap:10px}
/* line-item editor — compact 2-line row so no box is ever a guess at 390px:
   line 1 = description + remove, line 2 = Qty | £ each | Amount with a VISIBLE label
   on every box (the Amount box is a read-only qty × unit display) */
.li-edit{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px;align-items:start}
.li-edit .li-desc{grid-column:1;grid-row:1}
.li-edit .rm{grid-column:2;grid-row:1;width:44px;min-width:44px;min-height:52px;padding:0;font-size:16px}
.li-q3{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,84px) minmax(0,1fr) minmax(0,1fr);gap:6px}
.li-f{display:flex;flex-direction:column;min-width:0}
.li-l{font-size:12px;font-weight:800;color:var(--muted);letter-spacing:.2px;margin:0 0 3px}
.li-edit input{min-height:52px;padding:9px 8px;font-size:16px}
.li-edit input[readonly]{background:var(--gray2);border-style:dashed;font-weight:700;color:var(--ink)}
.li-edit .li-qerr{grid-column:1/-1;margin:0}
/* read-mode rows: the amount side never wraps, the description takes the rest */
.li-row span:first-child{min-width:0}
.li-row .li-amt{flex:0 0 auto;white-space:nowrap;font-weight:600}
.live-total-row{border-top:1px solid var(--line);margin-top:10px}
.composer{
  position:fixed;bottom:calc(62px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);
  width:100%;max-width:560px;background:#fff;border-top:1px solid var(--line);
  padding:10px 12px;display:flex;gap:9px;z-index:55;
}
.composer input{min-height:52px;border-radius:999px;padding-left:18px}
.composer button{width:54px;min-width:54px;height:52px;border-radius:50%;padding:0;flex:0 0 auto;font-size:20px}
/* landing */
.hero{background:linear-gradient(150deg,#ea580c 0%,#9a3412 60%,#431407 100%);color:#fff;padding:56px 20px 44px;text-align:center}
.hero h1{font-size:34px;margin:0 0 12px;line-height:1.15}
.hero p{font-size:18px;opacity:.95;margin:0 auto 26px;max-width:480px}
.hero .btn{max-width:340px;margin:0 auto;background:#fff;color:var(--brand-d);font-size:19px;min-height:58px}
.eyebrow{display:inline-block;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:6px 14px;font-size:13px;font-weight:700;margin-bottom:18px}
.features{max-width:560px;margin:0 auto;padding:30px 16px 10px}
.feature{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:12px}
.feature .fic{font-size:26px}
.feature h3{margin:0 0 4px;font-size:17px}
.feature p{margin:0;font-size:15px;color:var(--muted)}
.landing-cta{max-width:560px;margin:0 auto;padding:8px 16px 40px;text-align:center}
footer.site{text-align:center;color:var(--muted);font-size:13px;padding:20px 16px 30px}
/* misc */
details{background:#fff;border:1px solid var(--line);border-radius:16px;padding:0 16px;margin-bottom:12px}
summary{cursor:pointer;font-weight:700;padding:16px 0;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:10px}
details[open] summary{border-bottom:1px solid var(--line);margin-bottom:8px}
details .inner{padding-bottom:16px}
.daynav{display:flex;gap:10px;align-items:center}
.daynav button{width:54px;min-width:54px;flex:0 0 auto;font-size:20px;padding:0}
.daynav .d{flex:1;text-align:center;font-weight:800;font-size:16px}
.hidden{display:none!important}
/* month grid — fits 390px, cells ≥44px, no horizontal scroll */
.mgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin-top:10px}
.mgrid .wd{text-align:center;font-size:10.5px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.3px;padding:2px 0}
.mcell{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  min-height:46px;padding:2px 0;border:1.5px solid var(--line);border-radius:10px;background:#fff;
  font-family:inherit;font-size:14px;font-weight:700;color:var(--ink);cursor:pointer;
}
.mcell:active{transform:scale(.96)}
.mcell .dn{line-height:1}
.mcell .cnt{
  min-width:16px;height:16px;padding:0 3px;border-radius:999px;background:var(--brand);color:#fff;
  font-size:10px;font-weight:800;line-height:16px;text-align:center;
}
.mcell.out{background:transparent;border-color:transparent;color:var(--muted);opacity:.5}
.mcell.today{background:var(--brand);border-color:var(--brand-d);color:#fff;box-shadow:0 0 0 2px var(--brand-d)}
.mcell.today .cnt{background:#fff;color:var(--brand-d)}
.mcell.sel{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.mcell.today.sel{box-shadow:0 0 0 2px var(--brand-d),inset 0 0 0 1px #fff}
/* ---- Reports (mobile-first, 390px): section chips + fixed-layout tables ----------
   table-layout:fixed + colgroup + nowrap/ellipsis inside the card means a table can
   never push the PAGE sideways — the "0 horizontal scroll at 390px" rule every suite
   asserts. Money cells are right-aligned, tabular-nums, bold; totals row is heavier. */
.rnav{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 14px}
.rnav .chip{text-decoration:none;min-height:40px;display:inline-flex;align-items:center}
/* 6 narrow columns have to fit a 390px phone: 12.5px tabular numerals, 2px gutters,
   and ONLY the label column wraps — money cells stay on one line (ellipsis as a last
   resort, never a page-level sideways scroll). */
.rtab{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12.5px;font-variant-numeric:tabular-nums}
.rtab th,.rtab td{padding:7px 2px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid var(--line)}
.rtab th:first-child,.rtab td:first-child{text-align:left;white-space:normal;overflow-wrap:anywhere}
.rtab th{font-size:10px;letter-spacing:.01em;text-transform:uppercase;color:var(--muted);font-weight:700}
.rtab td.num{font-weight:700}
.rtab tbody tr:last-child td{border-bottom:none}
.rtab tfoot td{border-top:2px solid var(--line);border-bottom:none;font-weight:800}
.rtools{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 10px}
.rtools .chips{display:flex;gap:8px;flex-wrap:wrap}
.rtools .chip{padding:6px 11px;font-size:13px}
.card-h{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:8px}
.banner{border-radius:14px;padding:12px 14px;margin:0 0 14px;background:var(--warn2);border:1px solid #fcd34d;color:#78350f;font-size:15px;line-height:1.4}
.banner b{display:block;font-size:15.5px;margin-bottom:3px;font-weight:800}
.kv{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:9px 0;border-bottom:1px dashed var(--line);font-size:15.5px}
.kv:last-child{border-bottom:none}
.kv b{font-variant-numeric:tabular-nums;white-space:nowrap}
/* ---- SECTION CARDS (GO: "too much going on — please set borders") ---------------
   ONE reusable treatment for stacked content blocks, declared once here and applied
   on every screen so a block never bleeds into the next one. Values are the .card
   family's own so panels and cards read as one system:
     border  : 1px solid var(--line)   (existing palette hairline)
     radius  : 16px                    (matches .card)
     padding : 14px                    (internal padding, all four sides)
     gap     : margin 0 0 14px         (vertical gap to the next card)
     header  : a leading <h2> inside the panel is the optional card label
               (its margins reset so it sits as a header, not as page furniture)
   A block INSIDE a section card is a ROW of that panel, not a second box: .card and
   <details> descendants drop their own border/fill/padding and split on a 1px
   divider instead — one border per section, never box-in-box. Interactive units
   (.stat tiles, .btn, .chip, .seg) keep their own affordance so taps, focus rings
   and the active (orange) states are untouched. Nav bars, topbars, composers and
   page <h1> stay OUTSIDE cards — cards are for content blocks only. */
.section-card{
  background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:14px;margin:0 0 14px;
}
.section-card>h2:first-child{margin:0 0 10px}
.section-card .card,.section-card details{
  border:none;background:transparent;border-radius:0;padding:14px 0;margin:0;
}
.section-card .card:not([hidden])+.card,
.section-card details+details{border-top:1px solid var(--line)}
.section-card .card:first-child,.section-card details:first-child{padding-top:0}
.section-card .card:last-child,.section-card details:last-child{padding-bottom:0}
/* summary tiles inside a panel are SEGMENTS of that panel, not second boxes — the
   double border was the noise GO saw. The active (orange) tile keeps its own lit
   styling, and every tile keeps its size/tap target. */
.section-card>.stat:not(.on),
.section-card>.grid2>.stat:not(.on),
.section-card>.grid3>.stat:not(.on){border:none;background:var(--gray2)}
/* grids / toolbars inside a panel: the panel owns the outer gap */
.section-card>.grid2,.section-card>.grid3,.section-card>.row,
.section-card>.rnav{margin-bottom:0}
@media (min-width:640px){
  body{padding-bottom:100px}
  .hero h1{font-size:44px}
}
