/* ============================================================
   RESERVD SHELL + OVERVIEW — Phase 6 "Daylight"
   Desktop (≥900px): quiet white sidebar (brand · business · nav · account)
   and a page header with the plain-English Xero sync state.
   Phone/tablet (<900px): translucent white app bar + labelled bottom nav,
   both respecting the device safe areas.
   Overview: the cash briefing (Cash → where it goes → Safe to Save), then
   "What needs your attention", then supporting cards with the machinery
   behind disclosures. Same ids/classes the renderers use.
   ============================================================ */

.app-shell{display:flex; min-height:100vh; min-height:100dvh; align-items:stretch; background:var(--bg)}

/* ---------- desktop sidebar ---------- */
.sidenav{
  display:none;
  width:var(--sidebar-w); flex-shrink:0;
  background:var(--surface);
  border-right:1px solid var(--line);
  padding:22px 14px 16px;
  position:sticky; top:0; align-self:flex-start; height:100vh; height:100dvh; overflow-y:auto;
}
.sidenav-brand{display:flex; align-items:center; gap:10px; padding:2px 10px 22px; text-decoration:none; border-radius:var(--r-sm)}
.sidenav-brand:focus-visible{outline:none; box-shadow:var(--focus-ring)}
.sidenav .nav-item.nav-quiet{color:var(--ink-faint); text-decoration:none}
.sidenav .nav-item.nav-quiet:hover{color:var(--ink)}
.appbar-home{display:flex; align-items:center; justify-content:center; width:var(--touch); height:var(--touch); margin:0 -8px 0 -8px; border-radius:var(--r-sm); flex-shrink:0}
.appbar-home:focus-visible{outline:none; box-shadow:var(--focus-ring)}
.acct-menu a.menu-item{text-decoration:none}
.brand-emblem{display:block; width:32px; height:32px; flex-shrink:0; object-fit:contain}
.brand-word{font-size:14px; font-weight:600; letter-spacing:.2em; color:var(--ink); line-height:1}
.sidenav-biz{display:flex; align-items:center; gap:11px; margin:0 0 18px; padding:10px 12px; border-radius:var(--r-md); background:var(--surface-2)}
.sidenav-biz-mark{width:32px; height:32px; border-radius:9px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--line-strong); color:var(--accent-strong);
  display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:600; flex-shrink:0; text-transform:uppercase}
