/* The Overview fills the landing page phone's screen (393 × 852 points). The
   page scrolls it (window.APP.scrollTo), so it never takes the wheel itself:
   scrolling over the phone keeps scrolling the landing page. */
html, body { height: 100%; overflow: hidden; background: #000; }
body { min-height: 0; }
.screen { position: absolute; inset: 0; border-radius: 0; }
.scroller { position: absolute; inset: 0; overflow: hidden; }
/* The landing page draws the status bar and Dynamic Island over every screen. */
.phead .status { visibility: hidden; }
.feed .card { cursor: default; }
.tabbar { position: absolute; left: 12px; right: 12px; bottom: 18px; }

/* ---------- Light: the app's daylight look ----------
   Warm off-white page, white cards with a soft shadow, black and gray text;
   blue stays the data colour. */
html[data-theme="light"] {
  --page: rgb(241, 240, 236);
  --card: #fff;
  --card-2: rgb(246, 245, 242);
  --card-solid: #fff;
  --hair: rgba(0, 0, 0, .07);
  --hair-2: rgba(0, 0, 0, .11);
  --t1: #000;
  --t2: rgba(60, 60, 67, .62);
  --t3: rgba(60, 60, 67, .34);
  --track: rgba(0, 0, 0, .08);
  --halo: #fff;
  /* The glow cyan is too pale on white; daylight uses the deeper blue, as the app does. */
  --glow: 69, 140, 255;
  color-scheme: light;
}
html[data-theme="light"], html[data-theme="light"] body, html[data-theme="light"] .screen { background: var(--page); }
html[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06); }
html[data-theme="light"] .phead { background: linear-gradient(to bottom, rgba(241, 240, 236, .96) 55%, rgba(241, 240, 236, 0)); }
html[data-theme="light"] .appnav .circ, html[data-theme="light"] .appnav .apps { background: rgba(255, 255, 255, .7); border-color: rgba(0, 0, 0, .06); }
html[data-theme="light"] .appnav .circ svg { stroke: #000; }
html[data-theme="light"] .tabbar .circ, html[data-theme="light"] .tabbar .segs { background: rgba(255, 255, 255, .72); border-color: rgba(0, 0, 0, .06); box-shadow: 0 10px 30px rgba(0, 0, 0, .12), 0 1px 0 #fff inset; }
html[data-theme="light"] .tabbar .circ svg { stroke: #000; }
html[data-theme="light"] .segs .pill { background: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04); }
html[data-theme="light"] .segs button i { background: rgba(0, 0, 0, .25); }
html[data-theme="light"] .s-chip, html[data-theme="light"] .icon-chip, html[data-theme="light"] .legend-row.on { background: rgba(0, 0, 0, .05); }
html[data-theme="light"] .legend-row i { background: rgba(0, 0, 0, .18); }
html[data-theme="light"] .meter b.now, html[data-theme="light"] .uv b { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 1px 4px rgba(0, 0, 0, .25); }
html[data-theme="light"] .p2-meter em { background: rgba(0, 0, 0, .7); box-shadow: 0 0 0 1.5px #fff; }
html[data-theme="light"] .p2-ppl svg { fill: rgba(0, 0, 0, .12); }
