/* Aplicația de teme (versiunea comercială), din designul aplicației private — v3 „Plan de zi” (varianta A din arenă, 4.11.2026)
   Tipografie: Geologica (titluri, cifre) + Golos Text (text). Ambele au chirilic și ș/ț corecte.
   Violet = acțiune, portocaliu = seria de zile. Fiecare materie are doar un cod colorat, nu o placă. */

:root {
  --fundal: #EEF1F8; --supr: #FFFFFF; --supr2: #F6F7FC; --text: #1A1C3B; --text2: #575A80; --text3: #8285A8;
  --linie: #D9DDEB; --linie2: #C2C7DC;
  --act: #5B3CFF; --act-text: #FFFFFF; --act-slab: rgba(91,60,255,.08);
  --serie: #E8730C; --serie-plin: #FF8A1F; --serie-fond: rgba(255,138,31,.10);
  --corect: #00875F; --corect-fond: rgba(0,135,95,.08); --gresit: #D0314B; --gresit-fond: rgba(208,49,75,.07);
  --tabla: #1A1C3B; --tabla-text: #FFFFFF;
  --c-coral: #D63C7A; --c-amber: #E8730C; --c-mint: #00936C; --c-blue: #1E7FD8; --c-sky: #0A8CA3;
  --c-violet: #7A45C9; --c-pink: #B8408F; --c-lime: #8F6A00; --c-marker: #C2410C;
  --f-titlu: "Geologica", "Golos Text", system-ui, sans-serif;
  --f-text: "Golos Text", system-ui, -apple-system, sans-serif;
  --nav: 68px; --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundal: #13142B; --supr: #1D1F40; --supr2: #23264B; --text: #E8E9FA; --text2: #A4A7D0; --text3: #7B7FAE;
    --linie: #2C2F57; --linie2: #3C4073;
    --act: #9D8CFF; --act-text: #13142B; --act-slab: rgba(157,140,255,.12);
    --serie: #FFA347; --serie-plin: #FFA347; --serie-fond: rgba(255,163,71,.10);
    --corect: #3FD9A8; --corect-fond: rgba(63,217,168,.10); --gresit: #FF7A8F; --gresit-fond: rgba(255,122,143,.10);
    --tabla: #2B2D5E; --tabla-text: #FFE4C7;
    --c-coral: #FF7AB0; --c-amber: #FFA347; --c-mint: #3FD9A8; --c-blue: #6CB6FF; --c-sky: #5ED3E8;
    --c-violet: #C59BFF; --c-pink: #F58FD0; --c-lime: #E8C25A; --c-marker: #FF8F66;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundal: #13142B; --supr: #1D1F40; --supr2: #23264B; --text: #E8E9FA; --text2: #A4A7D0; --text3: #7B7FAE;
  --linie: #2C2F57; --linie2: #3C4073;
  --act: #9D8CFF; --act-text: #13142B; --act-slab: rgba(157,140,255,.12);
  --serie: #FFA347; --serie-plin: #FFA347; --serie-fond: rgba(255,163,71,.10);
  --corect: #3FD9A8; --corect-fond: rgba(63,217,168,.10); --gresit: #FF7A8F; --gresit-fond: rgba(255,122,143,.10);
  --tabla: #2B2D5E; --tabla-text: #FFE4C7;
  --c-coral: #FF7AB0; --c-amber: #FFA347; --c-mint: #3FD9A8; --c-blue: #6CB6FF; --c-sky: #5ED3E8;
  --c-violet: #C59BFF; --c-pink: #F58FD0; --c-lime: #E8C25A; --c-marker: #FF8F66;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundal); color: var(--text);
  font: 400 16px/1.5 var(--f-text); min-height: 100dvh;
  padding-bottom: calc(var(--nav) + 20px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
main { max-width: 520px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px 24px; }
h1, h2 { font-family: var(--f-titlu); color: var(--text); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; line-height: 1.15; font-weight: 700; }
h2 { font-size: 19px; line-height: 1.2; font-weight: 700; }
h3 { font: 600 17px/1.3 var(--f-titlu); margin: 0; color: var(--text); }
p { margin: 0; }
a { color: var(--act); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--act-slab); }

.stiva { display: flex; flex-direction: column; gap: 14px; }
.rand { display: flex; gap: 10px; align-items: center; }
.centrat { text-align: center; }
.mic { font-size: 14px; color: var(--text2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* antet de ecran și „înapoi” */
.antet { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; min-height: 44px; }
.antet h2 { font-size: 21px; }
.inapoi {
  width: 40px; height: 44px; margin-left: -8px; display: grid; place-items: center; flex: none;
  color: var(--act); text-decoration: none; border-radius: 10px;
}
.inapoi-text { display: inline-flex; align-items: center; gap: 4px; height: 44px; margin-left: -6px; color: var(--act); font-weight: 600; text-decoration: none; font-size: 16px; }
.inapoi-text svg { width: 20px; height: 20px; }

/* suprafețe */
.foaie { background: var(--supr); border: 1px solid var(--linie); border-radius: var(--r); padding: 16px; }

/* butoane */
.buton {
  min-height: 52px; border-radius: var(--r); border: 0; background: var(--act); color: var(--act-text);
  font: 700 16px var(--f-titlu); padding: 0 20px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  transition: transform .12s ease, opacity .12s ease;
}
.buton:active { transform: scale(.98); }
.buton.secundar { background: var(--supr); color: var(--text); border: 1px solid var(--linie); font-family: var(--f-text); font-weight: 600; }
.buton.lat { width: 100%; }
.buton[disabled] { opacity: .5; cursor: default; transform: none; }

label { font-weight: 600; font-size: 14px; color: var(--text2); }
input[type=text], input[type=password], input[type=search], input[type=email], textarea, select {
  width: 100%; border: 1px solid var(--linie); border-radius: 12px; background: var(--supr);
  padding: 12px 14px; min-height: 48px; font-size: 16px; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--act); outline: none; }
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.ai-nota { font-size: 13px; color: var(--text3); display: flex; gap: 8px; align-items: flex-start; }
.ai-nota svg { flex: none; margin-top: 2px; }

/* ---------- Acasă ---------- */
.sus { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; }
.sus h1 { font-size: 26px; }
.sus .mic { margin-top: 2px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--act); color: var(--act-text); font: 700 17px var(--f-titlu); text-decoration: none;
}

.serie { display: flex; align-items: center; gap: 14px; padding: 4px 0 18px; border-bottom: 1px solid var(--linie); }
.tabela { display: flex; gap: 3px; perspective: 300px; flex: none; }
.cifra { position: relative; width: 46px; height: 62px; border-radius: 8px; background: var(--tabla); color: var(--tabla-text);
  font: 800 44px/62px var(--f-titlu); font-variation-settings: "SHRP" 100; text-align: center; overflow: hidden; }
.cifra::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); box-shadow: 0 1px 0 rgba(255,255,255,.07); }
.cifra .jum { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--tabla); }
.cifra .jum span { position: absolute; left: 0; right: 0; height: 62px; line-height: 62px; }
.cifra .sus-j { top: 0; } .cifra .sus-j span { top: 0; }
.cifra .jos-j { bottom: 0; } .cifra .jos-j span { bottom: 0; }
.cifra .clapa { transform-origin: 50% 100%; z-index: 2; backface-visibility: hidden; }
.cifra.flip .clapa { animation: clapa .4s cubic-bezier(.55,0,.6,1) forwards; }
@keyframes clapa { to { transform: rotateX(-90deg); } }
.serie-text { min-width: 0; }
.serie-text b { display: block; font: 700 18px/1.2 var(--f-titlu); }
.serie-text small { font-size: 13px; color: var(--text2); }
.saptamana { display: flex; gap: 4px; margin-top: 8px; }
.zi { width: 24px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; line-height: 1; color: var(--text2); }
.zi i { display: block; width: 24px; height: 8px; border-radius: 2px; background: var(--linie); }
.zi.plin i { background: var(--serie-plin); }
.zi.azi-gol i { background: transparent; border: 1.5px dashed var(--serie); }
.zi.azi { color: var(--text); font-weight: 600; }

