/* Vendored from haze-design-system/src/haze.css (2026-10-17). Only changes: the Google Fonts @import is loaded by a <link> in each page, and the reference-page helpers (.hz-demo*) are left out. */

/* Haze — component styles. Colours, spacing, radii, shadows and blurs come from tokens.css. */
:root, [data-theme="light"] { --hz-sheen: rgba(255, 255, 255, 0.55); --hz-blob-opacity: 0.85; --hz-thumb-ink: rgba(20, 22, 26, 0.55); }
[data-theme="dark"] { --hz-sheen: rgba(255, 255, 255, 0.06); --hz-blob-opacity: 0.9; --hz-thumb-ink: rgba(241, 241, 243, 0.7); }

html, body { margin: 0; }
body { font-family: var(--font-sans); background: var(--ground); color: var(--ink); font-size: 15px; line-height: 22px; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "ss01" 1; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hz-icon { flex: none; display: block; }

/* ---------- Ambient ---------- */
.hz-ambient { position: relative; isolation: isolate; background: var(--ground); overflow: hidden; }
.hz-ambient-fixed { min-height: 100vh; }
.hz-ambient-blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hz-blob { position: absolute; border-radius: 50%; filter: blur(var(--blur-glow)); opacity: calc(var(--hz-blob-opacity) * var(--hz-amb, 1)); }
.hz-glow-sage { background: var(--glow-sage); } .hz-glow-moss { background: var(--glow-moss); }
.hz-glow-peach { background: var(--glow-peach); } .hz-glow-amber { background: var(--glow-amber); }
.hz-glow-rose { background: var(--glow-rose); } .hz-glow-lilac { background: var(--glow-lilac); }
.hz-glow-mist { background: var(--glow-mist); } .hz-glow-lime { background: var(--lime); }
.hz-ambient-content { position: relative; }

/* ---------- Glass ---------- */
.hz-glass { position: relative; border: 1px solid var(--glass-edge); box-shadow: var(--shadow-glass); -webkit-backdrop-filter: blur(var(--blur-md)) saturate(160%); backdrop-filter: blur(var(--blur-md)) saturate(160%); }
.hz-glass-default { background: var(--glass); }
.hz-glass-strong { background: var(--glass-strong); -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(160%); backdrop-filter: blur(var(--blur-lg)) saturate(160%); box-shadow: var(--shadow-float); }
.hz-glass-solid { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hz-r-sm { border-radius: var(--radius-sm); } .hz-r-md { border-radius: var(--radius-md); } .hz-r-lg { border-radius: var(--radius-lg); } .hz-r-xl { border-radius: var(--radius-xl); }
.hz-pad-none { padding: 0; } .hz-pad-sm { padding: var(--space-4); } .hz-pad-md { padding: var(--space-6); } .hz-pad-lg { padding: var(--space-8); }
.hz-interactive { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; cursor: pointer; }
.hz-interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }

/* ---------- Buttons ---------- */
.hz-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: 1px solid transparent; border-radius: var(--radius-pill); font-weight: 600; letter-spacing: .005em; cursor: pointer; white-space: nowrap; transition: background .18s, transform .18s, box-shadow .18s, border-color .18s; }
.hz-btn:active { transform: scale(.98); }
.hz-btn:disabled { opacity: .45; cursor: not-allowed; }
.hz-btn-md { height: 40px; padding: 0 var(--space-5); font-size: 14px; }
.hz-btn-sm { height: 32px; padding: 0 var(--space-4); font-size: 13px; }
.hz-btn-block { display: flex; width: 100%; }
.hz-btn-primary { background: var(--ink-inverse); color: var(--on-inverse); box-shadow: var(--shadow-control); }
.hz-btn-primary:hover { box-shadow: var(--shadow-float); }
.hz-btn-lime { background: var(--lime); color: var(--on-lime); box-shadow: var(--shadow-control); }
.hz-btn-lime:hover { box-shadow: 0 8px 24px rgba(160, 190, 30, 0.35); }
.hz-btn-glass { background: var(--glass-strong); color: var(--ink); border-color: var(--glass-edge); box-shadow: var(--shadow-control); -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm)); }
.hz-btn-glass:hover { background: var(--surface); }
.hz-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-control); }
.hz-btn-ghost:hover { background: var(--surface-hover); }
.hz-btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.hz-btn-danger:hover { background: var(--danger-soft); }