.sidenav-biz-text{min-width:0; display:flex; flex-direction:column; gap:3px}
.sidenav-biz-name{font-size:var(--fs-sm); font-weight:600; color:var(--ink); line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.sidenav-biz .acct-sync{margin:0}
.sidenav-biz .r-sync{font-size:12.5px}
.sidenav-label{font-size:12px; font-weight:500; color:var(--ink-faint); padding:0 12px 6px}
.sidenav .nav-item{
  display:flex; align-items:center; gap:12px; font-size:var(--fs-sm); font-weight:500;
  color:var(--ink-muted); text-decoration:none; padding:0 12px; min-height:42px; border-radius:var(--r-sm);
  cursor:pointer; background:none; border:none; width:100%; text-align:left;
  font-family:var(--font-sans); margin-bottom:2px; transition:background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.sidenav .nav-item svg{color:var(--ink-faint); transition:color var(--t-fast) ease; flex-shrink:0}
.sidenav .nav-item:hover{background:var(--surface-2); color:var(--ink)}
.sidenav .nav-item:hover svg{color:var(--ink-muted)}
.sidenav .nav-item.active{background:var(--accent-soft); color:var(--ink); font-weight:600}
.sidenav .nav-item.active svg{color:var(--accent)}
.sidenav .nav-item:focus-visible{outline:none; box-shadow:var(--focus-ring)}
.sidenav-foot{margin-top:auto; padding-top:14px; border-top:1px solid var(--line)}
.acct{padding:4px 12px 10px}
.acct-biz{font-size:var(--fs-sm); font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.acct-user{font-size:var(--fs-xs); color:var(--ink-faint); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.acct-sync{margin-top:10px}
.sidenav-foot .acct{padding-bottom:6px}
.sidenav-foot .nav-item{color:var(--ink-muted); min-height:40px}

/* ---------- page header (desktop) / app bar (phone) ---------- */
.app-main{flex:1; min-width:0; background:var(--bg)}
.overview-page{max-width:var(--content-max); margin:0 auto; padding:16px 16px 40px}
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  max-width:var(--content-max); margin:0 auto;
}
.appbar-brand{display:flex; align-items:center; gap:10px; min-width:0}
.appbar-brand .brand-emblem{width:30px; height:30px}
.appbar-text{display:flex; flex-direction:column; min-width:0; line-height:1.2}
.appbar-biz{font-size:var(--fs-body); font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.appbar-word{font-size:10px; font-weight:600; letter-spacing:.24em; color:var(--ink-faint)}
.appbar-right{display:flex; align-items:center; gap:8px; flex-shrink:0; margin-left:auto}
.acct-btn{
  width:var(--touch); height:var(--touch); border-radius:50%; border:none; background:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:0;
}
.acct-btn span{width:34px; height:34px; border-radius:50%; background:var(--accent-soft); color:var(--accent-strong); font-size:14px; font-weight:600;
  display:flex; align-items:center; justify-content:center; text-transform:uppercase}
.acct-btn:focus-visible{outline:none; box-shadow:var(--focus-ring)}

/* account menu (phone) */
.acct-menu{
  position:fixed; z-index:60; top:calc(var(--appbar-h) + env(safe-area-inset-top) - 2px); right:12px; width:min(300px, calc(100vw - 24px));
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-lg);
  padding:16px; display:none;
}
.acct-menu.open{display:block}
.acct-menu .acct{padding:0 0 12px; border-bottom:1px solid var(--line)}
.acct-menu .acct-sync-detail{font-size:var(--fs-xs); color:var(--ink-faint); margin-top:6px; line-height:1.45}
.acct-menu .menu-item{display:flex; align-items:center; gap:10px; width:100%; min-height:var(--touch); background:none; border:none; color:var(--ink);
  font:inherit; font-size:var(--fs-sm); padding:0 6px; margin-top:6px; cursor:pointer; border-radius:var(--r-sm)}
.acct-menu .menu-item:hover{background:var(--surface-2)}

@media (min-width:900px){
  .topbar{padding:30px 40px 0; justify-content:space-between}
  .appbar-brand, .mobile-only-actions{display:none !important}
}
@media (max-width:899px){
  .topbar{
    position:sticky; top:0; z-index:30; max-width:none;
    min-height:calc(var(--appbar-h) + env(safe-area-inset-top));
    padding:env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    background:rgba(255,255,255,.86); -webkit-backdrop-filter:saturate(180%) blur(16px); backdrop-filter:saturate(180%) blur(16px);
    border-bottom:1px solid var(--line);
  }
  .overview-page{padding:20px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left))}
}

/* ---------- bottom navigation (<900px) ---------- */
.bottomnav{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  display:flex; background:rgba(255,255,255,.92); -webkit-backdrop-filter:saturate(180%) blur(16px); backdrop-filter:saturate(180%) blur(16px);
  border-top:1px solid var(--line);
  padding:6px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
}
.bottomnav button{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  min-height:calc(var(--bottomnav-h) - 10px);
  background:none; border:none; color:var(--ink-faint); font-family:var(--font-sans);
  font-size:11.5px; font-weight:500; padding:4px 2px; cursor:pointer; border-radius:var(--r-md);
  transition:color var(--t-fast) ease;
}
.bottomnav button svg{padding:3px 14px; box-sizing:content-box; border-radius:var(--r-pill); transition:background-color var(--t-fast) ease}
.bottomnav button.on{color:var(--accent-strong); font-weight:600}
.bottomnav button.on svg{background:var(--accent-soft); color:var(--accent-strong)}
.bottomnav button:active svg{background:var(--surface-3)}
.bottomnav button:focus-visible{outline:none; box-shadow:inset 0 0 0 2px var(--accent)}

@media (min-width:900px){
  .sidenav{display:flex; flex-direction:column}
  .bottomnav{display:none}
  .overview-page{padding:28px 40px 72px}
}
@media (max-width:899px){
  .app-main{padding-bottom:calc(var(--bottomnav-h) + env(safe-area-inset-bottom) + 8px)} /* clears the fixed bottom nav */
}

/* sync slot: full label on desktop, compact on phones */
.sync-compact{display:none}
@media (max-width:899px){ .sync-full{display:none} .sync-compact{display:inline-flex} }

.page-title{margin:0; font-size:var(--fs-h1); font-weight:600; letter-spacing:-.025em; color:var(--ink); line-height:1.2}
@media (max-width:899px){ .page-title{display:none !important} }

/* ============================================================
   OVERVIEW (Core Cash Model V3)
   ============================================================ */
.ov{display:flex; flex-direction:column; gap:28px; margin-bottom:28px}
.ov-h{margin:0; font-size:var(--fs-h2); font-weight:600; letter-spacing:-.015em; color:var(--ink); line-height:1.3}
.ov-h-row{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:32px; margin-bottom:14px}
.ov-count{display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 7px; margin-left:8px; border-radius:var(--r-pill); background:var(--surface-3); color:var(--ink-muted); font-size:12px; font-weight:600; letter-spacing:0; vertical-align:2px}
.ov-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:24px 26px; box-shadow:var(--shadow-sm)}
.ov-note{font-size:var(--fs-xs); color:var(--ink-faint); line-height:1.55; margin-top:14px}
.ov-of{color:var(--ink-faint); font-weight:500}
.ov-risk{color:var(--risk); font-weight:500}
.ov-act{min-height:36px; padding:6px 0 6px 10px; margin:-6px 0; white-space:nowrap; flex-shrink:0}