.sectiune { padding-top: 4px; }
.sectiune-titlu { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: -6px; }
.sectiune-titlu h2 { font-size: 18px; }
.sectiune-titlu a, .sectiune-titlu small { font-size: 13px; font-weight: 500; color: var(--text2); text-decoration: none; }
.sectiune-titlu a { color: var(--act); font-weight: 600; }

.coada { list-style: none; margin: 0; padding: 0; }
.coada li { border-bottom: 1px solid var(--linie); }
.coada li:last-child { border-bottom: 0; }
.coada a, .coada .gol { display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px; align-items: center; gap: 10px; min-height: 56px; padding: 8px 0; color: var(--text); text-decoration: none; }
.coada .gol { grid-template-columns: 1fr; color: var(--text2); font-size: 15px; }
.coada .ce { min-width: 0; }
.coada .ce b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.coada .ce span { display: block; font-size: 13px; color: var(--text2); margin-top: 2px; }
.coada .sageata { color: var(--text3); width: 14px; height: 14px; }
.coada.gata .ce b { text-decoration: line-through; text-decoration-color: var(--text2); }
.coada .mai { font-size: 13px; color: var(--text2); padding: 6px 0 0 44px; }

.start { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 10px; border-radius: var(--r);
  background: var(--act); color: var(--act-text); font: 700 17px var(--f-titlu); text-decoration: none; transition: transform .12s; }
