/* ==========================================================================
   Resonate, Light · Minimal glow (2026-10-28). Design canvas "Resonate — Ships vs. Impresses", page "Every screen —
   Minimal glow" (M-*.dc.html), approved by Aragon on 2026-10-28.
   The foundation every section builds on. Loaded LAST by app-v2.html; every rule is scoped to html[data-ui="imp"] so it
   wins over the section sheets and the styles the parts inject at run time without !important.
   - Ground: a warm off-white page (#FAF9F6) with one faint green wash at the top. No aurora, no halos.
   - Glass: cards, chips, fields and round buttons are frosted white (rgba(255,255,255,.6)) with a 1 px white edge and a
     hairline shadow. Live blur only where content scrolls under it (the tab bar, floating bars).
   - People are glossy orbs: one of five tones per person (green, peach, lilac, gold, sky), with the shading kept.
   - Forest #154A36 is the one bold colour (primary buttons, the selected tab, the raised mic, toggles).
   - Type: Young Serif titles (no italics; emphasis is forest), Figtree UI, DM Mono lowercase labels.
   - Motion: unchanged tokens (--ease-page 440 ms in, 240 ms out, presses .97 over 160 ms). Only transform and opacity.
   Section sheets: public/css/v2/imp-*.css (Today, People, Log, Discover, rooms, You and first run).
   ========================================================================== */

html[data-ui="imp"][data-theme="light"]{
  --imp-page:#FAF9F6;
  --imp-wash:radial-gradient(80% 40% at 15% 0%, rgba(110,190,150,.12) 0%, rgba(110,190,150,0) 70%);
  --imp-ink:#12201A; --imp-dim:#55615B; --imp-forest:#154A36; --imp-forestRGB:21,74,54;
  --imp-glass:rgba(255,255,255,.6); --imp-glass2:rgba(255,255,255,.72); --imp-card:rgba(255,255,255,.62);
  --imp-edge:rgba(255,255,255,.9); --imp-hair:0 1px 3px rgba(18,32,26,.06); --imp-line:rgba(18,32,26,.08);
  --imp-sel:rgba(21,74,54,.10); --imp-drift:#E2672F;
  /* the app's own tokens, re-pointed */
  --void:#FAF9F6; --voidRGB:250,249,246; --ground:#FAF9F6; --surface:#FFFFFF; --surface2:#FFFFFF; --sheet:#FAF9F6;
  --paper:#FAF9F6; --card:#FFFFFF; --glass:rgba(255,255,255,.6); --glassLine:rgba(255,255,255,.9);
  --tabbar:rgba(255,255,255,.72); --glow:#12201A; --dim:#55615B; --faint:#5B6A61;
  --line:rgba(18,32,26,.08); --line2:rgba(18,32,26,.14); --shadow:rgba(18,32,26,.08); --raise:0 1px 3px rgba(18,32,26,.06);
  --outer:#F1EFEA;
}
html[data-ui="imp"][data-theme="dark"]{
  --imp-page:#1E2A10;
  --imp-wash:radial-gradient(80% 45% at 50% 0%, rgba(44,74,46,.45) 0%, rgba(44,74,46,0) 70%);
  --imp-ink:#FFF8F0; --imp-dim:#C4D0B1; --imp-forest:#C4D0B1; --imp-forestRGB:196,208,177;
  --imp-glass:rgba(255,255,255,.08); --imp-glass2:rgba(44,55,30,.72); --imp-card:rgba(255,255,255,.07);
  --imp-edge:rgba(255,255,255,.14); --imp-hair:0 1px 2px rgba(0,0,0,.28); --imp-line:rgba(255,248,240,.12);
  --imp-sel:rgba(196,208,177,.16); --imp-drift:#F08A55;
  --void:#1E2A10; --voidRGB:30,42,16; --ground:#1E2A10; --sheet:#2C371E; --paper:#2C371E;
  --glass:rgba(255,255,255,.08); --glassLine:rgba(255,255,255,.14); --tabbar:rgba(44,55,30,.72);
}

