/* Fast Memo — phone first: big buttons, big text, one thing at a time. No emoji (the ASV rule): clean text and ✓ ✕ ›. */
:root {
  --bg: #07080c; --card: #10121a; --card2: #161926; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #f2f3f7; --muted: #9ea3b5; --memo: #8b9cff; --memo2: #5be1ff; --gold: #e2c27a;
  --ok: #4ade80; --bad: #fb7185; --r: 20px;
}
* { box-sizing: border-box; }
[hidden]:not(.back) { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; background: radial-gradient(70% 45% at 50% 0%, rgba(139,156,255,.14), transparent 70%), var(--bg); }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 34px; line-height: 1.1; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 22px; }

/* the top bar */
.top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: rgba(7,8,12,.9); border-bottom: 1px solid var(--line); }
.top .brand { font: 800 18px Montserrat, sans-serif; text-align: center; }
.top .back, .top .who { height: 40px; min-width: 40px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: 600 15px Inter, sans-serif; padding: 0 12px; }
.top .back { font-size: 24px; padding: 0; }
.top .back[hidden] { visibility: hidden; display: block; }

/* buttons: big, finger-sized */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 14px 20px; border-radius: 16px;
  border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 600 18px Inter, sans-serif; cursor: pointer; text-decoration: none; text-align: center; }
.btn.primary { background: linear-gradient(135deg, var(--memo), #6f7dff); border-color: transparent; color: #0a0b14; font-weight: 700; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:active:not(:disabled) { transform: scale(.985); }

/* cards and rows */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-weight: 600; }
.row .chev { color: var(--muted); font-size: 22px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--memo), var(--memo2)); border-radius: 99px; transition: width .6s; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line2); font-size: 13px; color: var(--muted); }
.pill.due { border-color: rgba(226,194,122,.5); color: var(--gold); }

/* forms */
label.f { display: grid; gap: 8px; font-weight: 600; }
input.in, select.in, textarea.in { width: 100%; min-height: 56px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: #0c0e15;
  color: var(--text); font: 500 18px Inter, sans-serif; }
textarea.in { min-height: 120px; resize: vertical; }
.note { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(226,194,122,.35); background: rgba(226,194,122,.07); font-size: 15px; }
.note b { color: var(--gold); }

/* Mr. Memo */
.memo { position: relative; display: grid; place-items: center; margin: 4px auto; }
.memo .halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(139,156,255,.55), rgba(91,225,255,.16) 45%, transparent 70%);
  filter: blur(2px); transition: transform .8s, opacity .8s; }
.memo canvas, .memo .fallback { position: relative; width: 100%; height: 100%; }
.memo .fallback { border-radius: 50%; background: radial-gradient(circle at 38% 34%, #3a3f55, #0b0c12 70%); }
.memo.zap .halo { animation: zap .9s ease-out; }
@keyframes zap { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); } }
.memo-say { position: relative; padding: 14px 16px; border-radius: 16px; background: var(--card2); border: 1px solid rgba(139,156,255,.35); font-size: 16px; }
.memo-say b { color: var(--memo); }
.level { text-align: center; font: 600 13px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--memo2); }

