/* Appuntista · interfaccia 2026
   Colonna singola larga quanto un telefono (centrata su computer), barra di navigazione in basso,
   tema scuro come nel modello approvato e tema chiaro con la stessa struttura. */
:root{
  --bg:#EEF2F4; --surface:#FFFFFF; --sunk:#E3E9EC; --line:#D3DCE0; --ink:#14232B; --soft:#33454D; --muted:#56666E;
  --primary:#0E6B66; --primary-ink:#FFFFFF; --primary-soft:#D6ECEA; --primary-tint:#E3F2F0; --primary-text:#0E6B66;
  --yellow:#F2CF4A; --yellow-ink:#2A2205; --yellow-soft:#FFF3C4; --yellow-text:#7A5C00;
  --coral:#E8644A; --coral-ink:#B23F28; --rec:#E5483A;
  --ok:#1F7A47; --warn:#9A6516;
  --mark:#FFE36B; --mark-ink:#14232B;
  --shadow:0 1px 2px rgba(20,35,43,.06),0 10px 30px rgba(20,35,43,.10);
  --f-display:"Bricolage Grotesque",ui-sans-serif,system-ui,sans-serif;
  --f-body:"Figtree",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-doc:"Literata",Georgia,"Times New Roman",serif;
  --r:18px; --tabh:72px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0E161B; --surface:#16222A; --sunk:#1D2B34; --line:#2A3A44; --ink:#E6EEF1; --soft:#B9C7CD; --muted:#93A6AE;
  --primary:#3FB9AE; --primary-ink:#06221F; --primary-soft:#1F3A3A; --primary-tint:#13302F; --primary-text:#6FD3C9;
  --yellow:#F2CF4A; --yellow-ink:#2A2205; --yellow-soft:#3A3415; --yellow-text:#F2CF4A;
  --coral:#F07C63; --coral-ink:#FF8A80; --rec:#FF6B5E; --ok:#5CC48A; --warn:#E0A84A;
  --mark:#E9CB45; --mark-ink:#14232B;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.35); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0E161B; --surface:#16222A; --sunk:#1D2B34; --line:#2A3A44; --ink:#E6EEF1; --soft:#B9C7CD; --muted:#93A6AE;
  --primary:#3FB9AE; --primary-ink:#06221F; --primary-soft:#1F3A3A; --primary-tint:#13302F; --primary-text:#6FD3C9;
  --yellow:#F2CF4A; --yellow-ink:#2A2205; --yellow-soft:#3A3415; --yellow-text:#F2CF4A;
  --coral:#F07C63; --coral-ink:#FF8A80; --rec:#FF6B5E; --ok:#5CC48A; --warn:#E0A84A;
  --mark:#E9CB45; --mark-ink:#14232B;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.35); color-scheme:dark}

/* ---------------------------------------------------------------- base */
*{box-sizing:border-box}
html,body{min-height:100%}
html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + 80px);touch-action:manipulation;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.5 var(--f-body);
  padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
body.tabs{padding-bottom:calc(var(--tabh) + env(safe-area-inset-bottom,0px))}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a,button,input,select,textarea,label,summary,[role=button]{touch-action:manipulation}
input,select,textarea{font-size:max(16px,1em)}
:focus-visible{outline:3px solid var(--primary);outline-offset:2px;border-radius:8px}
[hidden]{display:none!important}
a{color:var(--primary-text)}
::placeholder{color:var(--muted);opacity:.8}
.app{max-width:460px;margin:0 auto;padding-block:0 40px;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body.wide .app{max-width:1080px}
body.reading .app,body.focus .app{padding-bottom:0}

/* ---------------------------------------------------------------- intestazione */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--bg);display:flex;align-items:center;gap:10px;padding-block:18px 10px}
body.nohead .top{display:none}
/* Senza intestazione il contenuto non deve finire sotto l'orologio del telefono. */
body.nohead:not(.reading):not(.focus) .app{padding-top:env(safe-area-inset-top,0px)}
.brand{font:800 22px/1 var(--f-display);letter-spacing:-.02em;display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;flex:1;min-width:0}
img.logo{width:34px;height:34px;border-radius:10px;display:block}
.topnav{display:flex;gap:18px;margin-right:6px}
.topnav a{color:var(--muted);font-weight:600;text-decoration:none}
.topnav a:hover{color:var(--ink)}
@media (max-width:640px){.topnav{display:none}}
.pillbtn{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font-weight:600;font-size:15px;padding:10px 16px;border:1px solid var(--line);border-radius:999px;white-space:nowrap}
.mechip{display:inline-flex;align-items:center;gap:8px;padding:5px 10px 5px 5px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;font-variant-numeric:tabular-nums}
.mechip .mchev{width:14px;height:14px;stroke:var(--muted);margin-left:-2px}
.mechip .av{width:32px;height:32px;border-radius:50%;background:var(--primary-soft);color:var(--primary-text);display:grid;place-items:center;font-weight:700;text-transform:uppercase}

/* Barra con il pulsante indietro, in cima alle schermate interne */
.bar{display:flex;align-items:center;gap:12px;padding-block:18px 4px;min-height:62px}
.bar h1{margin:0;font:800 26px/1.15 var(--f-display);letter-spacing:-.02em;flex:1;min-width:0}
.bar .sub{flex:1;min-width:0;font-size:15px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar .grow{flex:1}
.sqbtn{flex:none;width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:transparent;display:grid;place-items:center;color:var(--ink);text-decoration:none;position:relative}
.sqbtn svg{width:20px;height:20px;stroke:currentColor}
.sqbtn.fill svg{fill:currentColor;stroke:none}

/* Barra di navigazione in basso */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:8;background:var(--bg);border-top:1px solid var(--sunk);
  padding:8px max(12px,env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px))}
.tabbar div{max-width:460px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;color:var(--muted);font-size:12px;font-weight:600;text-decoration:none;border-radius:12px}
.tabbar a svg{width:24px;height:24px;stroke:currentColor}
.tabbar a[aria-current=page]{color:var(--primary-text);font-weight:700}