/* ---- ground: one page colour with the faint wash at the top; it scrolls away with the content ---- */
html[data-ui="imp"][data-theme] body,html[data-ui="imp"][data-theme] #app{background:var(--imp-page)}
html[data-ui="imp"][data-theme] .screen,html[data-ui="imp"][data-theme] .page,html[data-ui="imp"][data-theme] #search,
html[data-ui="imp"][data-theme] #onboard,html[data-ui="imp"][data-theme] #community,html[data-ui="imp"][data-theme] #invite,
html[data-ui="imp"][data-theme] #sheet.v2-full,html[data-ui="imp"][data-theme] #s-signal.tcd,
html[data-ui="imp"][data-theme] #s-signal,html[data-ui="imp"][data-theme] #s-discover,html[data-ui="imp"][data-theme] #s-log,html[data-ui="imp"][data-theme] #s-you,html[data-ui="imp"][data-theme] #s-orbit{
  background:var(--imp-wash),var(--imp-page);background-attachment:local;background-repeat:no-repeat}
html[data-ui="imp"][data-theme] .fade{background:linear-gradient(to top,var(--imp-page) 30%,rgba(var(--voidRGB),0))}

/* ---- type: page titles 40 px Young Serif, labels DM Mono lowercase ---- */
html[data-ui="imp"][data-theme] .h1,html[data-ui="imp"][data-theme] .rz-phead h1{font-size:40px;line-height:46px;letter-spacing:-.5px;text-wrap:balance}
html[data-ui="imp"][data-theme] .rz-eyebrow,html[data-ui="imp"][data-theme] .label,html[data-ui="imp"][data-theme] .v2-label{
  font-family:var(--mono);font-weight:400;font-size:12.5px;letter-spacing:0;text-transform:lowercase;color:var(--imp-dim)}
html[data-ui="imp"][data-theme] em,html[data-ui="imp"][data-theme] .ital{font-style:normal;color:var(--imp-forest)}

/* ---- glass: cards, options, rows ---- */
html[data-ui="imp"][data-theme] .card,html[data-ui="imp"][data-theme] .who,html[data-ui="imp"][data-theme] .opt,
html[data-ui="imp"][data-theme] .pcard,html[data-ui="imp"][data-theme] .bubble,html[data-ui="imp"][data-theme] .stats{
  background:var(--imp-card);box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair)}
