/* English Coach: pensato prima per il telefono. Una cosa per schermata, testo grande, colori fissi per le forme dei verbi. */
/* Colori di English Coach (10/10/2026): blu, blu scuro, giallo, azzurro chiaro; il verde solo per "giusto".
   Tema chiaro unico, come la pagina di vendita. Titoli e pulsanti in Plus Jakarta Sans, il testo da leggere in
   Atkinson Hyperlegible (più leggibile per i ragazzi con DSA: scelta di Silvana). */
:root {
  --bg: #f4f7fd;
  --card: #ffffff;
  --ink: #1b2340;
  --muted: #5b6482;
  --line: #dce5f7;
  --brand: #1062ff;
  --brand-dark: #0b47c4;
  --brand-soft: #eef4ff;
  --navy: #0b2a8c;
  --base: #0b2a8c;
  --past: #1062ff;
  --part: #f97316;
  --sun: #ffd34e;
  --sun-dark: #e3b417;
  --sky: #eef4ff;
  --ok: #16a34a;
  --ok-bg: #ecfdf3;
  --ko: #c2410c;
  --ko-bg: #fff1e8;
  --gold: #d99a00;
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 18px/1.5 var(--font-body);
  padding-top: env(safe-area-inset-top, 0px);
  -webkit-tap-highlight-color: transparent;
}
.app { min-height: 100vh; }
.screen {
  max-width: 560px; margin: 0 auto;
  padding-inline: 16px; padding-block: 20px 110px;
  display: grid; gap: 16px; align-content: start;
}
h1, h2 { font-family: var(--font-display); margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 800; }
p { margin: 0; }
b { font-weight: 700; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.muted { color: var(--muted); }
.big { font: 800 1.5rem var(--font-display); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px; display: grid; gap: 14px;
  box-shadow: 0 8px 24px rgba(15, 40, 90, .07);
}
.btn {
  font: 700 1.1rem var(--font-body); color: #fff; background: var(--brand);
  border: 0; border-radius: 14px; padding: 16px 18px; cursor: pointer; width: 100%;
}
.btn:disabled { opacity: .35; cursor: default; }
a.btn { display: block; text-align: center; text-decoration: none; }
.btn.ghost { background: var(--brand-soft); color: var(--ink); }
.btn:focus-visible, .opt:focus-visible, .chip:focus-visible, .form:focus-visible, .tab:focus-visible, .audio:focus-visible, .play:focus-visible, .vcard:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 2px;
}
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