/* the session */
.qhead { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.qcard { padding: 22px 18px; }
.qcard .q { font-size: 20px; font-weight: 600; }
.qcard .tex { margin-top: 14px; font-size: 26px; text-align: center; overflow-x: auto; }
.opts { display: grid; gap: 12px; }
.opt { min-height: 60px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 500 19px Inter, sans-serif; text-align: left; cursor: pointer; }
.opt.ok { border-color: var(--ok); background: rgba(74,222,128,.12); }
.opt.bad { border-color: var(--bad); background: rgba(251,113,133,.12); }
.preview { min-height: 40px; text-align: center; font-size: 22px; color: var(--muted); }
.fb { border-radius: var(--r); padding: 18px; display: grid; gap: 10px; }
.fb.ok { background: rgba(74,222,128,.09); border: 1px solid rgba(74,222,128,.4); }
.fb.bad { background: rgba(251,113,133,.08); border: 1px solid rgba(251,113,133,.4); }
.fb .v { font: 800 22px Montserrat, sans-serif; }
.fb.ok .v { color: var(--ok); } .fb.bad .v { color: var(--bad); }
.fb .model { padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.25); }
.fb .src { font-size: 14px; color: var(--memo2); }
.fb .trick { padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(139,156,255,.5); font-size: 16px; }
.fb .trick b { color: var(--memo); }
.timer { font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dots i.ok { background: var(--ok); } .dots i.bad { background: var(--bad); } .dots i.now { background: var(--memo); }

/* the score */
.score { text-align: center; }
.score .big { font: 800 64px/1 Montserrat, sans-serif; }
.list { display: grid; gap: 10px; }
.list .it { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }

/* upload */
.drop { display: grid; gap: 10px; place-items: center; text-align: center; padding: 26px 18px; border-radius: var(--r); border: 2px dashed var(--line2); background: rgba(255,255,255,.02); }
.files { display: grid; gap: 8px; }
.files .fi { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.demo-badge { display: inline-block; padding: 3px 9px; border-radius: 99px; background: rgba(226,194,122,.14); color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.foot { margin-top: 28px; text-align: center; font-size: 13px; color: var(--muted); }

/* the material beside the questions: a panel from the right on the phone, a column on wider screens; it stays open */
.top { grid-template-columns: 44px 1fr auto; }
.top-r { display: flex; gap: 8px; }
.top .who.on { background: var(--memo); color: #0a0b14; border-color: transparent; }
.mat { position: fixed; z-index: 6; top: 0; right: 0; bottom: 0; width: min(92vw, 420px); display: flex; flex-direction: column;
  background: #0d0f17; border-left: 1px solid var(--line2); box-shadow: -20px 0 60px rgba(0,0,0,.5); }
.mat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); }
.mat-head b { display: block; font: 700 17px Montserrat, sans-serif; }
.mat-body { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 14px; align-content: start; }
.mat-page { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; scroll-margin-top: 12px; }
.mat-page.hit { border-color: var(--memo2); box-shadow: 0 0 0 2px rgba(91,225,255,.25); }
.mat-page .ref { font-size: 13px; color: var(--memo2); letter-spacing: .06em; text-transform: uppercase; }
.mat-page .tx { overflow-x: auto; }
@media (min-width: 900px) { body.mat-open main { margin-right: 440px; } body.mat-open .top { padding-right: 432px; } .mat { box-shadow: none; } }
.src-link { background: none; border: 0; padding: 0; color: var(--memo2); font: 500 14px Inter, sans-serif; text-decoration: underline; cursor: pointer; text-align: left; }
.peek { padding: 12px 14px; border-radius: 12px; background: rgba(91,225,255,.08); border: 1px solid rgba(91,225,255,.3); font-size: 15px; }
.mat .who { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: 600 15px Inter, sans-serif; }
/* during a test only Mr. Memo is beside the learner, with his hint */
.hintbox { display: flex; align-items: center; gap: 12px; }
.hintbox .btn { flex: 1; }
.hint-memo .memo { width: 64px !important; height: 64px !important; margin: 0; }
/* the date field: the browser's calendar icon light on our dark cards (23 Nov: it was black on black) */
input.in[type="date"] { color-scheme: dark; }

/* ─── HÂRTIE (Mr. ASV, 23 Nov 2026: „pe fundal mai deschis, pe hârtie, că nu-mi place așa închis”) ───
   The light palette chosen in the fastmemo-culori study (~/Downloads/FastMemo-palete-culori.html, B · Hârtie): warm paper,
   white cards, near-black text, one indigo accent, teal for "where it is in the material". It only OVERRIDES the dark rules
   above (they stay as they were) — rollback: delete this block. The dark "Noapte" theme can come back later for night mode. */
:root {
  --bg: #F5F4F0; --card: #FFFFFF; --card2: #FFFFFF; --line: rgba(0,0,0,.09); --line2: rgba(0,0,0,.16);
  --text: #111216; --muted: #5B5F6B; --memo: #3D4BD8; --memo2: #087568; --gold: #8A6410;
  --ok: #15803D; --bad: #C62828;
}
body { background: radial-gradient(70% 40% at 50% 0%, rgba(61,75,216,.07), transparent 70%), var(--bg); }
.top { background: rgba(245,244,240,.92); backdrop-filter: blur(8px); }
.btn.primary { background: var(--memo); color: #FFFFFF; }
.btn.ghost { background: transparent; }
.bar { background: rgba(0,0,0,.07); }
.bar i { background: linear-gradient(90deg, var(--memo), #6E7BFF); }
.pill.due { border-color: rgba(138,100,16,.4); }
input.in, select.in, textarea.in { background: #FFFFFF; }
input.in::placeholder, textarea.in::placeholder { color: #8A8E99; }
input.in[type="date"] { color-scheme: light; }
.note { border-color: rgba(138,100,16,.28); background: #FBF6EA; }
.memo .halo { background: radial-gradient(circle, rgba(61,75,216,.22), rgba(8,117,104,.08) 45%, transparent 70%); }
.memo .fallback { background: radial-gradient(circle at 38% 34%, #4a4f63, #111216 70%); }
.memo-say { border-color: rgba(61,75,216,.28); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.level { color: var(--memo); }
.card, .row, .list .it, .files .fi, .mat-page { box-shadow: 0 1px 2px rgba(17,18,22,.04); }
.opt.ok { background: rgba(21,128,61,.08); }
.opt.bad { background: rgba(198,40,40,.07); }
.fb.ok { background: rgba(21,128,61,.06); border-color: rgba(21,128,61,.35); }
.fb.bad { background: rgba(198,40,40,.05); border-color: rgba(198,40,40,.32); }
.fb .model { background: rgba(0,0,0,.04); }
.fb .trick { border-color: rgba(61,75,216,.38); }
.dots i { background: rgba(0,0,0,.12); }
.drop { background: rgba(0,0,0,.015); }
.demo-badge { background: rgba(138,100,16,.1); }
.top .who.on { color: #FFFFFF; }
.mat { background: #FAF9F6; box-shadow: -20px 0 60px rgba(17,18,22,.12); }
.mat-page.hit { box-shadow: 0 0 0 2px rgba(8,117,104,.22); }
.peek { background: rgba(8,117,104,.06); border-color: rgba(8,117,104,.3); }

/* ─── the account bar: frosted glass from the right (Mr. ASV, 23 Nov 2026) ─── */
.acc-scrim { position: fixed; inset: 0; z-index: 7; background: rgba(17,18,22,.18); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.acc { position: fixed; z-index: 8; top: 10px; right: 10px; bottom: 10px; width: min(calc(100vw - 20px), 380px); display: flex; flex-direction: column;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.7);
  background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(245,244,240,.62));
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 24px 60px rgba(17,18,22,.16), inset 0 1px 0 rgba(255,255,255,.9); animation: accIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes accIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.acc-head { display: flex; justify-content: space-between; align-items: center; padding: calc(14px + env(safe-area-inset-top)) 18px 12px; border-bottom: 1px solid var(--line); }
.acc-head b { font: 700 18px Montserrat, sans-serif; }
.acc .who { height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.6); color: var(--text); font: 600 14px Inter, sans-serif; cursor: pointer; }
.acc-body { flex: 1; overflow-y: auto; padding: 18px; display: grid; gap: 18px; align-content: start; }
.acc-me { display: flex; align-items: center; gap: 14px; }
.acc-me .t { display: grid; min-width: 0; } .acc-me .t span { overflow: hidden; text-overflow: ellipsis; }
.acc-me b { font: 700 18px Montserrat, sans-serif; }
.acc-pic { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(17,18,22,.12); }
.acc-ini { display: grid; place-items: center; background: var(--memo); color: #fff; font: 700 22px Montserrat, sans-serif; }
.acc-sec { display: grid; gap: 8px; }
.acc-lbl { font: 600 12px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.55); border: 1px solid var(--line); font-size: 15px; }
.acc-kv span { color: var(--muted); }
.acc-kid { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.55);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.acc-kid.on { border-color: var(--memo); box-shadow: 0 0 0 2px rgba(61,75,216,.15); }
.acc-kid .t { flex: 1; display: grid; } .acc-kid .t b { font-weight: 600; } .acc-kid .chev { color: var(--muted); font-size: 20px; }
.acc-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,75,216,.1); color: var(--memo); font: 700 15px Montserrat, sans-serif; flex: none; }
.acc .btn { min-height: 50px; font-size: 16px; }

/* ─── MINERAL · ASV (Mr. ASV, 23 Nov 2026: „toată tema în stilul Constituției noastre… cu gri, cu un pic de auriu, cu
   nanomaterie”). Constituția Limbajului Vizual ASV, Art. 12 + Anexa B: alb mineral, gri beton, grafit, negru mat, auriu cald;
   suprafețe mate, hairline, umbre joase și difuze, aurul rar (max ~2 accente pe ecran), mișcarea = materia se agregă
   (opacity + scale .98, 700–1100 ms, cubic-bezier(.16,1,.3,1)). Overrides Hârtie above — rollback: delete this block. ─── */
:root {
  --bg: #F4F2EE; --card: #FAF9F6; --card2: #FAF9F6; --line: rgba(20,20,15,.08); --line2: rgba(20,20,15,.14);
  --text: #14140F; --muted: #6B6862; --memo: #3A3A38; --memo2: #7A5C1E; --gold: #C79A3C; --concrete: #B8B4AE;
  --ok: #3F6B4A; --bad: #9A3B32; --ease: cubic-bezier(.16, 1, .3, 1);
}
body { background: var(--bg); }
.nano { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
main { position: relative; z-index: 1; } .top { z-index: 5; }
.top { position: sticky; background: rgba(244,242,238,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .brand { font: 700 15px Montserrat, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
h1 { font-size: 28px; } h2 { font-size: 22px; font-weight: 700; } h3 { font-size: 16px; letter-spacing: .01em; }
/* the materialising: every screen gathers out of the nano-matter */
main > * { animation: form .9s var(--ease) both; }
@keyframes form { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main > * { animation: none; } }

/* buttons — matte, hairline, graphite; the one primary action is matte black with a thin warm-gold edge (the "sense" light) */
.btn { min-height: 54px; border-radius: 14px; border: 1px solid var(--line2); background: transparent; color: var(--text);
  font: 600 16px Inter, sans-serif; letter-spacing: .01em; transition: border-color .5s var(--ease), background .5s var(--ease), transform .2s; }
.btn:hover:not(:disabled) { border-color: var(--memo); background: rgba(20,20,15,.025); }
.btn.ghost { background: transparent; }
.btn.primary { background: #14140F; color: #F4F2EE; border: 1px solid #14140F; box-shadow: inset 0 -2px 0 var(--gold), 0 8px 24px rgba(20,20,15,.12); }
.btn.primary:hover:not(:disabled) { background: #2A2A26; border-color: #2A2A26; }
.top .back, .top .who { border: 1px solid var(--line2); background: transparent; border-radius: 12px; font-weight: 600; }
.top .who.on { background: #14140F; color: #F4F2EE; border-color: #14140F; }

/* surfaces — mineral, matte, hairline, low diffuse shadow */
.card, .row, .list .it, .files .fi, .mat-page, .opt { background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20,20,15,.03), 0 10px 30px -18px rgba(20,20,15,.18); }
.row:hover { border-color: var(--line2); }
.opt { font-size: 18px; transition: border-color .5s var(--ease); }
.opt:hover:not(:disabled) { border-color: var(--memo); }
.pill { border-color: var(--line2); color: var(--muted); }
.pill.due { border-color: rgba(199,154,60,.55); color: var(--memo2); }
input.in, select.in, textarea.in { background: #FFFFFF; border: 1px solid var(--line2); transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
input.in:focus, select.in:focus, textarea.in:focus { outline: none; border-color: var(--memo); box-shadow: 0 0 0 3px rgba(199,154,60,.18); }
.note { background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--gold); }
.note b { color: var(--memo2); }

/* gold, rarely: the progress (knowledge growing), the level, Mr. Memo's voice */
.bar { height: 4px; background: rgba(20,20,15,.07); }
.bar i { background: linear-gradient(90deg, var(--memo), var(--gold)); }
.level { color: var(--memo2); }
.memo .halo { background: radial-gradient(circle, rgba(199,154,60,.20), rgba(184,180,174,.18) 45%, transparent 70%); }
.memo-say { background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px -20px rgba(20,20,15,.2); }
.memo-say b { color: var(--memo2); }
.dots i { background: rgba(20,20,15,.12); } .dots i.now { background: var(--gold); }

/* answers — functional colour only, muted mineral tones */
.opt.ok { border-color: var(--ok); background: rgba(63,107,74,.07); }
.opt.bad { border-color: var(--bad); background: rgba(154,59,50,.06); }
.fb.ok { background: rgba(63,107,74,.05); border-color: rgba(63,107,74,.35); }
.fb.bad { background: rgba(154,59,50,.045); border-color: rgba(154,59,50,.3); }
.fb .model { background: rgba(20,20,15,.035); }
.fb .src, .src-link, .mat-page .ref { color: var(--memo2); }
.fb .trick { border: 1px solid var(--line); border-left: 2px solid var(--gold); background: var(--card); }
.fb .trick b { color: var(--memo2); }
.peek { background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--gold); }
.mat-page.hit { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,60,.15); }
.drop { border: 1px dashed var(--concrete); background: rgba(250,249,246,.6); }
.mat { background: var(--bg); }
.demo-badge { background: rgba(199,154,60,.12); color: var(--memo2); }

/* the account bar — translucent but MATTE (Anexa B2: no shiny glassmorphism): mineral, hairline, no gloss */
.acc { background: rgba(244,242,238,.88); border: 1px solid var(--line2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -20px rgba(20,20,15,.28); animation: form .8s var(--ease) both; }
.acc .who { background: transparent; }
.acc-kv, .acc-kid { background: var(--card); }
.acc-kid.on { border-color: var(--memo); box-shadow: inset 2px 0 0 var(--gold); }
.acc-ini { background: #14140F; color: #F4F2EE; }
.acc-av { background: rgba(20,20,15,.06); color: var(--text); }
.acc-lbl { color: var(--muted); }
.acc-scrim { background: rgba(20,20,15,.14); }

/* the material panel shows the ORIGINAL file (23 Nov 2026): a wider panel, the PDF fills it */
.mat.pdf { width: min(96vw, 600px); }
.mat.pdf .mat-body { padding: 12px; gap: 12px; }
.mat-file { display: grid; gap: 8px; }
.mat-file-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mat-file .ref { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--memo2); }
.mat-file.hit .ref { color: var(--text); }
.mat-pdf { width: 100%; height: calc(100dvh - 150px); border: 1px solid var(--line2); border-radius: 12px; background: #fff; }
.mat-img { width: 100%; height: auto; border: 1px solid var(--line2); border-radius: 12px; background: #fff; }
@media (min-width: 900px) { body.mat-open.mat-pdf main { margin-right: 620px; } body.mat-open.mat-pdf .top { padding-right: 612px; } }

/* ─── progress you can SEE (Mr. ASV, 23 Nov 2026: „nu văd stadiul lor”) — the stage bar: graphite → gold as it is learned ─── */
.stage { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(20,20,15,.06); margin-top: 10px; }
.stage i { display: block; height: 100%; transition: width .9s var(--ease); }
.sg-nou { background: rgba(20,20,15,.08); }
.sg-alege { background: #B8B4AE; }
.sg-completeaza { background: #7D7A74; }
.sg-scrie { background: #3A3A38; }
.sg-stiute { background: var(--gold); }
.stage-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.stage-leg span { display: inline-flex; align-items: center; gap: 6px; }
.stage-leg b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.prog-h { display: flex; justify-content: space-between; align-items: baseline; }
.prog-n { font: 700 28px Montserrat, sans-serif; letter-spacing: -.01em; }
/* the test: a thin gold line that fills question by question */
.runbar { height: 3px; border-radius: 99px; background: rgba(20,20,15,.07); overflow: hidden; margin: -6px 0 -10px; }
.runbar i { display: block; height: 100%; background: var(--gold); transition: width .7s var(--ease); }
/* the parent's view of the tests */
.kid-last { display: block; margin-top: 4px; color: var(--memo2); }
.list .it.sess { display: grid; gap: 4px; }
.sess-n { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sess-n > span:first-child { font: 700 20px Montserrat, sans-serif; }

/* grades and averages per subject (Mr. ASV, 23 Nov 2026: „ca să văd evoluția sau involuția”) */
.grades { display: grid; gap: 8px; }
.grade-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.grade-row .t { display: grid; min-width: 0; } .grade-row .t b { font-weight: 600; }
.grade-m { display: grid; justify-items: end; gap: 2px; }
.media { font: 700 24px/1 Montserrat, sans-serif; letter-spacing: -.01em; }
.trend { font-size: 12px; color: var(--muted); white-space: nowrap; }
.trend.up { color: var(--ok); } .trend.down { color: var(--bad); }
.spark { display: block; }
.grades.in-row { margin-top: 10px; }
.grades.in-row .grade-row { padding: 8px 10px; background: rgba(20,20,15,.025); }
.grades.in-row .media { font-size: 18px; }
.nota { color: var(--text); }
@media (max-width: 420px) { .grade-row .spark { width: 64px; height: auto; } }
.sess-n > span:first-child { white-space: nowrap; }
.sess-n { flex-wrap: wrap; }
/* the brand in the top bar is the way home (23 Nov) */
a.brand { color: var(--text); text-decoration: none; justify-self: center; padding: 6px 10px; border-radius: 10px; transition: background .4s var(--ease); }
a.brand:hover { background: rgba(20,20,15,.04); }
/* the Amprenta mark beside the name (Mr. ASV chose it, 23 Nov 2026) */
a.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 22px; height: 22px; flex: none; }

/* Find my Kids (23 Nov 2026): the pairing code, the archive, the consent */
.pair { display: grid; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line2); background: #fff; text-align: center; }
.pair-code { font: 700 38px/1.1 Montserrat, sans-serif; letter-spacing: .14em; color: var(--text); border-bottom: 2px solid var(--gold); justify-self: center; padding: 4px 10px; }
details.arch summary { cursor: pointer; list-style: none; } details.arch summary::-webkit-details-marker { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: #14140F; }
/* the code fields: wide digits, but a normal placeholder (23 Nov: "c o d u l  d e  6") */
#kc::placeholder, #code::placeholder { letter-spacing: normal; font-size: 18px; }
.btn.danger { color: var(--bad); border-color: rgba(154,59,50,.35); }
/* answers are the learner's own: no autocorrect on the phone (23 Nov: iOS turned "știu" into "stir"); the brand on one line */
.brand span { white-space: nowrap; }
@media (max-width: 430px) { .top .brand { font-size: 13px; letter-spacing: .14em; gap: 7px; padding: 6px 4px; } .brand-mark { width: 18px; height: 18px; } .top .who { padding: 0 10px; } }

/* ─── the presentation page (23 Nov 2026) — information first, small-to-medium type, mineral, gold only where it means ─── */
body.landing-on main { max-width: 1040px; padding-top: 0; }
.lp { display: grid; gap: 72px; padding: 40px 0 24px; }
.lp-hero { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 680px; margin: 0 auto; }
.lp-mark-svg { width: 92px; height: 92px; }
.lp-kicker { font: 600 12px Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--memo2); }
.lp-hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.lp-lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 600px; }
.lp-cta { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.lp-sec { display: grid; gap: 22px; }
.lp-sec h2 { font-size: 24px; }
.lp-sec p { color: var(--muted); line-height: 1.6; }
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-who { grid-template-columns: repeat(3, 1fr); }
.lp-step { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20,20,15,.03), 0 10px 30px -18px rgba(20,20,15,.18); }
.lp-step > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); font: 700 13px Montserrat, sans-serif; }
.lp-step h3 { font-size: 16px; } .lp-step p { font-size: 15px; }
.lp-two { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 34px; }
.lp-two > div:first-child { display: grid; gap: 14px; }
.lp-demo { padding: 22px; }
.lp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lp-list li { position: relative; padding-left: 22px; color: var(--muted); line-height: 1.5; }
.lp-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; border-radius: 2px; background: var(--gold); }
.lp-promise { max-width: 720px; }
.lp-end { display: grid; gap: 16px; justify-items: center; text-align: center; padding-top: 8px; }
.lp-end .btn { max-width: 420px; }
.lp-end .foot a { color: inherit; }
@media (max-width: 820px) {
  .lp { gap: 52px; padding-top: 28px; }
  .lp-steps, .lp-who { grid-template-columns: 1fr 1fr; }
  .lp-two { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) { .lp-steps, .lp-who { grid-template-columns: 1fr; } .lp-lead { font-size: 17px; } }
.lp-price { justify-items: center; }
.lp-plan { display: grid; gap: 16px; max-width: 520px; width: 100%; padding: 28px; border-top: 2px solid var(--gold); }
.lp-amount { display: flex; align-items: baseline; gap: 10px; }
.lp-amount b { font: 800 44px/1 Montserrat, sans-serif; letter-spacing: -.02em; }
.lp-amount span { color: var(--muted); font-size: 16px; }
.lp-credits { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(20,20,15,.03); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.lp-credits > b { color: var(--text); }
.lp-packs { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-packs span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: 14px; }
.lp-incl { padding: 12px 14px; border-radius: 12px; border-left: 2px solid var(--gold); background: rgba(199,154,60,.07); font-size: 15px; line-height: 1.5; }
.lp-free { max-width: 520px; width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); font-size: 15px; line-height: 1.55; color: var(--muted); text-align: center; }
.lp-free b { color: var(--text); }
/* the landing appears at once (no materialising), so nothing is ever caught half-visible */
.lp, .lp > * { animation: none; }
body.landing-on main > * { animation: none; }
.lp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 880px; }
.lp-plans .lp-plan { max-width: none; border-top: 1px solid var(--line); align-content: start; }
.lp-plans .lp-plan-main { border-top: 2px solid var(--gold); }
.lp-price .lp-credits { max-width: 880px; width: 100%; }
@media (max-width: 720px) { .lp-plans { grid-template-columns: 1fr; } }

/* concrete grey top and bottom (Mr. ASV, 23 Nov 2026) — Constituția, Art. 12: gri beton #B8B4AE, matte, hairline */
.top { background: rgba(184,180,174,.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(20,20,15,.1); }
.top .back, .top .who { background: rgba(244,242,238,.55); }
.site-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 40px;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); background: rgba(184,180,174,.42); border-top: 1px solid rgba(20,20,15,.1);
  font-size: 13px; color: #3A3A38; }
.site-foot a { color: inherit; }
/* the footer always at the bottom, also on short pages */
body { display: flex; flex-direction: column; } body > main { flex: 1 0 auto; width: 100%; } .site-foot { flex: none; }
.note.invited { text-align: left; border-left: 2px solid var(--gold); }
.lp-vs { max-width: 880px; width: 100%; text-align: center; font: 600 17px/1.5 Inter, sans-serif; color: var(--text); padding: 6px 0 2px; }
/* equal plan cards (Mr. ASV, 23 Nov 2026: "carduri egale"): same height, same top edge, prices on one line, buttons at the bottom */
.lp-plans { align-items: stretch; }
.lp-plans .lp-plan { display: flex; flex-direction: column; gap: 16px; border-top-width: 2px; border-top-style: solid; }
.lp-plans .lp-plan:not(.lp-plan-main) { border-top-color: rgba(20,20,15,.14); }
.lp-plans .lp-plan .lp-list { flex: 1; }
.lp-plans .lp-plan .btn { margin-top: auto; }
.lp-plans .lp-plan .lp-incl { min-height: 76px; }

/* the day: streak, screen minutes, rewards (23 Nov 2026) */
.today { gap: 14px; }
.today-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.today-row > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(20,20,15,.025); border: 1px solid var(--line); }
.today-n { font: 700 26px/1.1 Montserrat, sans-serif; }
.reward { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.reward .t { display: grid; } .reward .t b { font-weight: 600; }
.reward.won { border-color: var(--gold); box-shadow: inset 2px 0 0 var(--gold); }
.earned { font: 600 15px Inter, sans-serif; color: var(--memo2); margin-top: 4px; }
/* iOS Safari draws a date input wider than its box (23 Nov: it ran off the screen) — tame it */
input.in[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input.in[type="date"]::-webkit-date-and-time-value { text-align: left; }
/* top and bottom: a NEUTRAL grey (Mr. ASV, 23 Nov 2026: "mi se pare că e roz, nu gri") — the concrete #B8B4AE at 42% over the
   warm mineral white came out ≈ #DCD8D2, warm/pinkish. Now a grey with no warm cast, from the graphite #3A3A38 family. */
.top { background: rgba(221,221,219,.92); }
.site-foot { background: #DDDDDB; }
.top .back, .top .who { background: rgba(255,255,255,.5); }
/* the grey reaches the very top, under the clock (status-bar area), as one block */
html { background: #DDDDDB; }
body { background: var(--bg); }
.top { padding-top: calc(10px + env(safe-area-inset-top)); }
/* an OPAQUE grey top bar: iOS Safari tints the status-bar area from it (a translucent bar is ignored) */
.top { background: #DDDDDB; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ═══ PREMIUM SHELL (Mr. ASV, 23 Nov 2026: „așa arată o aplicație premium?” → the approved mock-up) ═══
   No bands, no footer inside the app; a quiet top bar; big titles; a fixed tab bar; fewer outlines, more air.
   Overrides everything above — rollback: delete this block (and the tab bar in index.html). */
html { background: var(--bg); }
.top { background: rgba(244,242,238,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 0; }
.top .back, .top .who { background: transparent; }
.top .who { width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 50%; background: #14140F; color: #F4F2EE; border: 0; font: 700 14px Montserrat, sans-serif; }
.top .brand { font-size: 11px; letter-spacing: .24em; color: #3A3A38; }
.site-foot { display: none; } body.landing-on .site-foot { display: flex; }
/* big titles */
.hello-wrap { display: grid; gap: 4px; margin-top: 4px; }
.hello { font: 800 32px/1.08 Montserrat, sans-serif; letter-spacing: -.02em; margin: 0; }
.hello.big { font-size: 28px; }
.hello-sub { color: var(--muted); font-size: 15px; margin: 0; }
.hello-k { font: 600 11px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sec-h { font: 700 12px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a877f; }
/* the test of the day */
.hero { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 22px; border-radius: 24px; background: #14140F; color: #F4F2EE;
  box-shadow: 0 20px 40px -24px rgba(20,20,15,.55); }
.hero-k { font: 600 11px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #C9B37A; }
.hero h3 { margin: 0; font: 700 20px/1.25 Montserrat, sans-serif; max-width: 78%; color: #F4F2EE; }
.hero p { margin: 0; color: #B8B4AE; font-size: 14px; max-width: 86%; }
.hero-go { margin-top: 4px; border: 0; border-radius: 14px; padding: 14px; background: #F4F2EE; color: #14140F; font: 700 15px Inter, sans-serif; cursor: pointer; }
.hero-memo { position: absolute; right: -4px; top: -4px; opacity: .95; pointer-events: none; }
/* the day's numbers as tiles, no outer card */
.today { background: transparent; border: 0; box-shadow: none; padding: 0; }
.today-row > div { background: var(--card); border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 30px -20px rgba(0,0,0,.25); }
.reward { border: 0; border-radius: 18px; box-shadow: 0 12px 30px -22px rgba(0,0,0,.3); }
/* fewer outlines everywhere */
.card, .row, .list .it, .files .fi, .opt, .grade-row { border-color: transparent; }
.row { border-radius: 18px; }
/* the chapter ring */
.ring-card { display: flex; align-items: center; gap: 18px; padding: 18px; }
.ring-svg { flex: none; }
.ring-card .stage-leg { display: grid; gap: 5px; margin: 0; }
/* the test: ✕ + gold bar + count, big question, Verifică at the thumb */
.qtop { display: flex; align-items: center; gap: 12px; padding-top: calc(4px + env(safe-area-inset-top)); }
.qx { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #ECE9E3; color: #3A3A38; font: 600 15px Inter, sans-serif; cursor: pointer; flex: none; }
.qtop .runbar { flex: 1; height: 6px; margin: 0; background: #E4E1DB; }
.qn { font: 600 13px Inter, sans-serif; color: var(--muted); }
.qk { font: 600 11px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a877f; }
.qcard { padding: 0; } .qcard .q { font: 700 23px/1.3 Montserrat, sans-serif; letter-spacing: -.01em; }
#chk, #rev { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 3; }
/* the tab bar */
.tabbar { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,249,246,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(20,20,15,.06); }
.tabbar[hidden] { display: none; }
.tb { display: grid; justify-items: center; gap: 3px; border: 0; background: none; color: #9a978f; font: 600 10.5px Inter, sans-serif; cursor: pointer; padding: 4px 0; }
.tb.on { color: #14140F; }
body.tabs-on main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .tabbar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 14px; border-radius: 22px; border: 1px solid rgba(20,20,15,.06); box-shadow: 0 16px 40px -20px rgba(0,0,0,.35); } }
/* the "Materia" button stays a text pill (only the account button is a round initial) */
.top #matBtn { width: auto; min-width: 0; height: 34px; padding: 0 12px; border-radius: 12px; background: transparent; color: var(--text); border: 1px solid var(--line2); font: 600 13px Inter, sans-serif; }
.top #matBtn.on { background: #14140F; color: #F4F2EE; border-color: #14140F; }
