/* kit.css della library pronto per il browser: font del kit + @theme come :root (stessi valori). Generato da estrai_kit.py. */
@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/os/inter-variable-1.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/os/inter-variable-2.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Skin tokens: the only thing the toggle swaps ---------- */
@property --pos { syntax: '<color>'; inherits: true; initial-value: #10b981; }
@property --act { syntax: '<color>'; inherits: true; initial-value: #f59e0b; }
@property --o1  { syntax: '<color>'; inherits: true; initial-value: #10b981; }
@property --o2  { syntax: '<color>'; inherits: true; initial-value: #f59e0b; }
@property --o3  { syntax: '<color>'; inherits: true; initial-value: #0f766e; }
@property --edge { syntax: '<color>'; inherits: true; initial-value: #8fddff; }
@property --on-act { syntax: '<color>'; inherits: true; initial-value: #1a1204; }

:root {                           /* Deep Ocean + Ice Blue (the only skin) */
  --pos: #8fddff; --act: #38bdf8; --on-act: #04121f; --edge: #8fddff; --orb-k: 2.4;
  --o1: #0a1f44; --o2: #061329; --o3: #0c3a66;
  --bg: #060708; --graphite: #0d1014;
}
:root {
  --ink: #f4f6f8; --ink-2: rgba(244, 246, 248, 0.64); --ink-3: rgba(244, 246, 248, 0.4);
  --spring: cubic-bezier(0.34, 1.3, 0.64, 1); --lift: cubic-bezier(0.19, 1, 0.22, 1);
  transition: --edge 0.7s, --pos 0.7s, --act 0.7s, --o1 0.9s, --o2 0.9s, --o3 0.9s, --on-act 0.7s;
  color-scheme: dark;
}
:root { --font-sans: 'Inter Variable', ui-sans-serif, system-ui, sans-serif; --font-mono: ui-monospace, 'SF Mono', Menlo, monospace; }

html, body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- Ambient light: aurora orbs + grain ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, #0d1014 0%, #060708 70%); }
.orb { position: absolute; border-radius: 50%; filter: blur(130px); opacity: min(1, calc(0.26 * var(--orb-k, 1))); will-change: transform; }
.orb.one   { width: 52vmax; height: 52vmax; left: -22vmax; top: -26vmax; background: var(--o1); animation: drift1 90s ease-in-out infinite alternate; }
.orb.two   { width: 50vmax; height: 50vmax; right: -24vmax; top: 6vh;  background: var(--o2); opacity: min(1, calc(0.17 * var(--orb-k, 1))); animation: drift2 110s ease-in-out infinite alternate; }
.orb.three { width: 56vmax; height: 56vmax; left: 26vw; bottom: -40vmax; background: var(--o3); opacity: min(1, calc(0.22 * var(--orb-k, 1))); animation: drift3 130s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-8vmax, -5vmax, 0) scale(1.12); } }
@keyframes drift3 { to { transform: translate3d(-10vmax, -6vmax, 0) scale(0.94); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Glass: no border, light only ---------- */
.glass {
  --r: 28px; --aura: var(--act);
  isolation: isolate; border: 0; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  -webkit-backdrop-filter: blur(35px) saturate(180%); backdrop-filter: blur(35px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -24px 40px -28px rgba(0,0,0,0.5),
    0 40px 70px -30px rgba(0,0,0,0.7),
    0 10px 24px -12px rgba(0,0,0,0.45),
    0 0 0 0 transparent;
  transition: box-shadow 0.5s var(--spring);
}
/* edge = light that fades, not a line */
.glass:not(.fixed):not(.sticky) { position: relative; }
.glass::before, .pane::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(150deg, color-mix(in srgb, var(--edge) 15%, transparent), color-mix(in srgb, var(--edge) 6%, transparent) 32%, transparent 60%, color-mix(in srgb, var(--edge) 4%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* cursor sheen */
.glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.09), transparent 60%); }
.glass:hover::after { opacity: 1; }
.glass:hover, .glass:focus-within {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -24px 40px -28px rgba(0,0,0,0.5),
    0 40px 70px -30px rgba(0,0,0,0.7),
    0 10px 24px -12px rgba(0,0,0,0.45),
    0 0 32px color-mix(in srgb, var(--aura) 14%, transparent);
}
.glass > * { position: relative; z-index: 1; }

/* ---------- Focus / hover aura: soft light, never an outline ---------- */
.aura { outline: none; transition: box-shadow 0.4s var(--lift), background-color 0.3s; }
.aura:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--act) 28%, transparent), 0 0 12px color-mix(in srgb, var(--act) 60%, transparent) !important; }

/* ---------- Buttons ---------- */
.btn { will-change: transform; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; height: 48px; padding: 0 1.5rem; border: 0; border-radius: 16px;
  font: 600 0.9rem/1 var(--font-sans); letter-spacing: -0.005em; cursor: pointer; white-space: nowrap; }
.btn-primary { color: var(--on-act);
  background: linear-gradient(180deg, color-mix(in srgb, var(--act) 80%, white), var(--act) 62%, color-mix(in srgb, var(--act) 88%, black));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -2px 5px rgba(0,0,0,0.16), 0 4px 10px -4px rgba(0,0,0,0.55), 0 0 6px color-mix(in srgb, var(--act) 18%, transparent); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -2px 5px rgba(0,0,0,0.16), 0 4px 10px -4px rgba(0,0,0,0.55), 0 0 12px color-mix(in srgb, var(--act) 35%, transparent); }
.btn-ghost { color: var(--ink); background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 20px -10px rgba(0,0,0,0.6); }
.btn-ghost:hover { background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 0 12px color-mix(in srgb, var(--act) 22%, transparent); }

/* ---------- Deep inset search ---------- */
.inset-field { display: flex; align-items: center; gap: 0.75rem; height: 52px; padding: 0 1rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.28));
  box-shadow: inset 0 3px 10px rgba(0,0,0,0.7), inset 0 0 0 0 transparent, 0 1px 0 rgba(255,255,255,0.09);
  transition: box-shadow 0.45s var(--spring); }
.inset-field:hover:not(:focus-within) { box-shadow: inset 0 3px 10px rgba(0,0,0,0.7), 0 1px 0 rgba(143,221,255,0.2), 0 0 10px color-mix(in srgb, var(--act) 14%, transparent); }
.inset-field:focus-within { box-shadow: inset 0 3px 10px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.12), 0 0 0 3px color-mix(in srgb, var(--act) 22%, transparent), 0 0 14px color-mix(in srgb, var(--act) 42%, transparent); }
.inset-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 450 0.95rem var(--font-sans); }
.inset-field input::placeholder { color: var(--ink-3); }
kbd { font: 500 0.7rem var(--font-mono); color: var(--ink-3); padding: 3px 7px; border-radius: 7px; background: rgba(255,255,255,0.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }

/* ---------- Small parts ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 0.72rem var(--font-sans); letter-spacing: 0.01em;
  color: var(--pos); background: color-mix(in srgb, var(--pos) 13%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--pos) 30%, transparent); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 10px var(--pos); }
.eyebrow { font: 500 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hair { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); }

@media (prefers-reduced-motion: reduce) {
  .orb.one, .orb.two, .orb.three { animation: none; }
  :root { transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- v4 additions ---------- */
.btn-sm { height: 38px; padding: 0 1rem; border-radius: 13px; font-size: 0.8rem; }
.btn-lg { height: 56px; padding: 0 2rem; font-size: 0.95rem; }
.btn-icon { width: 44px; padding: 0; border-radius: 14px; }
.btn-icon.btn-sm { width: 38px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.scroll-hide { scrollbar-width: none; } .scroll-hide::-webkit-scrollbar { display: none; }
.select { appearance: none; background: none; border: 0; outline: 0; color: var(--ink); font: 450 0.95rem var(--font-sans); flex: 1; min-width: 0; cursor: pointer; }
.select option { background: #0d1014; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(0,0,0,.45); box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.08); transition: background .4s var(--lift), box-shadow .4s var(--lift); }
.switch[aria-checked='true'] { background: color-mix(in srgb, var(--act) 40%, #061329); }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #fff, #cfe9f7); box-shadow: 0 2px 6px rgba(0,0,0,.5); transition: transform .5s var(--lift); }
.switch[aria-checked='true'] i { transform: translateX(20px); }
.switch:hover { box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 0 12px color-mix(in srgb, var(--act) 30%, transparent); }
.slot { background: rgba(255,255,255,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); transition: background .3s; }
.slot:hover:not(:disabled) { background: rgba(143,221,255,.14); }
.switch:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--act) 28%, transparent), 0 0 12px color-mix(in srgb, var(--act) 60%, transparent); }
input[type='range'].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--act) var(--p, 50%), rgba(0,0,0,.45) var(--p, 50%)); box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
input[type='range'].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, #fff, #cfe9f7); box-shadow: 0 2px 8px rgba(0,0,0,.55), 0 0 8px color-mix(in srgb, var(--act) 45%, transparent); }
input[type='range'].slider::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
input[type='range'].slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--act) 30%, transparent), 0 0 12px var(--act); }
.chip.muted { color: var(--ink-2); background: rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.chip.warn { color: #fbbf7a; background: rgba(251,191,122,.1); box-shadow: inset 0 1px 0 rgba(251,191,122,.25); }
.chip.todo { color: var(--ink-3); background: rgba(255,255,255,.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }

/* ---------- Pane: nested glass-lite (no backdrop blur, safe inside .glass) ---------- */
.pane:not(.absolute) { position: relative; }
.pane { border: 0; border-radius: var(--r, 20px); background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 20px 40px -20px rgba(0,0,0,0.6); }
.text-ice { background: linear-gradient(180deg, #ffffff 0%, #cfeeff 45%, #38bdf8 135%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker { animation: ticker 38s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; } }

/* ---------- Shared pills, hover rows, choice cards ---------- */
.pill-row { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.pill-row::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .pill-row { flex-wrap: wrap; overflow: visible; } }
.pill { flex-shrink: 0; white-space: nowrap; height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 13px var(--font-sans); cursor: pointer; transition: background .3s, color .3s, box-shadow .4s var(--lift); }
@media (min-width: 768px) { .pill { height: 40px; } }
.pill:hover { background: rgba(143,221,255,.08); color: var(--ink); }
.pill[aria-pressed='true'] { color: var(--ink); background: linear-gradient(135deg, rgba(143,221,255,.2), rgba(143,221,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.hov { transition: background .3s, color .3s; }
.hov:hover:not(:disabled) { background: rgba(143,221,255,.07); color: var(--ink); }
.choice { background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); transition: background .4s, box-shadow .4s; }
.choice:hover { background: linear-gradient(135deg, rgba(143,221,255,.12), rgba(255,255,255,.03)); box-shadow: inset 0 1px 0 rgba(255,255,255,.24); }
.choice[aria-pressed='true'] { background: linear-gradient(135deg, rgba(143,221,255,.18), rgba(56,189,248,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 12px rgba(56,189,248,.25); }
@media (max-width: 767px) { .fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); } }
button:disabled { cursor: not-allowed; }
.pill.solid { background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.pill.solid:hover { background: linear-gradient(135deg, rgba(143,221,255,.2), rgba(255,255,255,.04)); }
.pill.solid[aria-pressed='true'] { color: var(--on-act); background: linear-gradient(180deg, #8fddff, #38bdf8); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 8px rgba(56,189,248,.3); }
.pill.solid[aria-pressed='true']:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 12px rgba(56,189,248,.35); }