/* Oggi */
.hero .btn { margin-top: 4px; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.plan-ico { font-size: 1.6rem; text-align: center; }
.plan-what { display: grid; min-width: 0; }
.plan-what span { color: var(--muted); font-size: .9rem; }
.plan-min { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.done { border-color: var(--ok); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; text-align: center; }
.stat b { font: 800 1.6rem var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; color: var(--muted); }

/* Barra in basso */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
}
.tab { border: 0; background: none; color: var(--muted); font: 700 .8rem var(--font-body); display: grid; justify-items: center; gap: 2px; padding: 6px; border-radius: 12px; cursor: pointer; }
.tab-ico { font-size: 1.4rem; }
.tab.on { color: var(--ink); background: var(--brand-soft); }

/* Sessione */
.session { padding-bottom: 40px; }
.stop { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.close { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 .95rem var(--font-body); cursor: pointer; white-space: nowrap; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s ease; }
.count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-tag { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
/* Icona piccola accanto al titolo (al posto del vecchio riquadro con l'emoji grande) */
.title-row { display: flex; align-items: center; gap: 10px; }
.title-row h2 { margin: 0; }
.pic-s { font-size: 1.6rem; line-height: 1; }

/* Le forme del verbo: tessere uguali come nel gioco dei verbi (Silvana, 10/10/2026) */
.forms { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.forms.one { grid-auto-columns: minmax(0, 33%); }
.form { display: grid; gap: 2px; justify-items: center; min-width: 0; padding: 10px 4px; border: 2px solid var(--brand); border-radius: 14px; background: var(--brand-soft); color: var(--ink); font: inherit; cursor: pointer; overflow-wrap: anywhere; text-align: center; }
.form small { font-size: .75rem; color: var(--muted); }
.form b { font-size: 1.05rem; color: var(--navy); }
.form .spk { font-size: .8rem; line-height: 1; }
.trick { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.trick b { font-family: var(--font-display); }

.say { display: grid; gap: 6px; }
.say-out { min-height: 1.3em; font-size: .95rem; }

input {
  font: 700 1.2rem var(--font-body); color: var(--ink); background: var(--card);
  border: 2px solid var(--line); border-radius: 12px; padding: 14px; width: 100%; min-width: 0;
}
input:focus { outline: none; border-color: var(--brand); }
input.ok { border-color: var(--ok); background: var(--ok-bg); }
input.ko { border-color: var(--ko); background: var(--ko-bg); }
.ask { display: grid; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.options { display: grid; gap: 10px; }
.options.pics { grid-template-columns: repeat(3, 1fr); }
.options.pics .opt { font-size: 2.6rem; padding: 14px 6px; text-align: center; }
.opt {
  font: 700 1.15rem var(--font-body); color: var(--ink); background: var(--card);
  border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; text-align: left; cursor: pointer;
}
.opt:disabled { cursor: default; }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: var(--ko); background: var(--ko-bg); }
.play { justify-self: center; width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--brand); color: var(--card); font-size: 2.4rem; cursor: pointer; }

.line { min-height: 58px; border: 2px dashed var(--line); border-radius: 14px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bank { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 700 1.1rem var(--font-body); color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.chip.on { background: var(--brand-soft); border-color: var(--brand); }

.fb { border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.fb.ok { background: var(--ok-bg); }
.fb.ko { background: var(--ko-bg); }
.fb-title { font: 800 1.3rem var(--font-display); }
.fb.ok .fb-title { color: var(--ok); }
.fb.ko .fb-title { color: var(--ko); }

.table-wrap { overflow-x: auto; }
table.rule { border-collapse: collapse; width: 100%; font-size: 1.05rem; }
table.rule th, table.rule td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.rule th { font-weight: 700; }
.tcell-audio { width: 44px; }
.audio { border: 0; background: var(--brand-soft); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; flex: none; }
.example { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 14px; padding: 12px; }
.example div { display: grid; min-width: 0; }
.wordline { display: flex; gap: 12px; align-items: center; }
.it { font-size: 1.2rem; color: var(--muted); }

/* Collezione */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.vcard {
  aspect-ratio: 3 / 4; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  display: grid; align-content: center; justify-items: center; gap: 2px; padding: 8px; text-align: center; font: inherit; cursor: pointer;
}
.vcard.locked { background: transparent; border-style: dashed; color: var(--muted); cursor: default; font-size: 1.4rem; }
.vcard b { font: 800 1.15rem var(--font-display); }
.vpic { font-size: 1.8rem; }
.vforms { font-size: .75rem; color: var(--muted); }
.vstate { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.vcard.in-ripasso { border-color: var(--past); }
.vcard.da-rinforzare { border-color: var(--part); }
.vcard.fissato { border-color: var(--gold); background: linear-gradient(160deg, var(--card), var(--brand-soft)); }
.vcard.fissato .vstate { color: var(--gold); font-weight: 700; }
.newcards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.newcards .vcard { width: 100px; flex: none; }
.stamp { animation: stamp .5s ease-out both; }
@keyframes stamp { 0% { transform: scale(1.3) rotate(-8deg); opacity: 0 } 100% { transform: none; opacity: 1 } }

/* Percorso */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 2px; text-align: center; }
.goal b { font: 800 2rem var(--font-display); color: var(--brand); }
.goal span { font-size: .8rem; }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.week { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.week div { display: grid; min-width: 0; }
.week .muted { font-size: .9rem; }
.wnum { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem var(--font-display); background: var(--bg); color: var(--muted); }
.week.now { border: 2px solid var(--brand); }
.week.now .wnum { background: var(--brand); color: var(--card); }
.week.done .wnum { background: var(--ok); color: var(--card); }
.week.next { opacity: .75; }
.lessons { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .95rem; }
.lessons .ok { color: var(--ok); }
.leave { border-color: var(--sun); }

/* Barra in alto: serie di giorni e suoni */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.streak { font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.streak.on { color: var(--part); border-color: var(--part); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.1rem; }
h3 { font: 800 1.15rem var(--font-display); margin: 6px 0 0; }

/* Max, il personaggio */
.mascot { display: flex; gap: 12px; align-items: center; }
.mascot-pic { width: 56px; height: 56px; flex: none; }
.mascot-pic svg { width: 100%; height: 100%; display: block; }
.mascot.party .mascot-pic { animation: hop .6s ease-out 2; }
.bubble { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; font-size: 1rem; }
.bubble::before { content: ""; position: absolute; left: -8px; top: 50%; width: 14px; height: 14px; background: var(--card); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.card .mascot .bubble, .card .mascot .bubble::before { background: var(--bg); border-color: transparent; }
@keyframes hop { 0%, 100% { transform: translateY(0) } 40% { transform: translateY(-10px) rotate(-4deg) } }

/* Verbi: due collezioni */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 10px; padding: 10px 6px; font: 700 .9rem var(--font-body); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--brand-soft); color: var(--ink); }

/* Scheda del verbo con le coniugazioni */
.sheet { position: fixed; inset: 0; z-index: 10; background: rgba(10, 25, 22, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { position: relative; background: var(--card); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.sheet-close { position: absolute; right: 14px; top: 14px; }
.sheet-body { display: grid; gap: 12px; }
.conj { display: grid; gap: 4px; }
.locked-tense { color: var(--muted); font-size: .9rem; }

/* Parole per argomento */
.cat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; }
.cat summary { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; }
.cat summary::-webkit-details-marker { display: none; }
.cat.closed summary { cursor: default; color: var(--muted); }
.wlist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.wrow { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; border: 0; background: var(--bg); border-radius: 12px; padding: 8px 10px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wpic { font-size: 1.5rem; text-align: center; }
.wtext { display: grid; min-width: 0; }
.wtext .muted { font-size: .85rem; }
.how-body { display: grid; gap: 8px; padding-bottom: 12px; font-size: .95rem; }

/* Percorso a tappe */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.phase-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-top: 8px; }
.node { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.node.right { grid-template-columns: 1fr 56px; }
.node.right .bubble-node { order: 2; }
.node.right .node-info { text-align: right; }
.bubble-node { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 1.2rem var(--font-display); background: var(--line); color: var(--muted); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12); }
.node.now .bubble-node { background: var(--brand); color: var(--card); outline: 4px solid var(--brand-soft); }
.node.done .bubble-node { background: var(--sun); color: var(--ink); }
.node-info { display: grid; min-width: 0; }
.node-info .muted { font-size: .9rem; }
.node.next { opacity: .7; }
.lessons .cur { font-weight: 700; color: var(--brand); }
.node.right .lessons { justify-items: end; list-style: none; padding: 0; }

/* Fine della prima lezione gratuita */
.pitch-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Lettura (INVALSI) e pronuncia */
.reading { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: 12px; }
.reading p { white-space: pre-line; }
.say { display: grid; gap: 8px; background: var(--brand-soft); border-radius: 14px; padding: 12px; }
.say-label { font-weight: 700; }
.say .btn { padding: 12px; font-size: 1rem; background: var(--card); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .stamp, .mascot.party .mascot-pic { animation: none; }
  .progress span { transition: none; }
}
.price-box { display: grid; gap: 2px; }
.price-box p { margin: 0; }
.price-line { font-size: 1.6rem; line-height: 1.2; }
.price-line s { color: var(--muted); font-size: 1.1rem; margin-right: 4px; }
.price-line b { font-family: var(--font-display); }
.price-line span { font-size: 1rem; color: var(--brand); font-weight: 700; margin-left: 4px; }
.launch-left { display: inline-block; justify-self: start; margin-top: 6px !important; background: var(--sun); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .95rem; }
select {
  font: 700 1.05rem var(--font-body); color: var(--ink); background: var(--card);
  border: 2px solid var(--line); border-radius: 12px; padding: 12px; width: 100%; min-width: 0;
}
select:focus { outline: none; border-color: var(--brand); }
.plan-edit { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--brand-soft); }

textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: var(--card);
  border: 2px solid var(--line); border-radius: 12px; padding: 12px; width: 100%; min-width: 0; resize: vertical;
}
textarea:focus { outline: none; border-color: var(--brand); }
.reports .ask { display: grid; gap: 8px; }
.ok-msg { color: var(--ok); font-weight: 700; }
.report-list h3 { margin: 16px 0 6px; }
.report { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 4px; }
.report p { margin: 0; }
.report-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.report-status { border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .85rem; background: var(--brand-soft); }
.report-status.st-lavorazione { background: var(--sun); }
.report-status.st-risolta { background: var(--ok-bg); color: var(--ok); }
.report-reply { background: var(--brand-soft); border-radius: 10px; padding: 8px 10px; }
.card.launch { display: grid; gap: 10px; }

.who-tag { margin: 0; font: 800 .8rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.locked-count { margin: 0; padding: 14px; border-radius: 14px; background: var(--brand-soft); text-align: center; font-weight: 700; }
.login-toggle { background: none; border: 0; padding: 8px 0; font: 700 1rem var(--font-body); color: var(--brand); cursor: pointer; text-align: left; }
.steps ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.big-creds b { font-size: 1.35rem; letter-spacing: .02em; }
.big-creds span { font-size: 1.05rem; }
.idx { padding: 4px 0; }
.idx summary { padding: 12px 4px; cursor: pointer; }
.idx-row { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line, #e3e8f0); padding: 10px 4px; font: inherit; color: inherit; cursor: pointer; }
.idx-row.on { background: var(--brand-soft); border-radius: 10px; }
.idx-mark { font-weight: 700; color: var(--brand); text-align: center; }
.idx-what { display: grid; gap: 2px; min-width: 0; }
.idx-what small { color: var(--muted, #5b6575); font-size: .85rem; }
.card.here { display: grid; gap: 8px; }
.card.focus h2 { margin: 0; }
.idx summary { display: flex; justify-content: space-between; list-style: none; }
.idx summary::-webkit-details-marker { display: none; }
.idx summary::after { content: "▾"; color: var(--brand); font-weight: 700; }
.idx[open] summary::after { content: "▴"; }
.icon-btn.exit-btn { width: auto; border-radius: 20px; padding: 0 12px; font-size: .9rem; font-weight: 700; }
/* Area famiglia: la scheda del figlio come una piccola dashboard */
.kid-head { display: grid; gap: 2px; }
.kid-name { font-size: 1.25rem; }
.today { border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; background: var(--bg); border: 1px solid var(--line); }
.today.yes { border-color: var(--ok); }
.today .today-tag { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.week-box { display: grid; gap: 6px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 340px; }
.wd { display: grid; justify-items: center; gap: 2px; }
.wd i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--card); }
.wd.done i { background: var(--ok); border-color: var(--ok); }
.wd.now i { border-color: var(--brand); }
.wd.future i { opacity: .45; }
.wd small { font-size: .75rem; color: var(--muted); }
.last-report summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.last-report p { margin: 4px 0; }
.danger summary { cursor: pointer; color: var(--ko); font-weight: 700; margin-top: 8px; }
/* Occhio "mostra password" */
.pw { position: relative; }
.pw input { width: 100%; padding-right: 48px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1.15rem; cursor: pointer; opacity: .55; padding: 6px; }
.eye.on { opacity: 1; }
.kid .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kid .stat span { overflow-wrap: anywhere; }
/* Area famiglia larga sul computer: figli affiancati, nella scheda oggi+settimana a sinistra e numeri+azioni a destra */
body.fam-page .screen { max-width: 1180px; }
.kids-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); align-items: start; }
.kid-cols { display: grid; gap: 14px; }
.kid-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 1000px) {
  .kid-cols { grid-template-columns: 1fr 1fr; }
  .kids-grid:has(> .kid:only-child) { grid-template-columns: 1fr; }
}
body.fam-page .screen > .card, body.fam-page .screen > section { max-width: none; }
.streak { white-space: nowrap; }
.top-actions { flex-shrink: 0; }
/* Confronto lettera per lettera dopo un errore */
.diff { display: grid; gap: 4px; background: var(--card); border-radius: 12px; padding: 10px 12px; }
.diff p { margin: 0; }
.diff small { color: var(--muted); }
.diff .word { font: 700 1.1rem var(--font-body); letter-spacing: .04em; }
.diff mark.bad { background: #fde2dc; color: #b42318; text-decoration: line-through; border-radius: 3px; padding: 0 1px; }
.diff mark.miss { background: #dcf5e6; color: #13703f; border-radius: 3px; padding: 0 1px; }
.stop { grid-template-columns: auto 1fr auto; }
.kicker-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kicker-row .kicker { margin: 0; }
.flag-link { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 700 .85rem var(--font-body); cursor: pointer; white-space: nowrap; }
.practice { display: grid; gap: 8px; background: var(--bg); border: 1px dashed var(--line); border-radius: 14px; padding: 12px; }
.practice p { margin: 0; }
.practice-out:empty { display: none; }
.seg button { display: grid; gap: 2px; justify-items: center; line-height: 1.2; min-width: 0; }
.seg button small { font-weight: 400; font-size: .78rem; font-variant-numeric: tabular-nums; }
.vcard { min-width: 0; overflow-wrap: anywhere; }
.ask .mean { margin-top: 8px; }
.ask .mean input { width: 100%; }
/* Verifica di fine modulo: voto e correzione */
.voto { display: grid; justify-items: center; gap: 2px; margin: 10px auto 14px; padding: 14px 28px; border-radius: 20px; border: 2px solid var(--ok); background: var(--ok-bg); width: max-content; max-width: 100%; }
.voto.ko { border-color: var(--ko); background: var(--ko-bg); }
.voto b { font-size: 3.2rem; line-height: 1; color: var(--ok); font-variant-numeric: tabular-nums; }
.voto.ko b { color: var(--ko); }
.voto span { font-size: .9rem; color: var(--muted); }
.small { font-size: .85rem; }
.correct-list { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 10px; }
.correct-list li { border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: 14px; padding: 10px 12px; overflow-wrap: anywhere; }
.correct-list li.ko { border-left-color: var(--ko); }
.correct-list p { margin: 4px 0; }
.correct-list .cq { display: flex; gap: 8px; font-weight: 600; }
.correct-list .mark { color: var(--ok); }
.correct-list li.ko .mark { color: var(--ko); }
/* Gioco dei verbi */
.vg-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.vg-note { min-height: 1.4em; }
.vg-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.vg-slot { display: grid; gap: 2px; justify-items: center; min-width: 0; padding: 10px 4px; border: 2px dashed var(--line); border-radius: 14px; background: var(--card); color: inherit; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.vg-slot.on { border-style: solid; border-color: var(--brand); }
.vg-slot small { font-size: .75rem; color: var(--muted); }
.vg-slot b { font-size: 1.05rem; }
.opt.picked { border-color: var(--brand); }
.price-line span { white-space: nowrap; }
/* I miei errori */
.card.errors h3 { margin: 0 0 6px; }
.err-list { margin: 6px 0 10px; padding-left: 20px; color: var(--muted); }
.err-list li { overflow-wrap: anywhere; }

/* ---------- Grafica English Coach (10/10/2026) ---------- */
h1, h2, h3, .big, .fb-title { color: var(--navy); letter-spacing: -.01em; }
.kicker, .step-tag, .who-tag, .phase-title { color: var(--brand); font-family: var(--font-display); font-weight: 800; }
.card { border-radius: 18px; box-shadow: 0 4px 14px rgba(11, 42, 140, .06); }
/* Pulsanti: avanzamento blu, azione principale gialla (classe cta), secondari azzurri */
.btn { font: 800 1.08rem var(--font-display); background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-dark); transition: transform .08s; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--brand-dark); }
.btn.cta { background: var(--sun); color: var(--navy); box-shadow: 0 4px 0 var(--sun-dark); }
.btn.cta:active:not(:disabled) { box-shadow: 0 2px 0 var(--sun-dark); }
.btn.ghost { background: var(--brand-soft); color: var(--navy); box-shadow: none; }
.btn:disabled { box-shadow: none; }
.say .btn { box-shadow: none; border: 1.5px solid var(--line); color: var(--navy); }
.progress { background: var(--brand-soft); }
.progress span { background: linear-gradient(90deg, var(--brand), #4c8bff); }
.tab.on { color: var(--brand); background: var(--brand-soft); }
.stat b, .goal b { color: var(--brand); }
.stat { background: var(--brand-soft); border-color: transparent; }
.chip.on, .opt.picked, .vg-slot.on { border-color: var(--brand); background: var(--brand-soft); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.trick, .example, .reading, .practice { background: var(--brand-soft); }
.flag-link { color: var(--navy); }
.login-toggle, .last-report summary, .idx summary::after, .idx-mark { color: var(--brand); }
/* Voto stimato: blu, non verde/rosso */
.voto, .voto.ko { border-color: var(--brand); background: var(--brand-soft); }
.voto b, .voto.ko b { color: var(--navy); font-family: var(--font-display); }
/* Firma: English Coach · un prodotto di LinkUpSite */
.logo { display: flex; align-items: center; gap: 10px; }
.logo i { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff; font: 800 .8rem/36px var(--font-display); font-style: normal; text-align: center; position: relative; flex: none; }
.logo i::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid #fff; }
.logo b { display: block; font: 800 1.05rem/1.1 var(--font-display); color: var(--navy); }
.logo small { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
.firma { text-align: center; font-size: .85rem; color: var(--muted); }
.firma b { color: var(--navy); }
/* Area famiglia: la settimana a barre e il voto stimato */
.sett-card { display: grid; gap: 10px; }
.sett { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 92px; max-width: 420px; }
.g { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.g i { display: block; width: 100%; max-width: 38px; border-radius: 7px 7px 3px 3px; background: var(--brand); height: 78%; }
.g.no i { background: var(--line); height: 14%; }
.g.oggi small { color: var(--brand); }
.g.future i { background: transparent; border: 1.5px dashed var(--line); height: 14%; }
.g small { font-size: .75rem; color: var(--muted); font-weight: 700; }
.today.yes { border-color: var(--brand); }
.voto-fam { display: flex; align-items: center; gap: 12px; background: var(--brand-soft); border-radius: 14px; padding: 12px 14px; }
.voto-fam b.n { font: 800 2rem/1 var(--font-display); color: var(--navy); }
.voto-fam small { color: var(--muted); }
.manage summary { cursor: pointer; font: 800 1rem var(--font-display); color: var(--navy); background: var(--brand-soft); border-radius: 14px; padding: 14px 16px; list-style: none; }
.manage summary::-webkit-details-marker { display: none; }
.manage summary::after { content: " ›"; color: var(--brand); }
.manage[open] summary::after { content: " ⌄"; }
.manage > div { display: grid; gap: 10px; padding-top: 10px; }
.vg-board { display: grid; gap: 10px; }
.vg-board > .btn { margin-top: 14px; }
.vg-board .bank { margin-top: 4px; }
.voto-fam .pill { display: inline-block; margin: 4px 0 2px; background: var(--sun); color: var(--navy); font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 2px 10px; }
/* Area famiglia: oggi e resoconto come la mail delle 20 */
.dgroup { display: grid; gap: 6px; margin-top: 6px; }
.dk { margin: 0; font: 800 .72rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.drow { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.drow b { color: var(--navy); }
.dic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; margin-top: 1px; }
.dic.ok { background: var(--ok); color: #fff; }
.dic.pen { background: var(--card); border: 1px solid var(--line); }
.dask { margin: 6px 0 0; line-height: 1.4; }
.dask b { color: var(--navy); }
.voto-fam .pill.block { display: table; }
/* Piano verifica (10/10/2026): i giorni in fila con la fine sempre visibile, la scelta degli argomenti */
.plan-days { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.plan-days li { display: grid; place-items: center; height: 38px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); font: 800 .95rem var(--font-display); color: var(--muted); }
.plan-days li.done { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.plan-days li.now { border-color: var(--brand); background: var(--brand); color: #fff; }
.plan-days li:last-child { border-color: var(--sun-dark); }
.plan-days li.now:last-child { background: var(--sun); color: var(--navy); }
.plan-mood { display: grid; gap: 8px; }
.plan-open { margin: 2px 0; }
.plan-wait { display: grid; gap: 8px; }
.plan-pick { display: grid; gap: 2px; width: 100%; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 6px; font: inherit; color: inherit; cursor: pointer; }
.plan-pick small { color: var(--muted); }
.plan-pick.on { border-color: var(--brand); background: var(--brand-soft); }
.plan-pick.on b::before { content: "✓ "; color: var(--brand); }
#plan-date { font-size: 1.1rem; }
/* "Oppure scegli tu" (11/10/2026): tutte le scelte in un posto solo */
.choices { gap: 8px; }
.choices h3 { margin: 0 0 2px; }
.choice-row { display: flex; gap: 8px; align-items: stretch; }
.choice { flex: 1; min-width: 0; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px; font: inherit; color: inherit; cursor: pointer; }
.choice:hover, .choice:focus-visible { border-color: var(--brand); }
.choice-ico { font-size: 1.5rem; text-align: center; }
.choice-what { display: grid; min-width: 0; }
.choice-what b { font-family: var(--font-display); color: var(--navy); }
.choice-what small { color: var(--muted); }
.choice-go { font: 800 1.4rem var(--font-display); color: var(--brand); }
.choice-x { flex: none; width: 44px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--muted); font-size: 1rem; cursor: pointer; }
/* I miei verbi: casella da spuntare, i passi, Salva sempre in vista */
.vsteps { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.vlist { display: grid; gap: 6px; }
.vpick { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.vpick b { display: block; color: var(--navy); }
.vpick small { color: var(--muted); }
.vpick .tick { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-weight: 800; color: #fff; }
.vpick.on { border-color: var(--brand); background: var(--brand-soft); }
.vpick.on .tick { background: var(--brand); border-color: var(--brand); }
.vpick.on .tick::after { content: "✓"; }
.vbar { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px; background: var(--card); padding: 10px 0 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.vbar p { margin: 0; font-weight: 700; color: var(--navy); text-align: center; }
/* Avanti e indietro nella lezione (11/10/2026) */
.stepnav { display: flex; justify-content: space-between; gap: 10px; margin: -4px 0 2px; }
.nav-btn { background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 800 .95rem var(--font-display); color: var(--navy); cursor: pointer; }
.nav-btn:disabled { opacity: .35; cursor: default; }
/* Pulsante con la spiegazione sotto */
.help-btn { display: grid; gap: 4px; }
.help-btn p { margin: 0 4px; text-align: center; }
/* Computer (11/10/2026): lo schermo largo si usa tutto. Menu in alto, pagina Oggi su due colonne,
   Indice su due colonne, verbi e parole più larghi, i fogli al centro dello schermo. */
@media (min-width: 1000px) {
  .tabs { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(4, 160px); justify-content: center; padding: 8px; }
  .tab { grid-auto-flow: column; align-items: center; justify-content: center; gap: 8px; font-size: .95rem; }
  .tab-ico { font-size: 1.2rem; }
  .screen[class*="tab-"] { padding-top: 92px; padding-bottom: 48px; }
  .screen.tab-oggi, .screen.tab-verbi, .screen.tab-parole, .screen.tab-percorso { max-width: 1120px; }
  /* Pagina Oggi (Silvana, 11/10/2026): in alto il saluto e a destra i numeri; a sinistra la lezione e sotto "Oppure scegli tu"; a destra I tuoi percorsi */
  .screen.tab-oggi { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 28px; grid-template-areas: "top top" "hello stats" "mascot stats" "main paths" "choices paths"; grid-template-rows: auto auto auto auto 1fr; }
  .screen.tab-oggi > .topbar { grid-area: top; }
  .screen.tab-oggi > h1 { grid-area: hello; align-self: end; }
  .screen.tab-oggi > .mascot { grid-area: mascot; }
  .screen.tab-oggi > .hero, .screen.tab-oggi > .done { grid-area: main; align-self: start; }
  .screen.tab-oggi > .choices { grid-area: choices; align-self: start; }
  .screen.tab-oggi > .paths { grid-area: paths; align-self: start; }
  .screen.tab-oggi > .stats { grid-area: stats; align-self: center; }
  .screen.tab-oggi > .stats .stat { padding: 8px 6px; }
  .screen.tab-percorso { grid-template-columns: 1fr 1fr; column-gap: 28px; grid-auto-flow: row dense; }
  .screen.tab-percorso > * { grid-column: 1 / -1; }
  .screen.tab-percorso > .cat.idx { grid-column: auto; align-self: start; }
  .screen.session { max-width: 780px; }
  .sheet { align-items: center; }
  .sheet-card { max-width: 680px; border-radius: 22px; max-height: 88vh; }
  .vbar { bottom: -24px; }
  /* Indice: un gruppo aperto prende tutta la larghezza, con gli argomenti su tre colonne (non più una colonna lunga) */
  .screen.tab-percorso > .cat.idx[open] { grid-column: 1 / -1; }
  .screen.tab-percorso .idx-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
  .sheet-card .vlist { grid-template-columns: 1fr 1fr; }
  .screen.tab-percorso > .btn, .screen.tab-verbi > .btn { justify-self: start; width: auto; padding-inline: 40px; }
}
/* I tuoi percorsi (11/10/2026): Entra, Cancella e l'avanzamento */
.paths { gap: 10px; }
.paths h3 { margin: 0; }
.path { display: grid; gap: 8px; border: 2px solid var(--line); border-radius: 14px; padding: 12px; }
.path-head { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.path-pct { font: 800 1.2rem var(--font-display); color: var(--brand); }
.path-bar { height: 10px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.path-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #4c8bff); border-radius: 999px; }
.path .row .btn { padding: 10px 12px; font-size: 1rem; }

/* Domande sui verbi: dall'inglese o dall'italiano */
.dir-pick { display: grid; gap: 4px; }
.dir-pick .seg button { font-size: .85rem; }
/* Difetti 11/10: la X delle finestre, il titolo in alto sul telefono */
.sheet-x { position: sticky; top: -20px; float: right; z-index: 3; width: 40px; height: 40px; margin: -6px -4px 0 8px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--navy); font-size: 1.05rem; cursor: pointer; }
.topbar .kicker { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* I miei verbi: il riepilogo (13/10/2026) */
.lst-sum { display: grid; gap: 8px; }
.lst-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lst-chip { display: grid; justify-items: center; gap: 2px; border-radius: 12px; padding: 8px 4px; text-align: center; background: var(--brand-soft); }
.lst-chip b { font: 800 1.3rem var(--font-display); color: var(--navy); }
.lst-chip span { font-size: .72rem; font-weight: 700; color: var(--muted); }
.lst-chip.lst-consolidato { background: #fff6d6; }
.lst-chip.lst-ripassare { background: #ffeede; }
.lst-detail summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 4px 0; }
.lst-group { margin-top: 8px; }
.lst-head { margin: 0; font-weight: 800; font-size: .85rem; color: var(--navy); }
.lst-verbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lst-v { font-size: .85rem; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--navy); }
.lst-chip { border: 2px solid transparent; font: inherit; cursor: pointer; }
.lst-chip.on { border-color: var(--brand); }
.lst-box:empty { display: none; }
.lst-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.lst-list li { padding: 6px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.lst-list b { color: var(--navy); }
/* Simulazione INVALSI: i due livelli affiancati */
.inv-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-levels .voto { margin: 6px 0; width: auto; }

/* Obiettivo verbi irregolari: i verbi di oggi */
.goal-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.goal-list li { display: grid; gap: 2px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); }
.goal-list li small { color: var(--muted); }
.goal-list li.ok { border-color: var(--brand-soft); background: var(--brand-soft); }
.sheet-body.goal .path-bar { margin: 12px 0 4px; }
@media (min-width: 900px) { .sheet-card .goal-list { grid-template-columns: 1fr 1fr; } }
