/* Tema nouă Xpand: „ecusonul de eveniment”. Șina bleumarin Xpand, roșul ca accent, câte o panglică
   colorată pe fiecare chestionar, ștampile de check-in pentru stări. Fără framework: doar acest fișier. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #08113a;
  --navy-900: #0c1748;
  --navy-800: #12205c;
  --navy-700: #1b2c73;
  --navy-600: #2a3d8c;
  --navy-100: #e4e9f7;
  --cerneala: #0d2169; /* albastrul X-urilor din PDF-ul Xpand (0.051, 0.129, 0.412) */

  --rosu: #ca2026; /* X-ul din logo */
  --rosu-600: #a8161c;
  --rosu-50: #fdeced;

  --fond: #f3f5fa;
  --fond-2: #eaeef7;
  --suprafata: #ffffff;
  --linie: #e0e5ef;
  --linie-2: #c9d0df;

  --text: #0f1a3a;
  --text-2: #465274;
  --text-3: #5f6a8a;

  /* panglicile chestionarelor */
  --t-rezilienta: #0b8f68;
  --t-teamscan: #2459e0;
  --t-abilitati: #c98a00;
  --t-xos: #6f45e8;
  --t-vcl: #cf2771;
  --t-ceo: #0e7490;
  --t-vuca: #c2410c;
  --t-youth: #4d7c0f;
  --t-citychanger: #1e3a8a;
  --t-contributie: #4338ca;
  --t-glsquiz: #0369a1;

  --ok: #0b8f68;
  --atentie: #b45f06;
  --info: #2459e0;
  --stins: #6b7591;
  --focus: #2459e0;

  --r-mic: 8px;
  --r: 12px;
  --r-mare: 16px;
  --umbra-1: 0 1px 2px rgb(15 26 58 / 0.06);
  --umbra-2: 0 1px 2px rgb(15 26 58 / 0.06), 0 10px 28px -14px rgb(15 26 58 / 0.28);
  --umbra-3: 0 2px 6px rgb(15 26 58 / 0.08), 0 28px 60px -20px rgb(8 17 58 / 0.45);
  --iesire: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--fond);
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: var(--info); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgb(202 32 38 / 0.18); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--linie-2) transparent; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.ascuns { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
[hidden] { display: none !important; }

/* ——— cadrul panoului ——— */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--navy-900) 256px, transparent 256px); }
.sina {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--navy-800);
  background-image: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff; padding: 22px 14px 16px;
}
.sina-logo { display: block; padding: 4px 10px 26px; }
.sina-logo img { height: 30px; width: auto; }
.sina nav { flex: 1; overflow-y: auto; }
.sina ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sina-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: rgb(255 255 255 / 0.74); text-decoration: none; font-weight: 550; font-size: 15px;
  transition: background 160ms, color 160ms;
}
.sina-link:hover { background: rgb(255 255 255 / 0.06); color: #fff; }
.sina-link[aria-current='page'] { background: rgb(255 255 255 / 0.1); color: #fff; }
.sina-link[aria-current='page'] .ic { color: #ff5a63; }
.sina-subsol { display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 0.1); }
.limba-sina { display: flex; gap: 4px; padding: 3px; background: rgb(255 255 255 / 0.07); border-radius: 10px; width: max-content; }
.limba-sina a { padding: 4px 12px; border-radius: 7px; color: rgb(255 255 255 / 0.7); font-size: 13px; font-weight: 650; text-decoration: none; letter-spacing: 0.04em; }
.limba-sina a[aria-current='true'] { background: #fff; color: var(--navy-800); }
.cont > summary {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 10px; cursor: pointer;
  transition: background 160ms;
}
.cont > summary:hover, .cont[open] > summary, .cont.activ > summary { background: rgb(255 255 255 / 0.08); }
.cont > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cont img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--navy-600); }
.cont-nume { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.cont-nume small { display: block; color: rgb(255 255 255 / 0.6); font-weight: 450; font-size: 12px; }
.cont > summary > .ic { color: rgb(255 255 255 / 0.55); flex: none; transition: transform 160ms; }
.cont[open] > summary > .ic { transform: rotate(180deg); }
.cont .meniu-lista { min-width: 0; }
.meniu-lista [aria-current='page'] { background: var(--fond); }
.bara-mobil { display: none; }

.principal { padding: 34px 44px 72px; min-width: 0; }
.continut { max-width: 1320px; margin: 0 auto; }
.cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.cap h1 { font-size: 30px; font-weight: 780; font-stretch: 82%; letter-spacing: -0.012em; }
.cap-text { color: var(--text-2); margin-top: 6px; max-width: 70ch; }
.cap-actiuni { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.firimitura { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 550; text-decoration: none; margin-bottom: 10px; }
.firimitura:hover { color: var(--text); }

/* ——— butoane ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font-size: 14.5px; font-weight: 650; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: background 160ms, border-color 160ms, color 160ms, box-shadow 160ms, transform 120ms;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }
.btn-primar { background: var(--rosu); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 0.15) inset, 0 1px 2px rgb(168 22 28 / 0.35); }
.btn-primar:hover:not(:disabled) { background: var(--rosu-600); }
.btn-secundar { background: var(--suprafata); color: var(--text); border-color: var(--linie-2); box-shadow: var(--umbra-1); }
.btn-secundar:hover:not(:disabled) { border-color: var(--text-3); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-700); }
.btn-fantoma { background: transparent; color: var(--text-2); }
.btn-fantoma:hover:not(:disabled) { background: var(--fond-2); color: var(--text); }
.btn-pericol { background: var(--rosu-50); color: var(--rosu-600); border-color: rgb(202 32 38 / 0.25); }
.btn-pericol:hover:not(:disabled) { background: var(--rosu); color: #fff; }
.btn-mic { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; gap: 6px; }
.btn-icon { width: 36px; padding: 0; }
.btn-mic.btn-icon { width: 32px; }

/* ——— formulare ——— */
.campuri { display: grid; gap: 18px; }
.campuri-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.camp { display: grid; gap: 6px; min-width: 0; align-content: start; }
.camp > label, .camp > .eticheta { font-size: 13.5px; font-weight: 620; color: var(--text-2); }
.camp .op { font-weight: 450; color: var(--text-3); }
.intrare, .camp input:not([type='checkbox']):not([type='radio']):not([type='file']), .camp select, .camp textarea {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--suprafata); border: 1px solid var(--linie-2); border-radius: 10px;
  font-size: 15px; transition: border-color 160ms, box-shadow 160ms;
}
.camp textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.camp select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.intrare:hover, .camp input:hover, .camp select:hover, .camp textarea:hover { border-color: var(--text-3); }
.intrare:focus, .camp input:focus, .camp select:focus, .camp textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(36 89 224 / 0.16); }
.camp input:disabled, .camp textarea:disabled { background: var(--fond); color: var(--text-2); }
/* câmpul respins (src/formular.js); selectorul repetă specificitatea regulii de mai sus */
.camp input:not([type='checkbox']):not([type='radio']):not([type='file'])[aria-invalid='true'], .camp select[aria-invalid='true'], .camp textarea[aria-invalid='true'] { border-color: var(--rosu); }
.camp input:not([type='checkbox']):not([type='radio']):not([type='file'])[aria-invalid='true']:focus, .camp select[aria-invalid='true']:focus, .camp textarea[aria-invalid='true']:focus { border-color: var(--rosu); box-shadow: 0 0 0 3px rgb(202 32 38 / 0.14); }
.camp ::placeholder { color: #8a93ad; }
/* Ochiul parolei (cuOchi, src/ui.js): butonul stă în câmp, în dreapta; ochiul nativ al Edge-ului nu mai apare. */
.cu-ochi { position: relative; }
.camp .cu-ochi input:not([type='checkbox']):not([type='radio']):not([type='file']) { padding-right: 46px; }
.cu-ochi input::-ms-reveal { display: none; }
.ochi { position: absolute; top: 0; right: 0; width: 44px; height: 100%; display: grid; place-items: center; background: none; border: 0; border-radius: 0 10px 10px 0; color: var(--text-3); cursor: pointer; }
.ochi:hover { color: var(--text-2); }
.ochi:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.ochi[hidden] { display: none; }
.ochi .ic + .ic, .ochi[aria-pressed='true'] .ic:first-child { display: none; }
.ochi[aria-pressed='true'] .ic + .ic { display: block; }
.nota { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.fisier { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fisier input[type='file'] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fisier input[type='file']:focus-visible + .btn { outline: 2px solid var(--focus); outline-offset: 2px; }
.fisier-nume { font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.bifa { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.bifa input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy-800); flex: none; }
.optiuni-radio { display: grid; gap: 8px; }
.optiune {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px;
  border: 1px solid var(--linie-2); border-radius: 10px; cursor: pointer; font-size: 14.5px;
  transition: border-color 160ms, background 160ms;
}
.optiune:has(input:checked) { border-color: var(--navy-700); background: #f6f8fd; box-shadow: 0 0 0 1px var(--navy-700) inset; }
.optiune input { accent-color: var(--navy-800); margin: 3px 0 0; }
.cauta { position: relative; }
.cauta .ic { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--text-3); pointer-events: none; }
.cauta input { width: 300px; max-width: 100%; height: 40px; padding: 0 12px 0 38px; background: var(--suprafata); border: 1px solid var(--linie-2); border-radius: 10px; }
.cauta input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(36 89 224 / 0.16); }

/* ——— suprafețe ——— */
.panou { background: var(--suprafata); border: 1px solid var(--linie); border-radius: var(--r-mare); box-shadow: var(--umbra-1); }
.panou-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 24px 0; flex-wrap: wrap; }
.panou-cap h2 { font-size: 17px; font-weight: 720; font-stretch: 90%; }
.panou-cap .nota { margin-top: 3px; }
.panou-corp { padding: 18px 24px 24px; }
.sectiune-titlu { font-size: 17px; font-weight: 720; font-stretch: 90%; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.sectiune-titlu .nota { font-size: 13px; font-weight: 450; }

/* ——— panglica chestionarului ——— */
.panglica {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 12px 0 8px;
  background: var(--c, var(--navy-700)); color: #fff;
  font-size: 11.5px; font-weight: 780; font-stretch: 80%; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%);
}
.panglica small { font-weight: 600; opacity: 0.85; letter-spacing: 0.04em; }
[data-tip='rezilienta'] { --c: var(--t-rezilienta); }
[data-tip='teamscan'] { --c: var(--t-teamscan); }
[data-tip='abilitati'] { --c: var(--t-abilitati); }
[data-tip='xos'] { --c: var(--t-xos); }
[data-tip='vcl'] { --c: var(--t-vcl); }
[data-tip='ceo'] { --c: var(--t-ceo); }
[data-tip='vuca'] { --c: var(--t-vuca); }
[data-tip='youth'] { --c: var(--t-youth); }
[data-tip='citychanger'] { --c: var(--t-citychanger); }
[data-tip='contributie'] { --c: var(--t-contributie); }
[data-tip='glsquiz'] { --c: var(--t-glsquiz); }

/* ——— ștampilele de check-in ——— */
.stampila {
  --s: var(--stins);
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px;
  color: var(--s); background: color-mix(in srgb, var(--s) 7%, white);
  border: 1.5px solid var(--s); border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px #fff, inset 0 0 0 2.5px color-mix(in srgb, var(--s) 40%, transparent);
  font-size: 11px; font-weight: 820; font-stretch: 72%; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.stampila[data-s='terminat'], .stampila[data-s='deschis'] { --s: var(--ok); }
.stampila[data-s='inLucru'] { --s: var(--atentie); }
.stampila[data-s='programat'] { --s: var(--info); }
.stampila[data-s='incheiat'] { --s: #4b5574; }
.stampila[data-s='nepublicat'], .stampila[data-s='inactiv'] { --s: #7c859e; }
.stampila[data-s='activ'], .stampila[data-s='stripe-live'] { --s: var(--ok); }
.stampila[data-s='stripe-test'] { --s: var(--atentie); }

/* ——— semnele de check-in: o liniuță pe participant ——— */
.semne { display: flex; gap: 2px; align-items: flex-end; height: 18px; }
.semne i { width: 4px; height: 100%; border-radius: 1.5px; background: var(--linie); }
.semne i.t { background: var(--c, var(--navy-700)); }
.semne i.l { background: color-mix(in srgb, var(--c, var(--navy-700)) 32%, white); height: 70%; }
.checkin { display: grid; gap: 6px; }
.checkin-text { font-size: 13px; color: var(--text-2); }
.checkin-text b { color: var(--text); font-weight: 700; }

/* ——— ecusonul ——— */
.ecuson {
  position: relative; background: var(--suprafata); color: var(--text);
  border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--umbra-2);
  display: flex; flex-direction: column;
}
.ecuson-panglica {
  height: 40px; border-radius: 13px 13px 0 0; background: var(--c, var(--navy-700)); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 0;
  font-size: 11.5px; font-weight: 800; font-stretch: 78%; letter-spacing: 0.09em; text-transform: uppercase;
}
/* fanta pentru șnur */
.ecuson-panglica::before {
  content: ''; position: absolute; top: 9px; left: 50%; translate: -50% 0;
  width: 38px; height: 7px; border-radius: 4px; background: var(--fond);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.35);
}
.ecuson-corp { padding: 16px 18px 14px; display: grid; gap: 4px; flex: 1; align-content: start; }
.ecuson-nume { font-size: 22px; font-weight: 820; font-stretch: 72%; line-height: 1.08; letter-spacing: -0.005em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ecuson-firma { font-size: 14px; color: var(--text-2); font-weight: 550; }
.ecuson-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.ecuson-zile { font-size: 12.5px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.cotor {
  position: relative; border-top: 1.5px dashed var(--linie-2);
  padding: 12px 18px 14px; display: flex; align-items: center; gap: 12px;
  transition: transform 520ms var(--iesire);
  transform-origin: 0 0;
}
/* crestăturile perforației */
.cotor::before, .cotor::after { content: ''; position: absolute; top: -8px; width: 15px; height: 15px; border-radius: 50%; background: var(--fond); border: 1px solid var(--linie); }
.cotor::before { left: -8px; clip-path: inset(0 0 0 50%); }
.cotor::after { right: -8px; clip-path: inset(0 50% 0 0); }
.cotor.rupt { animation: rupe 900ms var(--iesire); }
@keyframes rupe {
  0% { transform: none; }
  28% { transform: translateY(7px) rotate(1.6deg); }
  100% { transform: none; }
}

/* ecusonul mare, din pagina sondajului */
.ecuson-mare { width: 100%; }
.ecuson-mare .ecuson-panglica { height: 48px; font-size: 12.5px; padding-top: 12px; }
.ecuson-mare .ecuson-panglica::before { top: 10px; width: 48px; height: 8px; }
.ecuson-mare .ecuson-corp { padding: 22px 26px 20px; gap: 6px; }
.ecuson-mare .ecuson-nume { font-size: clamp(28px, 3.2vw, 38px); -webkit-line-clamp: 3; }
.ecuson-mare .ecuson-firma { font-size: 16px; }
.ecuson-mare .cotor { padding: 18px 26px 22px; align-items: stretch; gap: 20px; }
.ecuson-date { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--text-2); }
.ecuson-date b { display: block; color: var(--text); font-weight: 680; font-size: 15px; }
.link-cotor { flex: 1; min-width: 0; display: grid; gap: 10px; align-content: center; }
.link-cotor .eticheta { font-size: 13.5px; font-weight: 620; color: var(--text-2); }
/* Plăți online: secțiunile formularului; pe ecran lat, titlul și explicația în stânga */
.plati { max-width: 900px; }
.plati-sectiune { display: grid; gap: 14px 36px; padding: 24px; border-bottom: 1px solid var(--linie); }
.plati-sectiune-cap h2 { font-size: 16px; font-weight: 720; font-stretch: 90%; margin-bottom: 4px; }
.plati-sectiune-cap .nota { font-size: 13px; max-width: 46ch; }
.plati-sectiune-cap a { color: var(--info); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.plati-sectiune .campuri { gap: 16px; }
.camp-taxa { max-width: 180px; }
.plati-subsol { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 18px 24px 22px; }
@media (min-width: 1180px) { .plati-sectiune { grid-template-columns: 230px minmax(0, 1fr); } }
.link-copiaza { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-copiaza .link-text { flex: 1 1 260px; min-width: 0; }
.link-text { font-size: 14px; color: var(--text); background: var(--fond); border: 1px solid var(--linie); border-radius: 8px; padding: 9px 11px; overflow-wrap: anywhere; line-height: 1.35; }
.qr { width: 112px; flex: none; display: grid; gap: 6px; justify-items: center; }
.qr svg { width: 112px; height: 112px; display: block; }
.qr a { font-size: 12px; font-weight: 600; }

/* ——— șnurul din Panou ——— */
.snur.deborda { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); }
.snur { position: relative; display: flex; gap: 22px; overflow-x: auto; padding: 50px 6px 26px; margin: 0 -6px; scroll-snap-type: x proximity; }
.snur::before { content: ''; position: absolute; left: 0; right: 0; top: 16px; height: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); box-shadow: 0 2px 3px rgb(8 17 58 / 0.25); min-width: 100%; }
.agatat { position: relative; flex: none; width: 236px; scroll-snap-align: start; text-decoration: none; color: inherit; }
.agatat::before { /* bareta */
  content: ''; position: absolute; left: 50%; top: -34px; width: 4px; height: 28px; translate: -50% 0;
  background: var(--navy-800); border-radius: 2px;
}
.agatat::after { /* clema roșie */
  content: ''; position: absolute; left: 50%; top: -12px; width: 16px; height: 11px; translate: -50% 0;
  background: var(--rosu); border-radius: 3px; box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.2);
}
.agatat .ecuson { transform-origin: 50% -30px; transition: transform 600ms var(--iesire), box-shadow 300ms; height: 100%; }
.agatat:hover .ecuson, .agatat:focus-visible .ecuson { transform: rotate(-1.4deg); box-shadow: var(--umbra-3); }
.agatat:focus-visible { outline: none; }
.agatat:focus-visible .ecuson { outline: 2px solid var(--focus); outline-offset: 3px; }
.snur-gol { display: grid; gap: 6px; padding: 26px 24px; border: 1.5px dashed var(--linie-2); border-radius: var(--r-mare); color: var(--text-2); }
.snur-gol strong { color: var(--text); font-size: 16px; }

/* ——— tabele ——— */
.tabel-cutie { overflow-x: auto; }
.tabel { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.tabel th {
  text-align: left; font-size: 12.5px; font-weight: 650; color: var(--text-3); white-space: nowrap;
  padding: 12px 14px; border-bottom: 1px solid var(--linie); background: var(--suprafata); position: sticky; top: 0; z-index: 1;
}
.tabel th[data-sorteaza] { cursor: pointer; user-select: none; }
.tabel th[data-sorteaza]:hover { color: var(--text); }
.tabel th[aria-sort] .ic { opacity: 1; }
.tabel th .ic { opacity: 0.35; vertical-align: -3px; margin-left: 2px; transition: transform 160ms; }
.tabel th[aria-sort='descending'] .ic { transform: rotate(180deg); }
.tabel td { padding: 14px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabel tbody tr { transition: background 120ms; }
.tabel tbody tr:hover td { background: #f8f9fd; }
.tabel tbody tr:has(.selector:checked) td { background: #f1f4fc; }
.tabel tbody tr:last-child td { border-bottom: 0; }
.tabel .col-bifa { width: 44px; padding-right: 0; }
.tabel .col-nume { min-width: 260px; }
@media (max-width: 1279px) { .doar-lat { display: none !important; } }
.tabel .stampila { rotate: -2deg; }
.tabel .col-actiuni { width: 1%; white-space: nowrap; text-align: right; }
.tabel input[type='checkbox'] { width: 17px; height: 17px; accent-color: var(--navy-800); margin: 0; display: block; }
.celula-titlu { display: grid; gap: 5px; }
.celula-titlu a, .celula-titlu strong { font-weight: 680; color: var(--text); text-decoration: none; font-size: 15px; }
.celula-titlu a:hover { color: var(--info); text-decoration: underline; }
.celula-sub { font-size: 13px; color: var(--text-2); }
.celula-perioada { white-space: nowrap; font-size: 14px; }
.celula-perioada small { display: block; color: var(--text-3); font-size: 12.5px; font-weight: 550; }
.rand-actiuni { display: inline-flex; gap: 6px; align-items: center; }
.bara-unelte { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--linie); }
.fara-rezultate td { text-align: center; color: var(--text-2); padding: 40px 14px; }

/* ——— comutatoare ——— */
.segmente { display: inline-flex; gap: 2px; padding: 3px; background: var(--fond-2); border-radius: 10px; flex-wrap: wrap; }
.segmente a, .segmente button {
  border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 620; color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.segmente a:hover, .segmente button:hover { color: var(--text); }
.segmente [aria-current='true'], .segmente [aria-pressed='true'] { background: var(--suprafata); color: var(--text); box-shadow: var(--umbra-1), 0 0 0 1px var(--linie); }
.segmente .contor { color: var(--text-3); font-weight: 550; margin-left: 4px; }

/* ——— meniul cu acțiuni ——— */
.meniu { position: relative; }
.meniu > summary { list-style: none; }
.meniu > summary::-webkit-details-marker { display: none; }
.meniu-lista {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 244px;
  background: var(--suprafata); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--umbra-3);
  padding: 6px; display: grid; gap: 1px; text-align: left;
  animation: apare 160ms var(--iesire);
}
/* Deschis, meniul stă deasupra paginii (public/app.js îl așază lângă buton): altfel tabelul, care derulează
   pe orizontală, îl taie la marginea lui. */
.meniu-lista.flotant { position: fixed; top: auto; right: auto; bottom: auto; z-index: 60; max-height: calc(100vh - 16px); overflow-y: auto; }
.meniu-lista form { margin: 0; }
.meniu-lista a, .meniu-lista button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px;
  font-size: 14px; font-weight: 550; color: var(--text); text-decoration: none; cursor: pointer; text-align: left; white-space: nowrap;
}
.meniu-lista a:hover, .meniu-lista button:hover:not(:disabled) { background: var(--fond); }
.meniu-lista .ic { color: var(--text-3); }
.meniu-lista .pericol, .meniu-lista .pericol .ic { color: var(--rosu-600); }
.meniu-lista button:disabled { color: var(--text-3); cursor: not-allowed; }
.meniu-lista .motiv { display: block; font-size: 12px; color: var(--text-3); font-weight: 450; white-space: normal; }
.meniu-lista hr { border: 0; border-top: 1px solid var(--linie); margin: 4px 2px; }
@keyframes apare { from { opacity: 0; transform: translateY(-4px); } }

/* ——— selecția în masă ——— */
.bara-masa {
  position: sticky; bottom: 18px; z-index: 5; margin: 16px auto 0; width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px;
  background: var(--navy-900); color: #fff; border-radius: 12px; box-shadow: var(--umbra-3);
  font-size: 14px; font-weight: 600;
  animation: apare 200ms var(--iesire);
}

/* ——— ferestre ——— */
dialog.fereastra {
  border: 0; padding: 0; border-radius: 18px; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  background: var(--suprafata); color: var(--text); box-shadow: var(--umbra-3);
}
dialog.fereastra-mica { width: min(440px, calc(100vw - 24px)); }
dialog.fereastra[open] { animation: deschide 260ms var(--iesire); }
dialog.fereastra::backdrop { background: rgb(8 17 58 / 0.48); }
@keyframes deschide { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
.fereastra form { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); margin: 0; }
.fereastra-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--linie); }
.fereastra-cap h2 { font-size: 19px; font-weight: 750; font-stretch: 86%; }
.fereastra-corp { padding: 22px 24px; overflow-y: auto; display: grid; gap: 18px; }
.fereastra-subsol { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; background: var(--fond); border-top: 1px solid var(--linie); border-radius: 0 0 18px 18px; }
.confirma-text { color: var(--text-2); }
.cod { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; background: var(--fond); border: 1px solid var(--linie); border-radius: 10px; padding: 12px; width: 100%; min-height: 110px; resize: none; line-height: 1.5; }

/* ——— mesaje ——— */
.mesaje { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 10px; width: min(420px, calc(100vw - 36px)); }
.mesaj {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 12px 13px 14px;
  background: var(--suprafata); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--umbra-3);
  font-size: 14.5px; animation: intra 360ms var(--iesire);
}
.mesaj .ic { margin-top: 1px; color: var(--ok); }
.mesaj-eroare { background: #fff8f8; border-color: rgb(202 32 38 / 0.3); }
.mesaj-eroare .ic { color: var(--rosu); }
.mesaj ul { margin: 0; padding-left: 18px; }
/* erorile formularului respins care nu țin de un câmp, în fereastra redeschisă (src/formular.js) */
.eroare-fereastra { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--rosu-50); border: 1px solid rgb(202 32 38 / 0.3); border-radius: 12px; color: var(--rosu-600); font-size: 14.5px; font-weight: 550; }
.eroare-fereastra .ic { flex: none; margin-top: 2px; color: var(--rosu); }
.eroare-fereastra ul { margin: 0; padding-left: 18px; }
.mesaj-text { flex: 1; }
.mesaj button { border: 0; background: none; color: var(--text-3); cursor: pointer; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; margin: -3px -2px 0 0; }
.mesaj button:hover { background: var(--fond); color: var(--text); }
.mesaj.pleaca { animation: pleaca 260ms ease-in forwards; }
@keyframes intra { from { opacity: 0; transform: translateX(16px); } }
@keyframes pleaca { to { opacity: 0; transform: translateX(16px); } }

/* ——— stări goale ——— */
.gol { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 56px 24px; }
.gol-semn { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--navy-100); color: var(--navy-700); margin-bottom: 4px; }
.gol h3 { font-size: 18px; font-weight: 720; font-stretch: 90%; }
.gol p { color: var(--text-2); max-width: 46ch; }
.gol .btn { margin-top: 8px; }

/* ——— Panoul ——— */
.grila-panou { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.c-7, .c-5 { align-self: start; }
.c-8 { grid-column: span 8; }
.c-4 { grid-column: span 4; }
.c-7 { grid-column: span 7; }
.c-5 { grid-column: span 5; }
.c-12 { grid-column: span 12; }
.total-incasari { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 4px 24px 0; }
.total-incasari strong { font-size: 34px; font-weight: 800; font-stretch: 78%; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.total-incasari span { color: var(--text-2); font-size: 14px; }
/* împărțirea încasărilor pe chestionar, în culorile panglicilor */
.cota { display: flex; gap: 3px; height: 14px; margin: 16px 24px 0; }
.cota i { background: var(--c); border-radius: 4px; min-width: 6px; }
.legenda { display: flex; gap: 16px; flex-wrap: wrap; padding: 14px 24px 0; font-size: 13px; color: var(--text-2); }
.legenda span { display: inline-flex; align-items: center; gap: 7px; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.legenda b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.grafic { padding: 14px 24px 22px; }
.bare { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: var(--h, 210px) auto; column-gap: 8px; }
.bare-y { position: relative; }
.bare-y span { position: absolute; right: 0; translate: 0 50%; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bare-plot { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--linie-2); }
.bare-plot > b { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--linie); pointer-events: none; }
.bare-col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column-reverse; align-items: center; border-radius: 6px 6px 0 0; transition: background 120ms; }
.bare-col:hover { background: rgb(15 26 58 / 0.04); }
.bare-col i { display: block; width: min(40px, 64%); background: var(--c); flex: none; }
.bare-col i:last-of-type { border-radius: 3px 3px 0 0; }
.bare-info {
  position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; z-index: 3; display: none;
  min-width: 150px; padding: 9px 11px; border-radius: 10px; background: var(--navy-900); color: #fff; box-shadow: var(--umbra-3);
  font-size: 12.5px; line-height: 1.5; white-space: nowrap; pointer-events: none;
}
.bare-info strong { display: block; font-size: 13px; margin-bottom: 2px; }
.bare-info span { display: flex; align-items: center; gap: 8px; }
.bare-info span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.bare-info em { font-style: normal; margin-right: auto; color: rgb(255 255 255 / 0.8); }
.bare-col:hover .bare-info, .bare-col:focus-visible .bare-info { display: block; }
.bare-col:first-child .bare-info, .bare-col:nth-child(2) .bare-info { left: 0; translate: 0 0; }
.bare-col:last-child .bare-info, .bare-col:nth-last-child(2) .bare-info { left: auto; right: 0; translate: 0 0; }
.bare-x { grid-column: 2; display: flex; }
.bare-x span { flex: 1; min-width: 0; text-align: center; font-size: 11.5px; color: var(--text-3); padding-top: 7px; white-space: nowrap; overflow: hidden; }
.bare-x small { font-size: inherit; }
@media (max-width: 600px) { .bare-x small { display: none; } .bare-x span:nth-child(even) { visibility: hidden; } .bare { grid-template-columns: 34px minmax(0, 1fr); } }
.rand-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.rand-stat:last-child { border-bottom: 0; }
.rand-stat span { color: var(--text-2); font-size: 14.5px; }
.rand-stat strong { font-size: 24px; font-weight: 780; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.rand-stat small { color: var(--text-3); font-size: 13px; font-weight: 550; margin-left: 4px; }
.lista-flux { list-style: none; margin: 0; padding: 0; }
.lista-flux li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.lista-flux li:last-child { border-bottom: 0; }
.lista-flux .cine { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-flux .unde { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-flux .cand { font-size: 12.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.punct { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--navy-700)); }
.lista-flux li.nou { background: linear-gradient(90deg, rgb(202 32 38 / 0.07), transparent 70%); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.eticheta-nou { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--rosu); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 2px; }
.lista-flux a { color: inherit; text-decoration: none; }
.lista-flux a:hover .cine { color: var(--info); }

/* ——— pagina sondajului ——— */
.grila-sondaj { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 26px; }
.cifre-sondaj { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cifra { padding: 18px 22px; border-bottom: 1px solid var(--linie); }
.cifra:nth-child(odd) { border-right: 1px solid var(--linie); }
.cifra span { display: block; font-size: 13px; color: var(--text-2); font-weight: 550; }
.cifra strong { display: block; font-size: 30px; font-weight: 800; font-stretch: 76%; font-variant-numeric: tabular-nums; margin-top: 2px; }
.cifra strong.mic { font-size: 19px; font-stretch: 85%; margin-top: 8px; }
.cifra strong .din { display: inline; font-size: 19px; font-weight: 700; color: var(--text-3); }
.pdf-mediu { padding: 18px 22px 22px; display: grid; gap: 12px; }
.progres-sectiuni { display: inline-flex; gap: 3px; vertical-align: middle; }
.progres-sectiuni i { width: 14px; height: 6px; border-radius: 3px; background: var(--linie); }
.progres-sectiuni i.t { background: var(--c, var(--navy-700)); }
.progres-text { font-size: 12.5px; color: var(--text-3); margin-left: 8px; font-variant-numeric: tabular-nums; }
.emailuri { margin-top: 26px; }
.emailuri form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 210px auto; gap: 16px; align-items: start; }
.emailuri .camp > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emailuri .camp > .btn { margin-top: 26px; }

/* ——— afirmațiile ——— */
.afirmatii-sectiune { margin-bottom: 22px; }
.afirmatie { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--linie); }
.afirmatie:last-child { border-bottom: 0; }
.afirmatie-nr { font-size: 18px; font-weight: 800; font-stretch: 75%; color: var(--text-3); padding-top: 9px; font-variant-numeric: tabular-nums; }
.afirmatie-standard { font-size: 13px; color: var(--text-3); margin-top: 6px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.afirmatie.modificata .afirmatie-nr { color: var(--rosu); }
.afirmatie textarea { min-height: 46px !important; }
.bara-salvare { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--fond) 30%); }
.alerta { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #fff7ec; border: 1px solid #f3d3a5; color: #6b3c03; font-size: 14.5px; margin-bottom: 20px; }
.alerta .ic { color: var(--atentie); margin-top: 1px; }
.alerta-info { background: #f1f5ff; border-color: #cbd8fb; color: #1d3a8a; }
.alerta-info .ic { color: var(--info); }

/* Chestionare (superadmin): lista pe tipuri, taburile paginii unui chestionar, istoricul */
.lista-chestionare, .grila-texte { display: grid; gap: 22px; }
.taburi { margin-bottom: 22px; }
.eticheta-schimbat { color: var(--rosu); font-weight: 650; }
.text-istoric { max-width: 360px; white-space: normal; overflow-wrap: anywhere; font-size: 13.5px; }
.lista-chestionare .tabel { table-layout: fixed; }
.lista-chestionare th:nth-child(1) { width: 34%; } .lista-chestionare th:nth-child(2) { width: 16%; } .lista-chestionare th:nth-child(3) { width: 12%; } .lista-chestionare th:nth-child(4) { width: 20%; } .lista-chestionare th:nth-child(5) { width: 140px; }
.doar-mic { display: none; }

/* ——— setări ——— */
.grila-setari { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.poza-mare { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--umbra-2); }
.persoana { display: flex; align-items: center; gap: 12px; }
.persoana img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--fond-2); }

/* ——— login, parola ——— */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--suprafata); }
.auth-scena {
  position: relative; overflow: hidden; color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 85% 10%, var(--navy-700), var(--navy-900) 60%, var(--navy-950));
}
.auth-scena img.logo { height: 38px; width: auto; }
.auth-scena p { color: rgb(255 255 255 / 0.74); max-width: 34ch; font-size: 16px; }
.auth-raft { position: relative; height: 380px; margin: 24px -10px; }
.auth-raft::before { content: ''; position: absolute; left: -60px; right: -60px; top: 40px; height: 4px; background: #24348a; border-radius: 2px; transform: rotate(-4deg); }
.auth-raft .agatat { position: absolute; width: 220px; }
.auth-raft .agatat:nth-child(1) { left: 2%; top: 82px; transform: rotate(-6deg); }
.auth-raft .agatat:nth-child(2) { left: 34%; top: 64px; transform: rotate(2deg); }
.auth-raft .agatat:nth-child(3) { left: 64%; top: 44px; transform: rotate(-3deg); }
.auth-raft .ecuson { border-color: transparent; box-shadow: 0 30px 50px -20px rgb(0 0 0 / 0.55); }
.auth-raft .ecuson-panglica::before { background: var(--navy-800); }
.auth-raft .agatat::before { background: #24348a; }
.auth-forma { display: grid; place-items: center; padding: 40px 24px; }
.auth-cutie { width: min(400px, 100%); display: grid; gap: 22px; }
.auth-cutie h1 { font-size: 30px; font-weight: 800; font-stretch: 80%; }
.auth-cutie .cap-text { margin-top: 8px; }
.auth-subsol { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.auth-subsol a { color: var(--text-2); }
.eroare-camp { color: var(--rosu-600); font-size: 13.5px; font-weight: 550; }
.succes-camp { color: #0a6d50; background: #eefaf5; border: 1px solid #bfe9d8; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.limba-auth { position: absolute; top: 22px; right: 24px; }
.limba-auth.segmente a { font-size: 12.5px; padding: 4px 10px; }

/* ——— pagina de eroare ——— */
.pagina-eroare { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.pagina-eroare .ecuson { width: min(360px, 100%); }
.pagina-eroare .cod-eroare { font-size: 56px; font-weight: 850; font-stretch: 70%; line-height: 1; color: var(--rosu); }

/* ——— participantul (pe telefon întâi) ——— */
.p-corp { background: var(--fond); min-height: 100vh; }
.p-sus { background: var(--navy-800); background-image: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; }
.p-sus-in { max-width: 680px; margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-sus img { height: 24px; width: auto; }
.p-sus .p-firma { font-size: 13px; color: rgb(255 255 255 / 0.75); font-weight: 550; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-cadru { max-width: 680px; margin: 0 auto; padding: 22px 16px 120px; }
.p-titlu { font-size: 26px; font-weight: 800; font-stretch: 78%; line-height: 1.1; }
.p-subtitlu { color: var(--text-2); margin-top: 6px; font-size: 15.5px; }
.p-ecuson { margin: 26px auto 24px; max-width: 330px; }
.p-ecuson .ecuson { transform: rotate(-1.5deg); }
.p-ecuson .ecuson-nume.gol { color: #a7afc4; }
.p-cutie { background: var(--suprafata); border: 1px solid var(--linie); border-radius: var(--r-mare); padding: 20px; box-shadow: var(--umbra-1); }
.p-cutie .campuri { gap: 16px; }
.p-cutie .camp input { height: 50px; font-size: 16px; }
.p-cutie .btn { height: 52px; font-size: 16px; width: 100%; }
.p-invitatie { font-size: 15.5px; color: var(--text-2); margin-top: 8px; }
.p-invitatie strong { color: var(--text); }

.p-progres-bara { position: sticky; top: 0; z-index: 10; background: rgb(243 245 250 / 0.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--linie); }
.p-progres-in { max-width: 680px; margin: 0 auto; padding: 10px 16px 12px; display: grid; gap: 8px; }
.p-progres-rand { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.p-progres-rand b { color: var(--text); font-variant-numeric: tabular-nums; }
.p-pasi { display: flex; gap: 4px; }
.p-pasi i { flex: 1; height: 6px; border-radius: 3px; background: var(--linie-2); overflow: hidden; position: relative; }
.p-pasi i.t { background: var(--cerneala); }
.p-pasi i.a::after { content: ''; position: absolute; inset: 0; background: var(--rosu); border-radius: 3px; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 380ms var(--iesire); }
.p-reia { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.p-reia a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--suprafata); border: 1px solid var(--linie-2); color: var(--text); text-decoration: none; font-weight: 600; }
.p-scala-legenda { margin: 18px 0 8px; background: var(--suprafata); border: 1px solid var(--linie); border-radius: 12px; font-size: 14px; }
.p-scala-legenda summary { padding: 12px 14px; cursor: pointer; font-weight: 650; color: var(--text-2); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.p-scala-legenda summary::-webkit-details-marker { display: none; }
.p-scala-legenda[open] summary .ic { transform: rotate(180deg); }
.p-scala-legenda ol { margin: 0; padding: 0 14px 14px 36px; color: var(--text-2); display: grid; gap: 3px; }
.p-instructiune { font-size: 15px; color: var(--rosu-600); font-weight: 650; margin-top: 18px; }
.p-instructiune.lunga { color: var(--text-2); font-weight: 500; line-height: 1.5; margin-bottom: 6px; } /* instrucțiunea proprie a chestionarului (City Changer – curs, GLS) */

.intrebare { scroll-margin-top: 84px; padding: 20px 0 22px; border-bottom: 1px solid var(--linie); }
.intrebare-text { display: flex; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.38; margin-bottom: 14px; }
.intrebare-text .nr { color: var(--text-3); font-weight: 750; font-variant-numeric: tabular-nums; min-width: 1.8em; font-stretch: 85%; }
.casute { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 7px; }
.casuta { position: relative; cursor: pointer; }
.casuta input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.casuta span {
  position: relative; display: grid; place-items: center; height: 56px; border-radius: 11px;
  background: var(--suprafata); border: 1.5px solid var(--linie-2);
  font-size: 17px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums;
  transition: border-color 140ms, background 140ms, color 140ms, transform 140ms;
}
.casuta:hover span { border-color: var(--text-3); }
.casuta input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.casuta input:active + span { transform: scale(0.96); }
.casuta svg { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); overflow: visible; pointer-events: none; }
.casuta svg path { fill: none; stroke: var(--cerneala); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.casuta input:checked + span { border-color: var(--cerneala); background: #f3f5fc; color: rgb(13 33 105 / 0.28); }
.casuta input:checked + span svg path { stroke-dashoffset: 0; transition: stroke-dashoffset 220ms var(--iesire); }
.casuta input:checked + span svg path + path { transition-delay: 110ms; }
.capete-scala { display: flex; justify-content: space-between; gap: 16px; margin-top: 7px; font-size: 12.5px; color: var(--text-3); font-weight: 550; }
.intrebare.lipsa .casuta span { border-color: rgb(202 32 38 / 0.55); }
/* „N/A” (scala cu „Nu am avut ocazia”): ultima căsuță, mai discretă; capetele scalei rămân deasupra lui 1…max. */
.casuta-na span { font-size: 14px; letter-spacing: 0.02em; background: var(--fond); border-style: dashed; }
.cu-na .capete-scala { margin-right: calc((100% - 5 * 7px) / 6 + 7px); }
/* Quizul cu o singură alegere (GLS): variantele ca rânduri, cu litera în față. */
.optiuni { display: grid; gap: 8px; }
.optiune { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 11px; background: var(--suprafata); border: 1.5px solid var(--linie-2); cursor: pointer; line-height: 1.42; transition: border-color 140ms, background 140ms; }
.optiune input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.optiune .litera { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--linie-2); font-weight: 750; font-size: 14px; color: var(--text-2); transition: background 140ms, color 140ms, border-color 140ms; }
.optiune .optiune-text { padding-top: 3px; }
.optiune:hover { border-color: var(--text-3); }
.optiune:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.optiune:has(input:checked) { border-color: var(--cerneala); background: #f3f5fc; }
.optiune:has(input:checked) .litera { background: var(--cerneala); border-color: var(--cerneala); color: #fff; }
.intrebare.lipsa .optiune { border-color: rgb(202 32 38 / 0.55); }
.intrebare.lipsa .intrebare-text::after { content: attr(data-lipsa); color: var(--rosu-600); font-size: 13px; font-weight: 600; margin-left: auto; white-space: nowrap; }
.p-trimite { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgb(255 255 255 / 0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--linie); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.p-trimite-in { max-width: 648px; margin: 0 auto; display: flex; gap: 14px; align-items: center; }
.p-trimite .btn { flex: 1; height: 52px; font-size: 16px; }
.p-trimite .contor { font-size: 14px; font-weight: 650; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-final { overflow-x: clip; } /* în modul telefon, ștampila rotită din ecusonul rotit lățea pagina cu 9–16 px */
.p-final .ecuson { transform: rotate(-1.5deg); }
.p-final .stampila-mare {
  position: absolute; right: 14px; bottom: 16px; transform: rotate(-9deg);
  font-size: 18px; height: 40px; padding: 0 14px; border-width: 2.5px; letter-spacing: 0.14em;
  animation: stampileaza 520ms var(--iesire) 250ms both;
}
@keyframes stampileaza { from { opacity: 0; transform: rotate(-9deg) scale(1.8); } 60% { opacity: 1; transform: rotate(-9deg) scale(0.94); } }
/* Profilul pe pagina finală (quizul GLS): stilul sau stilurile de pe primul loc, cu pasul propus. */
.p-profil { display: grid; gap: 12px; margin: 22px 0 6px; }
.p-profil-titlu { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.p-profil-mesaj { margin: 0; line-height: 1.5; font-weight: 600; }
.profil-card { background: var(--suprafata); border: 1px solid var(--linie); border-left: 4px solid var(--cerneala); border-radius: var(--r-mare); padding: 18px 20px; }
.profil-card h2 { margin: 0 0 6px; font-size: 22px; font-stretch: 85%; }
.profil-card p { margin: 0; line-height: 1.5; }
.profil-card .profil-pas { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linie); }
.p-actiuni { display: grid; gap: 10px; margin-top: 18px; }
.p-actiuni .btn { height: 52px; font-size: 16px; }
/* Reluarea (emailul e deja în sondaj): doar mesajul, linkul pleacă pe email. Ștergerea răspunsurilor, sub formular. */
.p-reluare { display: grid; gap: 8px; justify-items: start; margin-top: 20px; }
.p-reluare > .ic { color: var(--focus); }
.p-reluare p { margin: 0; line-height: 1.5; }
.p-sterge { display: flex; justify-content: center; margin: 28px 0 0; }
.p-subsol { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 28px; }
.p-subsol a { color: var(--text-2); }

/* ——— politica ——— */
.document { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.document .card { background: var(--suprafata); border: 1px solid var(--linie); border-radius: var(--r-mare); padding: clamp(20px, 4vw, 40px); line-height: 1.65; }
.document h1, .document h2, .document h3 { font-stretch: 85%; margin: 1.4em 0 0.5em; }
.document h1 { margin-top: 0; font-size: 30px; }
.document .text-muted { color: var(--text-3); }

/* ——— ecran mic ——— */
@media (max-width: 1180px) {
  .c-8, .c-4, .c-7, .c-5 { grid-column: span 12; }
  .grila-sondaj { grid-template-columns: 1fr; }
  .emailuri form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; background: none; }
  .sina { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform 320ms var(--iesire); }
  body.meniu-deschis .sina { transform: none; box-shadow: var(--umbra-3); }
  body.meniu-deschis::after { content: ''; position: fixed; inset: 0; background: rgb(8 17 58 / 0.45); z-index: 40; }
  .bara-mobil { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--navy-800); color: #fff; }
  .bara-mobil img { height: 24px; width: auto; }
  .bara-mobil button { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; }
  .principal { padding: 22px 16px 64px; }
  .cap h1 { font-size: 26px; }
  .campuri-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-scena { padding: 26px 20px 8px; }
  .auth-raft { height: 210px; margin: 6px -10px 0; transform: scale(0.72); transform-origin: 0 0; width: 139%; }
  .auth-scena p { display: none; }
  .grila-setari { grid-template-columns: 1fr; }
  .tabel .ascunde-mic { display: none; }
  .ecuson-mare .cotor { flex-direction: column; }
  .qr { flex-direction: row; width: auto; justify-content: start; }
  .emailuri form { grid-template-columns: 1fr; }
  .cauta input { width: 100%; }
  .bara-unelte > * { width: 100%; }
  .segmente { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
}
/* tabelele pe telefon: fiecare rând devine un card */
@media (max-width: 700px) {
  .tabel thead { display: none; }
  .tabel, .tabel tbody { display: block; }
  .tabel tbody tr { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; padding: 16px; border-bottom: 1px solid var(--linie); align-items: center; }
  .tabel tbody tr:last-child { border-bottom: 0; }
  .tabel td { display: block; padding: 0; border: 0; background: none !important; }
  .tabel td.col-bifa { grid-column: 1; grid-row: 1; width: auto; }
  .tabel td:not(.col-bifa) { grid-column: 2; }
  .tabel tbody tr:not(:has(.col-bifa)) { grid-template-columns: minmax(0, 1fr); }
  .tabel tbody tr:not(:has(.col-bifa)) td { grid-column: 1; }
  .tabel td.col-actiuni { text-align: left; width: auto; }
  .tabel tr.fara-rezultate { display: block; }
  .tabel tr[hidden] { display: none; }
  .doar-mic { display: inline; }
  .lista-chestionare .tabel { table-layout: auto; }
}
@media (max-width: 420px) {
  .casute { gap: 5px; }
  .casuta span { height: 52px; font-size: 16px; }
  .cifra strong { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}

/* ——— Quizul live (16 nov 2026): lista din panou, telefonul (/q/…) și ecranul mare de pe proiector (/quiz/<id>) ——— */
.stampila[data-s='asteptare'] { --s: var(--info); }
.stampila[data-s='pornit'] { --s: var(--rosu); }
.q-cod-tabel { font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* Iconița unui profil: cerc în culoarea lui (culorile din manualul quizului). */
.q-ico { flex: none; display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--c); color: #fff; }
.q-ico .ic { width: 58%; height: 58%; stroke-width: 2.1; }

/* Telefonul */
.q-cadru { padding-bottom: 48px; }
.q-semn { display: flex; gap: 8px; margin: 6px 0 22px; font-size: 20px; }
.q-semn .q-ico:nth-child(even) { transform: translateY(6px); }
.q-eticheta { margin: 0 0 6px; font-size: 12.5px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rosu-600); }
.q-intra { margin-top: 26px; }
.q-intra .btn, .q-cod-form .btn { width: 100%; height: 56px; font-size: 17px; }
.q-nota { margin-top: 14px; font-size: 14px; color: var(--text-3); line-height: 1.5; }
.q-eroare { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--rosu-600); }
.q-cod-form input { font-size: 24px !important; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; text-align: center; }

.q-asteptare { text-align: center; padding-top: 56px; }
.q-asteptare .p-subtitlu { max-width: 34ch; margin-left: auto; margin-right: auto; line-height: 1.5; }
.q-puls { position: relative; width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.q-puls::before, .q-puls::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); animation: q-unda 2.4s var(--iesire) infinite; }
.q-puls::after { animation-delay: 1.2s; }
@keyframes q-unda { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.1); opacity: 0; } }
.q-asteptam { margin-top: 26px; font-weight: 650; color: var(--text-2); }

.q-intrebare { margin: 18px 0 18px; font-size: 21px; font-weight: 720; font-stretch: 90%; line-height: 1.3; letter-spacing: -0.005em; }
.q-variante { display: grid; gap: 10px; }
.q-varianta {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 15px 14px; text-align: left;
  font: inherit; font-size: 16px; line-height: 1.42; color: var(--text); background: var(--suprafata);
  border: 1.5px solid var(--linie-2); border-radius: 12px; cursor: pointer; box-shadow: var(--umbra-1);
  transition: border-color 140ms, background 140ms, transform 120ms;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.q-varianta .litera { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--linie-2); font-weight: 750; font-size: 14px; color: var(--text-2); transition: background 140ms, color 140ms, border-color 140ms; }
.q-varianta-text { padding-top: 3px; }
.q-varianta:hover { border-color: var(--text-3); }
.q-varianta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.q-varianta:active { transform: scale(0.985); }
.q-varianta.ales { border-color: var(--cerneala); background: #f3f5fc; }
.q-varianta.ales .litera { background: var(--cerneala); border-color: var(--cerneala); color: #fff; }

.q-profil { border-left-color: var(--c); }
.q-profil-cap { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 18px; }
.q-profil-cap h2 { margin: 0; flex: 1; }
.q-procent { font-size: 24px; font-weight: 800; font-stretch: 78%; font-variant-numeric: tabular-nums; color: var(--text); }
.q-final .p-profil { animation: q-intra 520ms var(--iesire) both; }
@keyframes q-intra { from { opacity: 0; transform: translateY(10px); } }
.q-toate { margin-top: 26px; }
.q-toate h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.q-toate ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.q-toate li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 3em; align-items: center; gap: 10px; font-size: 14.5px; }
.q-toate li i { height: 8px; border-radius: 4px; background: var(--fond-2); position: relative; overflow: hidden; }
.q-toate li i::after { content: ''; position: absolute; inset: 0; background: var(--c); transform: scaleX(var(--p)); transform-origin: left; }
.q-toate li b { text-align: right; font-variant-numeric: tabular-nums; }

/* Ecranul mare: se citește din fundul sălii (tipografie mare, contrast pe fond deschis, bun și pe proiector). */
.ecran-corp-pagina { background: #fff; }
.ecran { min-height: 100vh; display: flex; flex-direction: column; }
.ecran-principal { flex: 1; display: grid; align-items: center; padding: clamp(20px, 4vh, 48px) clamp(20px, 4vw, 64px); }
.ecran-eticheta { margin: 0 0 10px; font-size: clamp(14px, 1.3vw, 19px); font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rosu-600); }
.ecran-h1 { margin: 0; font-size: clamp(34px, 5vw, 76px); font-weight: 820; font-stretch: 72%; line-height: 1.02; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.ecran-asteptare, .ecran-pornit { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.ecran-intrare { display: flex; gap: clamp(20px, 3vw, 44px); align-items: center; margin-top: clamp(20px, 4vh, 44px); }
.ecran-qr { flex: none; width: clamp(200px, 30vh, 380px); padding: 14px; background: #fff; border-radius: 18px; box-shadow: var(--umbra-2); }
.ecran-qr svg { display: block; width: 100%; height: auto; }
.ecran-cum { display: grid; gap: 6px; font-size: clamp(16px, 1.6vw, 24px); color: var(--text-2); }
.ecran-cum b { color: var(--text); }
.ecran-cod { margin-top: 8px; font-size: clamp(54px, 8vw, 124px); font-weight: 820; font-stretch: 72%; letter-spacing: 0.06em; line-height: 1; color: var(--navy-900) !important; font-variant-numeric: tabular-nums; }
.ecran-intrare.mica { flex-direction: column; align-items: flex-start; margin-top: 4px; }
.ecran-intrare.mica .ecran-qr { width: clamp(150px, 22vh, 240px); }
.ecran-intrare.mica .ecran-cod { font-size: clamp(40px, 4.4vw, 68px); }
.ecran-intrare.mica .ecran-cum { font-size: clamp(14px, 1.2vw, 18px); }
.ecran-dreapta { display: grid; gap: 20px; justify-items: start; }
.ecran-numar { display: grid; }
.ecran-numar b { font-size: clamp(96px, 14vw, 220px); font-weight: 820; font-stretch: 72%; line-height: 0.9; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.ecran-numar span { font-size: clamp(20px, 2vw, 30px); font-weight: 650; color: var(--text-2); }
.ecran-numar b.creste { animation: q-creste 420ms var(--iesire); }
@keyframes q-creste { 40% { transform: scale(1.08); color: var(--rosu); } }
/* Pasul următor (Start, Oprește timpul, Situația următoare, Arată sala): aproape invizibil, lipit de colțul de jos, ca sala
   să nu vadă ce apasă gazda; se vede abia când mouse-ul trece pe el. Gazda folosește de obicei săgețile / clickerul. */
.ecran-pas { position: fixed; right: 6px; bottom: 4px; margin: 0; z-index: 5; }
.ecran-pas button { font: inherit; font-size: 10px; line-height: 1; padding: 4px 6px; color: rgb(0 0 0 / 0.16); background: none; border: 0; border-radius: 4px; cursor: pointer; }
.ecran-pas button:hover, .ecran-pas button:focus-visible { color: var(--text-2); background: rgb(0 0 0 / 0.04); }
.ecran-progres { margin: clamp(24px, 5vh, 56px) 0 clamp(24px, 4vh, 40px); display: grid; gap: 10px; max-width: 900px; }
.ecran-progres-eticheta { font-size: clamp(18px, 1.8vw, 26px); font-weight: 650; color: var(--text-2); }
.ecran-progres-cifre { display: flex; align-items: baseline; gap: 16px; }
.ecran-progres-cifre b { font-size: clamp(80px, 11vw, 170px); font-weight: 820; font-stretch: 72%; line-height: 0.9; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.ecran-progres-cifre > span { font-size: clamp(26px, 3vw, 44px); font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ecran-bara { height: 18px; border-radius: 9px; background: var(--fond-2); overflow: hidden; }
.ecran-bara i { display: block; height: 100%; background: var(--rosu); border-radius: 9px; transform: scaleX(var(--p)); transform-origin: left; transition: transform 700ms var(--iesire); }
/* Ultimul slide, „Cine suntem”: titlul sus, la mijloc; două jumătăți despărțite de o linie (oamenii | procentul). */
.ecran-incheiat { width: min(1320px, 100%); margin: 0 auto; align-self: stretch; display: grid; grid-template-rows: auto 1fr; gap: clamp(20px, 4vh, 48px); }
.ecran-incheiat-sus { text-align: center; }
.ecran-jumatati { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.ecran-jumatati { position: relative; }
.ecran-jumatati::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--linie); transform-origin: top; }
.ecran-sala { list-style: none; margin: 0; padding: 0 clamp(24px, 4vw, 72px); display: grid; gap: clamp(18px, 4.4vh, 44px); }
.ecran-sala li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.ecran-nume { font-size: clamp(22px, 2.6vw, 40px); font-weight: 750; font-stretch: 85%; color: var(--text); }
.ecran-sala .q-ico { font-size: clamp(26px, 3vw, 44px); }
.ecran-sala b { text-align: right; font-size: clamp(40px, 5vw, 84px); font-weight: 820; font-stretch: 76%; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c); }
.ecran-sala li:not(.sus) .ecran-nume { color: var(--text-2); }
@media (max-width: 900px) {
  .ecran-asteptare, .ecran-pornit { grid-template-columns: minmax(0, 1fr); }
  .ecran-intrare { flex-direction: column; align-items: flex-start; }
  .ecran-jumatati { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ecran-jumatati::before { display: none; }
  .ecran-jumatati > .ecran-sala + .ecran-sala { border-top: 2px solid var(--linie); padding-top: 28px; }
}
/* Ecranul mare ca o prezentare: cursorul ascuns cât nu se mișcă mouse-ul (public/app.js). */
body.fara-cursor, body.fara-cursor * { cursor: none !important; }

/* ——— Quizul pe rând, ca la Kahoot (16 nov 2026): situația pe ecranul mare, cu timer și voturile live ——— */
.ecran-situatie { width: min(1320px, 100%); margin: 0 auto; display: grid; gap: clamp(14px, 2.6vh, 26px); }
.ecran-situatie-sus { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ecran-situatie-sus .ecran-eticheta { margin: 0; }
.ecran-timer { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 20px; border-radius: 999px; background: var(--navy-900); color: #fff; font-variant-numeric: tabular-nums; }
.ecran-timer b { font-size: clamp(30px, 3.4vw, 52px); font-weight: 820; font-stretch: 76%; line-height: 1; min-width: 2ch; text-align: right; }
.ecran-timer span { font-size: clamp(14px, 1.2vw, 18px); font-weight: 650; opacity: 0.8; }
.ecran-timer.putin { background: var(--rosu); }
.ecran-timer-gata { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(18px, 1.7vw, 26px) !important; opacity: 1 !important; }
.ecran-situatie.gata .ecran-timer { background: var(--fond-2); color: var(--text); }
.ecran-intrebare { margin: 0; font-size: clamp(26px, 3.2vw, 50px); font-weight: 780; font-stretch: 82%; line-height: 1.12; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.ecran-voturi { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.6vh, 16px); }
.ecran-voturi li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: clamp(12px, 1.4vw, 22px); row-gap: 8px; align-items: center;
  padding: clamp(10px, 1.6vh, 16px) clamp(14px, 1.6vw, 22px); background: var(--suprafata); border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--umbra-1);
}
.ecran-voturi .litera { grid-row: 1 / 3; display: grid; place-items: center; width: clamp(36px, 3.2vw, 50px); height: clamp(36px, 3.2vw, 50px); border-radius: 50%; background: var(--fond-2); color: var(--text-2); font-weight: 800; font-size: clamp(16px, 1.5vw, 22px); }
.ecran-varianta { font-size: clamp(16px, 1.6vw, 25px); line-height: 1.3; color: var(--text); }
.ecran-voturi b { grid-row: 1 / 3; font-size: clamp(28px, 3vw, 48px); font-weight: 820; font-stretch: 76%; font-variant-numeric: tabular-nums; color: var(--text); min-width: 2ch; text-align: right; }
.ecran-voturi small { grid-row: 1 / 3; font-size: clamp(14px, 1.3vw, 20px); font-weight: 650; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 3.4ch; text-align: right; }
.ecran-bara-vot { grid-column: 2; height: clamp(10px, 1.4vh, 16px); border-radius: 8px; background: var(--fond-2); overflow: hidden; }
.ecran-bara-vot i { display: block; height: 100%; border-radius: 8px; background: var(--cerneala); transform: scaleX(var(--p)); transform-origin: left; transition: transform 1100ms var(--iesire), background 300ms; }
.ecran-voturi li.sus { border-color: rgb(202 32 38 / 0.35); }
.ecran-voturi li.sus .litera { background: var(--rosu); color: #fff; }
.ecran-voturi li.sus .ecran-bara-vot i { background: var(--rosu); }
.ecran-situatie-jos { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.ecran-votat { margin: 0; font-size: clamp(18px, 1.8vw, 28px); color: var(--text-2); }
.ecran-votat b { color: var(--text); font-variant-numeric: tabular-nums; }
.ecran-cod-mic { margin: 0 auto 0 0; font-size: clamp(14px, 1.2vw, 18px); color: var(--text-3); }
.ecran-cod-mic b { color: var(--text-2); letter-spacing: 0.03em; }

/* Telefonul: timerul din bara de sus, „ai ales” până la situația următoare. */
.q-timer { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 750; font-variant-numeric: tabular-nums; }
.q-timer b { min-width: 2ch; text-align: right; }
.q-timer.putin { background: var(--rosu); }
.q-votat { text-align: center; padding-top: 40px; }
.q-votat-semn { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: q-intra 420ms var(--iesire) both; }
.q-votat-semn.gol { background: var(--fond-2); color: var(--text-2); }
.q-varianta-aleasa { cursor: default; text-align: left; margin-top: 4px; }
.q-asteapta-text { max-width: 34ch; margin: 18px auto 0; line-height: 1.5; }
@media (max-width: 900px) {
  .ecran-voturi li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ecran-voturi small { display: none; }
}
/* Locurile din rândul unei variante, explicit (altfel plasarea automată mută textul după cifre). */
.ecran-voturi .litera { grid-column: 1; }
.ecran-varianta { grid-column: 2; grid-row: 1; }
.ecran-bara-vot { grid-row: 2; }
.ecran-voturi b { grid-column: 3; }
.ecran-voturi small { grid-column: 4; }
.p-progres-rand .q-timer b { color: inherit; }

/* ——— Animațiile ecranului mare (16 nov 2026): să nu pară static. Cifrele numără în public/app.js. ———
   Intrarea unui pas (`.ecran.intra`): rândurile vin pe rând de jos; linia sălii se trage de sus în jos.
   „+N” urcă lângă cifra care a crescut; fiecare om intrat e un punct colorat care apare. */
@keyframes ecran-intra { from { opacity: 0; transform: translateY(18px); } }
@keyframes ecran-linie { from { transform: scaleY(0); } }
@keyframes ecran-plus { from { opacity: 0; transform: translateY(10px) scale(0.9); } 25% { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-30px); } }
@keyframes ecran-punct { from { opacity: 0; transform: scale(0.5); } 60% { opacity: 1; transform: scale(1.18); } to { transform: scale(1); } }
.ecran.intra :is(.ecran-asteptare > *, .ecran-situatie-sus, .ecran-intrebare, .ecran-voturi li, .ecran-situatie-jos, .ecran-incheiat-sus, .ecran-sala li) { animation: ecran-intra 650ms var(--iesire) both; }
.ecran.intra .ecran-asteptare > :nth-child(2) { animation-delay: 120ms; }
.ecran.intra .ecran-intrebare { animation-delay: 90ms; }
.ecran.intra .ecran-voturi li { animation-delay: calc(240ms + var(--i) * 80ms); }
.ecran.intra .ecran-situatie-jos { animation-delay: 620ms; }
.ecran.intra .ecran-sala li { animation-delay: calc(300ms + var(--i) * 110ms); }
.ecran.intra .ecran-jumatati::before { animation: ecran-linie 900ms var(--iesire) 150ms both; }
.ecran-numar, .ecran-voturi li { position: relative; }
.ecran-plus { position: absolute; pointer-events: none; font-weight: 820; font-stretch: 76%; color: var(--rosu); font-variant-numeric: tabular-nums; animation: ecran-plus 1100ms var(--iesire) forwards; }
.ecran-numar .ecran-plus { left: 100%; top: 0; margin-left: 0.15em; font-size: clamp(30px, 3.4vw, 56px); }
.ecran-voturi .ecran-plus { right: clamp(64px, 6.4vw, 104px); top: -0.35em; font-size: clamp(20px, 2vw, 30px); }
.ecran-puncte { display: flex; flex-wrap: wrap; gap: clamp(5px, 0.5vw, 8px); max-width: min(440px, 100%); }
.ecran-puncte i { width: clamp(10px, 0.95vw, 16px); aspect-ratio: 1; border-radius: 50%; background: #1e5aa8; }
.ecran-puncte i:nth-child(4n+2) { background: #2e7d32; }
.ecran-puncte i:nth-child(4n+3) { background: #e0611a; }
.ecran-puncte i:nth-child(4n) { background: #5b2a86; }
.ecran-puncte i.nou { animation: ecran-punct 520ms var(--iesire) both; }
@media (prefers-reduced-motion: reduce) {
  @keyframes ecran-intra { from { opacity: 0; } }
  @keyframes ecran-linie { from { opacity: 0; } }
  .ecran-bara-vot i { transition: background 300ms; }
}