.start:active { transform: scale(.98); }
.start.facut { background: var(--act-slab); color: var(--act); }

.unelte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.unealta {
  display: flex; flex-direction: column; gap: 2px; padding: 12px; min-height: 84px; border-radius: 12px;
  background: var(--supr); border: 1px solid var(--linie); text-decoration: none; color: var(--text); text-align: left; cursor: pointer;
}
.unealta:active { background: var(--act-slab); }
.unealta > svg { color: var(--act); margin-bottom: 4px; width: 22px; height: 22px; }
.unealta strong { font-weight: 600; font-size: 15px; line-height: 1.2; }
.unealta span { font-size: 12.5px; line-height: 1.3; color: var(--text2); }
.unealta.lat { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; min-height: 56px; }
.unealta.lat > svg { margin: 0; flex: none; }
.unealta.lat div { display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* rânduri de materie („piste”) */
.piste { list-style: none; margin: 0; padding: 0; }
.pista { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 46px 14px; align-items: center; gap: 10px; height: 46px;
  border-bottom: 1px solid var(--linie); padding: 0 4px 0 2px; color: var(--text); text-decoration: none; }
.pista:active, .pista:hover { background: var(--act-slab); }
.abr { display: inline-block; width: 34px; flex: none; font: 700 15px/1 var(--f-titlu); color: var(--c, var(--act)); text-align: left; letter-spacing: -0.01em; }
.pista .nume { font-weight: 600; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bara5 { display: flex; gap: 2px; }
.bara5 i { width: 9px; height: 6px; border-radius: 1px; background: var(--linie); }
.bara5 i.p { background: var(--c, var(--act)); }
.pista .nr { font: 600 14px var(--f-titlu); color: var(--text2); text-align: right; font-variant-numeric: tabular-nums; }
.pista .sageata { color: var(--text3); width: 14px; height: 14px; }
.piste.acasa .pista { height: 52px; }

/* ---------- Lecții ---------- */
.antet-lectii { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.antet-lectii small { font-size: 14px; color: var(--text2); }
.cauta { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--supr); border: 1px solid var(--linie); }
.cauta:focus-within { border-color: var(--act); }
.cauta svg { color: var(--text2); flex: none; }
.cauta input { flex: 1; min-width: 0; border: 0 !important; background: none; outline: 0; min-height: 0; padding: 0; font-size: 16px; }
.cauta input::placeholder { color: var(--text2); }
.lectii-ecran { gap: 10px; }
.nimic { padding: 12px 4px; color: var(--text2); }

.materie-cap { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--linie); }
.materie-cap .rand { gap: 8px; }
.materie-cap h1 { font-size: 26px; }
.bara-lunga { height: 6px; border-radius: 3px; background: var(--linie); overflow: hidden; }
.bara-lunga i { display: block; height: 100%; background: var(--c, var(--act)); border-radius: 3px; }

.cap-titlu { font: 600 14px/1.3 var(--f-titlu); color: var(--text2); margin: 14px 2px 6px; }
.lista { display: flex; flex-direction: column; background: var(--supr); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.lista button, .lista a {
  all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 14px; border-top: 1px solid var(--linie); min-height: 24px; color: var(--text); font-size: 15.5px; line-height: 1.35;
}
.lista > :first-child { border-top: 0; }
.lista a:active, .lista button:active { background: var(--act-slab); }
.lista a:focus-visible, .lista button:focus-visible { outline: 3px solid var(--act); outline-offset: -3px; }
.lista .abr { width: 30px; }
.lista .rez-cauta { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.bifa { width: 22px; height: 22px; border-radius: 50%; flex: none; border: 2px solid var(--linie2); display: grid; place-items: center; }
.bifa.facuta { background: var(--corect); border-color: var(--corect); }
.bifa.facuta::after { content: ""; width: 9px; height: 5px; border: 2.5px solid var(--supr); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* ---------- Lecție ---------- */
.lectie-cap { display: flex; flex-direction: column; gap: 6px; }
.lectie-cap .mat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text2); line-height: 1.3; }
.punct { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--act)); flex: none; }
.titlu-lectie { font: 700 27px/1.15 var(--f-titlu); letter-spacing: -0.01em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.pasi { display: flex; gap: 6px; position: sticky; top: 0; z-index: 3; background: var(--fundal); padding: 10px 0 0; margin-top: 2px; border-bottom: 1px solid var(--linie); }
.pasi button { all: unset; flex: 1; min-width: 0; cursor: pointer; font-size: 13px; color: var(--text2); padding: 8px 0 10px; border-top: 3px solid var(--linie); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pasi button.facut { border-top-color: color-mix(in srgb, var(--act) 40%, var(--linie)); }
.pasi button[aria-selected=true] { border-top-color: var(--act); color: var(--text); font-weight: 600; }
.pasi button:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; }

.lectura { font-size: 16.5px; line-height: 1.6; max-width: 62ch; }
.lectura h3 { font: 600 17px/1.3 var(--f-titlu); margin: 18px 0 6px; }
.lectura h3:first-child { margin-top: 0; }
.lectura p { margin: 0 0 10px; }
.lectura ul { margin: 0 0 10px; padding-left: 20px; }
.lectura li { margin-bottom: 6px; }
.lectura li::marker { color: var(--act); }
.lectura strong { font-weight: 600; }
article.lectura.foaie { background: transparent; border: 0; padding: 4px 0 0; border-radius: 0; }
.idei { list-style: none; margin: 0; padding: 0; counter-reset: i; }
.idei li { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 11px 0; border-bottom: 1px solid var(--linie); line-height: 1.45; }
.idei li:last-child { border-bottom: 0; }
.idei li::before { counter-increment: i; content: counter(i); font: 700 15px/1.45 var(--f-titlu); color: var(--act); }
.termen { border-top: 1px solid var(--linie); padding: 11px 0; line-height: 1.5; }
.termen:first-of-type { border-top: 0; }

/* marker „partea ta” */
.tu { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--serie-plin) 40%, transparent) 55%, color-mix(in srgb, var(--serie-plin) 40%, transparent) 92%, transparent 92%); padding: 0 2px; color: inherit; }
.tu-bloc { background: var(--serie-fond); border: 1.5px dashed color-mix(in srgb, var(--serie) 55%, transparent); border-radius: var(--r); padding: 16px; }
.tu-bloc ul { margin: 8px 0 0; padding-left: 20px; }
.tu-bloc li { margin-bottom: 4px; }