.hz-ibtn { position: relative; display: inline-grid; place-items: center; border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer; flex: none; transition: background .18s, transform .18s, box-shadow .18s; padding: 0; }
.hz-ibtn:active { transform: scale(.95); }
.hz-ibtn-sm { width: 32px; height: 32px; } .hz-ibtn-md { width: 40px; height: 40px; } .hz-ibtn-lg { width: 48px; height: 48px; }
.hz-ibtn-ink { background: var(--ink-inverse); color: var(--on-inverse); }
.hz-ibtn-ink:hover { transform: rotate(45deg); }
.hz-ibtn-glass { background: var(--glass-strong); color: var(--ink); border-color: var(--glass-edge); box-shadow: var(--shadow-control); -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm)); }
.hz-ibtn-glass:hover { background: var(--surface); }
.hz-ibtn-outline { background: transparent; color: var(--ink); border-color: var(--line-control); }
.hz-ibtn-outline:hover { background: var(--surface-hover); }
.hz-ibtn-lime { background: var(--lime); color: var(--on-lime); }
.hz-ibtn-badge { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Pills / Segmented ---------- */
.hz-pills { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }
.hz-pill { display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--line-control); background: var(--glass); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm)); transition: background .18s, color .18s, border-color .18s; }
.hz-pill:hover { background: var(--glass-strong); }
.hz-pill.is-active { background: var(--ink-inverse); color: var(--on-inverse); border-color: var(--ink-inverse); box-shadow: var(--shadow-control); }
.hz-pills-sm .hz-pill { height: 30px; padding: 0 var(--space-3); font-size: 12px; }
.hz-pill-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--line); font-size: 11px; line-height: 20px; text-align: center; font-weight: 600; }
.hz-pill.is-active .hz-pill-count { background: var(--lime); color: var(--on-lime); }

.hz-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--ground-sunken); border: 1px solid var(--line); }
.hz-seg-item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; min-width: 28px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .18s, color .18s; }
.hz-seg-item.is-icon { padding: 0; width: 32px; }
.hz-seg-item:hover { color: var(--ink); }
.hz-seg-item.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-control); }

/* ---------- Chip ---------- */
.hz-chip { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; line-height: 14px; white-space: nowrap; border: 1px solid transparent; }
.hz-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hz-chip-glass { background: var(--glass-strong); color: var(--ink-muted); border-color: var(--glass-edge); -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm)); }
.hz-chip-outline { background: transparent; color: var(--ink-muted); border-color: var(--line-control); }
.hz-chip-lime { background: var(--lime); color: var(--on-lime); }
.hz-chip-lime .hz-chip-dot { background: var(--on-lime); }
.hz-chip-new { background: var(--lime-soft); color: var(--on-lime); }
[data-theme="dark"] .hz-chip-new { color: var(--lime-ink); }
.hz-chip-positive { background: var(--glass-strong); color: var(--positive); border-color: var(--glass-edge); }
.hz-chip-warning { background: var(--glass-strong); color: var(--warning); border-color: var(--glass-edge); }
.hz-chip-danger { background: var(--danger-soft); color: var(--danger); }
.hz-chip-ink { background: var(--ink-inverse); color: var(--on-inverse); }

/* ---------- Numbers ---------- */
.hz-num { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.hz-num-main { font-weight: 300; letter-spacing: -0.035em; }
.hz-num-frac { font-weight: 300; letter-spacing: -0.02em; font-size: .62em; }
.hz-num-unit { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); margin-left: 6px; }
.hz-num-pre { margin: 0 4px 0 0; align-self: flex-start; margin-top: .35em; }
.hz-delta { font-size: 12px; font-weight: 600; margin-left: var(--space-2); align-self: flex-start; margin-top: 6px; }
.hz-delta-positive { color: var(--positive); }
.hz-delta-negative { color: var(--danger); }
.hz-delta-neutral { color: var(--ink-muted); }