/* ---- 1. the cash briefing ---- */
.ov-cash{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--shadow-md); padding:32px 36px 0; overflow:hidden}
.ov-eyebrow{margin:0 0 18px; font-size:var(--fs-sm); font-weight:500; color:var(--ink-muted); letter-spacing:0}
.ov-cash-label{font-size:var(--fs-body); font-weight:600; color:var(--ink)}
.ov-cash-amt{font-size:var(--fs-display); font-weight:600; letter-spacing:-.04em; color:var(--ink); line-height:1.02; margin-top:6px}
.ov-cash-amt.is-negative{color:var(--risk)}
.ov-cash-cap{font-size:var(--fs-xs); color:var(--ink-faint); margin-top:8px}
.ov-line{margin-top:28px; min-width:0}

.ov-story{list-style:none; margin:24px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:0}
.ov-story-item{display:grid; grid-template-columns:auto 1fr; grid-template-areas:"key label" ". amt" ". cap"; column-gap:10px; padding:2px 20px 2px 0; min-width:0}
.ov-story-item + .ov-story-item{padding-left:20px; border-left:1px solid var(--line)}
.ov-story-key{grid-area:key; width:10px; height:10px; border-radius:3px; margin-top:6px}
/* amounts line up across items even when one label wraps (subgrid where supported) */
@supports (grid-template-rows:subgrid){
  .ov-story{grid-auto-rows:auto}
  .ov-story-item{grid-row:span 3; grid-template-rows:subgrid; row-gap:0}
  .ov-story-label{align-self:start}
  .ov-story-amt{align-self:end}
}
.ov-story-label{grid-area:label; font-size:var(--fs-sm); font-weight:500; color:var(--ink-muted); line-height:1.4}
.ov-story-amt{grid-area:amt; font-size:var(--fs-figure-m); font-weight:600; letter-spacing:-.02em; color:var(--ink); line-height:1.2; margin-top:6px; white-space:nowrap}
.ov-story-cap{grid-area:cap; font-size:var(--fs-xs); color:var(--ink-faint); margin-top:4px; line-height:1.4}
.ov-story-item.k-protected .ov-story-key{background:var(--cl-protected)}
.ov-story-item.k-operating .ov-story-key{background:var(--cl-operating)}
.ov-story-item.k-retained .ov-story-key{background:var(--cl-retained)}
.ov-story-item.k-held .ov-story-key{background:repeating-linear-gradient(135deg, var(--cl-held-b) 0 2px, var(--cl-held-a) 2px 4px); box-shadow:inset 0 0 0 1px var(--cl-held-b)}

