/* Page chrome only: embedded widgets and the homepage media keep their palette. */
.theme-toggle { display: inline-grid !important; flex: 0 0 38px; width: 38px; height: 38px; padding: 0 !important; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; }
.theme-toggle span { position: relative; display: block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.theme-toggle span::after { position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.theme-toggle:focus-visible { outline: 2px solid #7d4dff; outline-offset: 3px; }
html[data-theme="light"][data-page="home"] { color-scheme: light; background: #f4f6fa; --silver: #101827; --muted: #101827; --black: #f4f6fa; --void: #edf0f6; --cyan: #05798f; --violet: #6653ad; --rose: #b54e73; --line: rgba(16,24,39,.18); --line-strong: rgba(16,24,39,.28); }
html[data-theme="light"][data-page="home"] body { background: #f4f6fa; }
html[data-theme="light"] .page-veil { background: radial-gradient(ellipse at 50% 40%, rgba(102,83,173,.035), transparent 70%); }
/* Preserve the media palette while lightening the surrounding hero. */
html[data-theme="light"] .hero-section { color-scheme: dark; color: #eef5ff; --silver: #eef5ff; --muted: #aab5ca; --black: #03040a; --cyan: #55f1ff; --violet: #7d4dff; --rose: #ff5da8; }
html[data-theme="light"] .hero-section { background: linear-gradient(to bottom, #f4f6fa 0, #f4f6fa var(--hero-clear-start, 70%), transparent var(--hero-clear-end, 80%)); }
/* Keep artwork only behind the opening title; the media surround is white. */
html[data-theme="light"] .hero-section::before {
  bottom: auto;
  height: var(--hero-art-height, 480px);
  background: url("/assets/brand/nox-city-light.png?v=20260928-upload") center top / max(100svh, min(1772px, 122vw)) auto no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 48% 90% at 50% 0, #000 28%, rgba(0,0,0,.7) 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 48% 90% at 50% 0, #000 28%, rgba(0,0,0,.7) 58%, transparent 100%);
}
html[data-theme="light"] .hero-section::after {
  background: linear-gradient(to bottom, rgba(244,246,250,.94), rgba(244,246,250,.4) 40px, transparent 112px);
  -webkit-mask-image: none;
  mask-image: none;
}

html[data-theme="light"] .hero-copy { position: relative; isolation: isolate; color: #101827; --silver: #101827; --muted: #101827; --cyan: #05798f; --violet: #6653ad; --rose: #b54e73; }
/* Automatic clear glass separates service copy from the moving network. */
.hero-services-text { display: grid; gap: 28px; }
html[data-theme="light"] .hero-services-text { position: relative; isolation: isolate; }
html[data-theme="light"] .hero-services-text::before {
  content: "";
  position: absolute;
  top: var(--services-glass-top, -34px);
  bottom: -12px;
  left: 50%;
  width: var(--services-glass-width, 100%);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: var(--services-glass-opacity, 1);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
}
html[data-theme="light"] .hero-service-highlight { color: #101827; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html[data-theme="light"] :is(.hero-service-note, .section-lede, .feature-copy p, .split-copy p, .final-inner p, .artifact-list, .character-note-panel p, .system-panel p, .site-footer) { color: #101827; }
html[data-theme="light"] :is(.section-kicker, .system-label, .system-expand-toggle) { color: #05798f; }
html[data-theme="light"] :is(.text-link, .button-quiet) { color: #35465f; }
html[data-theme="light"] :is(.button, .artifact-panel, .character-note-panel, .system-panel, .character-figure, .system-label, .brand-plate) { border-color: rgba(16,24,39,.18); }
html[data-theme="light"] :is(.button-ghost, .button-quiet) { background: rgba(255,255,255,.4); }
html[data-theme="light"] :is(.artifact-panel, .character-note-panel) { background: rgba(255,255,255,.34); }
/* Reading surfaces flow between the individually framed cards. */
html[data-theme="light"] .reading-glass { background: transparent; border-color: transparent; }
html[data-theme="light"] .split-copy { border-top-color: transparent; }
html[data-theme="light"] .hero-services-text > p.reading-glass { background: transparent; }
html[data-theme="light"] .character-section::before { background: transparent; border-color: transparent; }
html[data-theme="light"] .system-panel { background: radial-gradient(circle at 82% 12%, rgba(5,121,143,.07), transparent 18rem), radial-gradient(circle at 14% 86%, rgba(102,83,173,.07), transparent 15rem), rgba(255,255,255,.42); }
html[data-theme="light"] :is(.system-panel, .character-note-panel, .character-figure) { box-shadow: 0 20px 65px rgba(27,40,66,.1); }
html[data-theme="light"] .system-panel::before { background-image: linear-gradient(rgba(16,24,39,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,24,39,.026) 1px, transparent 1px); }
html[data-theme="light"] .character-caption { color: #eef5ff; }
html[data-theme="light"] .artifact-orbit { border-color: rgba(5,121,143,.3); }
html[data-theme="light"] .artifact-orbit::after { border-color: rgba(102,83,173,.25); }
html[data-theme="light"] .brand-plate::before { background: url('/assets/brand/nox-city-plate.jpg') calc(50% + var(--brand-plate-background-offset)) calc(50% + 41px) / cover no-repeat; filter: none; opacity: 1; -webkit-mask-image: none; mask-image: none; }
html[data-theme="light"] .brand-plate::after { content: none; }
/* Gallery theme stops at each demonstration widget. */
html[data-theme="light"][data-page="widgets"] { color-scheme: light; --ink: #101827; --paper: #f4f6fa; --muted: #101827; --line: rgba(16,24,39,.18); }
html[data-theme="light"] .widgets-background { background: linear-gradient(180deg, rgba(244,246,250,.2) 0, rgba(244,246,250,.28) 14rem, rgba(244,246,250,.84) 29rem, rgba(244,246,250,.9) 100%), linear-gradient(90deg, rgba(244,246,250,.32), transparent 50%, rgba(244,246,250,.32)), url('/assets/brand/nox-city-light.png?v=20260928-upload') center top / min(1772px, 122vw) auto repeat-y, #f4f6fa; }
html[data-theme="light"] .widgets-background-cover { background: #03040a; }
html[data-theme="light"] .widgets-page::before { background: radial-gradient(circle at 50% 10%, rgba(102,83,173,.04), transparent 28rem); }
html[data-theme="light"] .widgets-note a { color: #6653ad; }
html[data-theme="light"] .widgets-note a:hover { color: #493779; }
html[data-theme="light"] .widgets-footer { color: #101827; }
html[data-theme="light"] .widget-card { background: rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.65); }
html[data-theme="light"] :is(.widget-style-options, .widget-style-step) { background: rgba(255,255,255,.5); color: #6653ad; }
html[data-theme="light"] .widget-style-options button { color: #101827; }
html[data-theme="light"] .widget-style-options button[aria-pressed="true"] { color: #493779; }
.widget-shell, .x3-frame, .x3-launcher { color-scheme: dark; }
/* Contact is page chrome, not a demonstration widget. */
html[data-theme="light"] .contact-dialog { color: #101827; background: rgba(244,246,250,.88); border-color: rgba(16,24,39,.18); box-shadow: 0 28px 100px rgba(27,40,66,.2); }
html[data-theme="light"] .contact-dialog::backdrop { background: rgba(44,49,67,.28); }
html[data-theme="light"] :is(.contact-option, .contact-option-action, .contact-dialog-close, .widgets-contact-button) { color: #101827; border-color: rgba(16,24,39,.2); background: rgba(255,255,255,.45); }
html[data-theme="light"] .contact-option-email { color: #101827; }
html[data-theme="light"] :is(.contact-dialog-kicker, .contact-dialog-mark) { color: #05798f; }
html[data-theme="light"] .contact-option-email-row { border-color: rgba(16,24,39,.14); }
html[data-theme="light"] :is(.contact-option, .contact-option-action, .contact-dialog-close, .widgets-contact-button):hover { background: rgba(5,121,143,.1); border-color: #05798f; }

/* Light frosted navigation from the top of the light-mode homepage. */
html[data-theme="light"] .site-header::before { border-color: rgba(16,24,39,.18); background: rgba(255,255,255,.76); box-shadow: 0 18px 70px rgba(27,40,66,.12); backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%); }
html[data-theme="light"] .top-nav :is(a, button) { color: #35465f; }
html[data-theme="light"] .top-nav :is(a, button):hover { color: #101827; background: rgba(5,121,143,.08); border-color: rgba(5,121,143,.3); }

/* Intro glass fades with page load, without waiting for scrolling to stop.
   The background reveals over 2400ms; this surface takes twice as long. */
.widgets-intro-glass { position: relative; isolation: isolate; padding: clamp(22px, 3vw, 38px); }
:is(.widgets-intro-glass, .widgets-brand)::before { position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: rgba(3,4,10,.38); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(to bottom, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-composite: intersect; -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(to bottom, transparent, #000 32px, #000 calc(100% - 32px), transparent); -webkit-mask-composite: source-in; content: ""; pointer-events: none; }
.widgets-bg-ready :is(.widgets-intro-glass, .widgets-brand)::before { animation: intro-glass-reveal 4800ms ease-in-out both; }
@keyframes intro-glass-reveal { from { opacity: 0; } to { opacity: var(--intro-glass-opacity, 1); } }
html[data-theme="light"] :is(.widgets-intro-glass, .widgets-brand)::before { background: rgba(255,255,255,.48); }
.widgets-footer-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 16px; }
@media (max-width: 620px) { .widgets-intro-glass { padding: 24px 16px; margin-inline: -4px; } }
@media (prefers-reduced-motion: reduce) { .widgets-bg-ready :is(.widgets-intro-glass, .widgets-brand)::before { animation: none; opacity: var(--intro-glass-opacity, 1); } }

html[data-theme="light"] .widgets-note,
html[data-theme="light"] .widgets-note a,
html[data-theme="light"] .widgets-note a:hover { color: var(--ink); }

/* A faint rim defines the glass without sharpening its feathered fill. */
:is(.widgets-intro-glass, .widgets-brand)::after { position: absolute; inset: 0; z-index: -1; border: 1px solid rgba(3,4,10,.2); border-radius: 18px; opacity: 0; content: ""; pointer-events: none; }
html[data-theme="light"] :is(.widgets-intro-glass, .widgets-brand)::after { border-color: rgba(255,255,255,.24); }
.widgets-bg-ready :is(.widgets-intro-glass, .widgets-brand)::after { animation: intro-glass-reveal 4800ms ease-in-out both; }
@media (prefers-reduced-motion: reduce) { .widgets-bg-ready :is(.widgets-intro-glass, .widgets-brand)::after { animation: none; opacity: var(--intro-glass-opacity, 1); } }

/* The logo gets its own glass surface, synchronized with the introduction. */
.widgets-brand { position: relative; isolation: isolate; margin-bottom: 28px; }
.widgets-brand::before, .widgets-brand::after { inset: -12px; }

/* Match the gallery glass around the full interface, without filtering its content. */
html[data-theme="light"] .x3-frame {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.48);
  box-shadow: 0 20px 60px rgba(27,40,66,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html[data-theme="light"] .x3-bar { color: #101827; }
html[data-theme="light"] .x3-control { color: #101827; border-color: rgba(16,24,39,.18); background: rgba(255,255,255,.24); }
html[data-theme="light"] .x3-control:hover,
html[data-theme="light"] .x3-control:focus-visible { border-color: #6653ad; background: rgba(102,83,173,.12); }

/* Match the light navigation on the Illuminator's external action rail. */
html[data-theme="light"] .hero-interface .interface-action-bar {
  color: #101827;
  border-color: rgba(16,24,39,.18);
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
html[data-theme="light"] .hero-interface .interface-frame-action { color: #101827; border-color: #6653ad; }
html[data-theme="light"] .hero-interface .interface-frame-action:hover,
html[data-theme="light"] .hero-interface .interface-frame-action:focus-visible { color: #6653ad; }

/* Defined light glass edges, independent of the scroll blur animation. */
html[data-theme="light"] :is(.artifact-panel, .system-panel, .character-note-panel) { border: 1px solid rgba(16,24,39,.26); }
html[data-theme="light"] .brand-plate { border: 0; }

/* Dark lettering with crisp white outlines over the light-mode artwork. */
html[data-theme="light"] .hero-stage { z-index: 2; }
html[data-theme="light"] .hero-title { position: relative; z-index: 1; }
html[data-theme="light"] .hero-title > span {
  color: #101827;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
  text-shadow: none;
}
/* No reserved scrollbar strip or horizontal background sliver on touch screens. */
@media (any-pointer: coarse) {
  html[data-page="home"],
  html[data-page="home"] body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    scrollbar-width: none;
    scrollbar-gutter: auto;
  }
  html[data-page="home"]::-webkit-scrollbar,
  html[data-page="home"] body::-webkit-scrollbar { display: none; width: 0; height: 0; }
  html[data-page="home"] .site-shell { width: 100%; max-width: 100%; z-index: 1; isolation: isolate; }
  html[data-page="home"] .hero-section { width: 100%; }
}

html[data-theme="light"] .hero-subtitle {
  position: relative;
  z-index: 1;
  color: #101827;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
  text-shadow: none;
}

.hero-title-glass { position: relative; isolation: isolate; width: fit-content; max-width: 100%; margin-inline: auto; }
/* Fit the feathered glass to each line instead of one full-width rectangle. */
html[data-theme="light"] .hero-title > span,
html[data-theme="light"] .hero-subtitle {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
html[data-theme="light"] .hero-glass-backdrop .hero-title > span::before,
html[data-theme="light"] .hero-glass-backdrop .hero-subtitle::before {
  position: absolute;
  inset: -28px -36px;
  border-radius: 50%;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: rgba(255,255,255,var(--title-arrival-tint, .06));
  backdrop-filter: blur(var(--title-arrival-blur, 18px));
  -webkit-backdrop-filter: blur(var(--title-arrival-blur, 18px));
  opacity: var(--title-glass-opacity, 1);
  /* Elliptical falloff rounds the shoulders where the line widths change. */
  mask-image: radial-gradient(ellipse closest-side, #000 48%, rgba(0,0,0,.85) 64%, rgba(0,0,0,.4) 82%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 48%, rgba(0,0,0,.85) 64%, rgba(0,0,0,.4) 82%, transparent 100%);
}

/* Keep every blur surface below all visible lettering, including during reveals. */
.hero-glass-backdrop { display: none; }
html[data-theme="light"] .hero-glass-backdrop {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
html[data-theme="light"] .hero-glass-backdrop :is(.hero-title > span, .brand-zero, .hero-subtitle) {
  color: transparent;
  text-shadow: none;
}

/* Move the calibrated artwork and logo together, closing the mobile left gap. */
@media (max-width: 680px) {
  html[data-theme="light"][data-page="home"] .brand-plate {
    --brand-plate-background-offset: 0px;
    --brand-plate-logo-offset: calc(0.273% - 2px - 0.847vw);
  }
}

/* Clear logo glass keeps the artwork colors intact. */
html[data-theme="light"] .widgets-brand::before { background: transparent; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }

/* Production copy uses clear blur only, without a tinted container. */
html[data-theme="light"] .hero-copy { background: transparent; border-color: transparent; box-shadow: none; }

/* Match the gallery Contact button and soften the embedded surface itself. */
html[data-theme="light"] .x3-frame { border-radius: 4px; overflow: hidden; }
html[data-theme="light"] .x3-frame iframe { border-radius: 4px; }

/* Fade the logo blur above the long zero descender, inside the existing frame. */
html[data-theme="light"] .widgets-brand::before {
  mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(to bottom, transparent 0, #000 32px, #000 42%, rgba(0,0,0,.5) 60%, transparent 78%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(to bottom, transparent 0, #000 32px, #000 42%, rgba(0,0,0,.5) 60%, transparent 78%);
}

/* Gallery introduction glass is a light-mode treatment only. */
html:not([data-theme="light"]) :is(.widgets-brand, .widgets-intro-glass)::before,
html:not([data-theme="light"]) :is(.widgets-brand, .widgets-intro-glass)::after {
  content: none;
  display: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border: 0;
  animation: none;
}

/* A small centered punch-in keeps the light footer artwork full bleed.
   Scale its registered logo with it to preserve their visual alignment. */
html[data-theme="light"] .brand-plate::before,
html[data-theme="light"] .brand-plate-inner {
  scale: 1.06;
  transform-origin: center center;
}

/* One light reading surface includes the Premise heading and its divider. */
html[data-theme="light"] .thesis-section .section-inner {
  position: relative;
  isolation: isolate;
}
html[data-theme="light"] .thesis-section .section-inner::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  pointer-events: none;
  border-radius: 8px;
  background: transparent;
  backdrop-filter: blur(calc(var(--reading-glass-strength, 0) * 9px));
  -webkit-backdrop-filter: blur(calc(var(--reading-glass-strength, 0) * 9px));
  transition: backdrop-filter 3000ms var(--ease), -webkit-backdrop-filter 3000ms var(--ease);
}
html[data-theme="light"] .thesis-section .split-copy {
  margin-inline: 0;
  padding-inline: 0;
  border-radius: 0;
  border-top: 1px solid rgba(16,24,39,.36);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Clear title glass remains useful at every viewport size. */
html[data-theme="light"] .hero-glass-backdrop { display: block; }
html[data-theme="light"] .widgets-brand::before {
  display: block;
  mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(to bottom, transparent 0, #000 32px, #000 52%, rgba(0,0,0,.5) 70%, transparent 88%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent), linear-gradient(to bottom, transparent 0, #000 32px, #000 52%, rgba(0,0,0,.5) 70%, transparent 88%);
}
html[data-theme="light"] .widgets-brand::after { content: none; display: none; }

/* Light appearance for the gallery's glass widget family only. */
html[data-theme="light"] .basic-widget[data-frame^="glass-"] {
  color-scheme: light;
  --glass-ink: color-mix(in srgb, var(--widget-dark) 55%, #101827);
  --glass-edge: color-mix(in srgb, var(--widget-dark) 38%, transparent);
  --glass-surface: linear-gradient(145deg, color-mix(in srgb, var(--widget-pale) 78%, transparent), rgba(255,255,255,.58));
  color: var(--glass-ink);
  border-color: var(--glass-edge);
  background: var(--glass-surface);
  box-shadow: 0 18px 35px rgba(27,40,66,.16), inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 28px color-mix(in srgb, var(--widget) 10%, transparent);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-header {
  color: var(--glass-ink);
  border-bottom-color: var(--glass-edge);
  background: linear-gradient(110deg, color-mix(in srgb, var(--widget) 20%, rgba(255,255,255,.76)), rgba(255,255,255,.35));
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-close { color: var(--glass-ink); }
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-subtitle { opacity: 1; }
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-message.assistant {
  color: var(--glass-ink);
  border-color: color-mix(in srgb, var(--widget-dark) 22%, transparent);
  background: rgba(255,255,255,.64);
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-message.user {
  color: #fff;
  background: var(--widget-dark);
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-status { color: var(--glass-ink); }
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-form {
  border-top-color: var(--glass-edge);
  background: color-mix(in srgb, var(--widget-pale) 65%, transparent);
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-input {
  color: var(--glass-ink);
  border-color: var(--glass-edge);
  background: rgba(255,255,255,.76);
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-input::placeholder {
  color: color-mix(in srgb, var(--widget-dark) 78%, #475569);
  opacity: 1;
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-send {
  color: #fff;
  border-color: var(--widget-dark);
  background: var(--widget-dark);
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-send:hover,
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-send:focus-visible {
  background: color-mix(in srgb, var(--widget-dark) 85%, #000);
  border-color: var(--widget-dark);
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] :is(.basic-input, .basic-close, .basic-launcher, .basic-send):focus-visible {
  outline: 2px solid var(--widget-dark);
  outline-offset: 2px;
}
html[data-theme="light"] .basic-widget[data-frame^="glass-"] .basic-launcher {
  color: var(--glass-ink);
  border-color: var(--glass-edge);
  background: var(--glass-surface);
  box-shadow: 0 12px 26px rgba(27,40,66,.16), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}
html[data-theme="light"] .basic-widget[data-frame="glass-prism"] .basic-header {
  background: linear-gradient(110deg, color-mix(in srgb, var(--widget) 25%, rgba(255,255,255,.8)), rgba(255,255,255,.38) 55%, color-mix(in srgb, var(--widget) 16%, rgba(255,255,255,.5)));
}
html[data-theme="light"] .basic-widget[data-frame="glass-grid"],
html[data-theme="light"] .basic-widget[data-frame="glass-grid"] .basic-launcher {
  background-image: linear-gradient(color-mix(in srgb, var(--widget-dark) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--widget-dark) 10%, transparent) 1px, transparent 1px), var(--glass-surface);
  background-size: 24px 24px, 24px 24px, auto;
}
html[data-theme="light"] .basic-widget[data-frame="glass-grid"] .basic-launcher { background-size: 18px 18px, 18px 18px, auto; }
html[data-theme="light"] .basic-widget[data-frame="glass-console"] {
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--widget-dark) 38%, transparent), 0 18px 35px rgba(27,40,66,.16), inset 0 1px 0 rgba(255,255,255,.9);
}
html[data-theme="light"] .basic-widget[data-frame="glass-signal"] .basic-header {
  background: linear-gradient(90deg, var(--widget-dark) 0 12px, color-mix(in srgb, var(--widget-pale) 78%, transparent) 12px);
}
html[data-theme="light"] .basic-widget[data-frame="glass-terminal"] {
  background-image: repeating-linear-gradient(180deg, color-mix(in srgb, var(--widget-dark) 9%, transparent) 0 1px, transparent 1px 22px), var(--glass-surface);
}
html[data-theme="light"] .basic-widget[data-frame="glass-terminal"] .basic-header::before { color: var(--widget-dark); }