/* ---------- StatCard ---------- */
.hz-stat { display: flex; flex-direction: column; background: var(--glass); padding: var(--space-5); min-height: 176px; gap: var(--space-3); }
.hz-stat-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.hz-stat-icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-control); color: var(--ink); }
.hz-stat-alert { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); }
.hz-stat-label { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 20px; }
.hz-stat-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.hz-stat-value { display: flex; align-items: baseline; font-size: 40px; line-height: 1; }
.hz-stat-lg .hz-stat-value { font-size: 64px; }
.hz-stat-viz { flex: 1 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
.hz-stat-footer { font-size: 12px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: var(--space-3); }

/* ---------- GlowCard ---------- */
.hz-glowcard { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); min-height: 200px; border-radius: var(--radius-xl); color: var(--ink); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-glass);
  background:
    radial-gradient(75% 85% at 22% 18%, var(--g1) 0%, transparent 70%),
    radial-gradient(70% 80% at 88% 92%, var(--g2) 0%, transparent 72%),
    linear-gradient(155deg, var(--g3) 0%, var(--g1) 100%); }
.hz-glowcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--hz-sheen) 0%, transparent 38%); pointer-events: none; }
.hz-glowcard::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -24%; z-index: -1; border-radius: 50%; background: var(--g2); filter: blur(48px); opacity: .7; }
.hz-glowcard-sage { --g1: var(--glow-sage); --g2: var(--glow-moss); --g3: var(--glow-mist); }
.hz-glowcard-peach { --g1: var(--glow-peach); --g2: var(--glow-amber); --g3: var(--glow-rose); }
.hz-glowcard-rose { --g1: var(--glow-rose); --g2: var(--glow-peach); --g3: var(--glow-lilac); }
.hz-glowcard-lilac { --g1: var(--glow-lilac); --g2: var(--glow-mist); --g3: var(--glow-rose); }
.hz-glowcard-mist { --g1: var(--glow-mist); --g2: var(--glow-lilac); --g3: var(--glow-sage); }
.hz-glowcard-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; }
.hz-glowcard-title { display: flex; align-items: center; gap: var(--space-3); font-size: 15px; font-weight: 500; }
.hz-glowcard-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--glass); -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm)); }
.hz-glowcard-value { margin-top: auto; font-size: 64px; line-height: 1; display: flex; }
.hz-glowcard-value.is-xl { font-size: 96px; line-height: .95; }
.hz-glowcard-value .hz-num-unit { color: var(--ink); opacity: .8; }
.hz-glowcard-caption { font-size: 13px; font-weight: 500; color: var(--ink); opacity: .85; }
.hz-glowcard-body { display: block; }

