/* Shared theme controls. Site styles use the same semantic palette. */
:root { color-scheme: dark; --theme-canvas: #061116; --theme-panel: #0c1b21; --theme-text: #d5e4e7; --theme-muted: #98adb3; --theme-border: #29454d; --theme-accent: #62d2df; --theme-selected: #113039; --theme-hover: #15262c; --theme-shadow: 0 12px 32px #0005; }
:root[data-theme="light"] { color-scheme: light; --theme-canvas: #f7fafb; --theme-panel: #fff; --theme-text: #263f47; --theme-muted: #526d76; --theme-border: #c6d9de; --theme-accent: #087c86; --theme-selected: #e2f2f3; --theme-hover: #edf4f5; --theme-shadow: 0 12px 32px #163b491a; }
helix-theme-select { display: inline-block; position: relative; flex-shrink: 0; font: inherit; color: var(--theme-text); }
helix-theme-select button { font: inherit; cursor: pointer; }
helix-theme-select [hidden] { display: none !important; }
helix-theme-select .helix-theme-trigger { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; color: var(--theme-text); background: transparent; font-size: 12px; white-space: nowrap; }
helix-theme-select .helix-theme-trigger:hover, helix-theme-select .helix-theme-trigger[aria-expanded="true"] { background: var(--theme-hover); }
helix-theme-select .helix-theme-icon { display: flex; }
helix-theme-select .helix-theme-caret { margin-left: auto; color: var(--theme-muted); }
helix-theme-select .helix-theme-menu { position: absolute; z-index: 150; top: calc(100% + 6px); right: 0; min-width: 185px; width: max-content; max-width: calc(100vw - 28px); padding: 6px; border: 1px solid var(--theme-border); border-radius: 6px; background: var(--theme-panel); box-shadow: var(--theme-shadow); }
helix-theme-select .helix-theme-menu > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 3px; text-align: left; color: var(--theme-muted); background: transparent; font-size: 13px; white-space: nowrap; }
helix-theme-select .helix-theme-menu > button:hover { background: var(--theme-hover); color: var(--theme-text); }
helix-theme-select .helix-theme-menu > button[aria-checked="true"] { background: var(--theme-selected); color: var(--theme-accent); }
helix-theme-select .helix-theme-check { margin-left: auto; visibility: hidden; }
helix-theme-select [aria-checked="true"] .helix-theme-check { visibility: visible; }
helix-theme-select button:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 2px; }
helix-theme-select[collapsed] .helix-theme-value, helix-theme-select[collapsed] .helix-theme-caret { display: none; }
@media (max-width: 640px) { .nav-actions helix-theme-select .helix-theme-value, .nav-actions helix-theme-select .helix-theme-caret { display: none; } }

:root[data-theme="light"] {
  --hw-color-scheme: light;
  --hw-canvas: #f7fafb;
  --hw-surface: #ffffff;
  --hw-surface-subtle: #eef4f5;
  --hw-surface-selected: #e0f1f2;
  --hw-text-strong: #16343e;
  --hw-text: #2d4b55;
  --hw-muted: #526c76;
  --hw-faint: #607680;
  --hw-border: #cedde1;
  --hw-border-strong: #aac6cd;
  --hw-accent: #087c86;
  --hw-accent-fill: #087c86;
  --hw-on-accent: #ffffff;
  --hw-success: #157254;
  --hw-success-soft: #e4f3eb;
  --hw-warning: #8b5b0c;
  --hw-warning-soft: #fbf1d9;
  --hw-danger: #b23c4e;
  --hw-danger-soft: #fae9ec;
  --hw-shadow-color: #163b4920;
  --hw-surface-rgb: 255, 255, 255;
  --hw-text-rgb: 22, 52, 62;
  --hw-border-rgb: 117, 160, 170;
  --hw-accent-rgb: 8, 124, 134;
  --hw-shadow-rgb: 22, 59, 73;
  --hw-danger-rgb: 178, 60, 78;
  --hw-warning-rgb: 139, 91, 12;
  --hw-success-rgb: 21, 114, 84;
}
