/* Empower Liquid Glass layer.
   Owner decision: Jonathan Max, 2026-11-04, in chat ("I'm making the call for
   ownership. Let's make the change and implement the build here and now").
   Plain CSS equivalent of the @zakisheriff/liquid-glass React kit; the site has
   no React, so the components are classes. Loaded by @import at the top of
   css/estate-a.css (consumer site) and portal/css/shell-v2.css (portal), so it
   reaches every page that loads either. The site rules apply at 768px and under; the portal rules at every width. Rollback: remove those two @import lines.

   Lines it keeps: brand palette only (gold, charcoal, noir, cream); glass never
   sits ON a photograph frame or a listing card (no dead space rule); a browser
   without backdrop-filter, or a viewer asking for reduced transparency, gets
   the previous near-opaque bars. */

:root {
  --lg-tint:        rgba(16, 16, 16, .58);
  --lg-tint-strong: rgba(16, 16, 16, .74);
  --lg-tint-gold:   rgba(201, 169, 110, .16);
  --lg-edge:        rgba(255, 255, 255, .09);
  --lg-edge-gold:   rgba(201, 169, 110, .28);
  --lg-shine:       inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .28);
  --lg-drop:        0 10px 40px rgba(0, 0, 0, .38);
  --lg-blur:        blur(22px) saturate(175%);
  --lg-ease:        cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme="light"]:not(.ps2) {
  --lg-tint:        rgba(245, 240, 232, .62);
  --lg-tint-strong: rgba(245, 240, 232, .80);
  --lg-edge:        rgba(255, 255, 255, .55);
  --lg-shine:       inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(0, 0, 0, .06);
  --lg-drop:        0 10px 36px rgba(13, 27, 42, .14);
}

/* ── Components (the kit, as classes) ─────────────────────────────────────── */
.lg-glass, .lg-card, .lg-sheet, .lg-nav, .lg-segmented, .lg-input {
  background: var(--lg-tint);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shine), var(--lg-drop);
}
.lg-card  { border-radius: var(--r-card, 14px); padding: 20px 24px; }
.lg-sheet { border-radius: 22px 22px 0 0; padding: 24px; background: var(--lg-tint-strong); }

