:root {
  --ink: var(--hy-text-color, #eef3fa);
  --muted: var(--hy-secondary-text-color, #8b98aa);
  --muted-2: var(--hy-muted-color, #657185);
  --line: var(--hy-border-color, #27303c);
  --line-soft: color-mix(in srgb, var(--hy-border-color, #27303c) 62%, transparent);
  --panel: var(--hy-surface-color, #121820);
  --panel-2: var(--hy-surface-elevated-color, #171e27);
  --canvas: var(--hy-canvas-color, #0b0f14);
  --accent: var(--hy-accent-color, #7dd3fc);
  --accent-strong: var(--hy-accent-strong-color, #2796c9);
  --warm: var(--hy-theme-highlight-color, #f2ca8c);
  --preview-bg: var(--hy-input-bg-color, #10161e);
  --sidebar-bg: color-mix(in srgb, var(--hy-surface-color, #0d1218) 94%, transparent);
  --sidebar: 268px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 90% -10%, color-mix(in srgb, var(--hy-theme-glow-color, #2c91b8) 18%, transparent), transparent 30rem),
    var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transition: color 160ms ease, background-color 160ms ease;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #071014; background: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #071014;
  background: var(--accent);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  border-right: 1px solid var(--line-soft);
  background: var(--sidebar-bg);
  backdrop-filter: blur(20px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 82px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #3f5263;
  border-radius: 9px;
  color: #b9edff;
  background: linear-gradient(145deg, #1d3442, #101921);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 13px; letter-spacing: 0.02em; }
.brand small { margin-top: 1px; color: var(--muted-2); font: 10px/1.4 ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; }

.theme-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 16px 16px 0; }
.theme-picker button { display: grid; grid-template-columns: 15px 1fr; grid-template-rows: auto auto; column-gap: 7px; align-items: center; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--panel-2); cursor: pointer; text-align: left; }
.theme-picker button:hover { border-color: var(--hy-hover-border-color); background: var(--hy-hover-bg-color); }
.theme-picker button[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 2px var(--hy-focus-ring-color); }
.theme-picker i { grid-row: 1 / 3; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset -3px -2px 0 rgba(255, 255, 255, 0.5); }
.theme-picker .moonlight-swatch { background: linear-gradient(135deg, #f7fcff 15%, #82d4ef 65%, #aaa1ef); }
.theme-picker .nightfall-swatch { background: linear-gradient(135deg, #202554 10%, #675cdb 66%, #e1b952); }
.theme-picker span { font-size: 10px; font-weight: 650; }
.theme-picker small { color: var(--muted-2); font: 7px ui-monospace, monospace; text-transform: uppercase; }

.component-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 18px 16px 8px;
}
.component-search svg {
  position: absolute;
  left: 10px;
  width: 14px;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.8;
}
.component-search input {
  width: 100%;
  height: 34px;
  padding: 0 38px 0 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: var(--hy-input-bg-color);
  font-size: 12px;
}
.component-search input:focus { border-color: #4d7388; box-shadow: 0 0 0 3px rgba(75, 158, 196, 0.1); }
kbd {
  min-width: 21px;
  padding: 1px 5px;
  border: 1px solid #343e4b;
  border-bottom-color: #4b5767;
  border-radius: 4px;
  color: var(--muted);
  background: #161d26;
  box-shadow: 0 1px 0 #06090c;
  font: 10px/1.6 ui-monospace, monospace;
  text-align: center;
}
.component-search kbd { position: absolute; right: 8px; }

#component-nav {
  flex: 1;
  overflow: auto;
  padding: 4px 10px 24px;
  scrollbar-width: thin;
  scrollbar-color: #303b49 transparent;
}
.nav-label {
  margin: 18px 10px 6px;
  color: #596577;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#component-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  color: #9aa7b7;
  text-decoration: none;
  transition: color 120ms ease, background 120ms ease;
}
#component-nav a::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 2px;
  height: 18px;
  border-radius: 0 2px 2px 0;
  background: transparent;
}
#component-nav a:hover { color: var(--ink); background: var(--hy-hover-bg-color); }
#component-nav a.active { color: var(--ink); background: color-mix(in srgb, var(--hy-accent-color) 18%, var(--panel)); }
#component-nav a.active::before { background: var(--accent); box-shadow: 0 0 12px rgba(125, 211, 252, 0.45); }
#component-nav a code { color: #566476; background: transparent; font-size: 9px; }
#component-nav a.active code { color: #7ca0b3; }
#component-nav a[hidden], #component-nav .nav-label[hidden] { display: none; }
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 20px;
  border-top: 1px solid var(--line-soft);
  color: #576273;
  font: 10px ui-monospace, monospace;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #6fcf97; box-shadow: 0 0 8px rgba(111, 207, 151, 0.5); }

main { width: min(1040px, calc(100% - var(--sidebar))); margin-left: var(--sidebar); padding: 0 58px; }
.hero { min-height: 470px; padding: 128px 0 74px; border-bottom: 1px solid var(--line-soft); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #698395; font: 10px ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow i { width: 24px; height: 1px; background: #35434f; }
.hero h1 { max-width: 720px; margin: 22px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 7vw, 82px); font-weight: 400; line-height: 0.98; letter-spacing: -0.055em; }
.hero h1 em { display: block; color: var(--accent); font-weight: 400; }
.hero > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-meta { display: flex; gap: 32px; margin-top: 38px; color: #606d7d; font: 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-meta b { margin-right: 5px; color: #b9c9d7; font-size: 12px; }

.component-section { scroll-margin-top: 28px; padding: 78px 0; border-bottom: 1px solid var(--line-soft); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr); gap: 36px; align-items: end; margin-bottom: 28px; }
.section-heading > div { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.section-heading .index { color: #526171; font: 10px ui-monospace, monospace; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; letter-spacing: -0.025em; }
.section-heading code { color: #617383; background: transparent; font-size: 10px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
code { padding: 2px 5px; border-radius: 4px; color: #8fd3ee; background: rgba(64, 145, 181, 0.1); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }

.demo-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.13);
}
.demo-card.two-column { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); }
.preview {
  position: relative;
  min-height: 190px;
  padding: 32px;
  background:
    linear-gradient(color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px),
    var(--preview-bg);
  background-size: 24px 24px;
}
.preview.centered { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.preview.narrow { display: grid; place-items: center; }
.preview.narrow > * { width: min(280px, 100%); }
.preview.flush { padding: 0; }
.overflow-visible, .demo-card.overflow-visible { overflow: visible; }
.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}
.two-column > .controls { align-items: stretch; justify-content: center; border-top: 0; border-left: 1px solid var(--line); }
.controls.stacked { flex-direction: column; }
.controls label { flex: 1; min-width: 0; color: #778698; font: 10px ui-monospace, monospace; }
.controls label > input:not([type="checkbox"]):not([type="range"]), .controls label > select {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 6px;
  padding: 0 9px;
  border: 1px solid #343f4d;
  border-radius: 5px;
  outline: none;
  color: var(--ink);
  background: var(--hy-input-bg-color);
  font-size: 11px;
}
.controls input:focus, .controls select:focus { border-color: #59859b; }
.controls input[type="range"] { display: block; width: 100%; margin: 9px 0 0; accent-color: var(--accent-strong); }
.controls label > span { float: right; color: #a8b6c5; }
.controls output {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #28323e;
  border-radius: 5px;
  overflow: hidden;
  color: #7f91a5;
  background: #111720;
  font: 10px/1.5 ui-monospace, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toggle-row { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; }
.controls label.toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #96a4b4;
  cursor: pointer;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { position: relative; width: 27px; height: 15px; border: 1px solid #414d5a; border-radius: 999px; background: #0f151d; transition: 120ms ease; }
.toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: #6d7885; transition: 120ms ease; }
.toggle input:checked + span { border-color: #388ab0; background: #205c78; }
.toggle input:checked + span::after { left: 14px; background: #d8f4ff; }
.control-note { width: 100%; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.code { margin-top: 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: #0f141b; }
.code summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; color: #788697; cursor: pointer; font-size: 10px; list-style: none; }
.code summary::-webkit-details-marker { display: none; }
.code summary::before { content: "+"; margin-right: 8px; color: #5e7181; }
.code[open] summary::before { content: "−"; }
.code summary span { margin-left: auto; color: #4d5968; font: 9px ui-monospace, monospace; }
.code pre { margin: 0; padding: 16px; border-top: 1px solid var(--line-soft); overflow: auto; }
.code pre code { padding: 0; color: #9fb1c3; background: none; font-size: 11px; line-height: 1.8; }
.parameter-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.parameter-strip code { color: #6f8090; background: #111820; }

.form-preview { display: grid; gap: 14px; align-content: center; }
.range-preview { display: grid; align-content: center; gap: 46px; min-height: 290px; padding-top: 52px; }
.range-demo-row { display: grid; grid-template-columns: 58px minmax(130px, 1fr) 62px; gap: 14px; align-items: center; }
.range-demo-row > span { color: var(--muted); font: 10px ui-monospace, monospace; }
.range-demo-row > hy-range { width: 100%; }
.range-demo-row > output { overflow: hidden; color: var(--accent-strong); font: 10px ui-monospace, monospace; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.field-label { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 10px; color: #8e9cad; font-size: 11px; }
.options-preview { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 13px; }
fieldset.options-preview { margin: 0; border: 0; }
fieldset.options-preview legend { margin-bottom: 12px; padding: 0; color: #687789; font: 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.tab-panel { display: flex; align-items: center; gap: 13px; min-height: 142px; padding: 28px; }
.tab-panel b { font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.tab-panel p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #334655; border-radius: 8px; color: #9bdcf4; background: #15232d; font-size: 18px; }
.inline-controls { justify-content: flex-end; min-height: 56px; }
.inline-controls > span { color: #6d7a8b; font: 10px ui-monospace, monospace; }
.inline-controls output { flex: 0 0 auto; min-width: 100px; color: #a9dced; text-align: center; }
.native-trigger, .icon-trigger {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--panel-2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 11px;
}
.native-trigger:hover, .icon-trigger:hover { border-color: var(--hy-hover-border-color); background: var(--hy-hover-bg-color); }
.native-trigger.secondary { color: #8d9aaa; background: transparent; }
.icon-trigger { width: 40px; height: 40px; padding: 0; border-radius: 8px; font-size: 18px; }
.tooltip-stage { min-height: 240px; }
.context-target { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; user-select: none; }
.context-target > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 16px 20px; border: 1px dashed #344555; border-radius: 7px; }
.context-target > div > span { grid-row: 1 / 3; color: #85cce8; font-size: 22px; }
.context-target b { font-size: 12px; }
.context-target small { color: var(--muted-2); font-size: 10px; }
.drawer-profile { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--hy-border-color); }
.drawer-profile > span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--hy-border-color); border-radius: 9px; color: var(--accent-strong); background: var(--hy-input-bg-color); font: 700 11px ui-monospace, monospace; }
.drawer-profile b, .drawer-profile small { display: block; }
.drawer-profile b { color: var(--ink); font-size: 13px; }
.drawer-profile small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.drawer-properties { margin-top: 16px; }
.drawer-properties p { display: flex; justify-content: space-between; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.drawer-properties span { color: var(--muted); }
.drawer-properties b { color: var(--ink); font-size: 11px; font-weight: 600; }
.notification-actions { flex-direction: column; }
.notification-actions .native-trigger { min-width: 160px; }
.border-beam-stage { min-height: 300px; }
.border-beam-stage hy-border-beam { width: min(390px, 100%); background: color-mix(in srgb, var(--panel-2) 88%, transparent); }
.border-beam-content { display: grid; grid-template-columns: 46px 1fr; gap: 2px 14px; align-items: center; min-height: 170px; padding: 28px; box-sizing: border-box; }
.border-beam-content > span { grid-row: 1 / 3; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--accent); background: var(--hy-input-bg-color); font: 700 12px ui-monospace, monospace; }
.border-beam-content b { align-self: end; color: var(--ink); font: 20px Georgia, serif; }
.border-beam-content small { align-self: start; color: var(--muted); font: 9px ui-monospace, monospace; }

.split-stage { height: 320px; padding: 18px; }
.split-stage hy-split { border: 1px solid #2b3643; border-radius: 6px; }
.split-pane { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.split-pane span { display: grid; width: 32px; height: 32px; margin-bottom: 9px; place-items: center; border: 1px solid #3c4e5d; border-radius: 50%; color: #86c8e1; font: 10px ui-monospace, monospace; }
.split-pane b { font-family: Georgia, serif; font-size: 17px; font-weight: 400; }
.split-pane small { margin-top: 3px; color: #5d6c7c; font: 9px ui-monospace, monospace; }
.pane-a { background: var(--panel); }
.pane-b { background: var(--preview-bg); }
.split-controls { display: grid; grid-template-columns: 0.65fr 1fr 1fr 1.2fr; }
.tree-card { grid-template-columns: minmax(0, 1fr) 240px; }
.tree-stage { height: 410px; padding: 18px; }
.tree-stage hy-tree { width: 100%; height: 100%; border: 1px solid #2d3845; border-radius: 6px; }
.tree-card > .controls { border-top: 0; border-left: 1px solid var(--line); }
.tree-card .native-trigger { width: 100%; }
.tree-card output { flex: 0 0 auto; min-height: 74px; white-space: normal; }
.virtual-list-card { grid-template-columns: minmax(0, 1fr) 260px; }
.virtual-list-stage { min-height: 396px; padding: 18px; }
.virtual-list-stage hy-virtual-list { width: 100%; }
.virtual-list-card > .controls { border-top: 0; border-left: 1px solid var(--line); }
.virtual-list-card output { flex: 0 0 auto; min-height: 64px; white-space: normal; }
.virtual-list-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 70px; align-items: center; gap: 12px; width: 100%; padding: 0 14px; }
.virtual-list-row > span { color: var(--muted-2); font: 9px ui-monospace, monospace; }
.virtual-list-row > b { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.virtual-list-row > small { color: var(--accent-strong); font: 9px ui-monospace, monospace; text-align: right; }

.page-footer { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: center; min-height: 150px; color: var(--muted-2); font-size: 10px; }
.page-footer > span { color: var(--muted); font: 12px Georgia, serif; }
.page-footer p { margin: 0; text-align: center; }
.page-footer a { color: var(--muted); text-align: right; text-decoration: none; }

.command { position: fixed; z-index: 50; inset: 0; }
.command-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 9, 0.72); backdrop-filter: blur(4px); }
.command-panel { position: relative; width: min(520px, calc(100% - 30px)); margin: 12vh auto 0; overflow: hidden; border: 1px solid #354454; border-radius: 10px; background: #151c25; box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55); }
.command-panel > input { width: 100%; height: 54px; padding: 0 17px; border: 0; border-bottom: 1px solid #2a3441; outline: none; color: #e5eef6; background: transparent; font-size: 14px; }
#command-results { max-height: 330px; overflow: auto; padding: 7px; }
#command-results button { display: flex; justify-content: space-between; width: 100%; height: 40px; padding: 0 11px; border: 0; border-radius: 5px; color: #a9b6c5; background: transparent; cursor: pointer; font-size: 12px; text-align: left; }
#command-results button:hover, #command-results button.active { color: #e9f7fd; background: #1d2b35; }
#command-results button code { color: #668394; background: transparent; font-size: 9px; }
.command-panel > small { display: block; padding: 9px 12px; border-top: 1px solid #28323e; color: #566475; font: 9px ui-monospace, monospace; text-align: right; }
.command-panel > small kbd { margin: 0 3px 0 9px; }

@media (max-width: 900px) {
  :root { --sidebar: 224px; }
  main { width: calc(100% - var(--sidebar)); padding: 0 34px; }
  .section-heading { grid-template-columns: 1fr; gap: 9px; }
  .demo-card.two-column, .tree-card, .virtual-list-card { grid-template-columns: 1fr; }
  .two-column > .controls, .tree-card > .controls, .virtual-list-card > .controls { border-top: 1px solid var(--line); border-left: 0; }
  .split-controls { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 660px) {
  :root { --sidebar: 0px; }
  .sidebar { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { height: 64px; }
  .component-search, #component-nav, .sidebar-foot { display: none; }
  main { width: 100%; margin: 0; padding: 0 20px; }
  .hero { min-height: 390px; padding: 80px 0 55px; }
  .hero-meta { flex-wrap: wrap; gap: 12px 22px; }
  .component-section { padding: 58px 0; }
  .section-heading > div { flex-wrap: wrap; }
  .section-heading h2 { font-size: 29px; }
  .preview { min-height: 170px; padding: 22px; }
  .controls, .split-controls { display: flex; flex-direction: column; align-items: stretch; }
  .field-label { grid-template-columns: 1fr; }
  .page-footer { grid-template-columns: 1fr; padding: 35px 0; text-align: center; }
  .page-footer p, .page-footer a { text-align: center; }
}

html[data-hy-theme="light"] .brand-mark { border-color: #9ac9df; color: #286f92; background: linear-gradient(145deg, #fafdff, #dceff9); }
html[data-hy-theme="light"] .component-search input,
html[data-hy-theme="light"] kbd,
html[data-hy-theme="light"] .controls output,
html[data-hy-theme="light"] .code,
html[data-hy-theme="light"] .parameter-strip code { color: var(--muted); background: var(--hy-input-bg-color); border-color: var(--line); box-shadow: none; }
html[data-hy-theme="light"] .controls label,
html[data-hy-theme="light"] .controls label > span,
html[data-hy-theme="light"] .field-label,
html[data-hy-theme="light"] fieldset.options-preview legend { color: var(--muted); }
html[data-hy-theme="light"] .toggle span { border-color: var(--line); background: #e4eef5; }
html[data-hy-theme="light"] .toggle input:checked + span { border-color: var(--accent); background: var(--accent); }
html[data-hy-theme="light"] .panel-icon { border-color: var(--line); color: var(--accent-strong); background: #e7f4fb; }
html[data-hy-theme="light"] .command-panel { border-color: var(--line); color: var(--ink); background: var(--panel-2); }
html[data-hy-theme="light"] .command-backdrop { background: rgba(70, 100, 120, 0.34); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