/* ---------- Charts ---------- */
.hz-spark { display: block; overflow: visible; }
.hz-spark-line { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.hz-spark-stop-a { stop-color: var(--lime); stop-opacity: .45; }
.hz-spark-stop-b { stop-color: var(--lime); stop-opacity: 0; }
.hz-spark-drop { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: .5; }
.hz-spark-dot { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }
.hz-bars { display: inline-flex; align-items: flex-end; gap: 4px; }
.hz-bar { width: 4px; border-radius: 2px; background: var(--ink); opacity: .78; }
.hz-bar.is-hi { background: var(--lime); opacity: 1; box-shadow: 0 0 0 1px var(--ink) inset; }
.hz-dots { display: inline-flex; gap: 6px; align-items: center; }
.hz-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-control); }
.hz-dot.is-on { background: var(--ink); border-color: var(--ink); }
.hz-dot.is-last { width: 18px; height: 18px; background: var(--lime); border: 1.5px solid var(--ink); }
.hz-ticks { display: flex; gap: 3px; align-items: center; height: 24px; }
.hz-tick { width: 3px; height: 18px; border-radius: 2px; background: var(--ink); opacity: .14; }
.hz-tick.is-on { opacity: .85; }
.hz-tick.is-marker { height: 24px; width: 3px; background: var(--ink); opacity: 1; }
.hz-meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
.hz-meter-label { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.hz-meter-value { font-size: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hz-meter-track { height: 8px; border-radius: var(--radius-pill); background: var(--ground-sunken); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.hz-meter-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--glow-moss), var(--lime)); box-shadow: inset 0 0 0 1px rgba(20, 22, 26, .18); }
.hz-gauge { position: relative; }
.hz-gauge svg { display: block; overflow: visible; }
.hz-gauge-track { fill: none; stroke: var(--line); stroke-width: 2; }
.hz-gauge-arc { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.hz-gauge-tick { stroke: var(--ink); stroke-width: 1.4; opacity: .16; stroke-linecap: round; }
.hz-gauge-tick.is-on { opacity: .7; }
.hz-gauge-needle { stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.hz-gauge-hub { fill: var(--ink); }
.hz-gauge-dot { fill: var(--lime); stroke: var(--ink); stroke-width: 1.5; }
.hz-gauge-center { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }

/* ---------- Fields ---------- */
.hz-search { display: flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 6px 0 var(--space-4); border-radius: var(--radius-pill); background: var(--glass-strong); border: 1px solid var(--line-control); color: var(--ink-muted); box-shadow: var(--shadow-control); -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm)); min-width: 220px; }
.hz-search-lg { height: 48px; }
.hz-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.hz-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--ink); }
.hz-search input::placeholder { color: var(--ink-muted); }
.hz-search input::-webkit-search-cancel-button { display: none; }
.hz-kbd { font-family: var(--font-sans); font-size: 11px; font-weight: 600; color: var(--ink-muted); padding: 3px 8px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--surface); }
.hz-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.hz-field-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.hz-field-hint { font-size: 12px; color: var(--ink-muted); }
.hz-input { position: relative; display: flex; align-items: center; min-height: 40px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-control); transition: box-shadow .18s; }
.hz-input:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.hz-input-el { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; padding: 0 var(--space-3); outline: none; font-size: 14px; color: var(--ink); appearance: none; -webkit-appearance: none; }
.hz-input.is-multi .hz-input-el { height: auto; padding: 10px var(--space-3); resize: vertical; line-height: 20px; }
.hz-input-el::placeholder { color: var(--ink-muted); }
.hz-input-el.is-mono { font-family: var(--font-mono); font-size: 12px; }
.hz-input-suffix { padding-right: var(--space-3); font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.hz-select .hz-input-el { padding-right: 36px; cursor: pointer; }
.hz-select-chev { position: absolute; right: 12px; pointer-events: none; color: var(--ink-muted); }
.hz-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.hz-toggle-label { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 500; }
.hz-toggle { position: relative; width: 44px; height: 26px; border-radius: var(--radius-pill); border: 1px solid var(--line-control); background: var(--ground-sunken); cursor: pointer; padding: 0; transition: background .2s, border-color .2s; flex: none; }
.hz-toggle-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .22s cubic-bezier(.2,.7,.2,1), background .2s; }
.hz-toggle.is-on { background: var(--ink-inverse); border-color: var(--ink-inverse); }
.hz-toggle.is-on .hz-toggle-knob { transform: translateX(18px); background: var(--lime); }
.hz-toggle:disabled { opacity: .45; cursor: not-allowed; }
.hz-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; cursor: pointer; }
.hz-slider input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--hz-pct), var(--ground-sunken) var(--hz-pct)); box-shadow: inset 0 0 0 1px var(--line); }
.hz-slider input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--hz-pct), var(--ground-sunken) var(--hz-pct)); }
.hz-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.hz-slider input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); }
.hz-copy { display: flex; flex-direction: column; gap: var(--space-2); }
.hz-copy-box { display: flex; align-items: center; gap: var(--space-2); padding: 4px 4px 4px var(--space-3); border-radius: var(--radius-sm); background: var(--ground-sunken); border: 1px solid var(--line); }
.hz-copy-text { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-copy .hz-seg { align-self: flex-start; }

/* ---------- SideNav ---------- */
.hz-sidenav { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-5) var(--space-3); min-width: 0; }
.hz-sidenav-head { padding: 0 var(--space-3); }
.hz-sidenav-sec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hz-sidenav-title { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-3); margin-bottom: var(--space-2); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); min-height: 24px; }
.hz-navitem { display: flex; align-items: center; gap: var(--space-3); width: 100%; height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; transition: background .18s, color .18s; }
.hz-navitem:hover { background: var(--glass-strong); color: var(--ink); }
.hz-navitem.is-active { background: var(--ink-inverse); color: var(--on-inverse); box-shadow: var(--shadow-control); }
.hz-navitem-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-navitem-count { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.hz-navitem.is-active .hz-navitem-count { color: var(--on-lime); background: var(--lime); border-radius: var(--radius-pill); padding: 1px 7px; min-width: 0; }
.hz-sidenav-foot { margin-top: auto; padding: 0 var(--space-1); }

/* ---------- Files ---------- */
.hz-thumb { position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4 / 3; isolation: isolate; color: var(--hz-thumb-ink); }
.hz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hz-thumb-art { position: absolute; inset: 0; display: grid; place-items: center; }
.hz-thumb-orb { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(22px); opacity: .9; z-index: -1; }
.hz-thumb-mist { background: linear-gradient(150deg, var(--glow-mist), var(--glow-lilac)); } .hz-thumb-mist .hz-thumb-orb { background: var(--glow-lilac); left: 40%; top: 30%; }
.hz-thumb-sage { background: linear-gradient(150deg, var(--glow-sage), var(--glow-mist)); } .hz-thumb-sage .hz-thumb-orb { background: var(--glow-moss); left: 10%; top: 20%; }
.hz-thumb-peach { background: linear-gradient(150deg, var(--glow-peach), var(--glow-rose)); } .hz-thumb-peach .hz-thumb-orb { background: var(--glow-amber); left: 35%; top: 35%; }
.hz-thumb-rose { background: linear-gradient(150deg, var(--glow-rose), var(--glow-lilac)); } .hz-thumb-rose .hz-thumb-orb { background: var(--glow-peach); left: 5%; top: 40%; }
.hz-thumb-lilac { background: linear-gradient(150deg, var(--glow-lilac), var(--glow-rose)); } .hz-thumb-lilac .hz-thumb-orb { background: var(--glow-mist); left: 30%; top: 5%; }
.hz-thumb-ext { position: absolute; left: 10px; bottom: 10px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 10px; line-height: 22px; font-weight: 700; letter-spacing: .06em; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm)); }
.hz-tile { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-2); padding-bottom: var(--space-3); border-radius: var(--radius-lg); border: 1px solid var(--glass-edge); background: var(--glass); box-shadow: var(--shadow-glass); -webkit-backdrop-filter: blur(var(--blur-md)); backdrop-filter: blur(var(--blur-md)); text-align: left; cursor: pointer; min-width: 0; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .2s; }
.hz-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); background: var(--glass-strong); }
.hz-tile.is-selected { background: var(--glass-strong); box-shadow: 0 0 0 2px var(--ink), var(--shadow-float); }
.hz-tile-check { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); border: 1.5px solid var(--ink); }
.hz-tile-meta { padding: 0 var(--space-2); min-width: 0; }
.hz-tile-name { font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-tile-sub { display: flex; justify-content: space-between; gap: var(--space-2); font-size: 12px; line-height: 16px; color: var(--ink-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.hz-row { display: grid; grid-template-columns: 40px minmax(0, 2.4fr) minmax(0, 1fr) 90px 80px 110px; align-items: center; gap: var(--space-4); width: 100%; padding: 6px var(--space-4) 6px 6px; border: 1px solid transparent; border-radius: var(--radius-pill); background: transparent; text-align: left; cursor: pointer; font-size: 13px; transition: background .18s; }
.hz-row:hover { background: var(--glass-strong); }
.hz-row.is-selected { background: var(--glass-strong); border-color: var(--ink); }
.hz-row-thumb { width: 40px; height: 40px; aspect-ratio: auto; border-radius: 50%; }
.hz-row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-row-cell { color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.hz-row-num { text-align: right; }
.hz-drop { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); border: 1.5px dashed var(--line-control); background: var(--glass); -webkit-backdrop-filter: blur(var(--blur-md)); backdrop-filter: blur(var(--blur-md)); transition: background .2s, border-color .2s; }
.hz-drop.is-over { border-color: var(--ink); background: var(--glass-strong); }
.hz-drop-orb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none; color: var(--on-lime); background: radial-gradient(circle at 35% 30%, var(--lime-soft), var(--lime)); box-shadow: 0 0 0 6px var(--glass-strong); }
.hz-drop-text { flex: 1; min-width: 0; }
.hz-drop-title { font-size: 15px; font-weight: 600; }
.hz-drop-hint { font-size: 12px; color: var(--ink-muted); }
.hz-drop.is-compact { padding: var(--space-3) var(--space-4); }

@media (prefers-reduced-motion: reduce) { .hz-interactive, .hz-tile, .hz-btn, .hz-ibtn, .hz-toggle-knob { transition: none !important; } .hz-ibtn-ink:hover { transform: none; } }

