/* ============================================================
   Sei Cappelli per Pensare — design system
   ============================================================ */

/* Font ospitati in locale: nessuna chiamata a terzi, disponibili anche offline.
   Outfit e Inter sono distribuiti con SIL Open Font License 1.1. */
@font-face{
  font-family:"Outfit";
  src:url("fonts/outfit-latin-var.woff2") format("woff2");
  font-weight:400 800; font-style:normal; font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Inter";
  src:url("fonts/inter-latin-var.woff2") format("woff2");
  font-weight:400 600; font-style:normal; font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  color-scheme: dark;
  --hat: #7c8cf8;
  --hat-soft: rgba(124,140,248,.16);

  --bg:        #0b0e14;
  --bg-2:      #0f1320;
  --surface:   rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.075);
  --stroke:    rgba(255,255,255,.10);
  --stroke-2:  rgba(255,255,255,.18);
  --text:      #eef1f7;
  --text-dim:  #a3adc2;
  --text-mute: #6f7a90;
  --shadow:    0 18px 50px -18px rgba(0,0,0,.75);
  --radius:    20px;
  --radius-sm: 13px;
  --maxw:      680px;
  --ease:      cubic-bezier(.22,1,.36,1);
  --safe-b:    env(safe-area-inset-bottom, 0px);
}

[data-theme="light"]{
  color-scheme: light;
  --bg:        #f6f7fb;
  --bg-2:      #eceffa;
  --surface:   rgba(255,255,255,.78);
  --surface-2: rgba(255,255,255,.95);
  --stroke:    rgba(16,24,48,.10);
  --stroke-2:  rgba(16,24,48,.18);
  --text:      #131a2b;
  --text-dim:  #4d5872;
  --text-mute: #8a94ac;
  --shadow:    0 18px 46px -20px rgba(23,32,62,.30);
}

*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  min-height:100dvh;
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:16px;
  line-height:1.55;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4,.brand-text,.stage-name{ font-family:"Outfit",system-ui,sans-serif; letter-spacing:-.02em; }