/* Safe to Save — the conclusion, a full-width band closing the briefing */
.ov-safe{display:flex; align-items:center; justify-content:space-between; gap:12px 32px; flex-wrap:wrap;
  margin:30px -36px 0; padding:24px 36px 28px; border-top:1px solid var(--line); background:#FAFBFD}
.ov-safe-main{display:flex; flex-direction:column}
.ov-safe-label{font-size:var(--fs-body); font-weight:600; color:var(--ink)}
.ov-safe-amt{font-size:44px; font-weight:600; letter-spacing:-.035em; color:var(--ink); line-height:1.05; margin-top:4px}
.ov-safe-why{display:flex; align-items:flex-start; gap:10px; margin:0; max-width:46ch; font-size:var(--fs-sm); color:var(--ink-muted); line-height:1.5}
.ov-safe-why .r-dot{margin-top:7px}
.ov-safe.is-positive{background:var(--safe-soft); border-top-color:#CFE9DB}
.ov-safe.is-positive .ov-safe-amt{color:var(--safe)}
.ov-safe.r-tone-risk{background:#FFF8F7; border-top-color:#F6DCD8}

/* ---- 2. what needs your attention ---- */
.ov-lead{display:flex; align-items:flex-start; gap:14px; padding:20px 22px; border-radius:var(--r-lg); background:var(--tone-soft, var(--info-soft)); margin-bottom:12px}
.ov-lead .r-dot{width:9px; height:9px; margin-top:8px}
.ov-lead-h{margin:0; font-size:17px; font-weight:600; color:var(--ink); letter-spacing:-.01em; line-height:1.4}
.ov-lead-t{margin:4px 0 0; font-size:var(--fs-sm); color:var(--ink-muted); line-height:1.55}
.ov-attn-list{list-style:none; margin:0; padding:4px 22px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm)}
.ov-attn-list .r-attn{display:flex; align-items:flex-start; gap:14px; margin:0; padding:16px 0; background:none; box-shadow:none; border:none; border-radius:0}
.ov-attn-list .r-attn + .r-attn{border-top:1px solid var(--line)}
.ov-attn-list .r-attn > .r-dot{margin-top:8px}
.ov-attn-list .r-attn-body{flex:1; min-width:0}
.ov-attn-list .r-attn-title{font-size:var(--fs-body); font-weight:600; color:var(--ink); line-height:1.4}
.ov-attn-list .r-attn-text{font-size:var(--fs-sm); color:var(--ink-muted); margin-top:3px; line-height:1.5}
.ov-attn-list .ov-act{margin-top:-2px}
.ov-attn-list [hidden]{display:none !important}
.ov-showall{margin-top:6px; padding-left:2px}
.ov-clear{display:flex; align-items:center; gap:10px; padding:18px 22px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); color:var(--ink-muted); font-size:var(--fs-sm)}
.ov-clear .r-dot{--tone:var(--safe)}

/* ---- 3. supporting cards ---- */
.ov-grid{display:grid; grid-template-columns:minmax(0, 1.5fr) minmax(0, 1fr); gap:24px; align-items:start}
.ov-col{display:flex; flex-direction:column; gap:24px; min-width:0}

/* where the cash is */
.ov-row{padding:14px 0; border-top:1px solid var(--line)}
.ov-h-row + .ov-row{border-top:none; padding-top:2px}
.ov-row-top{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.ov-row-l{font-size:var(--fs-sm); font-weight:500; color:var(--ink-muted); min-width:0}
.ov-row-l .r-chip{margin-left:6px}
.ov-row-v{font-size:var(--fs-body); font-weight:600; color:var(--ink); white-space:nowrap}
.ov-row.is-total .ov-row-l{color:var(--ink); font-weight:600}
.ov-row .r-disclosure{margin-top:2px}
.ov-row-d > summary{list-style:none; cursor:pointer; border-radius:var(--r-xs); margin:-6px -8px; padding:6px 8px; min-height:40px; align-items:center; transition:background-color var(--t-fast) ease}
.ov-row-d > summary::-webkit-details-marker{display:none}
.ov-row-d > summary:hover{background:var(--surface-2)}
.ov-row-d > summary:focus-visible{outline:none; box-shadow:var(--focus-ring)}
.ov-row-d .ov-row-v{margin-left:auto}
.ov-row-chev{width:7px; height:7px; flex-shrink:0; align-self:center; border-right:1.5px solid var(--ink-faint); border-bottom:1.5px solid var(--ink-faint); transform:rotate(45deg) translateY(-2px); margin-left:4px; transition:transform var(--t-fast) ease}
.ov-row-d[open] .ov-row-chev{transform:rotate(225deg) translateY(-1px)}
.ov-row-d[open] > .r-disclosure-body{padding-top:8px}
.ov-why-list{list-style:none; margin:6px 0 8px; padding:0}
.ov-why-list li{display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:7px 0; color:var(--ink-muted)}
.ov-why-list li + li{border-top:1px solid var(--line)}
.ov-why-list li > span{min-width:0}
.ov-why-list small{display:block; font-size:var(--fs-xs); color:var(--ink-faint); margin-top:2px}
.ov-why-list b{color:var(--ink); font-weight:600; white-space:nowrap}
.ov-recon-d{margin-top:10px; padding-top:12px; border-top:1px solid var(--line)}
.ov-recon{font-size:var(--fs-xs); color:var(--ink-faint); line-height:1.6; padding:6px 0 2px; font-variant-numeric:tabular-nums}
.ov-tax{margin-top:6px}

/* owner pay */
.ov-pay + .ov-pay{margin-top:16px}
.ov-pay-top{display:flex; justify-content:space-between; gap:12px; font-size:var(--fs-sm); color:var(--ink-muted)}
.ov-pay-top b{color:var(--ink); font-weight:600}
.ov-bar{height:6px; margin-top:8px; background:var(--surface-3); border-radius:var(--r-pill); overflow:hidden}
.ov-bar span{display:block; height:100%; background:var(--brand); border-radius:inherit}

/* ATO */
.ov-ato-top{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px}
.ov-ato-amt{font-size:var(--fs-figure-m); font-weight:600; color:var(--ink); letter-spacing:-.02em}
.ov-kv{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--line); font-size:var(--fs-sm); color:var(--ink-muted)}
.ov-kv > span:last-child{color:var(--ink); text-align:right}
.ov-kv + .r-disclosure{margin-top:8px}

/* jobs */
.ov-jobs-line{font-size:var(--fs-sm); color:var(--ink)}

/* recent money in */
#ovRecent .section-title{display:none}
#ovRecent .btn.secondary{width:auto; padding:10px 18px}
.mip-state{font-size:var(--fs-xs); font-weight:600; color:var(--ink-faint); margin:16px 0 2px}
.mip-state:first-child{margin-top:0}
.mip-row{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0}
.mip-row + .mip-row{border-top:1px solid var(--line)}
.mip-row .contact{font-size:var(--fs-sm); color:var(--ink); font-weight:500}
.mip-row.is-recent .contact{font-weight:600}
.mip-row .meta{font-size:12.5px; color:var(--ink-faint); margin-top:2px}
.mip-row .amt{font-size:var(--fs-body); font-weight:600; font-variant-numeric:tabular-nums; color:var(--ink); white-space:nowrap; flex-shrink:0}
.mip-row.mip-pending .amt{color:var(--ink-muted); font-weight:500}
.mip-more{font-size:var(--fs-xs); color:var(--accent); font-weight:600; text-align:left; margin-top:6px; min-height:40px; display:inline-flex; align-items:center; background:none; border:none; padding:0; cursor:pointer; font-family:inherit}

/* profit intelligence — collapsed by default */
.ov-collapse > summary{display:flex; align-items:center; justify-content:space-between; min-height:32px; padding-right:4px; cursor:pointer; list-style:none; color:var(--ink)}
.ov-collapse > summary::-webkit-details-marker{display:none}
.ov-collapse > summary::after{content:""; width:8px; height:8px; border-right:1.5px solid var(--ink-faint); border-bottom:1.5px solid var(--ink-faint); transform:rotate(45deg) translateY(-2px); transition:transform var(--t-fast) ease}
.ov-collapse[open] > summary::after{transform:rotate(225deg) translateY(-2px)}
.ov-collapse[open] > summary{margin-bottom:10px}
.ov-collapse > summary:focus-visible{outline:none; box-shadow:var(--focus-ring); border-radius:var(--r-xs)}
#ovProfit{margin-top:24px}

/* shared metric rows (profit intelligence, legacy panels) */
.metric-list{display:flex; flex-direction:column}
.metric-row{display:flex; align-items:center; justify-content:space-between; padding:13px 0; gap:14px}
.metric-row + .metric-row{border-top:1px solid var(--line)}
.metric-row .k{font-size:var(--fs-sm); color:var(--ink-muted); font-weight:500; min-width:0; overflow-wrap:anywhere}
.metric-row .k small{display:block; font-size:var(--fs-xs); color:var(--ink-faint); font-weight:400; margin-top:2px}
.metric-row .v{font-size:var(--fs-body); font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap}
.metric-row .v.warn{color:var(--warn)}
.metric-row .v.danger{color:var(--danger)}
.metric-row .v.good{color:var(--good)}
.profit-intel-section .metric-row .v.warn, .profit-intel-section .metric-row .v.good, .profit-intel-section .metric-row .v.danger{padding:3px 10px; border-radius:99px; font-size:var(--fs-xs)}
.profit-intel-section .metric-row .v.warn{background:var(--warn-soft)}
.profit-intel-section .metric-row .v.good{background:var(--good-soft)}
.profit-intel-section .metric-row .v.danger{background:var(--danger-soft)}

/* ---- pre-V3 Overview (only before a workspace's V3 cutover) ---- */
.hero-big{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--shadow-md); padding:30px 32px 32px; margin-bottom:24px}
.hero-top{display:flex; align-items:flex-start; justify-content:space-between; gap:36px}
.hero-big .label{font-size:var(--fs-sm); color:var(--ink-muted); font-weight:500; display:flex; align-items:center; gap:8px}
.hero-big .amount{font-size:52px; font-weight:600; letter-spacing:-.035em; margin:10px 0; line-height:1; color:var(--ink)}
.hero-big .sub{font-size:var(--fs-sm); color:var(--ink-muted); max-width:440px; line-height:1.6}
.hero-stats{display:flex; flex-shrink:0; background:var(--surface-2); border-radius:var(--r-md); padding:6px}
.hero-stat{display:flex; flex-direction:column; gap:4px; white-space:nowrap; padding:10px 20px}
.hero-stat + .hero-stat{border-left:1px solid var(--line)}
.hero-stat .k{font-size:var(--fs-xs); color:var(--ink-faint); font-weight:500}
.hero-stat .v{font-size:16px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--ink)}
.today-section{padding:0; margin-bottom:24px}
.today-section h5{font-size:var(--fs-h2); color:var(--ink); font-weight:600; margin:0 0 12px}
.today-quiet, .today-primary, .today-secondary{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg)}
.today-quiet{font-size:var(--fs-sm); color:var(--ink-muted); padding:16px 18px}
.today-primary{display:flex; align-items:stretch; gap:14px; padding:16px 18px}
.today-primary .bar{width:4px; border-radius:3px; flex-shrink:0}
.today-primary .txt{font-size:var(--fs-sm); line-height:1.6; color:var(--ink)}
.today-secondary{display:flex; flex-direction:column; margin-top:8px; overflow:hidden}
.today-sec-row{display:flex; align-items:flex-start; gap:11px; padding:12px 18px}
.today-sec-row + .today-sec-row{border-top:1px solid var(--line)}
.today-sec-row .dot{width:7px; height:7px; border-radius:50%; margin-top:7px; flex-shrink:0}
.today-sec-row .txt{font-size:var(--fs-sm); line-height:1.55; color:var(--ink-muted)}
.protected-section, .profit-intel-section, .moneyin-section{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:24px 26px; box-shadow:var(--shadow-sm)}
.protected-section .section-title{margin-bottom:18px}
.protected-summary{margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid var(--line)}
.protected-summary .k{font-size:var(--fs-xs); color:var(--ink-faint); font-weight:500}
.protected-summary .v{font-size:30px; font-weight:600; margin-top:6px; font-variant-numeric:tabular-nums; letter-spacing:-.02em; color:var(--ink)}
.breakdown-all{margin-top:14px}
.breakdown-all > summary{font-size:var(--fs-sm); color:var(--accent); font-weight:600; cursor:pointer; list-style:none; display:inline-flex}
.breakdown-all > summary::-webkit-details-marker{display:none}
.breakdown-group{margin-top:16px; padding-top:14px; border-top:1px solid var(--line)}
.breakdown-group:first-of-type{border-top:none; padding-top:0}
.breakdown-group .bg-title{font-weight:600; font-size:var(--fs-sm); color:var(--ink); margin-bottom:4px}

