/* Liquid Glass for the Web v1.0.0 component styles, MIT (see LICENSE).
   Extracted VERBATIM from components.js, which would otherwise inject them as
   a <style> element. The landing CSP (default-src 'self') refuses inline
   style elements, so they are served as a file and components.js is patched
   to skip injection when this stylesheet's id is already in the document. */
:where(:root) {
  --lg-accent: #0a84ff;
  --lg-on: #34c759;
  --lg-surface: #ffffff;
  --lg-track: #e5e7eb;
  --lg-track-off: #d1d5db;
  --lg-text: #111827;
  --lg-text-muted: #6b7280;
  --lg-on-glass: #ffffff;
  --lg-tint: rgb(255 255 255 / 0.14);
  --lg-tint-strong: rgb(255 255 255 / 0.5);
  --lg-indicator: rgb(255 255 255 / 0.6);
  --lg-shadow-1: 0 1px 3px rgba(0, 0, 0, 0.08);
  --lg-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.1);
  --lg-radius-sm: 8px;
  --lg-radius: 12px;
  --lg-radius-lg: 16px;
  --lg-radius-xl: 24px;
  --lg-fallback: blur(16px) saturate(1.6);
  --lg-focus: #0a84ff;
}
lg-switch, lg-slider, lg-segmented, lg-button, lg-panel, lg-navbar, lg-menubar, lg-menu, lg-toast, lg-dock, lg-lens { box-sizing: border-box; }
:is(lg-switch, lg-slider, lg-segmented, lg-button, lg-panel, lg-navbar, lg-menubar, lg-menu, lg-toast, lg-dock, lg-lens) *,
:is(lg-switch, lg-slider, lg-segmented, lg-button, lg-panel, lg-navbar, lg-menubar, lg-menu, lg-toast, lg-dock, lg-lens) *::before,
:is(lg-switch, lg-slider, lg-segmented, lg-button, lg-panel, lg-navbar, lg-menubar, lg-menu, lg-toast, lg-dock, lg-lens) *::after { box-sizing: border-box; }

/* glass body over a backdrop */
.lg-surface { position: absolute; inset: calc(-1 * var(--lg-bleed, 16px)); pointer-events: none; z-index: 0; }
.lg-surface__glass { position: absolute; inset: 0; overflow: hidden; }
.lg-surface__glass--fallback { inset: auto; left: 0; top: 0; overflow: visible; backdrop-filter: var(--lg-fallback); -webkit-backdrop-filter: var(--lg-fallback); }
.lg-surface__copy { position: absolute; left: 0; top: 0; display: block; max-width: none; max-height: none; margin: 0; }
.lg-surface__shadow, .lg-surface__tint { position: absolute; left: 0; top: 0; }
.lg-surface__shadow { box-shadow: var(--lg-shadow-2); }
.lg-surface__tint { background: var(--lg-tint); }

/* overlay-copy controls */
.lg-refract { position: absolute; pointer-events: none; z-index: 1; background: var(--lg-surface); }
.lg-thumb { position: absolute; left: 0; top: 0; background: #ffffff; box-shadow: var(--lg-shadow-1); pointer-events: none; z-index: 3; }
.lg-lens-shadow { position: absolute; left: 0; top: 0; box-shadow: var(--lg-shadow-2); pointer-events: none; z-index: 2; opacity: 0; }

/* switch */
lg-switch { display: inline-flex; vertical-align: middle; color: var(--lg-text); }
.lg-switch__text { display: inline-flex; align-items: center; gap: 8px; }
.lg-switch__text svg { width: 16px; height: 16px; }
.lg-switch__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; cursor: pointer; }
.lg-switch__control { --p: 0; position: relative; flex: none; width: 64px; height: 28px; }
.lg-switch__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 4; }
.lg-switch__track, .lg-switch__fill { border-radius: 14px; background: color-mix(in srgb, var(--lg-track-off), var(--lg-on) calc(var(--p) * 100%)); }
.lg-switch__track { position: absolute; inset: 0; }
.lg-switch__control .lg-refract { left: -16px; top: -16px; width: 96px; height: 60px; }
.lg-switch__fill { position: absolute; left: 16px; top: 16px; width: 64px; height: 28px; }
.lg-switch__input:focus-visible ~ .lg-thumb { outline: 2px solid var(--lg-focus); outline-offset: 2px; }
.lg-switch__input:disabled ~ * { opacity: 0.5; }
lg-switch[disabled] .lg-switch__label { cursor: default; }