.lg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  font: 500 14px/1 var(--sans, 'Outfit', sans-serif); letter-spacing: .4px; color: inherit;
  background: var(--lg-tint); border: 1px solid var(--lg-edge);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  box-shadow: var(--lg-shine);
  transition: transform .35s var(--lg-ease), background .35s var(--lg-ease), border-color .35s var(--lg-ease);
}
.lg-btn:hover  { border-color: var(--lg-edge-gold); }
.lg-btn:active { transform: scale(.97); }
.lg-btn:focus-visible { outline: 2px solid var(--gold, #C9A96E); outline-offset: 2px; }
.lg-btn--clear   { background: transparent; box-shadow: none; }
.lg-btn--tinted  { background: var(--lg-tint-gold); border-color: var(--lg-edge-gold); color: var(--gold-light, #D4BA8A); }
.lg-btn--filled  { background: var(--gold, #C9A96E); border-color: var(--gold, #C9A96E); color: var(--charcoal, #1A1A1A); }
.lg-btn--destructive { color: var(--warn, #c47d6d); border-color: rgba(196, 125, 109, .4); }
.lg-btn--sm { min-height: 32px; padding: 0 16px; font-size: 13px; }
.lg-btn--lg { min-height: 48px; padding: 0 32px; font-size: 16px; }

.lg-segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; }
.lg-segmented > button, .lg-segmented > a {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; font: 500 13px/1 var(--sans, 'Outfit', sans-serif);
  transition: background .35s var(--lg-ease), color .35s var(--lg-ease);
}
.lg-segmented > [aria-pressed="true"], .lg-segmented > [aria-selected="true"], .lg-segmented > .is-active {
  background: var(--lg-tint-gold); color: var(--gold-light, #D4BA8A); box-shadow: var(--lg-shine);
}

.lg-switch { appearance: none; -webkit-appearance: none; position: relative; width: 50px; height: 30px; border-radius: 999px; cursor: pointer;
  background: var(--lg-tint); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shine); transition: background .35s var(--lg-ease); }
.lg-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cream, #F5F0E8); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .35s var(--lg-ease); }
.lg-switch:checked { background: var(--gold, #C9A96E); }
.lg-switch:checked::after { transform: translateX(20px); }
.lg-switch:focus-visible { outline: 2px solid var(--gold, #C9A96E); outline-offset: 2px; }

.lg-input { width: 100%; min-height: 42px; padding: 0 16px; border-radius: 999px; color: inherit;
  font: 400 15px/1 var(--sans, 'Outfit', sans-serif); }
.lg-input:focus { outline: none; border-color: var(--lg-edge-gold); }

.lg-nav { display: flex; justify-content: space-around; padding: 6px; border-radius: 26px; }

/* ── Applied to the shared surfaces ───────────────────────────────────────── */
/* Visible glass (revised 2026-11-05 after the owner could not see the first pass:
   dark tint on a dark page read as no change). A lighter tint, a bright rim and a
   soft highlight across the top are what make it read as glass. */
:root {
  --lg-clear:     rgba(22, 22, 22, .40);
  --lg-clear-2:   rgba(22, 22, 22, .55);
  --lg-sheen:     linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, 0) 100%);
  --lg-rim:       rgba(255, 255, 255, .16);
  --lg-rim-shine: inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(255, 255, 255, .06);
  --lg-blur-x:    blur(26px) saturate(190%) brightness(1.05);
}

/* The Liquid Glass surface (revised 2026-11-05, second pass, from the installed apple-design
   skill: Liquid Glass is a FLOATING functional layer, capsules detached from the screen edges,
   with a lensing rim, not a full width tinted bar). One recipe, used by every surface below. */
:root {
  --lg-rim-grad: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.10) 28%, rgba(255,255,255,.04) 55%, rgba(212,186,138,.45) 100%);
  --lg-lens:     inset 1.5px 1.5px 1px -1px rgba(255,255,255,.65), inset -1px -1px 1px -1px rgba(255,255,255,.35),
                 inset 0 0 14px rgba(255,255,255,.07), inset 0 -10px 18px -12px rgba(0,0,0,.45);
  --lg-float:    0 12px 34px rgba(0,0,0,.42), 0 2px 6px rgba(0,0,0,.25);
}
.lg-surface, :root .lg-float {
  border: 1px solid transparent;
  background: var(--lg-sheen) padding-box, var(--lg-clear) padding-box, var(--lg-rim-grad) border-box;
  -webkit-backdrop-filter: var(--lg-blur-x); backdrop-filter: var(--lg-blur-x);
  box-shadow: var(--lg-lens), var(--lg-float);
}

/* Consumer site: phones and small tablets only (owner, 2026-11-04 23:58 PT: "only to mobile facing sites and the portal").
   Desktop keeps the solid Estate Editorial bars. */
@media (max-width: 768px) {
  /* The nav floats as a glass capsule, inset from the edges, from the top of the page. */
  :root .nav, :root .nav.scrolled, :root .nav.solid {
    top: max(10px, env(safe-area-inset-top, 0px)); left: 10px; right: 10px;
    padding: 12px 12px 12px 16px; border-radius: 22px;
    border: 1px solid transparent;
    background: var(--lg-sheen) padding-box, var(--lg-clear) padding-box, var(--lg-rim-grad) border-box;
    -webkit-backdrop-filter: var(--lg-blur-x); backdrop-filter: var(--lg-blur-x);
    box-shadow: var(--lg-lens), var(--lg-float);
    /* Steadier: no animated padding or blur on scroll (the old `transition: all .5s` jumped). */
    transition: box-shadow .2s ease;
  }
  /* The menu is a floating glass panel that grows out of the menu button, not a full screen sheet. */
  :root .mob-menu {
    inset: auto 10px auto 10px; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 82px);
    max-height: calc(100dvh - max(10px, env(safe-area-inset-top, 0px)) - 102px);
    justify-content: flex-start; gap: 16px; padding: 32px 20px 32px; border-radius: 28px;
    border: 1px solid transparent;
    background: var(--lg-sheen) padding-box, var(--lg-clear-2) padding-box, var(--lg-rim-grad) border-box;
    -webkit-backdrop-filter: blur(34px) saturate(190%); backdrop-filter: blur(34px) saturate(190%);
    box-shadow: var(--lg-lens), var(--lg-float);
    transform-origin: top right; transform: scale(.94) translateY(-6px);
    transition: opacity .22s ease, transform .32s cubic-bezier(.2,.9,.25,1), visibility 0s .32s;
  }
  :root .mob-menu.open { transform: none; transition: opacity .18s ease, transform .32s cubic-bezier(.2,.9,.25,1), visibility 0s; }
  :root .nd-inner { border: 1px solid transparent;
    background: var(--lg-sheen) padding-box, var(--lg-clear-2) padding-box, var(--lg-rim-grad) border-box;
    -webkit-backdrop-filter: var(--lg-blur-x); backdrop-filter: var(--lg-blur-x); box-shadow: var(--lg-lens), var(--lg-float); }
  :root .fc-secondary { border: 1px solid transparent !important;
    background: var(--lg-sheen) padding-box, var(--lg-clear) padding-box, var(--lg-rim-grad) border-box !important;
    -webkit-backdrop-filter: var(--lg-blur-x); backdrop-filter: var(--lg-blur-x); box-shadow: var(--lg-lens), var(--lg-float) !important; }
  /* Press feedback on touch down (apple-design: respond on press, not release). */
  :root .nav a:active, :root .nav button:active, :root .mob-menu a:active { opacity: .7; transition: opacity .08s; }

  /* Calmer page motion on phones: the 32px, 0.9s reveal and smooth scroll made taps feel jumpy. */
  html { scroll-behavior: auto; }
  :root .rv { transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
  :root .rv.vis { transform: none; }
  :root .rv-d1, :root .rv-d2, :root .rv-d3, :root .rv-d4 { transition-delay: 0s; }
}

/* Portal glass is phones only (owner, 2026-11-05 11:58 PT: "take the liquid glass changes off the desktop version").
   On a phone: the top bar, every popover menu and the command palette. Desktop keeps solid surfaces. */
@media (max-width: 768px) {
  html.ps2-shell:root .ps2-menu, html.ps2-shell:root .ps2-palette { border: 1px solid transparent;
    background: var(--lg-sheen) padding-box, var(--lg-clear-2) padding-box, var(--lg-rim-grad) border-box;
    -webkit-backdrop-filter: var(--lg-blur-x); backdrop-filter: var(--lg-blur-x); box-shadow: var(--lg-lens), var(--lg-float); }
}
/* Portal on a phone: floating glass capsules top and bottom, and a glass More sheet. */
@media (max-width: 768px) {
  html.ps2-shell:root {
    --ps2-tabs-clear: calc(var(--ps2-tabs-h) + max(10px, env(safe-area-inset-bottom, 0px)) + 10px);
    --ps2-page-top: calc(var(--ps2-phone-top-h) + max(8px, env(safe-area-inset-top, 0px)) + 24px);
    /* MS-10 under the capsule: the floating bar reaches max(8px, inset) plus its height, so nothing scrolls under it. */
    scroll-padding-top: calc(var(--ps2-phone-top-h) + max(8px, env(safe-area-inset-top, 0px)));
  }
  /* MS-09 under the capsule (2026-11-17): the capsule's own 16px and 8px padding outranks the shell's notch padding,
     so the capsule itself steps in from a landscape notch. Portrait insets are 0, so it stays 10px from each edge. */
  html.ps2-shell:root .ps2-phone-top {
    top: max(8px, env(safe-area-inset-top, 0px)); left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px));
    height: var(--ps2-phone-top-h); padding: 0 8px 0 16px; border-radius: 20px;
    border: 1px solid transparent;
    background: var(--lg-sheen) padding-box, var(--lg-clear) padding-box, var(--lg-rim-grad) border-box;
    -webkit-backdrop-filter: var(--lg-blur-x); backdrop-filter: var(--lg-blur-x); box-shadow: var(--lg-lens), var(--lg-float);
  }
  html.ps2-shell:root .ps2-tabs {
    left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); bottom: max(10px, env(safe-area-inset-bottom, 0px));
    height: var(--ps2-tabs-h); padding-bottom: 0; border-radius: 26px;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0 6px;
    border: 1px solid transparent;
    background: var(--lg-sheen) padding-box, var(--lg-clear) padding-box, var(--lg-rim-grad) border-box;
    -webkit-backdrop-filter: var(--lg-blur-x); backdrop-filter: var(--lg-blur-x); box-shadow: var(--lg-lens), var(--lg-float);
  }
  html.ps2-shell:root .ps2-tab:active { opacity: .7; }
  html.ps2-shell:root .ps2-sheet { background: var(--lg-sheen), var(--lg-clear-2); -webkit-backdrop-filter: blur(34px) saturate(190%); backdrop-filter: blur(34px) saturate(190%); }
}


/* ── Portal: no nav shift between pages (2026-11-05) ─────────────────────────
   tools/portal/apply-shell-early.js marks html.ps2-early before first paint. Until the shell
   script builds the real bars (html.ps2-built), glass placeholders hold their exact place, so
   page to page the chrome never blinks or moves. Same origin navigations cross fade (Chrome 126+,
   Safari 18.2+; other browsers simply navigate). */
@media (max-width: 768px) {
  html.ps2-early:not(.ps2-built)::before, html.ps2-early:not(.ps2-built)::after {
    content: ""; position: fixed; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); z-index: 999; pointer-events: none;
    border: 1px solid transparent;
    background: var(--lg-sheen) padding-box, var(--lg-clear) padding-box, var(--lg-rim-grad) border-box;
    -webkit-backdrop-filter: var(--lg-blur-x); backdrop-filter: var(--lg-blur-x); box-shadow: var(--lg-lens), var(--lg-float);
  }
  html.ps2-early:not(.ps2-built)::before { top: max(8px, env(safe-area-inset-top, 0px)); height: var(--ps2-phone-top-h, 56px); border-radius: 20px; }
  html.ps2-early:not(.ps2-built)::after  { bottom: max(10px, env(safe-area-inset-bottom, 0px)); height: var(--ps2-tabs-h, 64px); border-radius: 26px; }
  /* The bars stay put while only the page content changes. */
  html.ps2-shell:root .ps2-phone-top { view-transition-name: ps2-phone-top; }
  html.ps2-shell:root .ps2-tabs { view-transition-name: ps2-tabs; }
  /* The CRM tab row mount is empty until the row is drawn, then 45px tall: hold its height so the page never drops. */
  html.ps2-early.in-crm-section #crm-subnav { min-height: 45px; }
}
@media (max-width: 768px) { @view-transition { navigation: auto; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
::view-transition-group(ps2-phone-top), ::view-transition-group(ps2-tabs) { animation-duration: 0s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* Phones: no 300ms tap wait, no grey tap flash, no rubber band bounce under the fixed bars. */
@media (max-width: 768px) {
  html.ps2-shell { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
  html.ps2-shell a, html.ps2-shell button { touch-action: manipulation; }
}


/* ── Portal on cream (owner, Jonathan Max, 2026-11-05 11:58 PT: "change the background on both the desktop
   and the mobile versions of the portal to the light cream background instead of the black").
   Approved colors only (design-system.md): page Cream #F5F0E8, surfaces white, text Charcoal #1A1A1A,
   small muted text #6B6761 (approved for cream), gold text Gold Dark #A8884F, edges --line-warm #D9D2C5.
   Text that sat on gold reads var(--ink) (a constant #0A0A0A, moved off --noir the same day) so it
   stays dark when the surfaces flip. Scoped to html.ps2 (shell pages); framed and embedded pages are unchanged.
   Light or dark (owner, Jonathan Max, 2026-11-06 10:56 PT, packet item 4 of color-psychology-c-suite-2026-11-06.md):
   every rule here steps aside for html[data-theme="dark"], the person's remembered choice (localStorage empower_theme,
   set before first paint by the ps2-early head block, toggled from the person menu); cream stays the default, so a page
   the early block never reached is still cream. A form control's resting edge on cream is #8A857E, the design system
   --text-muted: 3.23 to 1 on cream, 3.66 on white (the gold edge at .70 read 2.04; D13 asks 3 to 1).
   Guards: tests/portal-light-contrast.test.js, tests/portal-theme-toggle.test.js. */
html.ps2:root:not([data-theme="dark"]) {
  --noir: #F5F0E8; --charcoal: #FFFFFF; --panel: #FFFFFF; --panel-2: #FBF8F2;
  --text-light: #1A1A1A; --text-muted: #6B6761; --text-faint: #6B6761;
  --line: #D9D2C5; --line-soft: rgba(26, 26, 26, .08); --line-ctrl: #8A857E;
  --ps2-noir: #F5F0E8; --ps2-charcoal: #FFFFFF; --ps2-panel: #FFFFFF; --ps2-panel-2: #FBF8F2;
  --ps2-text: #1A1A1A; --ps2-muted: #6B6761; --text-muted-cream: #6B6761;
  --ps2-line: #D9D2C5; --ps2-line-soft: rgba(26, 26, 26, .08); --ps2-line-hair: rgba(168, 136, 79, .14); --ps2-line-firm: rgba(168, 136, 79, .45);
  --ps2-gold: #A8884F; --ps2-gold-light: #A8884F;
  /* Light glass for the phone bars on cream. */
  --lg-clear: rgba(255, 253, 249, .58); --lg-clear-2: rgba(255, 253, 249, .78);
  --lg-sheen: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.25) 45%, rgba(255,255,255,0) 100%);
  --lg-rim-grad: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 35%, rgba(168,136,79,.35) 100%);
  --lg-lens: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.95), inset -1px -1px 1px -1px rgba(168,136,79,.30), inset 0 0 14px rgba(255,255,255,.35);
  --lg-float: 0 10px 30px rgba(13, 27, 42, .14), 0 2px 6px rgba(13, 27, 42, .08);
  --lg-blur-x: blur(26px) saturate(125%);
  color-scheme: light;
}
/* Cream aliases (2026-11-07, operator: apply the color study to every system page; contrast audit tools/portal-tokens/contrast-audit.js).
   Page CSS writes its text and surface colors as var(--lt-*, <original>) (tools/portal-tokens/cream-aliases.js). Defined ONLY here,
   so dark and every page outside the shell render the original value. On cream: gold and cream text read Charcoal (the color
   study's light surface rule: charcoal ink, gold kept as the hairline, fill and dot), light muted text reads the approved
   #6B6761, and a near black panel becomes white. One line each to change if the owners pick another ink. */
html.ps2:root:not([data-theme="dark"]) {
  --lt-gold-ink: #1A1A1A; --lt-cream-ink: #1A1A1A; --lt-muted-ink: #6B6761; --lt-status-ink: #1A1A1A; --lt-dark-ink: #1A1A1A; --lt-surface: #FFFFFF; --lt-canvas: #F5F0E8;
  /* an accent that must stay distinct from body text (the active stage chip): Deep Navy, 16.8 to 1 on white */
  --lt-accent-ink: #0D1B2A;
  /* page-local surfaces, overridden by name (defined under :root on the CRM pages and in studio.css): */
  --card-bg: #FFFFFF; --surface-1: #FFFFFF; --surface-2: #FFFFFF; --surface-raised: #FFFFFF;
}
/* Every form field on cream: a white field, charcoal text, the design system control edge (#8A857E, 3.66 to 1 on white,
   D13) and a readable placeholder. Focus and invalid states keep the page's own edge. */
html.ps2:root:not([data-theme="dark"]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]), select, textarea) {
  background-color: #FFFFFF !important; color: #1A1A1A !important; /* beats an inline dark style on a field (reo/asset-detail) */
}
html.ps2:root:not([data-theme="dark"]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]), select, textarea):not(:focus):not([aria-invalid="true"]):not(.mc-invalid):not(.invalid):not(.is-invalid):not(.error) {
  border-color: #8A857E;
}
html.ps2:root:not([data-theme="dark"]) :is(input, textarea)::placeholder { color: #6B6761; opacity: 1; }
html.ps2:root:not([data-theme="dark"]) select option { background-color: #FFFFFF; color: #1A1A1A; }
/* The CMA workspace's ambient orbs were tuned for black (screen blend, a navy orb): on cream they read as a
   grey smudge, and three 88px blurred animated layers are the heaviest paint on a phone. Off on cream. */
html.ps2:not([data-theme="dark"]) #luxAmb { display: none; }
html.ps2:root:not([data-theme="dark"]) body { background: #F5F0E8; color: #1A1A1A; }
/* Desktop chrome on cream: solid, not glass. */
html.ps2-shell:root:not([data-theme="dark"]) .ps2-top { background: rgba(245, 240, 232, .97); border-bottom: 1px solid #D9D2C5; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.ps2-shell:root:not([data-theme="dark"]) .ps2-side { background: #FBF8F2; border-right-color: #D9D2C5; }
html.ps2-shell:root:not([data-theme="dark"]) .ps2-menu, html.ps2-shell:root:not([data-theme="dark"]) .ps2-palette { box-shadow: 0 12px 32px rgba(13, 27, 42, .14); }
html.ps2:not([data-theme="dark"]) .ps2-table tbody tr:hover { background: rgba(168, 136, 79, .06); }

/* Option E (owner, Jonathan Max, 2026-11-06, packet item 7): on cream a status color fails as text (ok 2.04, warn 1.95,
   bad 2.85, info 2.55 to 1), so status reads in the text token and its color rides on a dot. No token changes. The shared
   components move now; a page's own status text moves when the page is next touched (design-system.md migration rule). */
html.ps2:root:not([data-theme="dark"]) .ps2-chip-ok, html.ps2:root:not([data-theme="dark"]) .ps2-chip-warn,
html.ps2:root:not([data-theme="dark"]) .ps2-chip-bad, html.ps2:root:not([data-theme="dark"]) .ps2-chip-info { color: var(--ps2-text); }
html.ps2:root:not([data-theme="dark"]) :is(.ps2-chip-ok, .ps2-chip-warn, .ps2-chip-bad, .ps2-chip-info):not(:has(.ps2-chip-dot))::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
html.ps2:root:not([data-theme="dark"]) .ps2-chip-ok .ps2-chip-dot, html.ps2:root:not([data-theme="dark"]) .ps2-chip-ok::before { background: var(--ps2-ok); }
html.ps2:root:not([data-theme="dark"]) .ps2-chip-warn .ps2-chip-dot, html.ps2:root:not([data-theme="dark"]) .ps2-chip-warn::before { background: var(--ps2-warn); }
html.ps2:root:not([data-theme="dark"]) .ps2-chip-bad .ps2-chip-dot, html.ps2:root:not([data-theme="dark"]) .ps2-chip-bad::before { background: var(--ps2-bad); }
html.ps2:root:not([data-theme="dark"]) .ps2-chip-info .ps2-chip-dot, html.ps2:root:not([data-theme="dark"]) .ps2-chip-info::before { background: var(--ps2-info); }
html.ps2:root:not([data-theme="dark"]) .ps2-today-need-bad .ps2-today-need-due, html.ps2:root:not([data-theme="dark"]) .ps2-table-state--error strong,
html.ps2:root:not([data-theme="dark"]) .ps2-composer-status--error, html.ps2:root:not([data-theme="dark"]) .assistant-status .at-cap { color: var(--ps2-text); }
html.ps2:root:not([data-theme="dark"]) :is(.ps2-today-need-bad .ps2-today-need-due, .ps2-table-state--error strong, .ps2-composer-status--error, .assistant-status .at-cap)::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; vertical-align: .1em; background: var(--ps2-bad); }

/* ── Fallbacks ────────────────────────────────────────────────────────────── */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.ps2:root:not([data-theme="dark"]) { --lg-clear: rgba(255, 253, 249, .97); --lg-clear-2: rgba(255, 253, 249, .99); }
  :root { --lg-clear: rgba(10, 10, 10, .95); --lg-clear-2: rgba(18, 18, 18, .98); --lg-tint: rgba(10, 10, 10, .94); --lg-tint-strong: rgba(18, 18, 18, .98); }
  :root[data-theme="light"]:not(.ps2) { --lg-tint: rgba(245, 240, 232, .96); --lg-tint-strong: rgba(245, 240, 232, .99); }
}
@media (prefers-reduced-transparency: reduce) {
  html.ps2:root:not([data-theme="dark"]) { --lg-clear: rgba(255, 253, 249, .97); --lg-clear-2: rgba(255, 253, 249, .99); }
  :root { --lg-clear: rgba(10, 10, 10, .96); --lg-clear-2: rgba(18, 18, 18, .98); --lg-tint: rgba(10, 10, 10, .96); --lg-tint-strong: rgba(18, 18, 18, .98); }
  :root[data-theme="light"]:not(.ps2) { --lg-tint: rgba(245, 240, 232, .97); --lg-tint-strong: rgba(245, 240, 232, .99); }
}
@media (prefers-reduced-motion: reduce) {
  :root .mob-menu, :root .mob-menu.open { transform: none !important; }
  .lg-btn, .lg-switch, .lg-switch::after, .lg-segmented > * { transition: none; }
}

/* ── The official mark for the surface (outside the cream section: these rules serve both themes) ── */
/* The official mark for the surface (design-system.md: transparent-light on dark, transparent-dark on light). A page that
   renders its own mark carries both images; the theme shows one (onboarding and client-portals, contrast audit 2026-11-07). */
html:not(.ps2) .lt-mark-on-light, html.ps2[data-theme="dark"] .lt-mark-on-light { display: none !important; }
html.ps2:root:not([data-theme="dark"]) .lt-mark-on-dark { display: none !important; }