/* cartonașe */
.scena { perspective: 1000px; }
.cartonas {
  min-height: 220px; border-radius: 16px; background: var(--supr); color: var(--text); border: 1px solid var(--linie);
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; cursor: pointer; transform-style: preserve-3d;
}
.cartonas.intors { background: var(--tabla); color: var(--tabla-text); border-color: transparent; }
.cartonas .t { font: 600 21px/1.3 var(--f-titlu); overflow-wrap: anywhere; }
.cartonas.intors .t { font: 500 18px/1.45 var(--f-text); }
.cartonas small { color: var(--text2); font-size: 13px; font-weight: 500; }
.cartonas.intors small { color: inherit; opacity: .7; }
.progres-bara { height: 6px; background: var(--linie); border-radius: 3px; overflow: hidden; }
.progres-bara i { display: block; height: 100%; background: var(--act); border-radius: 3px; transition: width .3s ease; }

/* grile */
.intreb { font: 600 18px/1.35 var(--f-titlu); }
.varianta {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; border: 1px solid var(--linie);
  border-radius: 12px; padding: 11px 12px; min-height: 30px; background: var(--supr); font-size: 15.5px; line-height: 1.4;
  transition: border-color .15s, background .15s;
}
.varianta:focus-visible { outline: 3px solid var(--act); }
.varianta[aria-disabled=true] { cursor: default; }
.varianta .lit { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--linie); display: grid; place-items: center; font: 700 13px var(--f-titlu); color: var(--text2); text-transform: uppercase; }
.varianta.corecta { border-color: var(--corect); box-shadow: inset 0 0 0 1px var(--corect); }
.varianta.corecta .lit { background: var(--corect); border-color: var(--corect); color: var(--supr); }
.varianta.gresita { border-color: var(--gresit); background: var(--gresit-fond); }
.varianta.gresita .lit { background: var(--gresit); border-color: var(--gresit); color: var(--supr); }
.varianta.gresita span:last-child { text-decoration: line-through; text-decoration-color: var(--gresit); }
.banda { border-radius: 0 10px 10px 0; padding: 12px 14px; font-size: 15px; line-height: 1.5; background: var(--supr); border-left: 3px solid var(--linie2); }
.banda.pauza { border-left-color: var(--serie); background: var(--serie-fond); }
.banda.eroare { border-left-color: var(--gresit); color: var(--text); background: var(--gresit-fond); }
.banda.bine { border-left-color: var(--corect); color: var(--text); background: var(--corect-fond); }
.banda.incearca { border-left-color: var(--serie); background: var(--serie-fond); }
.banda b { display: block; margin-bottom: 2px; }