h1{ font-size:clamp(1.9rem,7.5vw,2.9rem); line-height:1.08; font-weight:800; margin:.2em 0 .35em; }
h2{ font-size:1.22rem; font-weight:700; margin:0 0 .5em; }
p{ margin:0 0 .8em; }
button{ font:inherit; color:inherit; }
svg{ width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- sfondo aurora ---------- */
.aurora{ position:fixed; inset:0; z-index:-1; overflow:hidden; background:
  radial-gradient(120% 90% at 50% -10%, var(--bg-2) 0%, var(--bg) 60%); }
.blob{ position:absolute; border-radius:50%; filter:blur(70px); opacity:.5;
  transition:background .9s var(--ease); will-change:transform; }
.b1{ width:60vw; height:60vw; max-width:520px; max-height:520px; top:-14vh; left:-18vw;
  background:var(--hat); animation:float1 22s ease-in-out infinite; }
.b2{ width:52vw; height:52vw; max-width:460px; max-height:460px; top:34vh; right:-20vw;
  background:var(--hat); opacity:.32; animation:float2 27s ease-in-out infinite; }
.b3{ width:46vw; height:46vw; max-width:400px; max-height:400px; bottom:-12vh; left:22vw;
  background:var(--hat); opacity:.22; animation:float1 31s ease-in-out infinite reverse; }
[data-theme="light"] .blob{ opacity:.30; filter:blur(80px); }
[data-theme="light"] .b2{ opacity:.20; }
[data-theme="light"] .b3{ opacity:.14; }
.grain{ position:absolute; inset:0; opacity:.035; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes float1{ 50%{ transform:translate3d(8vw,10vh,0) scale(1.15); } }
@keyframes float2{ 50%{ transform:translate3d(-10vw,-8vh,0) scale(.88); } }

/* ---------- topbar ---------- */
.topbar{
  position:sticky; top:0; z-index:40;
  backdrop-filter:blur(14px) saturate(1.4); -webkit-backdrop-filter:blur(14px) saturate(1.4);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px max(16px,env(safe-area-inset-left)) 12px max(16px,env(safe-area-inset-right));
  max-width:var(--maxw); margin:0 auto;
}
.topbar::before{ content:""; position:absolute; inset:0; z-index:-1;
  background:color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);
  mask-image:linear-gradient(to bottom,#000 55%,transparent); }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; }
.brand-hat{ width:34px; height:24px; flex:none; }
.brand-hat .crown{ fill:var(--hat); stroke:none; }
.brand-hat .brim{ fill:color-mix(in srgb, var(--hat) 65%, #000 25%); stroke:none; }
.brand-text{ font-weight:700; font-size:1rem; line-height:1.05; display:flex; flex-direction:column; }
.brand-text small{ font-size:.66rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--text-mute); }
.topbar-actions{ display:flex; gap:8px; }

.icon-btn{
  width:42px; height:42px; flex:none; display:grid; place-items:center;
  border-radius:13px; border:1px solid var(--stroke); background:var(--surface);
  color:var(--text); text-decoration:none;
  cursor:pointer; transition:transform .18s var(--ease), background .2s, border-color .2s;
}
.icon-btn svg{ width:19px; height:19px; }
.icon-btn:active{ transform:scale(.92); }
.icon-btn:hover{ background:var(--surface-2); border-color:var(--stroke-2); }
.icon-btn.ghost{ background:transparent; border-color:transparent; }
.icon-btn.invisible{ visibility:hidden; }
.ico-sun{ display:none; }
[data-theme="light"] .ico-sun{ display:block; }
[data-theme="light"] .ico-moon{ display:none; }

/* ---------- layout viste ---------- */
#app{ max-width:var(--maxw); margin:0 auto;
  padding:8px max(16px,env(safe-area-inset-left)) 40px max(16px,env(safe-area-inset-right)); }
.view{ display:none; }
.view.is-active{ display:block; animation:viewIn .42s var(--ease); }
@keyframes viewIn{ from{ opacity:0; transform:translateY(14px); } }

/* ---------- hero ---------- */
.hero{ padding:22px 2px 26px; }
.eyebrow{ font-size:.72rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--text-mute); margin:0 0 4px; }
.hero h1 em{ font-style:normal; background:linear-gradient(100deg,#f4d35e,#ee6352 34%,#3fb950 62%,#58a6ff);
  -webkit-background-clip:text; background-clip:text; color:transparent; }
.lede{ color:var(--text-dim); font-size:1.02rem; max-width:52ch; }

/* ---------- card ---------- */
.card{
  background:var(--surface); border:1px solid var(--stroke); border-radius:var(--radius);
  padding:20px 18px; box-shadow:var(--shadow);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
}
.card + .section-title{ margin-top:34px; }
.section-title{ font-size:.78rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--text-mute); margin:30px 4px 12px; }

/* ---------- form ---------- */
.field{ display:block; margin-bottom:18px; }
.field-label{ display:block; font-size:.8rem; font-weight:600; color:var(--text-dim); margin-bottom:8px; }
textarea,input[type="text"]{
  width:100%; font:inherit; color:var(--text); resize:none;
  background:color-mix(in srgb, var(--bg) 55%, transparent);
  border:1px solid var(--stroke); border-radius:var(--radius-sm);
  padding:13px 14px; transition:border-color .2s, box-shadow .2s;
}
textarea::placeholder,input::placeholder{ color:var(--text-mute); }
textarea:focus,input:focus{ outline:none; border-color:var(--hat);
  box-shadow:0 0 0 3px var(--hat-soft); }

.segmented{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.seg{ text-align:left; padding:11px 13px; border-radius:var(--radius-sm); cursor:pointer;
  border:1px solid var(--stroke); background:transparent; transition:all .2s var(--ease); }
.seg strong{ display:block; font-size:.9rem; font-weight:600; }
.seg small{ display:block; font-size:.72rem; color:var(--text-mute); line-height:1.3; margin-top:2px; }
.seg.is-on{ border-color:var(--hat); background:var(--hat-soft); }
.seg:active{ transform:scale(.98); }

.chips{ display:flex; flex-wrap:wrap; gap:7px; }
@media (max-width:430px){ .chips .chip{ padding:8px 11px; font-size:.82rem; } }
.chip{ padding:8px 14px; border-radius:999px; cursor:pointer; font-size:.86rem; font-weight:500;
  border:1px solid var(--stroke); background:transparent; transition:all .2s var(--ease); }
.chip.is-on{ border-color:var(--hat); background:var(--hat-soft); color:var(--text); font-weight:600; }
.chip:active{ transform:scale(.94); }

/* ---------- bottoni ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:12px 18px; border-radius:14px; border:1px solid transparent;
  font-weight:600; font-size:.95rem; cursor:pointer; text-decoration:none;
  transition:transform .16s var(--ease), filter .2s, background .2s, border-color .2s;
}
.btn svg{ width:18px; height:18px; flex:none; }
.btn:active{ transform:scale(.96); }
.btn-primary{ background:var(--hat); color:#fff; box-shadow:0 10px 26px -12px var(--hat); }
.btn-primary:hover{ filter:brightness(1.08); }
.btn-ghost{ background:var(--surface); border-color:var(--stroke); color:var(--text); }
.btn-ghost:hover{ background:var(--surface-2); }
.btn-quiet{ background:transparent; border-color:var(--stroke); color:var(--text-dim); }
.btn-quiet:hover{ color:var(--text); border-color:var(--stroke-2); }
.btn-lg{ width:100%; padding:16px; font-size:1.02rem; }
.btn-sm{ padding:7px 12px; font-size:.8rem; border-radius:10px; }
.btn-sm svg{ width:14px; height:14px; }
.btn-round{ width:50px; height:50px; padding:0; border-radius:15px; flex:none; }
.btn-round svg{ width:22px; height:22px; }
.linkish{ background:none; border:0; padding:0; color:var(--hat); font-weight:600;
  font-size:.88rem; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.resume-line{ text-align:center; margin:12px 0 0; }

/* ---------- griglia cappelli ---------- */
.hat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media (min-width:560px){ .hat-grid{ grid-template-columns:repeat(3,1fr); } }
.hat-card{
  position:relative; overflow:hidden; text-align:left; cursor:pointer;
  border:1px solid var(--stroke); border-radius:var(--radius); padding:14px 13px 15px;
  background:var(--surface); transition:transform .22s var(--ease), border-color .2s;
}
.hat-card::after{ content:""; position:absolute; inset:0; opacity:.14; pointer-events:none;
  background:radial-gradient(80% 70% at 50% 0%, var(--c), transparent 70%); }
.hat-card:hover{ transform:translateY(-3px); border-color:var(--c); }
.hat-card:active{ transform:scale(.97); }
.hat-card .hat-ico{ width:40px; height:27px; margin-bottom:8px; }
.hat-card .crown{ fill:var(--c); stroke:none; }
.hat-card .brim{ fill:color-mix(in srgb, var(--c) 62%, #000 30%); stroke:none; }
.hat-card h3{ font-size:1rem; margin:0; font-weight:700; }
.hat-card p{ font-size:.76rem; color:var(--text-mute); margin:2px 0 0; line-height:1.35; }

/* ---------- explainer ---------- */
.card-explainer{ margin-top:14px; }
.steps{ margin:0; padding-left:1.15em; color:var(--text-dim); font-size:.92rem; }
.steps li{ margin-bottom:.55em; }
.steps strong{ color:var(--text); }

.manual-link{ margin-top:16px; text-decoration:none; }

/* ---------- lista sessioni ---------- */
.recent-list{ display:flex; flex-direction:column; gap:9px; }
.recent-item{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer;
  padding:13px 14px; border-radius:var(--radius-sm); border:1px solid var(--stroke);
  background:var(--surface); transition:border-color .2s, transform .16s var(--ease);
}
.recent-item:hover{ border-color:var(--stroke-2); }
.recent-item:active{ transform:scale(.985); }
.recent-dots{ display:flex; gap:3px; flex:none; }
.recent-dots i{ width:7px; height:7px; border-radius:50%; background:var(--c); opacity:.28; }
.recent-dots i.on{ opacity:1; }
.recent-main{ min-width:0; flex:1; }
.recent-main strong{ display:block; font-size:.92rem; font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recent-main span{ font-size:.75rem; color:var(--text-mute); }
.recent-del{ border:0; background:none; color:var(--text-mute); cursor:pointer;
  width:32px; height:32px; flex:none; padding:6px; border-radius:9px; }
.recent-del:hover{ color:#ee6352; background:var(--surface-2); }
.empty-state{ color:var(--text-mute); font-size:.9rem; text-align:center; padding:34px 10px; }

/* ---------- sessione ---------- */
.session-head{ display:flex; align-items:center; gap:8px; padding:6px 0 12px; }
.session-topic{ flex:1; min-width:0; margin:0; font-size:.9rem; font-weight:600; color:var(--text-dim);
  text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.steps-rail{ display:flex; gap:6px; margin-bottom:16px; }
.rail-step{ flex:1; height:34px; border-radius:10px; cursor:pointer; position:relative;
  border:1px solid var(--stroke); background:transparent; overflow:hidden;
  transition:all .25s var(--ease); display:grid; place-items:center; }
.rail-step i{ width:13px; height:9px; display:block; border-radius:9px 9px 3px 3px;
  background:var(--c); opacity:.45; transition:opacity .25s, transform .25s var(--ease); }
.rail-step.done i{ opacity:.95; }
.rail-step.now{ border-color:var(--c); background:color-mix(in srgb, var(--c) 16%, transparent); flex:1.6; }
.rail-step.now i{ opacity:1; transform:scale(1.25); }

.hat-stage{ position:relative; border:1px solid var(--stroke); border-radius:24px;
  padding:20px 17px 18px; background:var(--surface); box-shadow:var(--shadow); overflow:hidden;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.stage-glow{ position:absolute; inset:-40% -20% auto; height:220px; pointer-events:none;
  background:radial-gradient(60% 100% at 50% 100%, var(--hat), transparent 70%); opacity:.20;
  transition:background .5s var(--ease); }
.stage-top{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.stage-hat{ width:64px; height:44px; flex:none; filter:drop-shadow(0 8px 16px color-mix(in srgb, var(--hat) 45%, transparent)); }
.stage-hat .crown{ fill:var(--hat); stroke:none; }
.stage-hat .brim{ fill:color-mix(in srgb, var(--hat) 60%, #000 32%); stroke:none; }
.stage-id{ min-width:0; }
.stage-kicker{ margin:0; font-size:.68rem; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--text-mute); }
.stage-id h2{ margin:1px 0 1px; font-size:1.5rem; color:var(--hat); }
[data-theme="light"] .stage-id h2{ color:color-mix(in srgb, var(--hat) 78%, #000 22%); }
.stage-role{ margin:0; font-size:.85rem; color:var(--text-dim); }

.prompt{ border-radius:var(--radius-sm); border:1px dashed var(--stroke-2);
  background:color-mix(in srgb, var(--hat) 7%, transparent); padding:14px 15px 12px; margin-bottom:14px; }
.prompt p{ margin:0 0 9px; font-size:1rem; font-weight:500; line-height:1.45; }

.timer{ margin-bottom:14px; }
.timer-bar{ height:5px; border-radius:99px; background:var(--surface-2); overflow:hidden; }
.timer-bar i{ display:block; height:100%; width:100%; border-radius:99px; background:var(--hat);
  transform-origin:left; transition:transform .35s linear; }
.timer-row{ display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.timer-clock{ font-variant-numeric:tabular-nums; font-weight:700; font-size:1.05rem; letter-spacing:.02em; }
.timer.is-over .timer-clock{ color:#ee6352; animation:pulse 1s ease-in-out infinite; }
.timer.is-over .timer-bar i{ background:#ee6352; }
@keyframes pulse{ 50%{ opacity:.4; } }
.timer-btns{ display:flex; gap:7px; }

.note-form{ display:flex; gap:9px; margin-bottom:14px; }
.notes{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.note{ display:flex; align-items:flex-start; gap:10px; padding:11px 12px; border-radius:13px;
  background:color-mix(in srgb, var(--hat) 9%, transparent);
  border:1px solid color-mix(in srgb, var(--hat) 22%, transparent);
  animation:noteIn .3s var(--ease); }
@keyframes noteIn{ from{ opacity:0; transform:translateY(-6px) scale(.98); } }
.note p{ margin:0; flex:1; font-size:.94rem; line-height:1.45; word-break:break-word; }
.note button{ border:0; background:none; color:var(--text-mute); cursor:pointer; padding:2px;
  width:22px; height:22px; flex:none; border-radius:6px; }
.note button:hover{ color:#ee6352; }
.notes-empty{ margin:6px 2px 0; font-size:.85rem; color:var(--text-mute); }

.session-nav{ display:flex; gap:10px; margin-top:16px; position:sticky; bottom:0;
  padding:12px 0 calc(8px + var(--safe-b)); z-index:20; }
.session-nav::before{ content:""; position:absolute; inset:-14px -20px calc(-1 * var(--safe-b)) -20px; z-index:-1;
  background:linear-gradient(to top, var(--bg) 62%, transparent); pointer-events:none; }
.session-nav .btn{ flex:1; justify-content:center; }

/* ---------- sintesi ---------- */
.summary-head{ padding:4px 2px 18px; }
.summary-head h1{ font-size:clamp(1.5rem,5.5vw,2rem); margin:.1em 0 .5em; }
.sum-stats{ display:flex; gap:8px; flex-wrap:wrap; }
.sum-stats span{ font-size:.78rem; font-weight:600; padding:5px 11px; border-radius:999px;
  border:1px solid var(--stroke); color:var(--text-dim); }
.sum-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:22px; }
.sum-actions .btn{ flex:1; min-width:96px; justify-content:center; }
.summary-body{ display:flex; flex-direction:column; gap:12px; }
.sum-block{ border:1px solid var(--stroke); border-left:4px solid var(--c);
  border-radius:var(--radius-sm); padding:14px 15px; background:var(--surface); }
.sum-block h3{ margin:0 0 2px; font-size:1.05rem; color:var(--c); }
[data-theme="light"] .sum-block h3{ color:color-mix(in srgb, var(--c) 76%, #000 24%); }
.sum-block .sum-role{ margin:0 0 9px; font-size:.75rem; color:var(--text-mute);
  text-transform:uppercase; letter-spacing:.1em; font-weight:600; }
.sum-block ul{ margin:0; padding-left:1.15em; }
.sum-block li{ margin-bottom:.35em; font-size:.94rem; }
.sum-block .none{ font-size:.86rem; color:var(--text-mute); font-style:italic; margin:0; }
.sum-footer{ margin-top:26px; display:flex; justify-content:center; }

/* ---------- modale ---------- */
.modal{ position:fixed; inset:0; z-index:80; display:grid; place-items:end center; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(4,6,12,.6);
  backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); animation:fade .25s ease; }
@keyframes fade{ from{ opacity:0; } }
.modal-card{ position:relative; width:100%; max-width:var(--maxw); max-height:88dvh; overflow:auto;
  background:var(--bg-2); border:1px solid var(--stroke); border-bottom:0;
  border-radius:26px 26px 0 0; padding:26px 20px calc(30px + var(--safe-b));
  animation:sheetIn .34s var(--ease); }
@keyframes sheetIn{ from{ transform:translateY(100%); } }
@media (min-width:620px){
  .modal{ place-items:center; padding:20px; }
  .modal-card{ border-radius:24px; border-bottom:1px solid var(--stroke); animation:viewIn .3s var(--ease); }
}
.modal-x{ position:absolute; top:14px; right:14px; }
.modal-hat{ width:74px; height:50px; margin-bottom:10px; }
.modal-hat .crown{ fill:var(--c); stroke:none; }
.modal-hat .brim{ fill:color-mix(in srgb, var(--c) 60%, #000 32%); stroke:none; }
.modal-card h3{ margin:0; font-size:1.6rem; color:var(--c); }
[data-theme="light"] .modal-card h3{ color:color-mix(in srgb, var(--c) 76%, #000 24%); }
.modal-role{ margin:2px 0 12px; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase;
  font-weight:600; color:var(--text-mute); }
.modal-card h4{ margin:18px 0 6px; font-size:.76rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--text-mute); }
.modal-card ul{ margin:0; padding-left:1.15em; color:var(--text-dim); }
.modal-card li{ margin-bottom:.3em; }
.modal-avoid{ color:var(--text-dim); margin:0; }

/* ---------- toast ---------- */
.toast{ position:fixed; left:50%; bottom:calc(22px + var(--safe-b)); transform:translate(-50%,220%);
  z-index:90; padding:11px 20px; border-radius:999px; font-size:.88rem; font-weight:600;
  background:var(--text); color:var(--bg); box-shadow:var(--shadow); opacity:0; visibility:hidden;
  transition:transform .38s var(--ease), opacity .25s, visibility .38s; pointer-events:none; }
.toast.show{ transform:translate(-50%,0); opacity:1; visibility:visible; }

/* ---------- footer ---------- */
.foot{ max-width:var(--maxw); margin:0 auto; padding:26px 20px calc(30px + var(--safe-b));
  text-align:center; }
.foot p{ font-size:.76rem; color:var(--text-mute); margin:0; }
.foot p + p{ margin-top:8px; }
.foot-link{ color:var(--text-dim); text-decoration:underline; text-underline-offset:3px; }
.foot-link:hover{ color:var(--hat); }

/* ---------- accessibilità / stampa ---------- */
:focus-visible{ outline:2px solid var(--hat); outline-offset:2px; border-radius:6px; }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important; }
}
@media print{
  .topbar,.foot,.sum-actions,.session-head,.aurora,.toast,.sum-footer{ display:none !important; }
  body{ background:#fff; color:#000; }
  .sum-block{ break-inside:avoid; border:1px solid #ccc; background:#fff; }
  #app{ max-width:none; padding:0; }
}