/* V3 panels still used by the payment drawer / jobs */
.v3-sec{margin:16px 0 4px; font-size:var(--fs-xs); font-weight:600; color:var(--ink-muted)}
.v3-alert{margin:10px 0; padding:12px 14px; border-radius:var(--r-sm); background:var(--risk-soft); color:var(--ink); font-size:var(--fs-sm); line-height:1.5}
.v3-uncertain{margin:10px 0 0; padding:10px 12px; border-radius:var(--r-sm); background:var(--warn-soft); font-size:var(--fs-sm); line-height:1.5}
.v3-recon{margin:10px 0 4px; font-size:var(--fs-xs); color:var(--ink-faint); line-height:1.5}
.v3-of{font-weight:500; color:var(--ink-faint); font-size:.85em}
.v3-job{padding:12px 0; border-bottom:1px solid var(--line)}
.v3-job.warn{background:var(--warn-soft); padding:12px; border-radius:var(--r-sm); border-bottom:none; margin:4px 0}
.v3-job-top{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.v3-job-top small{display:block; font-size:var(--fs-xs); color:var(--ink-muted); font-weight:400}
.v3-job-top .tnum{text-align:right}
.v3-job-figs{font-size:var(--fs-xs); color:var(--ink-muted); margin-top:4px}
.v3-job-actions{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px}
.v3-job-actions .btn{padding:6px 12px; font-size:var(--fs-xs); min-height:36px; width:auto; margin-top:0}
.v3-ind{font-size:11px; font-weight:600; color:var(--ink-faint); border:1px solid var(--line-strong); border-radius:4px; padding:0 4px; margin-left:4px}

/* ---- responsive ---- */
@media (max-width:1099px) and (min-width:900px){
  .ov-grid{grid-template-columns:minmax(0, 1fr)}
}
@media (max-width:899px){
  .ov{gap:22px; margin-bottom:22px}
  .ov-cash{padding:22px 20px 0; border-radius:var(--r-lg)}
  .ov-eyebrow{margin-bottom:12px}
  .ov-cash-amt{font-size:42px}
  .ov-line{margin-top:20px}
  .ov-story{grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px 0; margin-top:20px}
  .ov-story-item, .ov-story-item + .ov-story-item{padding:0 12px 0 0; border-left:none}
  .ov-story-item:nth-child(even){padding:0 0 0 14px; border-left:1px solid var(--line)}
  .ov-story-amt{font-size:19px}
  .ov-safe{margin:22px -20px 0; padding:18px 20px 22px; gap:10px}
  .ov-safe-amt{font-size:36px}
  .ov-lead{padding:16px 18px}
  .ov-lead-h{font-size:16px}
  .ov-attn-list{padding:2px 18px}
  .ov-grid{grid-template-columns:minmax(0, 1fr); gap:16px}
  .ov-col{gap:16px}
  .ov-card{padding:20px}
  .protected-section, .profit-intel-section, .moneyin-section{padding:20px}
  .hero-big{padding:24px 20px 26px}
  .hero-big .amount{font-size:44px}
  .hero-top{flex-direction:column; gap:18px}
  .hero-stats{width:100%; flex-wrap:wrap; min-width:0}
  .hero-stat{flex:1 1 auto; padding:10px 14px; white-space:normal; min-width:0}
  .hero-stat + .hero-stat{border-left:none; border-top:1px solid var(--line)}
}
@media (max-width:360px){
  .ov-cash-amt{font-size:36px}
  .ov-story-amt{font-size:17px}
  .ov-safe-amt{font-size:32px}
}

/* ---------- Phase 7.7A: financial truth labels (wording/status only) ---------- */
.ov-cash-cap .r-chip, .ov-cash-cap .chip{vertical-align:1px; margin-right:4px}
.ov-cash-warn{display:flex; align-items:center; gap:8px; margin-top:8px; font-size:var(--fs-sm); color:var(--attention); font-weight:500}
.ov-cash-warn .r-dot{background:var(--attention)}
.ov-notice{list-style:none; margin:0; padding:0; display:grid; gap:2px}
.ov-notice .r-attn-text .r-chip, .ov-notice .r-attn-text .chip{margin-left:4px}
.ov-draw{margin-top:16px; padding-top:14px; border-top:1px solid var(--line)}
.ov-ato-sub{font-size:var(--fs-xs); font-weight:600; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px}
.ov-ar small b{color:var(--attention); font-weight:600}
.pi-group-h{display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:var(--fs-xs); font-weight:600; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.06em; margin:14px 0 4px}
.pi-group-h:first-child{margin-top:4px}