/* slider */
lg-slider { display: inline-block; width: 240px; vertical-align: middle; }
.lg-slider__control { --t: 0; position: relative; height: 36px; }
.lg-slider__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 4; }
.lg-slider__input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 36px; height: 36px; }
.lg-slider__input::-moz-range-thumb { width: 36px; height: 36px; border: 0; }
.lg-slider__track { position: absolute; left: 0; right: 0; top: 15px; height: 6px; border-radius: 3px; background: var(--lg-track); overflow: hidden; }
.lg-slider__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(18px + var(--t) * (100% - 36px)); background: var(--lg-accent); }
.lg-slider__control .lg-refract { inset: -16px; }
.lg-slider__control .lg-refract .lg-slider__track { left: 16px; right: 16px; top: 31px; }
.lg-slider__input:focus-visible ~ .lg-thumb { outline: 2px solid var(--lg-focus); outline-offset: 2px; }

/* segmented control */
lg-segmented { position: relative; display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--lg-radius); background: var(--lg-track); vertical-align: middle; }
.lg-seg__option { position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 64px; height: 32px; padding: 0 12px;
  border: 0; border-radius: var(--lg-radius-sm); background: transparent; color: var(--lg-text-muted); font: inherit; font-size: 14px; font-weight: 500; line-height: 32px; white-space: nowrap; cursor: pointer; }
.lg-seg__option:focus-visible { outline: 2px solid var(--lg-focus); outline-offset: 2px; }
lg-segmented .lg-refract { inset: 0; display: flex; padding: 4px; gap: 4px; border-radius: var(--lg-radius); background: var(--lg-surface); }
lg-segmented .lg-refract .lg-seg__option { color: var(--lg-accent); cursor: default; }
lg-segmented .lg-lens-shadow { opacity: 1; box-shadow: var(--lg-shadow-1); }

/* button */
lg-button { display: inline-flex; vertical-align: middle; }
.lg-button__el { position: relative; isolation: isolate; display: inline-flex; text-decoration: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 22px; background: transparent; color: var(--lg-on-glass); font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lg-button__el:hover { text-decoration: none; }
.lg-button__el:focus-visible { outline: 2px solid var(--lg-focus); outline-offset: 4px; }
.lg-button__el:disabled { opacity: 0.5; cursor: default; }
.lg-button__label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
lg-button[tone="tinted"] .lg-surface__tint { background: color-mix(in srgb, var(--lg-accent) 55%, transparent); }
lg-button[tone="light"] .lg-button__el { color: var(--lg-text); }
lg-button[tone="light"] .lg-surface__tint { background: var(--lg-tint-strong); }

/* panel */
lg-panel { position: relative; isolation: isolate; display: block; color: var(--lg-on-glass); }
.lg-panel__body { position: relative; z-index: 1; }
lg-panel[tone="light"] { color: var(--lg-text); }
lg-panel[tone="light"] .lg-surface__tint { background: var(--lg-tint-strong); }

/* navbar */
lg-navbar { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 4px; padding: 4px; color: var(--lg-on-glass); }
lg-navbar > a, lg-navbar > button, .lg-nav__copy > span { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 16px;
  border: 0; border-radius: 18px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 500; line-height: 36px; text-decoration: none; white-space: nowrap; cursor: pointer; }
lg-navbar > a:hover { text-decoration: none; }
lg-navbar > :is(a, button):focus-visible { outline: 2px solid var(--lg-focus); outline-offset: 2px; }
.lg-nav__copy { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 4px; pointer-events: none; background: var(--lg-indicator); }
.lg-nav__copy > span { color: var(--lg-text); }
lg-navbar[tone="light"] { color: var(--lg-text); }
lg-navbar[tone="light"] .lg-surface__tint { background: var(--lg-tint-strong); }
lg-navbar .lg-lens-shadow { opacity: 1; box-shadow: var(--lg-shadow-1); z-index: 1; }
lg-navbar > .lg-surface { z-index: 0; }

/* menubar and menus */
lg-menubar { position: relative; isolation: isolate; z-index: 10; display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; color: var(--lg-on-glass); font-size: 14px;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.35); --lg-tint: rgb(17 24 39 / 0.1); }
lg-menubar .lg-menu__panel { text-shadow: none; }
lg-menubar > :not(lg-menu):not(.lg-surface) { position: relative; z-index: 1; }
lg-menu { position: relative; z-index: 1; display: inline-flex; }
.lg-menu__trigger { height: 32px; padding: 0 12px; border: 0; border-radius: var(--lg-radius-sm); background: transparent; color: inherit; font: inherit; font-weight: 500; cursor: default; }
.lg-menu__trigger { border-radius: 16px; }
.lg-menu__trigger[aria-expanded="true"], .lg-menu__trigger:hover { background: rgb(255 255 255 / 0.2); }
.lg-menu__trigger:focus-visible { outline: 2px solid var(--lg-focus); outline-offset: 2px; }
.lg-menu__panel { position: absolute; left: 0; top: calc(100% + 10px); isolation: isolate; min-width: 220px; padding: 6px; color: var(--lg-text); }
.lg-menu__panel[hidden] { display: none; }
.lg-menu__panel .lg-surface__tint { background: rgb(255 255 255 / 0.55); }
.lg-menu__items { position: relative; z-index: 2; display: flex; flex-direction: column; }
.lg-menu__items > button, .lg-menu__copy > span { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 32px; padding: 0 12px; border: 0; border-radius: var(--lg-radius-sm);
  background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; white-space: nowrap; cursor: default; }