/* pași de rezolvare */
.pas { display: flex; gap: 12px; }
.pas .nr { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--act); color: var(--act-text); display: grid; place-items: center; font: 700 13px var(--f-titlu); }
.pas .calc { font-family: ui-monospace, Menlo, monospace; font-size: 14.5px; background: var(--supr2); border: 1px solid var(--linie); border-radius: 10px; padding: 9px 11px; margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ascuns { filter: blur(7px); user-select: none; }
.poza-mini { width: 100%; max-height: 240px; object-fit: contain; border-radius: var(--r); background: var(--supr2); border: 1px solid var(--linie); }

/* ciornă */
.ciorna-text { font-size: 17px; line-height: 1.8; white-space: pre-wrap; }
mark.gr { background: none; border-bottom: 2.5px solid var(--gresit); color: inherit; cursor: pointer; padding: 0 1px; }
mark.gr.activ { background: var(--gresit-fond); }
.greseala { border-top: 1px solid var(--linie); padding: 12px 0; }
.greseala:first-child { border-top: 0; }
.eticheta { font-size: 12.5px; font-weight: 700; color: var(--gresit); }

/* „Spune ce crezi” */
.bula { max-width: 86%; border-radius: 18px; padding: 11px 14px; line-height: 1.5; font-size: 15.5px; }
.bula.elev { align-self: flex-end; background: var(--act); color: var(--act-text); border-bottom-right-radius: 6px; }
.bula.ai { align-self: flex-start; background: var(--supr); border: 1px solid var(--linie); border-bottom-left-radius: 6px; }
.mic-btn { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--act); color: var(--act-text); display: grid; place-items: center; cursor: pointer; margin: 0 auto; transition: transform .12s; }
.mic-btn svg { color: var(--act-text); }
.mic-btn:active { transform: scale(.94); }
.mic-btn.asculta { animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 14px var(--act-slab); } }