/* ---------------------------------------------------------------- testi */
h1{font:800 30px/1.12 var(--f-display);letter-spacing:-.02em;margin:0;text-wrap:balance}
h2{font:800 22px/1.2 var(--f-display);letter-spacing:-.01em;margin:0;text-wrap:balance}
h3{font:700 18px/1.25 var(--f-display);margin:0}
.lead{color:var(--soft);margin:0;font-size:17px;line-height:1.55}
.eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.note{font-size:14.5px;color:var(--muted);line-height:1.5}
.note a{color:var(--primary-text)}
.mk{color:var(--yellow-text)}
.screen{display:flex;flex-direction:column;gap:18px}
.screen.gap0{gap:0}
.sechead{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.card{background:var(--surface);border-radius:var(--r);padding:18px}
.card.line{border:1px solid var(--line)}
.empty{color:var(--muted);font-size:15px;text-align:center;padding:14px}
.center{text-align:center}

/* ---------------------------------------------------------------- pulsanti */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:16px;border:0;min-height:54px;padding:14px 18px;font-weight:700;font-size:17px;text-decoration:none;line-height:1.2;text-align:center}
.btn svg{width:22px;height:22px;stroke:currentColor;flex:none}
.btn-primary{background:var(--primary);color:var(--primary-ink)}
.btn-yellow{background:var(--yellow);color:var(--yellow-ink)}
.btn-ghost{background:transparent;border:1px solid var(--line);color:var(--ink);font-weight:600;font-size:16px}
.btn-soft{background:var(--surface);color:var(--ink)}
.btn-danger{background:var(--coral);color:#fff}
.btn-block{width:100%}
.btn-sm{min-height:44px;padding:9px 14px;font-size:15px;border-radius:12px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btnrow{display:flex;gap:10px;flex-wrap:wrap}
.btnrow .btn{flex:1;min-width:140px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.linkbtn{background:none;border:0;color:var(--primary-text);font-weight:600;padding:6px 2px;text-decoration:underline;text-underline-offset:3px;font-size:15px}
.linkbtn.danger{color:var(--coral-ink);text-decoration:none}
.delles{display:inline-flex;align-items:center;gap:8px;align-self:center;margin-top:28px}
.delles svg{width:18px;height:18px;stroke:currentColor}
.screen .delles{margin-top:6px}
.linkrow{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:15px}
.spin{width:18px;height:18px;border-radius:50%;border:2.5px solid currentColor;border-right-color:transparent;animation:rot .8s linear infinite;display:inline-block;flex:none}
@keyframes rot{to{transform:rotate(360deg)}}

/* ---------------------------------------------------------------- moduli */
.field{display:flex;flex-direction:column;gap:8px}
.field label{font-weight:600;font-size:14px;color:var(--soft)}
.field label small{font-weight:400;color:var(--muted);font-size:14px}
.field input,.field select,.field textarea{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:13px 16px;width:100%;min-height:52px;color:var(--ink)}
.field textarea{resize:vertical;min-height:100px}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.field input.strong{font-weight:600}
.codeinput{height:64px;border:2px solid var(--primary)!important;font:700 30px/1 var(--f-body)!important;letter-spacing:.4em;text-align:center;font-variant-numeric:tabular-nums}
.codeinput::placeholder{letter-spacing:.4em}
.consent{display:flex;gap:12px;align-items:flex-start;font-size:13.5px;line-height:1.5;color:var(--muted)}
.consent input{width:22px;height:22px;accent-color:var(--primary);flex:none;margin:0}
.consent a{color:var(--primary-text)}
.err{background:color-mix(in srgb,var(--coral) 14%,transparent);color:var(--ink);border:1px solid color-mix(in srgb,var(--coral-ink) 50%,transparent);border-radius:14px;padding:12px 14px;font-size:15px}
.info{background:var(--primary-tint);color:var(--ink);border-radius:14px;padding:12px 14px;font-size:15px}
.confirm{display:flex;flex-direction:column;gap:12px;border:1px solid var(--coral);border-radius:16px;padding:16px;background:var(--surface)}
.seg{display:flex;background:var(--sunk);border-radius:12px;padding:3px;gap:2px}
.seg button,.seg a{flex:1;border:0;background:none;padding:9px 6px;border-radius:9px;font-weight:600;font-size:14px;color:var(--muted);text-align:center;text-decoration:none}
.seg [aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;flex-wrap:nowrap}
.chips.wrap{flex-wrap:wrap}
.fchip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 13px;font-size:14px;font-weight:600;white-space:nowrap;color:var(--soft)}
.fchip.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}

/* ---------------------------------------------------------------- pagina pubblica */
.land{display:flex;flex-direction:column;gap:56px;padding-block:20px 10px}
.lhero{display:grid;gap:36px;align-items:center}
@media (min-width:860px){.lhero{grid-template-columns:1.05fr .95fr;gap:56px;padding-top:24px}}
.lcopy{display:flex;flex-direction:column;gap:18px}
h1.big{font-size:clamp(40px,7vw,60px);line-height:1.02;letter-spacing:-.03em}
.lead.lg{font-size:17px;max-width:34em}
.lctas{display:flex;gap:10px;flex-wrap:wrap}
.lctas .btn{flex:1;min-width:180px}
@media (min-width:860px){.lctas .btn{flex:none}}
.ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;color:var(--soft);font-size:15.5px}
.ticks li{display:flex;gap:10px;align-items:center}
.ticks svg{width:18px;height:18px;stroke:var(--primary);flex:none}
.sample{background:#F7F5EE;color:#1B2A30;border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:10px;max-width:460px;width:100%;margin-inline:auto;box-shadow:var(--shadow)}
.sample .shead{display:flex;justify-content:space-between;align-items:center;gap:10px}
.sample .shead span:first-child{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#0E6B66;font-weight:700}
.sample .shead span:last-child{font-size:11px;color:#6B7A80}
.sample .stitle{font:800 22px/1.15 var(--f-display)}
.sample hr{border:0;height:1px;background:#E2DDD0;margin:0}
.sample h4{margin:0;font-weight:700;font-size:14px;color:#0E6B66}
.sample p{margin:0;font-size:13.5px;line-height:1.6;color:#34444A}
.sample mark{background:#F2CF4A66;color:inherit;padding:0 3px;border-radius:3px}
.sample .nb{background:#FFF3C4;border-radius:10px;padding:10px 12px;font-size:12.5px;color:#5C4A00}
.lsec{display:flex;flex-direction:column;gap:18px;scroll-margin-top:80px}
.h2big{font:800 clamp(26px,3.6vw,34px)/1.12 var(--f-display);letter-spacing:-.02em;margin:0}
.steps{display:grid;gap:22px}
@media (min-width:760px){.steps{grid-template-columns:repeat(3,1fr)}}
.step{display:flex;gap:16px;align-items:flex-start}
.step .num{flex:none;width:36px;height:36px;border-radius:50%;background:var(--sunk);display:grid;place-items:center;font-weight:700;color:var(--yellow-text)}
.step b{display:block;font-size:17px;margin-bottom:4px}
.step span{color:var(--muted);font-size:15.5px;line-height:1.5}
.feats{display:grid;gap:14px}
@media (min-width:760px){.feats{grid-template-columns:repeat(2,1fr)}}
.feats>div{border-left:4px solid var(--yellow);padding:4px 0 4px 14px;display:flex;flex-direction:column;gap:2px}
.feats b{font:700 17px/1.3 var(--f-display)}
.feats span{color:var(--muted);font-size:15.5px}
.anyaudio{display:flex;flex-direction:column;gap:14px;background:var(--yellow);color:var(--yellow-ink);border-radius:22px;padding:24px 22px}
.anyaudio .ahead{display:flex;align-items:center;gap:14px}
.anyaudio .ico{width:48px;height:48px;border-radius:14px;background:rgba(42,34,5,.12);display:grid;place-items:center;flex:none}
.anyaudio .ico svg{width:24px;height:24px;stroke:var(--yellow-ink)}
.anyaudio h2{color:var(--yellow-ink)}
.anyaudio p{margin:0;font-size:16.5px;line-height:1.55}
.anyaudio .note{color:var(--yellow-ink);opacity:.75;font-size:15px}
.prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:760px){.prices{max-width:640px}}
.price{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:6px}
.price.hl{background:var(--primary-tint);border:1.5px solid var(--primary)}
.price b{font-weight:700}
.price .amt{font:800 28px/1.1 var(--f-display);font-variant-numeric:tabular-nums}
.price span{color:var(--muted);font-size:14.5px;line-height:1.45}
.price.hl span{color:var(--soft)}
.faq{display:flex;flex-direction:column;max-width:760px}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{display:flex;justify-content:space-between;gap:12px;padding:16px 0;font-size:16.5px;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--muted);font-size:20px;line-height:1}
.faq details[open] summary::after{content:"−"}
.faq p{margin:0 0 16px;color:var(--muted);line-height:1.55}
.logincard{background:var(--surface);border-radius:22px;padding:24px;max-width:480px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:16px}
.logincard form{display:flex;flex-direction:column;gap:16px}
.backlink{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:4px 0;color:var(--muted);font-weight:600;font-size:15px;align-self:flex-start}
.backlink svg{width:18px;height:18px;stroke:currentColor}
.invited{display:flex;gap:10px;align-items:flex-start;background:var(--yellow);color:var(--yellow-ink);border-radius:14px;padding:12px 14px;font-weight:600;font-size:15px}
.invited svg{width:18px;height:18px;stroke:currentColor;flex:none;margin-top:2px}
.foot{border-top:1px solid var(--line);margin-top:44px;padding-top:18px;display:flex;flex-direction:column;gap:10px;font-size:13px;color:var(--muted)}
.foot .links{display:flex;gap:18px;flex-wrap:wrap}
.foot a{color:var(--muted)}

/* ---------------------------------------------------------------- home */
.home{display:flex;flex-direction:column;padding-top:12px}
.bigacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.bigact{border:0;text-align:left;border-radius:22px;padding:20px 18px;min-height:150px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;text-decoration:none;font:inherit}
.bigact .ic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center}
.bigact .ic svg{width:24px;height:24px;stroke:currentColor}
.bigact span:last-child{display:flex;flex-direction:column;gap:2px}
.bigact b{font-size:20px;line-height:1.2}
.bigact small{font-size:14px;opacity:.75}
.bigact.rec{background:var(--yellow);color:var(--yellow-ink)}
.bigact.rec .ic{background:rgba(42,34,5,.1)}
.bigact.up{background:var(--primary);color:var(--primary-ink)}
.bigact.up .ic{background:rgba(6,34,31,.1)}
:root[data-theme="light"] .bigact.up .ic{background:rgba(255,255,255,.16)}
.bigact:disabled{opacity:.6}
.hint{margin:18px 4px 0;font-size:14.5px;line-height:1.55;color:var(--muted)}
.home .sechead{margin-top:36px}
.list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.row{display:flex;align-items:center;border-radius:18px;background:var(--surface);width:100%}
.rowlink{flex:1;min-width:0;display:flex;align-items:center;gap:14px;padding:16px 6px 16px 16px;text-decoration:none;color:inherit;border-radius:18px}
.trash{flex:none;width:44px;height:44px;margin-right:6px;border:0;border-radius:12px;background:transparent;color:var(--muted);display:grid;place-items:center}
.trash svg{width:20px;height:20px;stroke:currentColor}
.trash:hover,.trash:focus-visible{color:var(--coral-ink);background:color-mix(in srgb,var(--coral) 12%,transparent)}
.row .meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.row .meta b{font-size:16px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.row .meta small{font-size:13.5px;color:var(--muted)}
.thumb{flex:none;width:44px;height:52px;border-radius:8px}
.thumb.doc{background:#F7F5EE;display:flex;flex-direction:column;gap:4px;padding:9px 8px}
.thumb.doc i{height:2px;background:#CFC9BA;border-radius:2px}
.thumb.doc i:first-child{height:3px;width:70%;background:#0E6B66}
.thumb.doc i:last-child{width:80%}
.thumb.doc.blur i:not(:first-child){background:#E0DACB}
.thumb.work{background:var(--sunk);display:grid;place-items:center}
.thumb.work svg{width:20px;height:20px;stroke:var(--yellow-text);animation:rot 1.4s linear infinite}
.thumb.draft{border:1.5px dashed var(--line)}
.thumb.fail{background:color-mix(in srgb,var(--coral) 16%,transparent);display:grid;place-items:center;color:var(--coral-ink);font:800 22px var(--f-display)}
.pill{flex:none;font-size:12px;font-weight:700;border-radius:999px;padding:5px 10px;white-space:nowrap}
.pill.ok{background:var(--primary-soft);color:var(--primary-text)}
.pill.lock{background:var(--yellow);color:var(--yellow-ink)}
.pill.work{background:var(--yellow-soft);color:var(--yellow-text)}
.pill.draft{background:var(--sunk);color:var(--soft)}
.pill.fail{background:color-mix(in srgb,var(--coral) 18%,transparent);color:var(--coral-ink)}
.filters{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.filters input[type=search]{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:12px 16px;width:100%;color:var(--ink)}
.group{display:flex;flex-direction:column;gap:10px}
.group+.group{margin-top:10px}
.ghead{display:flex;justify-content:space-between;align-items:baseline;padding:4px 4px 0}
.ghead b{font:700 15px/1.2 var(--f-display);color:var(--soft)}
.emptylist{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:28px 16px;border:1.5px dashed var(--line);border-radius:18px;color:var(--muted)}
.emptylist svg{width:30px;height:30px;stroke:var(--primary)}
.emptylist b{color:var(--ink)}

/* Spazi pubblicitari e banner musicale */
.adslot{display:flex;flex-direction:column;gap:6px;min-height:100px;margin-top:22px}
.adslot.own{min-height:0}
.screen .adslot{margin-top:0}
.adlabel{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.adlabel a{color:var(--primary-text);text-transform:none;letter-spacing:0}
.adfake{border:1px dashed var(--line);border-radius:12px;background:var(--sunk);color:var(--muted);display:grid;place-items:center;min-height:100px;font-size:13px}
.promo{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:14px;text-decoration:none;background:#121212;color:#fff;border:1px solid #2a2a2a}
.promo:hover{border-color:#1DB954}
.promotag{font-size:10.5px;text-transform:uppercase;letter-spacing:.08em;color:#a7a7a7}
.promorow{display:flex;align-items:center;gap:12px}
.promoic{flex:none;width:44px;height:44px;border-radius:8px;display:grid;place-items:center;background:#1DB954;color:#000}
.promoic svg{width:20px;height:20px;stroke:#000}
.promotx{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.promotx b{font-size:16px;color:#fff}
.promotx span{font-size:13px;color:#b3b3b3}
.promobtn{flex:none;font-weight:700;font-size:13px;color:#1DB954}

/* ---------------------------------------------------------------- nuova lezione */
.picker{border:1.5px dashed var(--primary);background:var(--primary-tint);color:var(--ink);border-radius:20px;padding:24px;display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}
.picker svg{width:28px;height:28px;stroke:var(--primary-text)}
.picker b{font-size:17px}
.picker span{font-size:13.5px;color:var(--muted)}
.picker.over{background:var(--primary-soft)}
.recrow{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;background:var(--surface);color:var(--ink);text-decoration:none;font-weight:600}
.recrow .ic{width:36px;height:36px;border-radius:10px;background:var(--yellow);display:grid;place-items:center;flex:none}
.recrow .ic svg{width:20px;height:20px;stroke:var(--yellow-ink)}
.recrow span{flex:1}
.recrow small{display:block;font-weight:400;color:var(--muted);font-size:13.5px}
.recrow>svg{width:18px;height:18px;stroke:var(--muted)}
.memohelp{background:var(--surface);border-radius:14px;padding:14px 16px;font-size:15px;color:var(--soft)}
.memohelp summary{cursor:pointer;font-weight:600;color:var(--ink);list-style:none;display:flex;gap:10px;align-items:center}
.memohelp summary::-webkit-details-marker{display:none}
.memohelp summary::after{content:"+";margin-left:auto;color:var(--muted);font-size:20px;line-height:1}
.memohelp[open] summary::after{content:"−"}
.memohelp ol{margin:12px 0 2px;padding-left:20px;display:grid;gap:8px;line-height:1.5}
.memohelp p{margin:12px 0 0}
.files{display:flex;flex-direction:column;gap:10px}
.file{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:14px;background:var(--surface)}
.file .fr{display:flex;align-items:center;gap:12px}
.file .n{width:28px;height:28px;border-radius:8px;background:var(--primary-soft);color:var(--primary-text);display:grid;place-items:center;font-size:13px;font-weight:700;flex:none;font-variant-numeric:tabular-nums}
.file .fm{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.file .fm b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file .fm small{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.playbtn{width:36px;height:36px;border-radius:50%;border:0;background:var(--primary-soft);color:var(--primary-text);display:grid;place-items:center;flex:none}
.playbtn svg{width:16px;height:16px;stroke:currentColor}
.file.playing .playbtn{background:var(--primary);color:var(--primary-ink)}
.file .pl{display:flex;align-items:center;gap:12px}
.file .seek{flex:1;min-width:0;accent-color:var(--primary);height:28px;margin:0}
.file .ptime{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.file .okic{width:20px;height:20px;stroke:var(--primary-text);flex:none}
.file .up{height:6px;border-radius:3px;background:var(--sunk);overflow:hidden}
.file .up i{display:block;height:100%;background:var(--primary);border-radius:3px;width:0;transition:width .2s}
.file.err-state{box-shadow:inset 0 0 0 1.5px var(--coral)}
.file.err-state .n{background:color-mix(in srgb,var(--coral) 20%,transparent);color:var(--coral-ink)}
.mini{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:transparent;display:grid;place-items:center;flex:none;color:var(--ink)}
.mini svg{width:16px;height:16px;stroke:currentColor}
.mini:disabled{opacity:.35}
.totals{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14.5px;color:var(--soft);padding:0 4px}
.totals b{color:var(--ink)}
.cta{display:flex;flex-direction:column;gap:12px}
.cta .note{text-align:center}

/* ---------------------------------------------------------------- registrazione */
body.focus{padding-bottom:0}
.recscreen{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;padding:calc(20px + env(safe-area-inset-top,0px)) 0 calc(20px + env(safe-area-inset-bottom,0px))}
.rechead{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.recstate{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:var(--muted)}
.recstate i{width:10px;height:10px;border-radius:50%;background:currentColor}
.recstate.on{color:var(--rec)}
.recstate.on i{animation:blink 1.2s ease-in-out infinite}
@keyframes blink{50%{opacity:.25}}
.rectitle{font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.rectime{margin-top:clamp(36px,10vh,90px);display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.timer{font:800 72px/1 var(--f-display);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rectime p{margin:0;font-size:15px;color:var(--muted)}
canvas#wave{margin-top:36px;width:100%;height:90px;display:block}
.saved{margin-top:36px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;color:var(--muted);text-align:center;min-height:21px}
.saved svg{width:18px;height:18px;stroke:var(--primary-text);flex:none}
.saved.wait svg{stroke:var(--yellow-text)}
.keepon-ic{margin-top:auto;align-self:center;width:22px;height:22px;stroke:var(--yellow);flex:none}
.keepon{margin-top:8px;margin-bottom:76px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:10px 8px;border-radius:12px;background:var(--yellow);color:var(--yellow-ink)}
.keepon b{font-size:13.5px;line-height:1.25;letter-spacing:-.01em}
.keepon span{font-size:12px;opacity:.8}
@media (min-width:360px){.keepon b{white-space:nowrap}}
@media (max-height:700px){.keepon{margin-bottom:28px}}
.recbtns{margin-top:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.recbtns .btn{min-height:64px;border-radius:18px;font-size:17px}
.recbtns .btn-soft{border:1px solid var(--line)}
.recbtns.one{grid-template-columns:1fr}
.recfoot{margin-top:14px;text-align:center;font-size:13px;color:var(--muted)}
#rmsg:not(:empty){margin-top:16px}

/* ---------------------------------------------------------------- elaborazione */
.procscreen{display:flex;flex-direction:column;min-height:calc(100vh - var(--tabh) - 40px);min-height:calc(100dvh - var(--tabh) - 40px)}
.prochero{margin-top:clamp(28px,7vh,70px);display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
.prochero .big{width:96px;height:96px;border-radius:28px;background:var(--primary-tint);display:grid;place-items:center}
.prochero .big svg{width:44px;height:44px;stroke:var(--primary-text)}
.prochero h1{font-size:28px}
.prochero p{margin:0;font-size:16px;line-height:1.55;color:var(--soft);max-width:320px}
.psteps{margin-top:40px;display:flex;flex-direction:column;padding:8px 18px;border-radius:18px;background:var(--surface)}
.pstep{display:flex;align-items:center;gap:14px;padding:12px 0}
.pstep+.pstep{border-top:1px solid var(--sunk)}
.pstep .st{width:22px;height:22px;flex:none;display:grid;place-items:center}
.pstep .st svg{width:22px;height:22px;stroke:var(--primary-text)}
.pstep .st .ring{width:22px;height:22px;border-radius:50%;border:2px solid var(--line)}
.pstep .st .arc{width:20px;height:20px;border-radius:50%;border:2.4px solid var(--yellow);border-right-color:transparent;animation:rot 1s linear infinite}
.pstep .lb{flex:1;font-size:16px}
.pstep .rt{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.pstep.active .lb{font-weight:700}
.pstep.active .rt{color:var(--yellow-text)}
.pstep.todo{color:var(--muted)}
.procscreen .btn-ghost{margin-top:auto}
.procscreen .spacer{height:24px}

/* ---------------------------------------------------------------- dispensa pronta */
.ready{display:flex;flex-direction:column;gap:0}
.ready .head{margin-top:20px;display:flex;flex-direction:column;gap:8px}
.ready .head .pill{align-self:flex-start}
.ready .head .meta{font-size:14px;color:var(--muted)}
.ready .mainbtn{margin-top:24px}
.ready .grid2{margin-top:10px}
.ready .grid2 .btn{min-height:50px;font-size:15px}
.ready h2.sec{margin:34px 0 10px;font-size:20px}
.toc{display:flex;flex-direction:column;border-radius:18px;background:var(--surface);padding:4px 16px}
.toc a{text-decoration:none;color:inherit;display:flex;gap:12px;padding:14px 0;font-size:15.5px}
.toc a+a{border-top:1px solid var(--sunk)}
.toc a span:first-child{color:var(--yellow-text);font-weight:700;min-width:1.2em;font-variant-numeric:tabular-nums}
.toc a span:nth-child(2){flex:1}
.toc .chv,.bmrow .chv{width:18px;height:18px;stroke:var(--muted);fill:none!important;flex:none;align-self:center}
.bmrow{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:14px;background:var(--surface);text-decoration:none;color:inherit;font-size:15.5px}
.bmrow+.bmrow{margin-top:8px}
.bmrow svg{width:18px;height:18px;fill:var(--yellow);stroke:none;flex:none}
.bmrow span{flex:1;min-width:0}
.bmrow small{display:block;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ready .foot-note{margin-top:28px;font-size:13px;color:var(--muted);text-align:center;line-height:1.5}
.editednote{display:flex;gap:8px;align-items:flex-start;margin:14px 0 0}
.editednote svg{width:16px;height:16px;stroke:var(--primary-text);flex:none;margin-top:3px}
.ready .adslot{margin-top:28px}
.ready #msg:not(:empty){margin-top:16px}

/* Anteprima con il resto bloccato */
.paper{background:#FFFFFF;color:#1B2329;border-radius:14px;box-shadow:var(--shadow);padding:26px 22px 30px;font:15px/1.65 var(--f-doc);position:relative}
.paper h3{font:800 22px/1.2 var(--f-display);color:#0E6B66;margin:0 0 2px}
.paper .sub{font:13px var(--f-body);color:#6B7A80;margin-bottom:16px}
.paper h4{font:700 16px/1.3 var(--f-display);color:#0E6B66;margin:18px 0 6px}
.paper h5{font:700 14px/1.3 var(--f-body);margin:12px 0 4px;color:#1B2329}
.paper p{margin:0 0 9px}
.paper ul{margin:0 0 9px;padding-left:20px}
.paper b{font-weight:600}
.paper .nb{font:13px/1.5 var(--f-body);background:#FFF3C4;border-radius:10px;padding:10px 12px;margin:10px 0;color:#5C4A00}
.pages{display:flex;flex-direction:column;gap:14px;margin-top:22px}
.locked{position:relative}
.ghosttext{display:flex;flex-direction:column;gap:9px}
.ghosttext i{display:block;height:9px;border-radius:5px;background:#D9DFE2}
.lockcard{position:absolute;inset:auto 12px 50% 12px;transform:translateY(50%);background:var(--surface);border-radius:20px;box-shadow:var(--shadow);padding:20px;display:flex;flex-direction:column;gap:12px;text-align:center;align-items:center}
.lockcard .ico{width:48px;height:48px;border-radius:14px;background:var(--yellow);display:grid;place-items:center}
.lockcard .ico svg{width:24px;height:24px;stroke:var(--yellow-ink)}
.lockcard h2{font-size:19px}
.moreheads{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.moreheads li{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;text-align:left}
.moreheads li svg{width:16px;height:16px;stroke:var(--primary-text);flex:none;margin-top:3px}
.unlock{display:flex;flex-direction:column;gap:12px;scroll-margin-bottom:20px;margin-top:18px}
.jump{position:sticky;bottom:calc(var(--tabh) + 12px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:center;gap:10px;background:var(--yellow);color:var(--yellow-ink);font-weight:700;border-radius:16px;padding:16px 18px;text-decoration:none;box-shadow:var(--shadow);z-index:3;margin-top:18px;transition:opacity .2s}
.jump svg{width:20px;height:20px;stroke:currentColor}
.jump.off{opacity:0;pointer-events:none}

/* ---------------------------------------------------------------- lettura */
body.reading{padding-left:0;padding-right:0;background:var(--rbg)}
body.reading::before{background:var(--rbg)}
body.reading .app{max-width:none}
body.r-light{--rbg:#FFFFFF;--rink:#1B2A30;--rmuted:#5D6C72;--rline:#E3E9EC;--rhead:#0E6B66;--rbar:#FFFFFF;--rchip:#EEF2F4;--rnoteb:#FFF3C4;--rnotei:#5C4A00;--rmark:rgba(255,227,107,.45);--rsel:rgba(14,107,102,.10)}
body.r-sepia{--rbg:#F5EEDC;--rink:#3A2E1F;--rmuted:#7A6A52;--rline:#E4D9BF;--rhead:#6B4A12;--rbar:#FBF6EA;--rchip:#EADFC6;--rnoteb:#F1E1A6;--rnotei:#4E3D00;--rmark:rgba(233,190,70,.35);--rsel:rgba(107,74,18,.10)}
body.r-dark{--rbg:#0E161B;--rink:#E6EEF1;--rmuted:#93A6AE;--rline:#1D2B34;--rhead:#F2CF4A;--rbar:#16222A;--rchip:#1D2B34;--rnoteb:#3A3415;--rnotei:#F6E39A;--rmark:rgba(242,207,74,.22);--rsel:rgba(63,185,174,.14)}
.reader-wrap{color:var(--rink);display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.rtop{position:sticky;top:env(safe-area-inset-top,0px);z-index:6;background:var(--rbg)}
.rtop .in{max-width:760px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--rline)}
.rtop .x{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:var(--rink);text-decoration:none;flex:none}
.rtop .x svg{width:22px;height:22px;stroke:currentColor}
.rtitle{flex:1;min-width:0;display:flex;flex-direction:column}
.rtitle b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rtitle span{font-size:12px;color:var(--rmuted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rprog{height:3px;background:var(--rline)}
.rprog i{display:block;height:100%;width:0;background:#3FB9AE;transition:width .3s}
.reader{--rs:18px;max-width:760px;width:100%;margin:0 auto;padding:28px 24px 140px;font:var(--rs)/1.7 var(--f-doc);color:var(--rink)}
.reader .rh{font:800 calc(var(--rs) * 1.5)/1.15 var(--f-display);margin:0 0 6px;color:var(--rink)}
.reader .rsub{font:500 14px var(--f-body);color:var(--rmuted);margin:0 0 22px}
.reader h4{font:800 calc(var(--rs) * 1.3)/1.2 var(--f-display);color:var(--rhead);margin:26px 0 12px}
.reader h5{font:700 calc(var(--rs) * .98)/1.35 var(--f-body);margin:18px 0 6px}
.reader p{margin:0 0 16px}
.reader ul{margin:0 0 16px;padding-left:22px}
.reader li{margin-bottom:6px}
.reader b{font-weight:600}
.reader .nb{font:calc(var(--rs) * .8)/1.5 var(--f-body);background:var(--rnoteb);color:var(--rnotei);border-radius:12px;padding:12px 14px;margin:0 0 16px}
.rb{position:relative;border-radius:8px;margin:0 -8px;padding:0 8px;cursor:pointer;transition:background .2s;outline:none}
.rb.sel{background:var(--rsel)}
.rb.marked::before{content:"";position:absolute;left:-12px;top:6px;width:10px;height:16px;background:#F2CF4A;clip-path:polygon(0 0,100% 0,100% 100%,50% 72%,0 100%)}
.rb.flash{animation:flash 1.4s ease}
@keyframes flash{0%,40%{background:var(--rmark)}100%{background:transparent}}
.rend{text-align:center;font:600 14px var(--f-body);color:var(--rmuted);margin-top:28px}
.reader .adslot{margin:20px 0}
.rdock{position:fixed;left:0;right:0;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:7;padding:0 20px;pointer-events:none}
.rdock>div{max-width:560px;margin:0 auto;pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:8px;border-radius:20px;background:var(--rbar);box-shadow:0 10px 30px rgba(0,0,0,.25);color:var(--rink)}
.rdock button{height:48px;min-width:48px;border:0;border-radius:14px;background:transparent;color:var(--rink);display:grid;place-items:center;font:700 15px var(--f-body);position:relative}
.rdock button svg{width:22px;height:22px;stroke:currentColor}
.rdock .aplus{font-size:20px}
.rdock .chip{padding:0 14px;background:var(--rchip);font-weight:600;font-size:14px}
.rdock .bm{color:#E0B400}
:root .r-dark .rdock .bm{color:#F2CF4A}
.rdock .badge{position:absolute;top:4px;right:2px;min-width:18px;height:18px;border-radius:99px;background:var(--rec);color:#fff;font:700 11px/18px var(--f-body);padding:0 5px;text-align:center}
.rdock .act{flex:1;height:48px;border-radius:14px;background:#3FB9AE;color:#06221F;display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px}
.rdock .act svg{stroke:#06221F}

/* ---------------------------------------------------------------- finestre dal basso */
.sheet{position:fixed;inset:0;z-index:30;background:rgba(6,14,18,.55);display:flex;align-items:flex-end;justify-content:center}
.sheetbox{background:var(--surface);color:var(--ink);width:100%;max-width:560px;max-height:85vh;overflow:auto;border-radius:24px 24px 0 0;padding:22px 20px calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:16px}
.sheetbox h2{font-size:22px}
@media (min-width:640px){.sheet{align-items:center}.sheetbox{border-radius:24px}}
.bmlist{display:flex;flex-direction:column;gap:8px}
.bmi{display:flex;gap:8px;align-items:center}
.bmgo{flex:1;display:flex;gap:10px;align-items:flex-start;text-align:left;background:var(--bg);border:0;border-radius:12px;padding:12px 14px;min-width:0;color:var(--ink)}
.bmgo svg{width:18px;height:18px;fill:var(--yellow);stroke:none;flex:none;margin-top:2px}
.bmgo span{display:flex;flex-direction:column;min-width:0}
.bmgo small{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.toclist{display:flex;flex-direction:column}
.toclist button{text-align:left;background:none;border:0;border-bottom:1px solid var(--sunk);padding:14px 4px;font:600 15.5px var(--f-body);color:var(--ink)}
.toclist button.read{color:var(--muted)}
.hist{display:flex;flex-direction:column}
.hist>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--sunk);font-variant-numeric:tabular-nums}
.hist>div:first-child{border-top:0}
.hist span{display:flex;flex-direction:column;min-width:0}
.hist small{color:var(--muted);font-size:13px}
.invlink{display:flex;gap:8px}
.invlink input{flex:1;min-width:0;border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:12px;font-size:16px;color:var(--ink)}
.choices{display:flex;flex-direction:column;gap:8px}
.choices button{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:transparent;color:var(--ink);font-weight:600;text-align:left}
.choices button[aria-pressed=true]{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.choices button svg{width:20px;height:20px;stroke:var(--primary-text)}

/* ---------------------------------------------------------------- account */
.acct{display:flex;flex-direction:column;padding-top:24px}
.acct .mail{margin-top:4px;font-size:15px;color:var(--muted);word-break:break-all}
.plancard{margin-top:22px;border:2px solid var(--yellow);padding:20px;border-radius:20px;background:var(--surface);display:flex;flex-direction:column;gap:12px}
.plancard .ph{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.plancard .ph b{font:800 24px/1.1 var(--f-display)}
.plancard .ph span{font-size:14px;color:var(--muted);text-align:right;white-space:nowrap}
.meter{height:10px;border-radius:5px;background:var(--sunk);overflow:hidden}
.meter i{display:block;height:100%;background:var(--primary);border-radius:5px}
.plancard .left{font-size:15px;color:var(--soft)}
.plancard .left b{color:var(--ink)}
.plancard .btn{margin-top:4px}
.plancard .warn{color:var(--coral-ink);font-weight:600}
.tiles2{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tile2{position:relative;border:1.5px solid var(--primary);text-align:left;color:inherit;padding:16px;border-radius:18px;background:var(--surface);display:flex;flex-direction:column;gap:6px;text-decoration:none;cursor:pointer}
.tile2 .tl{font-size:13px;color:var(--muted);padding-right:22px}
.tile2 b{font-size:17px}
.tile2 .tv{font-size:14px;font-weight:600}
.tile2 .t-teal{color:var(--primary-text)}
.tile2 .t-yellow{color:var(--yellow-text)}
.tile2 .tchev{position:absolute;top:14px;right:14px;width:18px;height:18px;stroke:var(--primary-text);stroke-width:2.4}
.menu{margin-top:24px;display:flex;flex-direction:column;border-radius:18px;background:var(--surface);padding:0 16px}
.menu a,.menu button{display:flex;align-items:center;gap:12px;padding:16px 0;font-size:16px;color:var(--ink);text-decoration:none;background:none;border:0;text-align:left;width:100%}
.menu>*+*{border-top:1px solid var(--sunk)!important}
.menu span{flex:1}
.menu small{font-size:14px;color:var(--muted)}
.menu svg{width:18px;height:18px;stroke:var(--muted);flex:none}
.acct .btn-ghost{margin-top:16px}
.acct .linkbtn.danger{margin-top:14px;align-self:center}
.acct #delbox:not(:empty){margin-top:14px}

/* ---------------------------------------------------------------- piani */
.plans{display:flex;flex-direction:column;gap:14px;margin-top:24px}
.plan{border-radius:20px;background:var(--surface);padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.plan.best{background:var(--primary-tint);border:2px solid var(--primary);border-radius:22px;padding:22px;gap:14px}
.plan .ph{display:flex;justify-content:space-between;align-items:center;gap:10px}
.plan .ph b{font-size:20px}
.plan .tag{font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;background:var(--primary);color:var(--primary-ink);white-space:nowrap}
.plan .tag.cur{background:var(--ok);color:#fff}
.plan .amt{display:flex;align-items:baseline;gap:6px}
.plan .amt b{font:800 40px/1 var(--f-display);font-variant-numeric:tabular-nums}
.plan .amt span{color:var(--muted)}
.plan .perks{display:flex;flex-direction:column;gap:10px;font-size:15px}
.plan .perks div{display:flex;gap:10px;align-items:flex-start}
.plan .perks svg{width:18px;height:18px;stroke:var(--primary-text);flex:none;margin-top:2px}
.plan.small .ph b{font-size:18px}
.plan.small .ph span{font:800 22px var(--f-display)}
.plan.small p{margin:0;font-size:15px;color:var(--soft);line-height:1.5}
.plan.small small{font-size:13px;color:var(--muted)}
.packrow{display:flex;align-items:center;gap:14px;padding:20px 22px;border-radius:20px;background:var(--surface)}
.packrow div{flex:1;display:flex;flex-direction:column;gap:4px}
.packrow b{font-size:17px}
.packrow span{font-size:14px;color:var(--soft)}
.packrow .btn{flex:none;min-height:46px;font-size:15px;padding:10px 16px;border-radius:14px}
.reserved{display:flex;flex-direction:column;gap:12px;border:2px dashed var(--primary);border-radius:20px;padding:16px}
.plansfoot{margin-top:24px;font-size:13px;color:var(--muted);text-align:center;line-height:1.5}

/* ---------------------------------------------------------------- modifica della dispensa */
.paper.editor [contenteditable]{outline:none;border-radius:6px;transition:background .15s,box-shadow .15s;padding:2px 4px;margin-left:-4px;margin-right:-4px}
.paper.editor [contenteditable]:hover{background:#F3F7F6}
.paper.editor [contenteditable]:focus{background:#EEF7F5;box-shadow:0 0 0 2px #0E6B66}
.paper.editor p:empty::before,.paper.editor h4:empty::before{content:"Scrivi qui…";color:#9AA6AB}
.paper.editor li{margin-bottom:4px}
.ednote{display:flex;flex-direction:column;gap:6px;transition:opacity .18s,transform .18s}
.ednote.gone{opacity:0;transform:scale(.97)}
.ednote .nbl{font:700 11px var(--f-body);letter-spacing:.06em;text-transform:uppercase;color:#8A6D00}
.nbactions{display:flex;gap:6px;flex-wrap:wrap}
.mini-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #E0B400;background:#fff;color:#5A4A00;border-radius:999px;padding:6px 12px;font:600 13px var(--f-body);min-height:36px}
.mini-btn svg{width:14px;height:14px;stroke:#5A4A00}
.edfields{display:grid;gap:14px}
@media (min-width:640px){.edfields{grid-template-columns:2fr 1fr}}
.edtools{position:sticky;bottom:0;z-index:4;display:flex;flex-direction:column;gap:8px;padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,var(--bg) 18%)}
.edrow{display:flex;gap:8px}
.edrow .btn{flex:1}
.tool{min-width:46px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font:600 15px var(--f-body);color:var(--ink)}
.tool.wide{flex:1}

/* ---------------------------------------------------------------- suggerimenti e pannello */
.sugform{display:flex;flex-direction:column;gap:14px}
.sugform .seg{flex-wrap:wrap}
.sugform .seg button{min-width:45%}
.sugsec{display:flex;flex-direction:column;gap:12px}
.scard,.ucard{display:flex;flex-direction:column;gap:12px}
.scard .summary,.ucard .summary{display:flex;justify-content:space-between;align-items:center;gap:10px}
.stext{margin:0;font-size:16px;line-height:1.5;white-space:pre-wrap}
.reply{background:var(--primary-tint);border-radius:12px;padding:12px 14px;font-size:15px;display:flex;flex-direction:column;gap:2px}
.reply b{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--primary-text)}
.votes{display:flex;gap:8px}
.vote{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:transparent;border-radius:999px;padding:7px 14px;font:700 15px var(--f-body);color:var(--ink);min-height:40px}
.vote svg,.votes.ro svg{width:18px;height:18px;stroke:var(--ok)}
.vote.down svg,.votes.ro .down svg{stroke:var(--coral-ink);transform:rotate(180deg)}
.vote.on{background:color-mix(in srgb,var(--ok) 14%,var(--surface));border-color:var(--ok)}
.vote.down.on{background:color-mix(in srgb,var(--coral) 14%,var(--surface));border-color:var(--coral-ink)}
.votes.ro span{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:var(--muted);font-size:14px}
body.wide .screen > .admintabs{max-width:520px}
body.wide .screen > .seg{max-width:360px}
.usearch{display:flex;gap:8px}
.usearch input{flex:1;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:12px 14px;color:var(--ink)}
.usearch .btn{min-height:48px}
.ulist{display:grid;gap:12px}
@media (min-width:900px){.ulist{grid-template-columns:1fr 1fr}}
.uemail{word-break:break-all}
.switch{display:flex;gap:12px;align-items:flex-start;border-top:1px solid var(--sunk);padding-top:12px}
.switch input{width:22px;height:22px;accent-color:var(--primary);flex:none;margin-top:2px}
.switch span{display:flex;flex-direction:column}
.switch small{color:var(--muted);font-size:13.5px}
.gift{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--sunk);padding-top:12px}
.giftrow{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.tile{background:var(--surface);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:2px}
.tile span{font-size:13px;color:var(--muted);font-weight:600}
.tile b{font:800 28px/1.15 var(--f-display);font-variant-numeric:tabular-nums}
.tile small{font-size:13px;color:var(--muted)}
.funnel{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.funnel>div{display:grid;grid-template-columns:minmax(120px,190px) 1fr 48px;gap:10px;align-items:center;font-size:14px}
.funnel b{text-align:right;font-variant-numeric:tabular-nums}
.fbar{height:14px;background:var(--sunk);border-radius:4px;overflow:hidden}
.fbar i{display:block;height:100%;background:var(--primary);border-radius:0 4px 4px 0}
.bars{display:flex;align-items:flex-end;gap:2px;height:90px;margin-top:12px;border-bottom:1px solid var(--line)}
.bars span{flex:1;height:100%;display:flex;align-items:flex-end;cursor:default}
.bars span:hover i{background:var(--ink)}
.bars i{display:block;width:100%;background:var(--primary);border-radius:4px 4px 0 0;min-height:1px}
.axis{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:4px}
.charts{display:grid;gap:12px}
@media (min-width:860px){.charts{grid-template-columns:1fr 1fr}}
.summary{display:flex;justify-content:space-between;align-items:baseline;gap:12px}

/* ---------------------------------------------------------------- avvisi */
.toast{position:fixed;left:50%;bottom:calc(var(--tabh) + 24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%) translateY(20px);background:var(--ink);color:var(--bg);padding:12px 16px;border-radius:14px;font-weight:600;font-size:15px;opacity:0;transition:.25s;z-index:40;max-width:min(420px,calc(100vw - 32px));text-align:center;pointer-events:none}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Tutto ciò che si tocca reagisce al tocco: così è chiaro che è cliccabile. */
.btn,.tile2,.rowlink,.bigact,.recrow,.menu a,.menu button,.toc a,.bmrow,.picker,.packrow .btn,.mechip,.sqbtn,.trash,.playbtn,.tabbar a,.choices button,.bmgo,.fchip{-webkit-tap-highlight-color:transparent}
.btn:active:not(:disabled),.tile2:active,.bigact:active,.recrow:active,.picker:active,.bmrow:active,.mechip:active{transform:scale(.97)}
.rowlink:active,.menu a:active,.menu button:active,.toc a:active,.choices button:active,.bmgo:active{opacity:.6}
.btn,.bigact,.recrow,.picker,.bmrow,.mechip{transition:transform .12s,opacity .12s}

/* Il piano attuale ha sempre il bordo giallo e l'etichetta "Il tuo piano". */
.curtag{align-self:flex-start;font-size:11.5px;font-weight:700;padding:4px 9px;border-radius:999px;background:var(--yellow);color:var(--yellow-ink);margin-bottom:-4px}
.plan.cur{border:2px solid var(--yellow)}
.plan .tag.cur{background:var(--yellow);color:var(--yellow-ink)}

/* Pannello: schede su due righe sui telefoni, tabella del report */
.admintabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:480px){.admintabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.usearch input{min-width:0}
.usearch select{flex:none;max-width:44%;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:0 10px;color:var(--ink);min-height:48px}
.rtable{display:flex;flex-direction:column;border-radius:16px;background:var(--surface);overflow:hidden}
.rtable .rh,.rtable .rr{display:grid;grid-template-columns:minmax(0,1fr) repeat(5,38px);gap:4px;align-items:center;padding:10px 12px;text-align:right;font-variant-numeric:tabular-nums}
.rtable .rh{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--line)}
.rtable .rh span:first-child,.rtable .ue{text-align:left}
.rtable .rr{border:0;border-top:1px solid var(--sunk);background:transparent;color:var(--ink);font-size:15px;width:100%}
.rtable .rr:first-of-type{border-top:0}
.rtable .rr:hover{background:var(--sunk)}
.rtable .ue{display:flex;flex-direction:column;min-width:0}
.rtable .ue b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rtable .ue small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:700px){.rtable .rh,.rtable .rr{grid-template-columns:minmax(0,1fr) repeat(5,64px)}}

/* Riquadro "Non solo lezioni": tutto centrato */
.anyaudio{align-items:center;text-align:center}
.anyaudio .ahead{justify-content:flex-start;align-self:stretch;text-align:left}
.anyaudio p{max-width:640px}

/* Suggerimento "Aggiungi alla schermata Home" */
.a2hs{display:flex;align-items:center;gap:4px;border:1.5px solid var(--primary);background:var(--surface);border-radius:18px;margin-bottom:18px}
.a2go{flex:1;display:flex;align-items:center;gap:12px;background:none;border:0;color:inherit;text-align:left;padding:12px 4px 12px 12px;cursor:pointer;font:inherit}
.a2go img{width:42px;height:42px;border-radius:10px;flex:none}
.a2go span{display:flex;flex-direction:column;gap:2px;flex:1}
.a2go b{font-size:15.5px}
.a2go small{font-size:13.5px;color:var(--muted)}
.a2chev{width:18px;height:18px;stroke:var(--primary-text);stroke-width:2.4;fill:none;flex:none}
.a2x{flex:none;width:44px;height:44px;display:grid;place-items:center;background:none;border:0;color:var(--muted);cursor:pointer}
.a2x svg{width:18px;height:18px;stroke:currentColor;stroke-width:2.2;fill:none}
.a2steps{margin:0;padding-left:22px;display:grid;gap:12px;line-height:1.5;font-size:16px}
.a2inl{width:18px;height:18px;vertical-align:-3px;stroke:var(--primary-text);stroke-width:2;fill:none}

/* Pagina iniziale compatta: accesso in alto, schede da scorrere, domande chiuse */
.land.lc{gap:44px}
.land.lc .lhero{gap:22px}
.land.lc .lcopy{gap:12px}
.logincard.compact{padding:16px;gap:12px;margin:0;max-width:none}
.logincard.compact form{gap:12px}
.logincard.compact .field label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (min-width:860px){.land.lc .lhero{grid-template-columns:1.1fr .9fr;align-items:center}.logincard.compact{padding:24px;max-width:440px;margin-left:auto}}
.carousel{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.carousel::-webkit-scrollbar{display:none}
.ccard{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;background:var(--surface);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:8px;min-height:190px}
@media (min-width:760px){.ccard{flex-basis:calc((100% - 24px) / 3)}}
.ccard > b{font:800 21px/1.2 var(--f-display)}
.ccard > span:last-child{color:var(--soft);font-size:15.5px;line-height:1.5}
.ccard .cic{width:42px;height:42px;border-radius:12px;background:var(--sunk);display:grid;place-items:center;margin-bottom:4px}
.ccard .cic svg{width:22px;height:22px;stroke:var(--yellow);stroke-width:2;fill:none}
.ccard.y{background:var(--yellow);color:var(--yellow-ink)}
.ccard.y > span:last-child{color:var(--yellow-ink);opacity:.8}
.ccard.y .cic{background:rgba(42,34,5,.12)}.ccard.y .cic svg{stroke:var(--yellow-ink)}
.ccard.sam{padding:16px;gap:10px}
.ccard.sam .sample{max-width:none;box-shadow:none;padding:16px;gap:8px}
.cdots{display:flex;justify-content:center;gap:8px;margin-top:-4px}
.cdots button{width:8px;height:8px;padding:0;border:0;border-radius:4px;background:var(--line);cursor:pointer;transition:width .2s}
.cdots button.on{width:22px;background:var(--yellow)}
.steps3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.steps3 > div{background:var(--surface);border-radius:16px;padding:14px 10px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.steps3 .num{width:30px;height:30px;border-radius:50%;background:var(--yellow);color:var(--yellow-ink);display:grid;place-items:center;font:800 15px var(--f-display);margin-bottom:4px}
.steps3 b{font-size:14.5px;line-height:1.25}
.steps3 span:last-child{font-size:12.5px;color:var(--muted);line-height:1.35}
.faqbox > summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--surface);border-radius:16px;padding:16px 18px;cursor:pointer}
.faqbox > summary::-webkit-details-marker{display:none}
.faqbox > summary .h2big{font-size:20px}
.faqbox > summary::after{content:"+";color:var(--primary-text);font-size:24px;line-height:1}
.faqbox[open] > summary::after{content:"−"}
.faqbox .faq{margin-top:6px}
.herocta{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.herocta .btn{padding-inline:28px}
@media (min-width:860px){.land.lc .lhero{grid-template-columns:1fr;padding-top:40px;justify-items:center}.land.lc .lhero > *{max-width:760px}.land.lc .herocta{align-items:center}.land.lc .prices{margin-inline:auto;width:100%}}
.logincard.insheet{padding:0;background:none;max-width:none}
/* Titoli e testi centrati (telefono e computer) */
.land.lc .lcopy,.land.lc .lsec > .h2big,.land.lc .lsec > .note{text-align:center;align-items:center}
.land.lc .ccard:not(.sam){align-items:center;text-align:center}
.land.lc .ccard.sam > b{text-align:center}
.land.lc .price{align-items:center;text-align:center}
.land.lc .faqbox{max-width:760px;width:100%;margin-inline:auto}

/* Scritta "Sbobinature delle lezioni universitarie": centrata, a metà strada tra la barra in alto e il titolo */
.land.lc{padding-top:0}
.land.lc .lhero{padding-top:0}
.land.lc .lcopy{gap:0}
.land.lc .herokick{margin:calc(var(--kick-gap,22px) - 10px) 0 var(--kick-gap,22px)}
.land.lc .lcopy .lead{margin-top:12px}
@media (min-width:860px){.land.lc .lhero{padding-top:0}.land.lc .herokick{--kick-gap:30px}}
.ccard.sam .samdl{display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14.5px;color:var(--primary-text);text-decoration:none;padding:4px 0}
.ccard.sam .samdl svg{width:18px;height:18px;stroke:currentColor;fill:none}