.lg-menu__items > button:focus-visible { outline: none; }
.lg-menu__items > hr, .lg-menu__copy > hr { width: calc(100% - 24px); height: 1px; margin: 4px 12px; border: 0; background: rgb(0 0 0 / 0.1); }
.lg-menu__items kbd, .lg-menu__copy kbd { font: inherit; font-size: 12px; opacity: 0.6; }
.lg-menu__copy { position: absolute; inset: 6px; z-index: 1; display: flex; flex-direction: column; pointer-events: none; background: var(--lg-accent); color: #ffffff; border-radius: var(--lg-radius-sm); }
.lg-menu__copy > hr { opacity: 0; }
.lg-menu__panel .lg-lens-shadow { z-index: 1; box-shadow: none; }

/* toast */
.lg-toast-region { position: fixed; top: var(--lg-toast-top, 16px); left: 50%; z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.lg-toast-region--local { position: absolute; }
lg-toast { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px 0 14px; color: var(--lg-on-glass); font-size: 14px; font-weight: 500; pointer-events: auto; }
lg-toast[tone="light"] { color: var(--lg-text); }
lg-toast[tone="light"] .lg-surface__tint { background: var(--lg-tint-strong); }
.lg-toast__icon, .lg-toast__text { position: relative; z-index: 1; display: inline-flex; }
.lg-toast__icon svg { width: 20px; height: 20px; }

/* dock */
lg-dock { position: relative; isolation: isolate; display: inline-flex; padding: 8px; }
.lg-dock__items { position: relative; z-index: 1; display: flex; gap: 8px; padding: 4px; }
.lg-dock__items > * { flex: none; }
lg-dock .lg-lens-shadow { z-index: 2; box-shadow: var(--lg-shadow-2); }

/* lens (magnifier) */
lg-lens { position: relative; display: block; overflow: hidden; touch-action: none; }
.lg-lens__content { position: relative; background: var(--lg-surface); will-change: filter; }
lg-lens .lg-lens-shadow { z-index: 2; opacity: 1; }

@media (prefers-reduced-transparency: reduce) {
  .lg-surface__tint { background: rgb(255 255 255 / 0.85); }
  lg-button, lg-panel, lg-navbar, lg-menubar, lg-toast { color: var(--lg-text); }
}