/* BAC și scor */
.bac-card { background: var(--supr); border: 1px solid var(--linie); border-radius: var(--r); padding: 18px; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.bac-card span { color: var(--text2); font-size: 14px; }
.scor { font: 800 52px/1 var(--f-titlu); color: var(--text); letter-spacing: -0.02em; }
.scor small { font-size: 22px; color: var(--text2); }
.item-rand { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--linie); font-size: 15px; }
.item-rand:first-child { border-top: 0; }
.ok { color: var(--corect); font-weight: 700; } .ko { color: var(--gresit); font-weight: 700; }
.serie-mare { font: 800 64px/1 var(--f-titlu); color: var(--text); }
.final-serie { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- bara de jos ---------- */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--supr); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
#tabbar .rand-tab { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 520px; margin: 0 auto; height: var(--nav); }
#tabbar button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; font-size: 12px; font-weight: 500; color: var(--text2); }
#tabbar button svg { width: 22px; height: 22px; }
#tabbar button[aria-current=page] { color: var(--act); font-weight: 600; }
#tabbar button:focus-visible { outline: 3px solid var(--act); outline-offset: -4px; border-radius: 12px; }
#tabbar .cerc { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--act); color: var(--act-text); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--supr); }
#tabbar .cerc svg { color: var(--act-text); }

/* diverse */
.spinner { width: 28px; height: 28px; border: 3px solid var(--linie); border-top-color: var(--act); border-radius: 50%; animation: rot .8s linear infinite; margin: 0 auto; }
@keyframes rot { to { transform: rotate(360deg); } }
.comutator { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--linie); font-size: 15px; }
.comutator:first-of-type { border-top: 0; }
.comutator input { width: 22px; height: 22px; flex: none; accent-color: var(--act); }
.sunet { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--linie); background: var(--supr); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; vertical-align: middle; }
.cartonas.intors ~ span .sunet { background: rgba(255,255,255,.14); border-color: transparent; color: var(--tabla-text); }

/* comutator segmentat (clasă la părinte, temă la „Eu”) */
.file { display: flex; gap: 4px; background: var(--supr2); border: 1px solid var(--linie); border-radius: 12px; padding: 4px; }
.file button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--text2); cursor: pointer; }
.file button[aria-selected=true] { background: var(--act); color: var(--act-text); }

/* scheme */
.schema { margin: 0; }
.schema figcaption { margin-bottom: 12px; font: 600 15px var(--f-titlu); }
.schema svg { background: #fff !important; }
.cron { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--linie2); }
.cron li { position: relative; padding: 0 0 14px 14px; }
.cron li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--act); border: 2px solid var(--supr); box-shadow: 0 0 0 2px var(--linie2); }
.cron b { display: block; font: 700 15px var(--f-titlu); color: var(--text); }
.flux { counter-reset: p; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.flux li { counter-increment: p; background: var(--supr2); border: 1px solid var(--linie); border-radius: 12px; padding: 11px 12px 11px 48px; position: relative; }
.flux li::before { content: counter(p); position: absolute; left: 11px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--act); color: var(--act-text); display: grid; place-items: center; font: 700 12px var(--f-titlu); }
.tabel { overflow-x: auto; margin: 0 0 12px; }
.tabel table { border-collapse: collapse; font-size: 15px; min-width: 100%; }
.tabel th, .tabel td { border: 1px solid var(--linie); padding: 7px 10px; text-align: left; }
.tabel th { background: var(--supr2); }

