:root {
  --bg: #0f1f17; --fg: #f2f5f3; --muted: #9db3a6; --verde: #45e32d; --rosu: #e5484d;
  --card: #172c21; --nota: #6f8a7b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
main { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
section { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
section[hidden] { display: none; }
h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.sub { margin: 0; color: var(--muted); }
button { font: inherit; border: 0; cursor: pointer; border-radius: 999px; }
.mare { width: 200px; height: 200px; font-size: 22px; font-weight: 700; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; }
.mare svg { width: 56px; height: 56px; fill: currentColor; }
.verde { background: var(--verde); color: #0b1a10; box-shadow: 0 0 0 12px rgba(69,227,45,.12); }
.verde:active { transform: scale(.97); }
.rosu { background: var(--rosu); color: #fff; width: 100%; height: 64px; flex-direction: row; font-size: 19px; }
.secundar { background: var(--card); color: var(--fg); width: 100%; height: 52px; }
.secundar.activ { background: #3b2a12; color: #ffcf8a; }
.link { background: none; color: var(--muted); text-decoration: underline; padding: 8px; }
#ecran-apel { justify-content: space-between; min-height: calc(100dvh - 48px); }
.stare { margin: 0; color: var(--verde); font-weight: 700; }
.jurnal { flex: 1; width: 100%; overflow-y: auto; text-align: left; background: var(--card); border-radius: 18px;
  padding: 14px; max-height: 58dvh; }
.jurnal p { margin: 0 0 10px; }
.jurnal .eu { color: var(--muted); }
.jurnal .eu::before { content: "Tu: "; font-weight: 700; }
.jurnal .asistent::before { content: "Asistent: "; font-weight: 700; color: var(--verde); }
.jurnal .nota { color: var(--nota); font-size: 14px; }
.butoane { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.eroare { color: #ffb4b4; text-align: center; margin-top: 16px; }