html[data-ui="imp"][data-theme] .opt[aria-pressed="true"]{background:var(--imp-forest);color:#FFFFFF;box-shadow:var(--imp-hair)}
html[data-ui="imp"][data-theme="dark"] .opt[aria-pressed="true"]{color:#1E2A10}
html[data-ui="imp"][data-theme] .opt[aria-pressed="true"] .radio,html[data-ui="imp"][data-theme] .opt[aria-pressed="true"] .check{background:#FFFFFF;color:var(--imp-forest);box-shadow:none}

/* ---- buttons ---- */
html[data-ui="imp"][data-theme] .pill{min-height:54px;border-radius:27px;font-weight:700}
html[data-ui="imp"][data-theme] .pill.primary,html[data-ui="imp"][data-theme] .pill.light{background:var(--imp-forest);color:#FFFFFF;box-shadow:var(--imp-hair)}
html[data-ui="imp"][data-theme="dark"] .pill.primary,html[data-ui="imp"][data-theme="dark"] .pill.light{color:#1E2A10}
/* A destructive action is red, never the forest above (2026-10-30): .v2-dangerbtn also carries .pill.primary, so the rule
   above had turned every one green (Remove from your orbit, Delete in 30 days) except the remove-from-tie question, which
   had its own fix. The app's danger red #B3261E with white words (6.5:1), the same in light and dark, as Aragon chose for
   taking someone out of a tie (2026-10-28). The #sheet copy outranks the sheet-scoped .pill.primary rules. */
html[data-ui="imp"][data-theme] .pill.primary.v2-dangerbtn,html[data-ui="imp"][data-theme] #sheet .pill.primary.v2-dangerbtn{background:#B3261E;color:#FFFFFF}
html[data-ui="imp"][data-theme] .pill.ghost{background:var(--imp-glass);color:var(--imp-ink);box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair)}
html[data-ui="imp"][data-theme] .cbtn,html[data-ui="imp"][data-theme] .cbtn.fill,html[data-ui="imp"][data-theme] .cbtn.call{
  background:var(--imp-glass);color:var(--imp-ink);box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair)}
html[data-ui="imp"][data-theme] .cbtn.addbtn{background:var(--imp-forest);color:#FFFFFF;box-shadow:var(--imp-hair)}
html[data-ui="imp"][data-theme] .link{color:var(--imp-forest)}

/* ---- chips, segmented controls, toggles ---- */
html[data-ui="imp"][data-theme] .chip{background:var(--imp-glass);box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair);color:var(--imp-ink)}
html[data-ui="imp"][data-theme] .chip.on,html[data-ui="imp"][data-theme] .chip.sel{background:var(--imp-forest);color:#FFFFFF;box-shadow:var(--imp-hair)}
html[data-ui="imp"][data-theme="dark"] .chip.on,html[data-ui="imp"][data-theme="dark"] .chip.sel{color:#1E2A10}
html[data-ui="imp"][data-theme] .seg{background:var(--imp-glass);box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair);border-radius:23px;padding:4px}
html[data-ui="imp"][data-theme] .seg button{border-radius:19px;color:var(--imp-dim);font-weight:600}
html[data-ui="imp"][data-theme] .seg button[aria-pressed="true"]{background:#FFFFFF;color:var(--imp-ink);font-weight:700;box-shadow:0 2px 8px rgba(18,32,26,.10)}
html[data-ui="imp"][data-theme="dark"] .seg button[aria-pressed="true"]{background:rgba(255,255,255,.16)}
html[data-ui="imp"][data-theme] .switch{background:rgba(18,32,26,.16)}
html[data-ui="imp"][data-theme] .switch[aria-checked="true"]{background:var(--imp-forest)}
html[data-ui="imp"][data-theme] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),html[data-ui="imp"][data-theme] textarea{
  background-color:var(--imp-glass)}

/* ---- people: glossy orbs (avBase sets data-tone from the person; the shading stays, the halos go) ---- */
html[data-ui="imp"][data-theme] .av{background:radial-gradient(circle at 32% 28%,#F4FFF2 0%,#CFE7C9 38%,#7FB08A 78%,#3E7556 100%)!important;color:#12301F!important;
  box-shadow:inset -3px -4px 8px rgba(20,60,40,.22),0 2px 6px rgba(18,32,26,.12)}
html[data-ui="imp"][data-theme] .av[data-tone="peach"]{background:radial-gradient(circle at 32% 28%,#FFF0EC 0%,#F2B8A8 55%,#C27767 100%)!important;color:#3A1408!important;box-shadow:inset -3px -4px 8px rgba(120,50,30,.2),0 2px 6px rgba(18,32,26,.12)}
html[data-ui="imp"][data-theme] .av[data-tone="lilac"]{background:radial-gradient(circle at 32% 28%,#F4E1FF 0%,#B39CFF 55%,#6E55C9 100%)!important;color:#1A1040!important;box-shadow:inset -3px -4px 8px rgba(40,20,90,.22),0 2px 6px rgba(18,32,26,.12)}
html[data-ui="imp"][data-theme] .av[data-tone="gold"]{background:radial-gradient(circle at 32% 28%,#FFF8D6 0%,#F5D36B 55%,#B98F1F 100%)!important;color:#3A2A04!important;box-shadow:inset -3px -4px 8px rgba(90,60,0,.2),0 2px 6px rgba(18,32,26,.12)}
html[data-ui="imp"][data-theme] .av[data-tone="sky"]{background:radial-gradient(circle at 32% 28%,#E6F7FF 0%,#9DD3EE 55%,#4F94BC 100%)!important;color:#0C2A3C!important;box-shadow:inset -3px -4px 8px rgba(10,50,80,.2),0 2px 6px rgba(18,32,26,.12)}
html[data-ui="imp"][data-theme] .av:has(img){background:none!important}
/* the shared orb classes for markup outside av() (section sheets use .imp-orb + a tone) */
html[data-ui="imp"] .imp-orb{border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;font-family:var(--serif);font-weight:400;
  background:radial-gradient(circle at 32% 28%,#F4FFF2 0%,#CFE7C9 38%,#7FB08A 78%,#3E7556 100%);color:#12301F;box-shadow:inset -3px -4px 8px rgba(20,60,40,.22),0 2px 6px rgba(18,32,26,.12)}
html[data-ui="imp"] .imp-orb.t-peach{background:radial-gradient(circle at 32% 28%,#FFF0EC 0%,#F2B8A8 55%,#C27767 100%);color:#3A1408}
html[data-ui="imp"] .imp-orb.t-lilac{background:radial-gradient(circle at 32% 28%,#F4E1FF 0%,#B39CFF 55%,#6E55C9 100%);color:#1A1040}
html[data-ui="imp"] .imp-orb.t-gold{background:radial-gradient(circle at 32% 28%,#FFF8D6 0%,#F5D36B 55%,#B98F1F 100%);color:#3A2A04}
html[data-ui="imp"] .imp-orb.t-sky{background:radial-gradient(circle at 32% 28%,#E6F7FF 0%,#9DD3EE 55%,#4F94BC 100%);color:#0C2A3C}

/* ---- bento tiles (People's orbits, Discover's interests, the You pass) ---- */
html[data-ui="imp"] .imp-tile{border-radius:30px;color:#FFF7EE;box-shadow:0 2px 8px rgba(18,32,26,.08);position:relative;overflow:hidden}
html[data-ui="imp"] .imp-tile.emerald{background:linear-gradient(160deg,#1F6B4F 0%,#134734 100%)}
html[data-ui="imp"] .imp-tile.violet{background:linear-gradient(160deg,#4B3CB0 0%,#2A2070 100%)}
html[data-ui="imp"] .imp-tile.peach{background:linear-gradient(160deg,#F6B394,#E9875F);color:#2A1006}
html[data-ui="imp"] .imp-tile.sand{background:linear-gradient(160deg,#EFE0BE,#D4BC88);color:#2A2010}
html[data-ui="imp"] .imp-tile.teal{background:linear-gradient(160deg,#23A39B,#126A64)}
html[data-ui="imp"] .imp-tile.ghost{background:rgba(255,255,255,.55);color:var(--imp-ink);box-shadow:none;outline:1.5px dashed rgba(21,74,54,.35);outline-offset:-1.5px}

/* ---- shared glass bits ---- */
html[data-ui="imp"] .imp-glass{background:var(--imp-glass);box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair)}
html[data-ui="imp"] .imp-card{background:var(--imp-card);border-radius:30px;box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair);
  -webkit-backdrop-filter:blur(28px) saturate(160%);backdrop-filter:blur(28px) saturate(160%)}
html[data-ui="imp"] .imp-mono{font-family:var(--mono);font-size:12.5px;font-weight:400;text-transform:lowercase;letter-spacing:0;color:var(--imp-dim)}
html[data-ui="imp"] .imp-round{width:44px;height:44px;border-radius:22px;display:inline-flex;align-items:center;justify-content:center;flex:none;
  background:var(--imp-glass);color:var(--imp-ink);box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}

/* ---- the tab bar: frosted white pill, forest selected tab, the raised forest mic ---- */
html[data-ui="imp"][data-theme] #tabs{left:16px;right:16px;bottom:max(24px,env(safe-area-inset-bottom));height:68px;padding:0 6px;border-radius:34px;
  background:var(--imp-glass2);box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair);-webkit-backdrop-filter:blur(30px) saturate(180%);backdrop-filter:blur(30px) saturate(180%);overflow:visible}
/* Reduce Transparency (F22, U-P0-004): the pill goes solid. This selector out-specifies resonate-v2.css's F22 rules, so the
   override has to live here too */
@media (prefers-reduced-transparency:reduce){
  html[data-ui="imp"][data-theme] #tabs{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--surface)}
  html[data-ui="imp"][data-theme="dark"] #tabs{background:var(--surface2)}
}
html[data-ui="imp"][data-theme] #tabs .lens{top:7px;bottom:7px;border-radius:27px;background:var(--imp-sel);box-shadow:none}
html[data-ui="imp"][data-theme] #tabs button{color:var(--imp-dim);font-weight:600}
html[data-ui="imp"][data-theme] #tabs button[aria-selected="true"]:not(.raised){color:var(--imp-forest);font-weight:700}
html[data-ui="imp"][data-theme] #tabs button .tl{font-size:11px;font-weight:inherit}
html[data-ui="imp"][data-theme] #tabs button.raised{background:transparent;margin:0;box-shadow:none}
html[data-ui="imp"][data-theme] #tabs button.raised .bub{width:62px;height:62px;margin-top:-22px;border-radius:31px;background:var(--imp-forest);color:#FFFFFF;
  display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px rgba(21,74,54,.18);transition:scale var(--dur-press) var(--ease-out)}
html[data-ui="imp"][data-theme="dark"] #tabs button.raised .bub{color:#1E2A10}
html[data-ui="imp"][data-theme] #tabs button.raised .bub svg{display:block;width:26px;height:26px}
html[data-ui="imp"][data-theme] #tabs button.raised[aria-selected="true"]{box-shadow:none}
html[data-ui="imp"][data-theme] #tabs button.raised[aria-selected="true"] .bub{background:var(--imp-forest);box-shadow:0 0 0 4px rgba(var(--imp-forestRGB),.14),0 3px 8px rgba(21,74,54,.18)}
html[data-ui="imp"][data-theme] #tabs button.raised:active .bub{scale:var(--press)}
html[data-ui="imp"][data-theme] #tabs .me{background:rgba(var(--imp-forestRGB),.12);color:var(--imp-forest);font-family:var(--sans,Figtree,system-ui,sans-serif);font-weight:800;font-size:9px}
/* the 24 px face takes the 22 px icons' room, so You's label sits on the others' line (S3: it sat 1 px low) */
html[data-ui="imp"][data-theme]:not(.v2-desk) #tabs .me{margin:-1px 0}
html[data-ui="imp"][data-theme] #tabs #tab-you[aria-selected="true"] .me{box-shadow:0 0 0 2px var(--imp-page),0 0 0 3.5px var(--imp-forest)}
html[data-ui="imp"][data-theme]:not(.v2-desk) #tabs.tb-mini{height:50px;padding:0 4px}
html[data-ui="imp"][data-theme]:not(.v2-desk) #tabs.tb-mini button.raised .bub{width:44px;height:44px;margin-top:0}
html[data-ui="imp"][data-theme] .v2-float,html[data-ui="imp"][data-theme] .v2-fpbar,html[data-ui="imp"][data-theme] .v2-erbar{
  background:var(--imp-glass2);box-shadow:inset 0 0 0 1px var(--imp-edge),var(--imp-hair)}

/* ---- focus stays visible on glass ---- */
html[data-ui="imp"] :focus-visible{outline:2px solid #2F8F68;outline-offset:2px}

@media (prefers-reduced-motion:reduce){html[data-ui="imp"][data-theme] #tabs button.raised .bub{transition:none}}
@media (prefers-contrast:more){
  html[data-ui="imp"][data-theme="light"]{--imp-glass:rgba(255,255,255,.92);--imp-card:rgba(255,255,255,.96);--imp-hair:0 1px 2px rgba(21,35,27,.10),0 0 0 1px rgba(21,35,27,.10)}
}