/* profiluri (intrare) */
.profiluri { display: flex; flex-direction: column; border-top: 1px solid var(--linie); }
.profil { display: flex; align-items: center; gap: 14px; background: none; border: 0; border-bottom: 1px solid var(--linie); padding: 12px 4px; min-height: 72px; cursor: pointer; text-align: left; width: 100%; color: var(--text); }
.profil:active { background: var(--act-slab); }
.profil .avatar { width: 48px; height: 48px; font-size: 20px; color: var(--fundal); }
.profil strong { display: block; font: 700 18px var(--f-titlu); }
.profil .sageata { color: var(--text3); }
.logo { font: 800 34px/1.05 var(--f-titlu); letter-spacing: -0.02em; }
.logo span { color: var(--act); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .mic-btn.asculta { outline: 4px solid var(--act-slab); }
}

/* cronometrul celor 10 minute */
.crono { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--text2); font-variant-numeric: tabular-nums; }
.crono-bara { flex: 1; max-width: 160px; height: 6px; border-radius: 3px; background: var(--linie); overflow: hidden; }
.crono-bara i { display: block; height: 100%; background: var(--act); border-radius: 3px; transition: width .4s; }
.crono.atins { color: var(--corect); font-weight: 600; }
.crono.atins .crono-bara i { background: var(--corect); }
.foaie.centrat .crono { justify-content: center; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav) + 24px); z-index: 50; background: var(--tabla); color: var(--tabla-text);
  border-radius: var(--r); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toastIn .35s ease-out; } }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- versiunea comercială: start, conturi, copii ---------- */
.logo-mic { font: 800 19px/1.1 var(--f-titlu); letter-spacing: -0.01em; }
.buton-mic { min-height: 40px; padding: 0 16px; font-size: 15px; }
.pornire { gap: 26px; }
.erou { gap: 14px; padding-top: 4vh; }
.titlu-mare { font-size: 38px; line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.titlu-mare span { color: var(--act); }
.lista-start { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.lista-start li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 12px 16px; border-bottom: 1px solid var(--linie); position: relative; }
.lista-start li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 2px; background: var(--serie-plin); }
.lista-start b { font: 600 16px/1.3 var(--f-titlu); }
.lista-start span { font-size: 14.5px; color: var(--text2); }
.pasi-start { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.pasi-start li::marker { font: 700 15px var(--f-titlu); color: var(--act); }
.subsol { display: flex; gap: 18px; justify-content: center; padding: 8px 0 4px; font-size: 13.5px; }
.subsol a { color: var(--text2); }
.bifa-rand { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 14.5px; color: var(--text); line-height: 1.45; cursor: pointer; }
.bifa-rand input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--act); }
.butoane-rand { display: flex; flex-wrap: wrap; gap: 8px; }
.butoane-rand .buton { min-height: 44px; padding: 0 14px; font-size: 14.5px; flex: 1 1 auto; }
.buton.sterge { color: var(--gresit); border-color: color-mix(in srgb, var(--gresit) 40%, var(--linie)); }
.link-copil input { font-size: 14px; font-family: ui-monospace, monospace; }
.juridic h3 { margin-top: 6px; }
.juridic p { line-height: 1.6; }
details.foaie summary { cursor: pointer; font-weight: 600; color: var(--gresit); }

/* cod în lecții (informatică) */
pre.cod { background: var(--supr2); border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; overflow-x: auto; margin: 8px 0;
  font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre; -webkit-overflow-scrolling: touch; }
pre.cod code { font: inherit; background: none; padding: 0; }
:not(pre) > code { font: .92em ui-monospace, Menlo, Consolas, monospace; background: var(--supr2); border-radius: 5px; padding: 1px 5px; }
