/* ============================================================
   Overview — welcome panel (presentation only). The greeting, the Xero freshness line / sync status and Revenue this
   financial year share one deep-navy panel. The left stays dark and clear for the text; the welcome screen's own galaxy
   (assets/brand/overview-galaxy.webp — a crop of js/welcome-art.js, the mobile log-in artwork) glows in from the right,
   masked and screened so it never sits behind the words. Every figure, label, link and disclosure is rendered by the
   same code as before (helloHtml, scopeHtml, revenueHtml, syncStatusHtml); only where they sit and how they look changed.
   The forecast and Next actions stay light.
   ============================================================ */
#overviewPage .ov-welcome{position:relative; isolation:isolate; overflow:hidden; border-radius:20px; padding:20px 24px 4px; color:#fff;
  background:linear-gradient(100deg, #0a1322 0%, #0e1a2f 48%, #132340 100%); border:1px solid rgba(255,255,255,.06);
  box-shadow:0 1px 2px rgba(10,19,34,.18), 0 18px 40px -28px rgba(10,19,34,.85)}
/* the galaxy: right-hand side only, fading out well before the text column */
#overviewPage .ov-welcome::before{content:''; position:absolute; z-index:-2; top:0; bottom:0; right:0; left:34%; pointer-events:none;
  background:url("../assets/brand/overview-galaxy.webp") 70% 46% / cover no-repeat; mix-blend-mode:screen; opacity:.78;
  -webkit-mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.22) 26%, rgba(0,0,0,.75) 60%, #000 100%);
          mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.22) 26%, rgba(0,0,0,.75) 60%, #000 100%)}
/* a faint cool glow where the cloud is brightest, and a bottom fade so the Details row stays crisp */
#overviewPage .ov-welcome::after{content:''; position:absolute; z-index:-1; inset:0; pointer-events:none;
  background:radial-gradient(420px 220px at 88% 30%, rgba(132,160,224,.16), transparent 70%), linear-gradient(0deg, rgba(10,19,34,.55), transparent 42%)}

/* greeting row: greeting left, sync status right */
#overviewPage .ovw-top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
#overviewPage .ov-welcome .ovh{margin:0; padding:0}
#overviewPage .ov-welcome .ovh-h, #overviewPage .ov-welcome .ovh-name{color:#fff}
#overviewPage .ovw-sync:empty{display:none}
#overviewPage .ovw-sync .r-sync{margin-top:4px; padding:6px 12px 6px 10px; border-radius:999px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12);
  box-shadow:none; color:#d8e2f2; font-size:12.5px; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px)}
#overviewPage .ovw-sync .r-sync .r-dot{box-shadow:0 0 0 3px rgba(255,255,255,.08)}
#overviewPage .ovw-sync .r-sync .r-sync-text{color:#d8e2f2}

/* freshness line (Whole business · Xero refreshed … · Details) */
#overviewPage .ov-welcome #ovScope{margin:4px 0 0}
#overviewPage .ov-welcome #ovScope:empty{margin:0}
#overviewPage .ov-welcome .mp-scope{margin:0; color:#aebcd4}
#overviewPage .ov-welcome .mp-scope b{color:#e6edf8}
#overviewPage .ov-welcome .mp-scope-more > summary{color:#bcd2f2}
#overviewPage .ov-welcome .mp-scope-more[open] > span{color:#aebcd4}
#overviewPage .ov-welcome .mp-scope .op-chip.is-warn{background:rgba(255,196,94,.16); color:#ffd58a; border-color:rgba(255,196,94,.4)}

/* revenue: same content, no card of its own — a hairline separates it from the greeting */
#overviewPage .ov-welcome #ovRevenue.ov-card{margin:12px 0 0; padding:12px 0 2px; border:0; border-top:1px solid rgba(255,255,255,.08); border-radius:0;
  background:none; box-shadow:none}
#overviewPage .ov-welcome:has(#ovRevenue[style*="none"]){padding-bottom:16px}

/* the forecast follows the panel closely */
#overviewPage .ov-welcome + .ov-first-slot:empty + #ovForecast.ov-card{margin-top:0}

/* desktop: the sync status lives in the panel, so the floating header copy is hidden on the Overview */
@media (min-width:900px){
  :root[data-theme="app"] body.on-overview #syncSlot{display:none}
}
/* page width and gutters: css/overview-layout.css */

/* phones: no taller than the old greeting + revenue card; the header bar already shows the sync status */
@media (max-width:899px){
  #overviewPage .ovw-sync{display:none}
}
@media (max-width:760px){
  #overviewPage .ov-welcome{padding:14px 16px 2px; border-radius:18px}
  #overviewPage .ov-welcome::before{left:22%; opacity:.62; background-position:62% 40%}
  #overviewPage .ov-welcome::after{background:radial-gradient(240px 160px at 92% 18%, rgba(132,160,224,.14), transparent 70%), linear-gradient(0deg, rgba(10,19,34,.5), transparent 40%)}
  #overviewPage .ov-welcome #ovScope{margin-top:2px}
  /* text keeps its normal size: on narrow phones the freshness Details link wraps to its own short line, left-aligned
     with the text above (a 32px tap target, no extra gap); the revenue dates sit beside the amount when they fit */
  #overviewPage .ov-welcome .mp-scope{gap:0 8px}
  #overviewPage .ov-welcome .mp-scope-more > summary{min-height:32px}
  #overviewPage .ov-welcome #ovRevenue.ov-card{margin-top:6px; padding:8px 0 0}
  #overviewPage .ov-welcome #ovRevenue .fp-rev{align-items:baseline; gap:0 10px}
  #overviewPage .ov-welcome #ovRevenue .fp-rev > small{flex-basis:auto}
  #overviewPage .ov-welcome:has(#ovRevenue[style*="none"]){padding-bottom:12px}
}
:root.is-native #overviewPage .ov-welcome .ovh{margin-top:0}
@media (prefers-reduced-transparency: reduce){ #overviewPage .ovw-sync .r-sync{-webkit-backdrop-filter:none; backdrop-filter:none; background:#1a2840} }
