/* Mesageria: planșa aleasă de Daniel pe 22 oct. 2026, docs/design-mesagerie/sursa/V4.dc.html (valorile ei, copiate).
   Comun aplicației profesorului și paginii părintelui (public/chat.js). Noaptea = clasa .n a planșei, ziua = .d. */
.ch { --bg:#0B1230;--pl:#17224D;--rim:rgba(170,200,255,.18);--ink:#F4F1EA;--mut:rgba(244,241,234,.72);--acc:#8FB4FF;--me:#3B73E8;--fld:rgba(0,0,0,.28);--ln:rgba(255,255,255,.10);--ev:rgba(255,255,255,.06);--red:#FF6B6B;
  --meb:#2A55B5;--mm:rgba(255,255,255,.80);--un:rgba(255,255,255,.72);--rd:#8EE3FF;--q:rgba(255,255,255,.07);--mq:rgba(0,0,0,.16);--dim:rgba(3,6,20,.62);--hi:rgba(143,180,255,.16);--rdo:#8EE3FF; }
:root[data-theme="light"] .ch { --bg:#F1E8D8;--pl:#FFFCF6;--rim:rgba(110,80,45,.20);--ink:#14120E;--mut:rgba(20,18,14,.70);--acc:#B4532A;--me:#B4532A;--fld:rgba(20,22,30,.06);--ln:rgba(20,18,14,.10);--ev:rgba(20,18,14,.06);--red:#C0392B;
  --meb:#B4532A;--mm:rgba(255,255,255,.90);--un:rgba(255,255,255,.72);--rd:#8EE3FF;--q:rgba(20,18,14,.05);--mq:rgba(0,0,0,.16);--dim:rgba(40,30,15,.40);--hi:rgba(180,83,42,.12);--rdo:#1677C4; }
.ch { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font-family: Geist, system-ui, sans-serif; padding-top: env(safe-area-inset-top); box-sizing: border-box; -webkit-text-size-adjust: 100%; text-align: left; }
.ch *, .ch *::before, .ch *::after { box-sizing: border-box; }
.ch .ch-col { flex: 1; min-height: 0; width: 100%; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; }
.ch button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; margin: 0; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: 0; }
.ch a { color: var(--acc); }

/* antetul: înapoi, numele, WhatsApp, mai multe */
.ch .ch-top { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 8px 0 10px; border-bottom: .5px solid var(--ln); flex: none; }
.ch .ch-ib { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: var(--acc); flex: none; border-radius: 0; }
.ch .ch-ib.ch-sp { visibility: hidden; }
.ch .ch-who { flex: 1; min-width: 0; text-align: center; font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch .ch-who span { display: block; font-size: 12px; line-height: 15px; font-weight: 400; color: var(--mut); overflow: hidden; text-overflow: ellipsis; }

/* firul */
.ch .ch-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ch .ch-in { position: relative; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 8px 12px 10px; }
.ch .ch-day { align-self: center; font-size: 12px; color: var(--mut); margin: 6px 0 2px; }
.ch .ch-ev { align-self: center; display: flex; align-items: center; gap: 6px; max-width: 88%; margin: 2px 0 6px; padding: 5px 10px; border-radius: 10px; background: var(--ev); font-size: 13px; line-height: 17px; color: var(--mut); }
.ch .ch-ev.ch-gap { margin-top: 8px; }
.ch .ch-ev svg { flex: none; }
.ch .ch-ev .ch-act { background: none; border: 0; padding: 0; color: var(--acc); font-weight: 500; font-size: 13px; line-height: 17px; text-decoration: none; }
.ch .ch-b { position: relative; max-width: 78%; padding: 7px 10px 7px 12px; border-radius: 18px; font-size: 16px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; border: 0; text-align: left; }
.ch .ch-th { align-self: flex-start; background: var(--pl); box-shadow: inset 0 0 0 .5px var(--rim); color: var(--ink); }
.ch .ch-me { align-self: flex-end; background: var(--meb); color: #FFFFFF; }
.ch .ch-g { margin-top: 8px; }
/* colțul bulei (planșele 4-6 ale mesageriei, aprobate pe 23 oct. 2026): steaua, "editat", ora, semnul stării.
   O copie invizibilă în text (.ch-tg) ține locul, ca ora să stea pe ultimul rând când încape și pe un rând nou când nu. */
.ch .ch-tg { display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; font-size: 11px; line-height: 13px; visibility: hidden; vertical-align: -1px; white-space: nowrap; }
.ch .ch-tm { position: absolute; right: 9px; bottom: 6px; display: flex; align-items: center; gap: 3px; font-size: 11px; line-height: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch .ch-th .ch-tm { color: var(--mut); }
.ch .ch-me .ch-tm { color: var(--mm); }
.ch .ch-tm svg, .ch .ch-tg svg { display: block; }
.ch .ch-tm .ch-un { color: var(--un); display: flex; }
.ch .ch-tm .ch-rd { color: var(--rd); display: flex; }
.ch .ch-tg > span, .ch .ch-tm > span { display: flex; }
/* fișierul și vocea: colțul pe rândul lor, jos în dreapta; poza: peste ea, pe o pastilă întunecată */
.ch .ch-file .ch-tm { position: static; align-self: flex-end; margin-left: 2px; }
.ch .ch-img .ch-tm { right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 10px; background: rgba(0,0,0,.45); color: #FFFFFF; }
.ch .ch-img .ch-tm .ch-un { color: rgba(255,255,255,.80); }
.ch .ch-file { padding: 10px 12px; }
.ch .ch-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; white-space: normal; }
.ch .ch-fn { flex: 1; min-width: 0; }
.ch .ch-fn b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .ch-fn > span { display: block; font-size: 13px; opacity: .82; }
.ch .ch-file svg { flex: none; }
.ch .ch-img { padding: 0; display: block; background: var(--pl); }
.ch .ch-img .ch-row { display: block; position: relative; overflow: hidden; border-radius: 18px; }
.ch .ch-imgq { padding: 4px; }
.ch .ch-imgq .ch-qi { margin: 0 0 4px; width: 100%; }
.ch .ch-imgq .ch-row, .ch .ch-imgq img, .ch .ch-imgq .ch-ph { border-radius: 14px; }
.ch .ch-img img { display: block; max-width: 100%; max-height: 300px; width: auto; height: auto; border-radius: 18px; }
.ch .ch-img .ch-ph { display: block; border-radius: 18px; background: var(--ev); }
.ch .ch-play { width: 34px; height: 34px; border-radius: 17px; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; background: var(--q); color: var(--ink); flex: none; }
.ch .ch-me .ch-play { background: #FFFFFF; color: var(--meb); }
/* mesajul vocal complet (punctul 20, pasul 12): planșa docs/design-voce, varianta 2, aleasă de Daniel pe 26 oct. 2026;
   valorile ei, copiate. Bula: butonul de 34 px, unda (bare de 3 px la 6 px), timpul sub undă, ora în colț; cât
   asculți, barele neascultate la 40% și viteza în dreapta; "urmează" pe vocalul care pornește singur după. */
.ch .ch-au { display: flex; align-items: center; gap: 10px; padding: 2px 0 14px; }
.ch .ch-wv { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ch .ch-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.ch .ch-wave i { display: block; width: 3px; border-radius: 1.5px; background: currentColor; flex: none; }
.ch .ch-pl .ch-wave i, .ch .ch-pw .ch-wave i { opacity: .4; }
.ch .ch-pl .ch-wave i.ch-on, .ch .ch-pw .ch-wave i.ch-on { opacity: 1; }
.ch .ch-wv small { display: flex; gap: 6px; font-size: 11px; line-height: 13px; color: var(--mut); font-variant-numeric: tabular-nums; }
.ch .ch-me .ch-wv small { color: var(--mm); }
.ch .ch-nx { font-weight: 600; color: var(--acc); }
.ch .ch-spd { position: relative; flex: none; align-self: center; margin-top: -14px; min-width: 38px; height: 24px; padding: 0 7px; border-radius: 12px; border: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; background: var(--q); color: var(--ink); font-variant-numeric: tabular-nums; }
.ch .ch-spd::after { content: ""; position: absolute; inset: -10px -3px; } /* 44 px de atins, fără să se vadă */
.ch .ch-me .ch-spd { background: rgba(255,255,255,.22); color: #FFFFFF; }
.ch .ch-older { align-self: center; background: none; border: 0; padding: 8px; font-size: 13px; color: var(--acc); }
.ch .ch-empty { margin: auto; padding: 24px; text-align: center; font-size: 15px; line-height: 21px; color: var(--mut); max-width: 300px; }

/* scrisul: atașează, câmpul, voce (cât scrii: trimite) */
.ch .ch-cmp { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px max(10px, env(safe-area-inset-bottom)); border-top: .5px solid var(--ln); flex: none; }
.ch .ch-cmp .ch-ib { width: 36px; height: 38px; }
.ch .ch-fld { flex: 1; min-width: 0; height: 38px; min-height: 38px; max-height: 128px; border-radius: 19px; background: var(--fld); box-shadow: inset 0 0 0 .5px var(--rim); border: 0; outline: none;
  padding: 8.5px 14px; font: inherit; font-size: 16px; line-height: 21px; color: var(--ink); resize: none; display: block; }
.ch .ch-fld::placeholder { color: var(--mut); opacity: 1; }
.ch .ch-send { width: 30px; height: 30px; border-radius: 15px; background: var(--me); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.ch .ch-rec { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 16px; font-variant-numeric: tabular-nums; }
.ch .ch-rec i { width: 10px; height: 10px; border-radius: 5px; background: var(--red); flex: none; }
.ch .ch-rec span { color: var(--mut); font-size: 13px; }
.ch [data-ch="mic"], .ch .ch-big { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* ținut apăsat pe microfon: timpul, "Glisează ca să renunți", microfonul mărit și lacătul deasupra */
.ch .ch-rech { position: relative; align-items: center; gap: 8px; padding-left: 14px; }
.ch .ch-rech .ch-rec { flex: none; height: 52px; padding: 0; font-size: 17px; }
.ch .ch-rech .ch-rec b { font-weight: 400; }
.ch .ch-hint { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; color: var(--mut); white-space: nowrap; }
/* legat de bara de înregistrare: .ch-big e și blocul "x din y au văzut" (mai jos), care îi strica centrarea și marginile */
.ch .ch-rech .ch-big { width: 64px; height: 64px; border-radius: 32px; background: var(--meb); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex: none; margin: -14px -4px -14px 0; }
.ch .ch-lockp { position: absolute; right: 14px; bottom: calc(100% + 32px); width: 44px; height: 104px; border-radius: 22px; background: var(--pl); box-shadow: inset 0 0 0 .5px var(--rim), 0 6px 16px rgba(0,0,0,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 0; color: var(--mut); }
.ch .ch-lockp span { display: flex; }
/* blocată și pe pauză: două rânduri, ca în WhatsApp */
.ch .ch-rec2 { display: block; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
.ch .ch-tip { margin: 0 0 8px; padding: 0 24px; font-size: 13px; line-height: 17px; color: var(--mut); text-align: center; }
.ch .ch-r1 { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.ch .ch-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--red); flex: none; }
.ch .ch-tm2 { font-size: 17px; font-variant-numeric: tabular-nums; flex: none; }
.ch .ch-tm2 b { font-weight: 400; }
.ch .ch-tm2 small { font-size: 13px; color: var(--mut); margin-left: 4px; }
.ch .ch-lw { flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; overflow: hidden; color: var(--ink); }
.ch .ch-lw i { display: block; width: 3px; border-radius: 1.5px; background: currentColor; flex: none; }
.ch .ch-r2 { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ch .ch-r2 .ch-ib { width: 44px; height: 44px; }
.ch .ch-r2 .ch-tr { color: var(--mut); }
.ch .ch-rp { width: 48px; height: 48px; border-radius: 24px; border: 2px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; background: none; padding: 0; }
.ch .ch-snd { width: 44px; height: 44px; border-radius: 22px; border: 0; padding: 0; background: var(--meb); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex: none; }
.ch .ch-pw { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 4px; border-radius: 20px; background: var(--fld); box-shadow: inset 0 0 0 .5px var(--rim); color: var(--ink); }
.ch .ch-pl2 { width: 34px; height: 34px; border-radius: 17px; border: 0; padding: 0; background: none; display: flex; align-items: center; justify-content: center; color: var(--acc); flex: none; }
.ch .ch-pw .ch-wave { flex: 1; min-width: 0; overflow: hidden; justify-content: space-between; gap: 0; cursor: pointer; }
.ch .ch-pw small { font-size: 13px; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* mini-playerul: banda de sus din lista conversațiilor (sau de sus pe ecran), după ce ieși din conversație */
.ch .ch-mp { position: relative; flex: none; display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 6px 0 4px; background: var(--pl); border-bottom: .5px solid var(--ln); }
.ch .ch-mp .ch-ib { width: 40px; height: 44px; }
.ch .ch-mp .ch-mu { color: var(--mut); }
.ch .ch-mp .ch-t { flex: 1; min-width: 0; font-size: 15px; line-height: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch .ch-mp .ch-t small { display: block; font-size: 12px; line-height: 15px; font-weight: 400; color: var(--mut); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.ch .ch-mp .ch-spd { margin: 0; background: var(--q); color: var(--ink); }
.ch .ch-mp > i { position: absolute; left: 0; bottom: -.5px; height: 2px; background: var(--acc); }
.ch.ch-mpfix { inset: 0 0 auto 0; z-index: 899; background: var(--pl); }
.ch-mpsp { height: 52px; }
.ch .ch-blk { justify-content: center; align-items: center; flex-direction: column; gap: 4px; padding-top: 12px; text-align: center; font-size: 14px; line-height: 19px; color: var(--mut); }
.ch .ch-blk button { background: none; border: 0; padding: 6px; color: var(--acc); font-size: 15px; font-weight: 600; }
.ch .ch-up { font-size: 13px; color: var(--mut); padding: 0 10px 4px; text-align: right; }

/* mai multe: raportează, blochează (foaia de jos, ca pe iPhone) */
.ch .ch-shade { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; z-index: 2; }
.ch .ch-menu2 { width: 100%; max-width: 420px; padding: 0 8px max(8px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.ch .ch-menu2 .ch-grp { background: var(--pl); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 .5px var(--rim); }
.ch .ch-menu2 button { display: block; width: 100%; min-height: 56px; padding: 0 16px; background: none; border: 0; font-size: 17px; color: var(--acc); text-align: center; }
.ch .ch-menu2 button + button { border-top: .5px solid var(--ln); }
.ch .ch-menu2 button.ch-bad { color: var(--red); }
.ch .ch-menu2 .ch-cancel { font-weight: 600; background: var(--pl); border-radius: 14px; box-shadow: inset 0 0 0 .5px var(--rim); }

/* poza mărită */
.ch .ch-view { position: absolute; inset: 0; z-index: 3; background: #000000; display: flex; align-items: center; justify-content: center; }
.ch .ch-view img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ch .ch-view .ch-ib { position: absolute; top: calc(env(safe-area-inset-top) + 4px); left: 6px; color: #FFFFFF; }

/* lista conversațiilor (profesorul) */
.ch .ch-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 max(12px, env(safe-area-inset-bottom)); }
.ch .ch-cv { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 10px 16px 10px 8px; background: none; border: 0; text-align: left; }
.ch .ch-cv + .ch-cv { box-shadow: 0 -.5px 0 var(--ln); }
.ch .ch-cv .ch-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--me); flex: none; visibility: hidden; }
.ch .ch-cv.ch-new .ch-dot { visibility: visible; }
.ch .ch-cv .ch-m { flex: 1; min-width: 0; }
.ch .ch-cv .ch-l1 { display: flex; align-items: baseline; gap: 8px; }
.ch .ch-cv .ch-l1 b { flex: 1; min-width: 0; font-size: 16px; line-height: 21px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .ch-cv .ch-l1 span { font-size: 13px; color: var(--mut); flex: none; }
.ch .ch-cv .ch-l2 { display: block; font-size: 14px; line-height: 19px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .ch-cv.ch-new .ch-l1 b { font-weight: 700; }
.ch .ch-cv.ch-new .ch-l2 { color: var(--ink); }
.ch .ch-lh { font-size: 13px; font-weight: 600; color: var(--mut); padding: 18px 16px 6px 26px; }
/* mesajele scurte de jos ("Copiat", erorile) rămân deasupra conversației */
body:has(> .ch) .toasts { z-index: 1000; }
.ch .ch-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ch .ch-note { text-align: center; margin-bottom: 8px; }

/* punctul 20 (planșa 4, valorile ei): gesturile, citatul, reacțiile, istoricul corecturii, urma ștergerii, fixarea */
.ch .ch-b, .ch .ch-ev { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ch .ch-b img { -webkit-user-drag: none; }
.ch .ch-sw { position: absolute; width: 30px; height: 30px; border-radius: 15px; background: var(--ev); color: var(--acc); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.ch .ch-qi { display: block; width: calc(100% + 10px); margin: -2px -5px 6px; padding: 5px 8px 6px 11px; border: 0; border-radius: 8px; background: var(--mq); box-shadow: inset 2px 0 0 rgba(255,255,255,.45); color: inherit; font-size: 13px; line-height: 17px; text-align: left; white-space: normal; }
.ch .ch-th .ch-qi { background: var(--q); box-shadow: inset 2px 0 0 var(--mut); }
.ch .ch-qi b { display: block; font-weight: 600; }
.ch .ch-qi span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.ch .ch-qi.ch-qdel span { font-style: italic; }
.ch .ch-fw { display: flex; align-items: center; gap: 4px; font-size: 12.5px; line-height: 16px; font-style: italic; opacity: .8; margin-bottom: 3px; }
.ch .ch-hasrx { margin-bottom: 14px; }
.ch .ch-rb { position: absolute; bottom: -14px; left: 10px; padding: 1px 6px; border: 0; border-radius: 12px; background: var(--pl); box-shadow: 0 0 0 2px var(--bg), inset 0 0 0 .5px var(--rim); font-size: 14px; line-height: 20px; color: var(--ink); }
.ch .ch-del { max-width: 78%; padding: 8px 12px; border-radius: 18px; font-size: 15px; line-height: 20px; color: var(--mut); box-shadow: inset 0 0 0 1px var(--rim); display: flex; align-items: center; gap: 6px; }
/* urma: doar conturată, ca pe planșă, fără culoarea bulei */
.ch .ch-del.ch-me, .ch .ch-del.ch-th { background: none; color: var(--mut); box-shadow: inset 0 0 0 1px var(--rim); }
.ch .ch-del.ch-me { align-self: flex-end; }
.ch .ch-del.ch-th { align-self: flex-start; }
.ch .ch-del svg { flex: none; }
.ch .ch-del .ch-dt { font-size: 11px; line-height: 13px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.ch .ch-hl { font-size: 12px; line-height: 15px; color: var(--mut); margin: 4px 4px 0; }
.ch .ch-hl.ch-hl0 { margin-top: 8px; }
.ch .ch-hl.ch-r, .ch .ch-hv.ch-r { align-self: flex-end; }
.ch .ch-hl.ch-l, .ch .ch-hv.ch-l { align-self: flex-start; }
.ch .ch-hl + .ch-b { margin-top: 2px; }
.ch .ch-hide { background: none; border: 0; padding: 0; margin-top: 2px; text-decoration: underline; text-underline-offset: 2px; }
.ch .ch-hv { max-width: 78%; padding: 7px 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--rim); color: var(--mut); font-size: 15px; line-height: 20px; margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes ch-hi { 0%, 45% { outline-color: var(--acc); } 100% { outline-color: transparent; } }
.ch .ch-hi { outline: 3px solid transparent; outline-offset: 2px; animation: ch-hi 1.4s ease; }
@media (prefers-reduced-motion: reduce) { .ch .ch-hi { animation-duration: .01s; outline-color: var(--acc); } }
/* banda mesajului fixat, sub antet */
.ch .ch-pin { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 16px; border: 0; border-bottom: .5px solid var(--ln); background: var(--pl); font-size: 14px; line-height: 18px; text-align: left; color: var(--ink); }
.ch .ch-pin[hidden] { display: none; }
.ch .ch-pi { color: var(--mut); display: flex; }
.ch .ch-pt { flex: 1; min-width: 0; }
.ch .ch-pt b { display: block; font-size: 12px; line-height: 15px; color: var(--mut); font-weight: 500; }
.ch .ch-pt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* răspunsul sau corectura în lucru, deasupra câmpului */
.ch .ch-qbar { flex: none; border-top: .5px solid var(--ln); }
/* banda programului (pasul 13, planșa docs/design-program, varianta 2): ca banda Fixat, deasupra câmpului */
.ch .ch-prog { flex: none; display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px 9px 16px; border-top: .5px solid var(--ln); background: var(--pl); font-size: 14px; line-height: 18px; }
.ch .ch-prog[hidden] { display: none; }
.ch .ch-prog .ch-pi { display: flex; color: var(--mut); margin-top: 1px; }
.ch .ch-prog div { flex: 1; min-width: 0; }
.ch .ch-prog b { display: block; font-weight: 600; }
.ch .ch-prog span:not(.ch-pi) { display: block; color: var(--mut); }
.ch .ch-prog:not([hidden]) + .ch-qbar[hidden] + .ch-sug[hidden] + .ch-cmp { border-top: 0; }
.ch .ch-qbar:not([hidden]) + .ch-cmp { border-top: 0; padding-top: 6px; }
.ch .ch-qc { margin: 8px 10px 0; padding: 6px 10px; border-radius: 10px; background: var(--q); box-shadow: inset 2px 0 0 var(--mut); display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 17px; }
.ch .ch-qc div { flex: 1; min-width: 0; }
.ch .ch-qc b { display: block; font-weight: 600; }
.ch .ch-qc span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mut); }
.ch .ch-qx { background: none; border: 0; padding: 4px; color: var(--acc); display: flex; }
/* ținutul apăsat: fundalul doar se întunecă (fără sticlă); reacțiile deasupra, meniul dedesubt */
.ch .ch-lp { position: absolute; inset: 0; z-index: 4; }
.ch .ch-scrim { position: absolute; inset: 0; background: var(--dim); }
.ch .ch-lift { position: absolute; display: flex; flex-direction: column; gap: 8px; }
.ch .ch-lift.ch-r { align-items: flex-end; }
.ch .ch-lift.ch-l { align-items: flex-start; }
.ch .ch-lb .ch-b, .ch .ch-lb .ch-del { margin: 0; max-width: none; max-height: 40vh; overflow: hidden; } /* lățimea bulei din fir (fără max-width, 78% din cutia ei o strângea) */
.ch .ch-lb .ch-rb { display: none; }
.ch .ch-rx { display: flex; align-items: center; gap: 2px; padding: 6px 8px; background: var(--pl); border-radius: 26px; box-shadow: inset 0 0 0 .5px var(--rim); }
.ch .ch-rx button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 19px; background: none; font-size: 24px; line-height: 30px; display: flex; align-items: center; justify-content: center; }
.ch .ch-rx button.ch-on { background: var(--hi); }
.ch .ch-rx .ch-rxp { font-size: 22px; color: var(--mut); }
.ch .ch-cm { width: 250px; background: var(--pl); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 .5px var(--rim); }
.ch .ch-cm button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 0 16px; border: 0; border-top: .5px solid var(--ln); background: none; font-size: 16px; color: var(--ink); text-align: left; }
.ch .ch-cm button:first-child { border-top: 0; }
.ch .ch-cm .ch-bad { color: var(--red); padding-top: 4px; padding-bottom: 4px; }
.ch .ch-cm small { display: block; font-size: 12px; line-height: 15px; color: var(--mut); font-weight: 400; }
.ch .ch-cm svg { flex: none; }
/* foile de jos: titlul, reacțiile toate, cine a reacționat, unde se redirecționează */
.ch .ch-sht { font-size: 13px; line-height: 17px; color: var(--mut); padding: 12px 16px; text-align: center; border-bottom: .5px solid var(--ln); }
.ch .ch-tall .ch-grp { max-height: 60vh; overflow-y: auto; }
.ch .ch-menu2 .ch-fwt { text-align: left; min-height: 56px; padding: 8px 16px; color: var(--ink); }
.ch .ch-fwt b { display: block; font-size: 16px; font-weight: 600; }
.ch .ch-fwt span { display: block; font-size: 13px; color: var(--mut); }
.ch .ch-rxg { display: grid; grid-template-columns: repeat(8, 1fr); padding: 6px; }
.ch .ch-menu2 .ch-rxg button { min-height: 0; height: 44px; padding: 0; font-size: 24px; border-top: 0; }
.ch .ch-rxw { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 16px; font-size: 16px; color: var(--ink); text-align: left; }
.ch .ch-menu2 button.ch-rxw { color: var(--ink); text-align: left; }
.ch .ch-rxw + .ch-rxw { border-top: .5px solid var(--ln); }
.ch .ch-rxw small { display: block; font-size: 12px; color: var(--mut); }
.ch .ch-rxw b { font-size: 22px; font-weight: 400; }
/* ecranele peste conversație: Detaliile mesajului (planșa 4, telefonul 5), Mesajele marcate */
.ch .ch-sub { position: absolute; inset: 0; z-index: 3; background: var(--bg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.ch .ch-sbody { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.ch .ch-dmsg { display: flex; flex-direction: column; padding: 24px 12px 0; }
.ch .ch-inf { margin: 14px 16px 0; background: var(--pl); border-radius: 12px; box-shadow: inset 0 0 0 .5px var(--rim); }
.ch .ch-ir { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; border-top: .5px solid var(--ln); font-size: 16px; }
.ch .ch-ir:first-child { border-top: 0; }
.ch .ch-ir span { flex: 1; }
.ch .ch-ir small { font-size: 15px; color: var(--mut); }
.ch .ch-ir i { width: 18px; display: flex; justify-content: center; color: var(--mut); }
.ch .ch-ir i.ch-rdi { color: var(--rdo); }
.ch .ch-st { display: block; width: 100%; padding: 10px 16px; border: 0; border-bottom: .5px solid var(--ln); background: none; text-align: left; color: var(--ink); }
.ch .ch-stw { display: flex; justify-content: space-between; gap: 8px; }
.ch .ch-stw b { font-size: 15px; font-weight: 600; }
.ch .ch-stw span { font-size: 13px; color: var(--mut); }
.ch .ch-stt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 20px; margin-top: 2px; }

/* Grupul elevilor (punctul 26, tranșa 1): planșa aleasă de Daniel pe 25 oct. 2026, docs/design-grupuri, varianta 2
   (valorile din docs/design-grupuri/variante.py, copiate). Culoarea numelui e a fiecărui elev, ca în grupurile WhatsApp. */
.ch { --swon:#30D158;--swoff:rgba(120,120,128,.36);
  --k0:#FF9E80;--k1:#7FD8A6;--k2:#FFC56B;--k3:#A9B8FF;--k4:#6FD3E8;--k5:#FF8FB8;--k6:#C9DA70; }
:root[data-theme="light"] .ch { --swon:#34C759;--swoff:rgba(120,120,128,.20);
  --k0:#A63A1B;--k1:#1D6E3F;--k2:#875608;--k3:#3F4FB0;--k4:#0E6378;--k5:#A32659;--k6:#566410; }
.ch .ch-k0 { --kc: var(--k0); } .ch .ch-k1 { --kc: var(--k1); } .ch .ch-k2 { --kc: var(--k2); } .ch .ch-k3 { --kc: var(--k3); }
.ch .ch-k4 { --kc: var(--k4); } .ch .ch-k5 { --kc: var(--k5); } .ch .ch-k6 { --kc: var(--k6); }
.ch .ch-nm { display: block; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--kc, var(--acc)); margin-bottom: 1px; white-space: normal; }
.ch .ch-img .ch-nm, .ch .ch-voice .ch-nm, .ch .ch-file .ch-nm { padding: 0 0 4px; }
.ch .ch-seen { align-self: flex-end; display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 15px; color: var(--mut); margin: 1px 4px 4px; padding: 0; background: none; border: 0; }
.ch .ch-seen svg { display: block; }
.ch .ch-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 13px; font-weight: 600;
  color: var(--kc); background: color-mix(in srgb, var(--kc) 20%, var(--bg)); }
/* pagina grupului și Cine a văzut: liste ca în Setările iPhone */
.ch .ch-pg { padding: 0 16px; display: flex; flex-direction: column; }
.ch .ch-gh { text-align: center; padding: 6px 0 0; }
.ch .ch-gh h3 { margin: 0; font-size: 20px; line-height: 25px; font-weight: 600; }
.ch .ch-gh p { margin: 2px 0 0; font-size: 14px; line-height: 18px; color: var(--mut); }
.ch .ch-sec { margin: 12px 0 6px 16px; font-size: 13px; line-height: 17px; color: var(--mut); }
.ch .ch-ls { background: var(--pl); border-radius: 12px; box-shadow: inset 0 0 0 .5px var(--rim); overflow: hidden; }
.ch .ch-li { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 16px; position: relative; background: none; border: 0; text-align: left; color: var(--ink); }
.ch .ch-ls > * + * { border-top: .5px solid var(--ln); }
.ch .ch-t { flex: 1; min-width: 0; font-size: 16px; line-height: 20px; }
.ch .ch-t small { display: block; font-size: 13px; line-height: 17px; color: var(--mut); }
.ch .ch-v, .ch .ch-tm2 { font-size: 16px; color: var(--mut); }
.ch .ch-tm2 { font-size: 15px; }
.ch .ch-lk { background: none; border: 0; padding: 6px 0; color: var(--acc); font-size: 15px; font-weight: 500; }
.ch .ch-more .ch-t { color: var(--acc); font-size: 15px; font-weight: 500; }
.ch .ch-dim .ch-t { color: var(--mut); }
.ch .ch-swt { width: 51px; height: 31px; border-radius: 16px; background: var(--swoff); position: relative; flex: none; border: 0; padding: 0; transition: background .2s; }
.ch .ch-swt::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .2s; }
.ch .ch-swt.ch-on { background: var(--swon); }
.ch .ch-swt.ch-on::after { left: 22px; }
.ch .ch-swp { position: relative; overflow: hidden; touch-action: pan-y; }
/* ca pe planșă: rândul rămâne pe loc, Scoate (96 px) crește din dreapta peste el */
.ch .ch-sin { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 16px; }
.ch .ch-swp.ch-open .ch-sin { padding-right: 112px; }
.ch .ch-rm { position: absolute; right: 0; top: 0; bottom: 0; z-index: 1; width: 0; overflow: hidden; white-space: nowrap; background: #FF3B30; color: #fff; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; transition: width .2s ease-out; }
.ch .ch-swp.ch-drag .ch-rm { transition: none; }
.ch .ch-swp.ch-open .ch-rm { width: 96px; }
.ch .ch-big { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 2px; }
.ch .ch-big b { font-size: 28px; line-height: 32px; font-weight: 700; }
.ch .ch-big span { font-size: 15px; color: var(--mut); }

/* Grupul elevilor, tranșa 2 (planșa docs/design-grupuri, varianta 2; valorile din variante.py, copiate):
   cardurile (tema, sondajul, testul rapid), @Nume, lista cu sugestii, fișierele grupului */
.ch .ch-at { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ch .ch-th .ch-at { color: var(--ink); }
.ch .ch-b.ch-cb { padding: 0; width: 268px; max-width: 268px; white-space: normal; }
.ch .ch-cb .ch-tm { bottom: 50px; right: 12px; }
.ch .ch-cb.ch-nob .ch-tm { bottom: 6px; right: 9px; }
.ch .ch-cd { padding: 9px 12px 0; }
.ch .ch-cd .ch-nm { padding-bottom: 2px; }
.ch .ch-cd .ch-lb { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 17px; opacity: .85; }
.ch .ch-cd h4 { margin: 4px 0 2px; font-size: 16px; line-height: 21px; font-weight: 600; opacity: 1; }
.ch .ch-cd p { margin: 0; font-size: 14px; line-height: 19px; opacity: .9; }
.ch .ch-cd .ch-cst { margin-top: 8px; font-size: 13px; line-height: 17px; opacity: .85; padding-bottom: 18px; }
.ch .ch-cd.ch-pq .ch-cst { margin-top: 2px; }
.ch .ch-bb { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; margin: 0; padding: 0 12px; border: 0; border-top: .5px solid rgba(255,255,255,.28); background: none; color: inherit; font-size: 15px; font-weight: 600; }
.ch .ch-op { display: flex; flex-direction: column; gap: 4px; margin-top: 9px; }
.ch .ch-op .ch-r { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font-size: 15px; line-height: 20px; }
.ch .ch-op .ch-r > span:not(.ch-c) { flex: 1; min-width: 0; }
.ch .ch-op .ch-r b { font-weight: 500; font-size: 14px; }
.ch .ch-c { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); flex: none; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; background: none; }
.ch .ch-c.ch-ok { background: #fff; color: var(--meb); box-shadow: none; }
.ch .ch-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); margin: 0 0 6px 26px; overflow: hidden; }
.ch .ch-bar u { display: block; height: 100%; background: #fff; }
/* cardul pe bula celuilalt (la elev): culorile variantei fără bule a planșei (.fc) */
.ch .ch-th .ch-bb { border-top-color: var(--ln); color: var(--acc); }
.ch .ch-th .ch-c { box-shadow: inset 0 0 0 1.5px var(--mut); }
.ch .ch-th .ch-c.ch-ok { background: var(--acc); color: var(--pl); }
.ch .ch-th .ch-bar { background: var(--ln); }
.ch .ch-th .ch-bar u { background: var(--acc); }
/* "Vine la ședință?" (planșa docs/design-rapide, varianta 2): cardul de 300 px; la profesor rândurile răspunsurilor,
   la familie cele două butoane, despărțite printr-o linie; răspunsul ales în culoarea textului */
.ch .ch-b.ch-cb.ch-ak { width: 300px; max-width: 300px; }
.ch .ch-ak .ch-rs { margin: 8px 0 0; display: block; color: inherit; overflow: visible; -webkit-line-clamp: unset; } /* nu ia regula randului din cautare (.ch-rs: culoarea estompata si cel mult doua randuri; gasit la 17i bucata 4d) */
.ch .ch-ak .ch-rs div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; line-height: 20px; }
.ch .ch-ak .ch-rs b { font-weight: 600; white-space: nowrap; }
.ch .ch-ak .ch-rs span { text-align: right; opacity: .85; }
.ch .ch-ak .ch-two { display: flex; border-top: .5px solid var(--ln); }
.ch .ch-ak .ch-two > * { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--acc); }
.ch .ch-ak .ch-two > * + * { border-left: .5px solid var(--ln); }
.ch .ch-ak .ch-two .ch-on { color: var(--ink); }
.ch .ch-ak .ch-two span:not(.ch-on) { opacity: .5; }
.ch .ch-cb.ch-ak .ch-tm { bottom: 50px; }
/* ședința mutată după întrebare: rândul mic de sub dată, ca meta-informație */
.ch .ch-ak .ch-akm { margin: 0 0 2px; font-size: 13px; line-height: 17px; opacity: .75; }
/* @Nume: lista de deasupra câmpului */
.ch .ch-sug { flex: none; margin: 8px 10px 0; background: var(--pl); border-radius: 12px; box-shadow: inset 0 0 0 .5px var(--rim); overflow: hidden; }
.ch .ch-sug button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; font-size: 16px; color: var(--ink); background: none; border: 0; text-align: left; }
.ch .ch-sug button + button { border-top: .5px solid var(--ln); }
/* răspunsurile rapide (planșa docs/design-rapide, varianta 2): titlul listei, apoi rândurile cu numele și textul pe două rânduri */
.ch .ch-sug .ch-qrh { min-height: 32px; padding: 6px 14px; box-sizing: border-box; font-size: 13px; line-height: 17px; color: var(--mut); }
.ch .ch-sug button.ch-qr { flex-direction: column; align-items: stretch; justify-content: center; gap: 0; min-height: 52px; padding: 7px 14px; border-top: .5px solid var(--ln); box-sizing: border-box; }
.ch .ch-sug .ch-qr b { font-size: 15px; line-height: 19px; font-weight: 600; }
.ch .ch-sug .ch-qr span { font-size: 14px; line-height: 18px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* fișierele grupului */
.ch .ch-chv { color: var(--mut); display: flex; }
.ch .ch-ls > .ch-thumbs { border-top: 0; }
.ch .ch-thumbs { display: flex; gap: 6px; padding: 0 16px 12px; }
.ch .ch-thumbs span { width: 62px; height: 62px; border-radius: 8px; overflow: hidden; background: var(--q); display: flex; align-items: center; justify-content: center; color: var(--mut); flex: none; }
.ch .ch-thumbs img, .ch .ch-mgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch .ch-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; }
.ch .ch-mgrid button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--q); color: var(--mut); display: flex; align-items: center; justify-content: center; }
.ch .ch-ls .ch-li > svg { flex: none; color: var(--mut); }
/* sondajul și testul nou (profesorul): întrebarea, variantele, trimiterea */
.ch .ch-mkq, .ch .ch-mki { width: 100%; border: 0; outline: none; background: none; color: var(--ink); font: inherit; font-size: 16px; line-height: 21px; }
.ch .ch-mkq { display: block; padding: 11px 16px; resize: none; }
.ch .ch-mkr .ch-c { width: 22px; height: 22px; box-shadow: inset 0 0 0 1.5px var(--mut); }
.ch .ch-mkr .ch-c.ch-ok { background: var(--acc); color: var(--pl); box-shadow: none; }
.ch .ch-mkadd { align-self: flex-start; margin: 6px 0 0 16px; }
.ch .ch-mksend { margin: 18px 0 24px; min-height: 48px; border: 0; border-radius: 14px; background: var(--meb); color: #FFFFFF; font-size: 16px; font-weight: 600; }
/* elev din altă grupă: rândul de la capătul paginii Grupul, în locul invitației (aceeași formă ca pe planșă) */
.ch .ch-inv { margin-top: 14px; }
.ch .ch-inv .ch-t { color: var(--acc); }
.ch .ch-inv .ch-t small { color: var(--mut); }
/* o foaie deschisă dintr-o pagină de deasupra conversației (Adaugă în grup) stă peste pagină */
.ch .ch-sub ~ .ch-shade { z-index: 4; }

/* Căutarea în conversație și fișierele pe conversație (punctul 20, pasul 11): planșa aleasă de Daniel pe 26 oct. 2026,
   docs/design-cautare, varianta 2 (valorile din docs/design-cautare/variante.py, copiate). Potrivirea e galbenă, ca la
   "Găsește pe pagină" din Safari, cu textul închis pe orice bulă (14,66:1; cea pe care stai, 10,37:1). */
.ch .ch-mk { background: #FFE36B; color: #14120E; border-radius: 3px; }
.ch .ch-mk.ch-cur { background: #FFB224; box-shadow: 0 0 0 2px #FFB224; }
.ch.ch-srch .ch-top, .ch.ch-srch .ch-cmp, .ch.ch-srch .ch-qbar, .ch.ch-srch .ch-sug, .ch.ch-srch .ch-pin, .ch.ch-srch .ch-up, .ch.ch-srch .ch-prog { display: none !important; }
.ch .ch-sbar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px; border-bottom: .5px solid var(--ln); flex: none; }
.ch .ch-sf { flex: 1; min-width: 0; height: 36px; border-radius: 10px; background: var(--fld); box-shadow: inset 0 0 0 .5px var(--rim); display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 16px; color: var(--ink); }
.ch .ch-gl { color: var(--mut); display: flex; flex: none; }
.ch .ch-sq { flex: 1; min-width: 0; height: 36px; border: 0; outline: none; background: none; color: var(--ink); font: inherit; font-size: 16px; padding: 0; -webkit-appearance: none; appearance: none; }
.ch .ch-sq::-webkit-search-cancel-button { display: none; }
.ch .ch-sxx { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 0 0 4px; border: 0; background: none; color: var(--mut); flex: none; }
.ch .ch-sxx[hidden] { display: none; }
.ch .ch-cx { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--acc); font-size: 16px; white-space: nowrap; }
.ch .ch-snav { flex: none; display: flex; align-items: center; gap: 2px; padding: 4px 8px max(10px, env(safe-area-inset-bottom)); border-top: .5px solid var(--ln); }
.ch .ch-scnt { flex: 1; text-align: center; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ch .ch-stx { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--acc); font-size: 16px; white-space: nowrap; }
.ch .ch-snav .ch-ib:disabled, .ch .ch-stx:disabled { color: var(--mut); opacity: .5; cursor: default; }
/* lista rezultatelor */
.ch .ch-rl { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ch .ch-rcap { padding: 12px 16px 6px; font-size: 13px; line-height: 17px; color: var(--mut); }
.ch .ch-rr { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 9px 16px 10px; border: 0; border-top: .5px solid var(--ln); background: none; text-align: left; color: var(--ink); }
.ch .ch-rcap + .ch-rr { border-top: 0; }
.ch .ch-rr.ch-on { background: var(--hi); }
.ch .ch-rh { display: flex; align-items: baseline; gap: 8px; font-size: 15px; line-height: 19px; }
.ch .ch-rh b { font-weight: 600; }
.ch .ch-rh small { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--mut); white-space: nowrap; }
.ch .ch-rs { font-size: 15px; line-height: 20px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* ziua: foaia de jos cu luna */
.ch .ch-dsh { width: 100%; max-width: 680px; background: var(--pl); border-radius: 14px 14px 0 0; box-shadow: inset 0 .5px 0 var(--rim); padding: 8px 16px max(16px, env(safe-area-inset-bottom)); }
.ch .ch-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--ln); margin: 0 auto 10px; filter: brightness(1.6); }
.ch .ch-dst { display: flex; align-items: center; justify-content: space-between; font-size: 17px; line-height: 22px; font-weight: 600; margin-bottom: 8px; }
.ch .ch-dst .ch-lk { font-size: 16px; font-weight: 500; }
.ch .ch-mh { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 6px; font-size: 17px; font-weight: 600; }
.ch .ch-ar { display: flex; gap: 4px; color: var(--acc); }
.ch .ch-ar .ch-ib { width: 36px; height: 36px; }
.ch .ch-wd, .ch .ch-dg { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.ch .ch-wd span { font-size: 12px; line-height: 20px; color: var(--mut); }
.ch .ch-dg button { position: relative; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--mut); background: none; border: 0; padding: 0; }
.ch .ch-dg button.ch-m { color: var(--ink); font-weight: 600; }
.ch .ch-dg button.ch-m::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--acc); }
.ch .ch-dg button.ch-on b { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--acc); }
.ch .ch-dg button.ch-on em { position: relative; font-style: normal; color: var(--pl); font-weight: 600; }
.ch .ch-dg button.ch-on::after { display: none; }
.ch .ch-dg button.ch-tdy { color: var(--acc); }
.ch .ch-lgd { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; line-height: 17px; color: var(--mut); }
.ch .ch-lgd span { display: flex; align-items: center; gap: 6px; }
.ch .ch-lgd i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.ch .ch-go { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border-radius: 12px; border: 0; background: var(--acc); color: var(--pl); font-size: 17px; font-weight: 600; margin-top: 12px; }
/* pagina conversației (atingi numele din antet) */
.ch .ch-ip { display: flex; flex-direction: column; align-items: center; padding: 14px 16px 4px; text-align: center; }
.ch .ch-bav { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 600; color: #fff; background: var(--meb); }
.ch .ch-ip h3 { margin: 10px 0 0; font-size: 22px; line-height: 27px; font-weight: 600; }
.ch .ch-ip p { margin: 2px 0 0; font-size: 15px; line-height: 19px; color: var(--mut); }
.ch .ch-acts { display: flex; gap: 10px; padding: 14px 16px 0; }
.ch .ch-act2 { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 9px; border-radius: 12px; border: 0; background: var(--pl); box-shadow: inset 0 0 0 .5px var(--rim); color: var(--acc); font-size: 13px; line-height: 16px; text-decoration: none; }
.ch .ch-ipg { gap: 14px; padding-top: 14px; }
.ch .ch-bad2 .ch-t { color: var(--red); }
/* fișierele conversației */
.ch .ch-seg { display: flex; flex: none; margin: 10px 16px 4px; padding: 2px; border-radius: 9px; background: var(--fld); }
.ch .ch-seg button { flex: 1; text-align: center; font-size: 14px; line-height: 30px; border-radius: 7px; border: 0; background: none; color: var(--ink); padding: 0; }
.ch .ch-seg button.ch-on { background: var(--pl); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.18), inset 0 0 0 .5px var(--rim); }
.ch .ch-rgh { padding: 14px 16px 4px; font-size: 13px; line-height: 17px; color: var(--mut); font-weight: 500; }
.ch .ch-fr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 16px; border: 0; border-top: .5px solid var(--ln); background: none; text-align: left; color: var(--ink); -webkit-touch-callout: none; user-select: none; }
.ch .ch-fr:first-child { border-top: 0; }
.ch .ch-fic { width: 40px; height: 40px; border-radius: 8px; background: var(--q); display: flex; align-items: center; justify-content: center; color: var(--mut); flex: none; overflow: hidden; }
.ch .ch-fr .ch-t > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch .ch-fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0 0 4px; }
.ch .ch-fgrid button { aspect-ratio: 1; border: 0; padding: 0; overflow: hidden; background: var(--q); color: var(--mut); display: flex; align-items: center; justify-content: center; -webkit-touch-callout: none; }
.ch .ch-fgrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch .ch-fhint { padding: 18px 16px 4px; font-size: 13px; line-height: 17px; color: var(--mut); }

/* Mesajele programate (punctul 20, pasul 14): planșa docs/design-programate, varianta 2 (Main.dc.html), aleasă de
   Daniel pe 26 oct. 2026; valorile ei, copiate. Ții apăsat pe Trimite: butonul mare peste fundalul întunecat și
   meniul "Trimite mai târziu" deasupra lui; "Alege ziua și ora" = foaia de jos cu pastile; în conversație, bula cu
   contur punctat, ceasul și ora în colț, rândul de sub ea. */
.ch [data-ch="send"] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ch .ch-held { position: absolute; width: 44px; height: 44px; border-radius: 22px; background: var(--meb); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.ch .ch-pm { position: absolute; width: 300px; max-width: calc(100% - 20px); background: var(--pl); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 .5px var(--rim), 0 10px 30px rgba(0,0,0,.28); }
.ch .ch-pm .ch-pmh, .ch .ch-pm button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px; font-size: 16px; line-height: 20px; border-top: .5px solid var(--ln); }
.ch .ch-pm .ch-pmh { min-height: 36px; font-size: 13px; color: var(--mut); border-top: 0; }
.ch .ch-pm button { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; color: var(--ink); text-align: left; }
.ch .ch-pm .ch-pt { flex: 1; min-width: 0; }
.ch .ch-pm small { display: block; font-size: 13px; line-height: 17px; color: var(--mut); }
.ch .ch-pm .ch-pi { display: flex; color: var(--mut); }
.ch .ch-bsh { position: absolute; left: 0; right: 0; bottom: 0; max-width: 680px; margin: 0 auto; background: var(--pl); border-radius: 16px 16px 0 0; box-shadow: inset 0 .5px 0 var(--rim); padding: 8px 16px 34px; }
.ch .ch-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--ln); margin: 0 auto 10px; filter: brightness(1.6); }
.ch .ch-bst { display: flex; align-items: center; justify-content: space-between; height: 40px; font-size: 17px; font-weight: 600; }
.ch .ch-bst button { background: none; border: 0; padding: 0; font-size: 17px; font-weight: 400; color: var(--acc); }
.ch .ch-lbl { font-size: 13px; line-height: 17px; color: var(--mut); margin: 0 0 6px; }
.ch .ch-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ch .ch-pills > * { position: relative; height: 36px; padding: 0 14px; border-radius: 18px; display: flex; align-items: center; font-size: 15px; background: var(--q); color: var(--ink); border: 0; }
.ch .ch-pills > .ch-on { background: var(--meb); color: #FFFFFF; font-weight: 600; }
.ch .ch-pills.ch-dy > * { flex-direction: column; justify-content: center; height: 52px; width: 44px; padding: 0; border-radius: 14px; line-height: 17px; }
.ch .ch-pills.ch-dy small { display: block; font-size: 12px; opacity: .8; }
.ch .ch-alt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; }
.ch .ch-big2 { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border-radius: 14px; border: 0; background: var(--meb); color: #FFFFFF; font-size: 17px; font-weight: 600; }
.ch .ch-bss { display: flex; align-items: center; justify-content: center; height: 44px; font-size: 14px; color: var(--mut); }
.ch .ch-b.ch-sc { background: transparent; color: var(--ink); outline: 1.5px dashed var(--meb); outline-offset: -1.5px; box-shadow: none; cursor: pointer; }
.ch .ch-sc .ch-tm, .ch .ch-sc .ch-tg { color: var(--mut); }
.ch .ch-scl { align-self: flex-end; display: flex; align-items: center; gap: 4px; margin: 3px 4px 0; font-size: 12px; line-height: 15px; color: var(--mut); }
