/* SkiRO social: aceleași culori ca tabela de stare (bleumarin de panou, portocaliu de semnal), aceleași
   litere condensate. Câteva lucruri proprii: inelul de story (portocaliu nevăzut, verde pentru prieteni
   apropiați, gri văzut), bilet de schi pentru ziua pe pârtie, baloane de chat bleumarin / alb. */

/* ---------- bara de sus și tab-uri ---------- */
.top-actions { display: flex; gap: 4px; }
.top-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; }
.top-btn svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.top-btn:active { background: var(--board-2); }
.badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mark); color: #fff; font: 700 11.5px/18px var(--text); text-align: center; box-shadow: 0 0 0 2px var(--board); }
body.recording .tabs a[data-tab="ture"] { position: relative; }
body.recording .tabs a[data-tab="ture"]::after { content: ''; position: absolute; top: 9px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: #E0352B; box-shadow: 0 0 0 2px var(--paper); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
body.immersive .tabs, body.immersive .fab { display: none; }
body.immersive main { padding-bottom: 0; }
body.noscroll { overflow: hidden; }

/* ---------- comune ---------- */
.ic { display: inline-grid; place-items: center; width: var(--i); height: var(--i); flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--ink); text-decoration: none; }
.icon-btn:active { background: var(--line); }
.btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 9px; }
.btn.big { padding: 17px; font-size: 19px; gap: 10px; }
.btn.danger { background: #B3261E; border-color: #B3261E; color: #fff; }
.danger-text { color: #B3261E !important; }
.muted { color: var(--ink-3) !important; }
.link { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; cursor: pointer; }
.fine { font-size: 13.5px; color: var(--ink-2); }
.fine a { color: var(--ink); }
.sheet-text { margin-top: 8px; color: var(--ink-2); }
.sheet.wide { max-height: 92dvh; }
.menu { display: grid; margin-top: 12px; }
.menu > button, .menu > a { display: block; width: 100%; padding: 15px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: 16.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.menu > :first-child { border-top: 0; }
.menu-note { padding: 12px 4px; font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); }
.empty-big { display: grid; justify-items: center; gap: 10px; padding: 46px 16px; text-align: center; color: var(--ink-2); }
.empty-big .ic { color: var(--ink-3); }
.check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink) !important; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--mark); }
.count { justify-self: end; font-size: 12.5px; color: var(--ink-3); }
.full-img { display: block; width: 100%; border-radius: 12px; margin-top: 30px; }
textarea.field { resize: vertical; line-height: 1.4; font-family: inherit; }

/* ---------- avatare și inelul de story ---------- */
/* Forma se alege din Setări și stă pe <html data-av="…">; implicit oval. Fiecare formă dă:
   --av-w lățimea față de înălțime (la avatarele din liste), --av-h înălțimea față de lățime (profil, highlights, story-uri),
   --av-r colțurile, pentru cerc și oval, --av-clip conturul, pentru celelalte (din index.html). */
:root, [data-av="oval"] { --av-w: .8; --av-h: 1.25; --av-r: 50%; --av-clip: none; }
[data-av="cerc"] { --av-w: 1; --av-h: 1; --av-r: 50%; --av-clip: none; }
[data-av="pernuta"] { --av-w: 1; --av-h: 1; --av-r: 0; --av-clip: url(#av-pernuta); }
[data-av="skipass"] { --av-w: .8; --av-h: 1.25; --av-r: 0; --av-clip: url(#av-skipass); }
[data-av="hexagon"] { --av-w: 1; --av-h: 1; --av-r: 0; --av-clip: url(#av-hexagon); }
[data-av="romb"] { --av-w: 1; --av-h: 1; --av-r: 0; --av-clip: url(#av-romb); }
[data-av="stampila"] { --av-w: 1; --av-h: 1; --av-r: 0; --av-clip: url(#av-stampila); }
/* în liste avatarul păstrează înălțimea rândului; în profil, highlights și bara de story-uri păstrează lățimea și crește în sus */
.av { --in: 0px; position: relative; display: inline-block; vertical-align: middle; width: calc(var(--s) * var(--av-w)); height: var(--s); flex: none; }
.pf-av .av, .hl > .av, .tray-av .av, .hl-new, .shp-pic .av { width: var(--s); height: calc(var(--s) * var(--av-h)); }
/* straturile: inelul (::before), spațiul alb (::after), poza; toate decupate cu aceeași formă */
.av > img, .av > span, .av::before, .av::after { position: absolute; border-radius: var(--av-r); clip-path: var(--av-clip); }
.av::before, .av::after { inset: 0; }
.av > img, .av > span { z-index: 1; left: var(--in); top: var(--in); width: calc(100% - 2 * var(--in)); height: calc(100% - 2 * var(--in)); object-fit: cover; }
.av > span { display: grid; place-items: center; color: #fff; font-weight: 700; letter-spacing: .02em; font-family: var(--text); }
.av.ring { --in: 5.5px; }
.av.ring::before { content: ''; background: conic-gradient(from 210deg, var(--mark), #FFB224, var(--mark)); }
.av.ring::after { content: ''; inset: 3px; background: var(--paper); }
.av.ring.close::before { background: #17A65A; }
.av.ring.seen::before { background: var(--line); }

/* ---------- capul paginilor sociale ---------- */
.soc-head { position: sticky; top: 62px; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; background: var(--snow); }
.soc-title { flex: 1; font: 700 30px/1 var(--display); }
.seg { flex: 1; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--line); }
.seg a { flex: 1; padding: 8px 6px; border-radius: 9px; text-align: center; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg a[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 34, 49, .12); }
main > .seg, .pf-seg { margin: 6px 16px 0; }

/* ---------- story-uri ---------- */
.tray { display: flex; gap: 14px; overflow-x: auto; padding: 6px 16px 14px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tray::-webkit-scrollbar { display: none; }
.tray-item { display: grid; justify-items: center; gap: 5px; width: 72px; flex: none; padding: 0; border: 0; background: none; }
.tray-av { position: relative; }
.tray-plus { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--mark); color: #fff; font: 700 20px/22px var(--text); text-align: center; box-shadow: 0 0 0 3px var(--snow); }
.tray-name { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-2); }

/* ---------- oameni ---------- */
.people { list-style: none; margin: 0; padding: 4px 16px; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.person > a, .person-l, .person-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.person-pick { border: 0; background: none; padding: 0; text-align: left; }
.person b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { display: block; font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person > a > span, .person-l > span, .person-pick > span { min-width: 0; }
.person-btns { display: flex; gap: 6px; }
.tick { display: grid; place-items: center; width: 26px; height: 26px; flex: none; margin-left: auto; border-radius: 50%; border: 1.5px solid var(--ink-3); background: none; color: transparent; }
.tick.on { background: var(--mark); border-color: var(--mark); color: #fff; }
.sheet .people { padding: 6px 0 0; }
.sheet #nc-q { width: 100%; margin-top: 12px; }

/* ---------- postări ---------- */
.post { margin: 0 0 6px; padding-bottom: 10px; background: var(--paper); border-bottom: 1px solid var(--line); }
.post-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 14px; }
.post-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.post-who a { color: inherit; text-decoration: none; }
.post-who b { display: block; font-weight: 600; font-size: 15px; }
.post-who small { display: block; font-size: 13px; color: var(--ink-2); }
.post-who small a { text-decoration: none; }
.post-media { position: relative; aspect-ratio: var(--ar); background: #E6ECF0; overflow: hidden; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { width: 100%; height: 100%; flex: none; object-fit: cover; scroll-snap-align: center; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.dots i.on { background: #fff; }
.burst { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; pointer-events: none; }
.burst svg { fill: #fff; stroke: none; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .25)); }
.post-media.pop .burst { animation: burst .8s ease-out; }
@keyframes burst { 0% { opacity: 0; transform: scale(.4); } 18% { opacity: 1; transform: scale(1.1); } 30% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.post-actions { display: flex; gap: 4px; padding: 6px 8px 0; }
.act { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); }
.act.liked svg { fill: #E0352B; stroke: #E0352B; }
.act.liked { animation: likeTap .3s ease-out; }
@keyframes likeTap { 50% { transform: scale(1.2); } }
.post-likes { padding: 0 14px; min-height: 2px; font-size: 15px; font-weight: 600; }
.post-caption { padding: 4px 14px 0; font-size: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.post-caption a { color: inherit; text-decoration: none; }
.post-more { display: block; margin: 4px 14px 0; padding: 0; border: 0; background: none; color: var(--ink-3); font-size: 14.5px; }
.post-time { padding: 4px 14px 0; font-size: 12.5px; color: var(--ink-3); }
.post .ticket { margin: 0 14px; }
.post .post-media + .ticket { margin-top: 10px; }

.cms { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.cm { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.cm p { font-size: 15px; overflow-wrap: anywhere; }
.cm a { color: inherit; text-decoration: none; }
.cm small { font-size: 12.5px; color: var(--ink-3); }
.cm .link { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.composer { position: sticky; bottom: calc(-1 * (16px + var(--safe-b))); display: flex; gap: 8px; align-items: flex-end; margin: 14px -16px 0; padding: 10px 16px calc(10px + var(--safe-b)); background: var(--paper); border-top: 1px solid var(--line); }
.composer.pad { position: static; margin: 12px 0 0; border: 0; background: none; }

.create { display: grid; gap: 10px; margin-top: 14px; }
.create button { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-align: left; }
.create b { display: block; font: 700 20px/1.1 var(--display); }
.create small { color: var(--ink-2); font-size: 14px; }
.create .ic { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--board); color: #fff; }

.np-media { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 14px; }
.np-thumb { position: relative; width: 104px; height: 130px; flex: none; margin: 0; border-radius: 10px; overflow: hidden; }
.np-thumb img { width: 100%; height: 100%; object-fit: cover; }
.np-thumb button { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(15, 34, 49, .7); color: #fff; font-size: 18px; line-height: 1; }
.np-add { display: grid; place-items: center; align-content: center; gap: 6px; width: 104px; height: 130px; flex: none; border: 1.5px dashed var(--ink-3); border-radius: 10px; background: var(--paper); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }

/* ---------- compunere și vizualizare story ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: #000; color: #fff; }
.sc, .sv { position: relative; height: 100dvh; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.sc-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 8px; }
.sc-x, .sv-btn { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .28); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.sc-aud { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .32); }
.sc-aud button { padding: 7px 12px; border: 0; border-radius: 999px; background: none; color: #fff; font-weight: 600; font-size: 13.5px; }
.sc-aud button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.sc-aud .close-f[aria-pressed="true"] { background: #17A65A; color: #fff; }
.sc-canvas { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; }
.sc-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-canvas textarea { position: relative; z-index: 2; width: 86%; min-height: 60px; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: #fff; text-align: center; font: 700 30px/1.15 var(--display); resize: none; outline: none; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.sc-canvas img ~ textarea { background: rgba(15, 34, 49, .45); font-size: 24px; }
.sc-canvas textarea::placeholder { color: rgba(255, 255, 255, .65); }
.sc-sticker { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 86%; transform: translateX(-50%) rotate(-2deg); }
.sc-bgs { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; }
.sc-bgs button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); }
.sc-bgs button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .4); }
.sc-go { position: relative; z-index: 3; margin: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); padding: 15px; font-size: 17px; }

.sv-bars { position: absolute; z-index: 4; top: calc(8px + env(safe-area-inset-top, 0px)); left: 8px; right: 8px; display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars b { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left center; transform: scaleX(0); will-change: transform; }
/* ținut apăsat: interfața se retrage ca să se vadă poza întreagă */
.sv.held .sv-head, .sv.held .sv-foot, .sv.held .sv-bars { opacity: 0; transition: opacity .2s .1s; }
.sv { touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.sv-foot input { user-select: text; -webkit-user-select: text; }
.sv-head { position: absolute; z-index: 4; top: calc(18px + env(safe-area-inset-top, 0px)); left: 10px; right: 8px; display: flex; align-items: center; gap: 6px; }
.sv-head a { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; color: #fff; text-decoration: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.sv-head b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-head small { font-size: 13px; opacity: .85; white-space: nowrap; }
.cf { color: #7EE2A8; font-weight: 600; }
.sv-stage { position: relative; flex: 1; display: grid; place-items: center; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; }
.sv-stage img, .sv-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; background: #000; }
.sv-stage img.fill, .sv-stage video.fill { object-fit: cover; }
.sv-load { position: absolute; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; opacity: 0; transition: opacity .2s; animation: spin .9s linear infinite; pointer-events: none; }
.sv-load.on { opacity: 1; transition-delay: .4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.sv-text { position: relative; z-index: 1; max-width: 86%; text-align: center; font: 700 32px/1.15 var(--display); overflow-wrap: anywhere; white-space: pre-line; }
.sv-text.on-photo { position: absolute; bottom: 22%; padding: 8px 14px; border-radius: 12px; background: rgba(15, 34, 49, .5); font-size: 24px; }
.sv-sticker { position: absolute; z-index: 3; left: 50%; bottom: 16px; width: 86%; transform: translateX(-50%) rotate(-2deg); text-decoration: none; }
.sv-place { position: absolute; z-index: 3; top: 76px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.sv-tap { position: absolute; top: 0; bottom: 0; z-index: 2; border: 0; background: none; }
.sv-tap.prev { left: 0; width: 32%; } .sv-tap.next { right: 0; width: 68%; }
.sv-foot { position: relative; z-index: 4; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.sv-reply { display: flex; gap: 8px; align-items: center; }
.sv-reply input { flex: 1; padding: 12px 16px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; background: transparent; color: #fff; font-size: 16px; }
.sv-reply input::placeholder { color: rgba(255, 255, 255, .8); }
.sv-heart { width: 44px; height: 44px; border: 0; background: none; color: #fff; display: grid; place-items: center; }
.sv-seen { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .3); color: #fff; font-weight: 600; }

/* ---------- profil ---------- */
.pf { padding: 4px 16px 0; }
.pf-top { display: flex; align-items: center; gap: 6px; min-height: 48px; }
.pf-handle { flex: 1; display: flex; align-items: center; gap: 6px; font: 700 22px/1 var(--display); }
.pf-row { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.pf-av { position: relative; padding: 0; border: 0; background: none; }
.pf-nums { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.pf-nums > * { padding: 4px 0; border: 0; background: none; font-size: 13.5px; color: var(--ink-2); }
.pf-nums b { display: block; font: 700 24px/1.05 var(--display); color: var(--ink); }
.pf-bio { margin-top: 12px; }
.pf-name { font-weight: 700; font-size: 16px; }
.pf-rank { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #FFF0E8; color: var(--mark-ink); font-size: 12.5px; font-weight: 600; vertical-align: 1px; }
.pf-tags { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.pf-text { margin-top: 4px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.pf-home { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pf-btns { display: flex; gap: 8px; margin-top: 14px; }
.pf-btns > * { flex: 1; }
.hls { display: flex; gap: 14px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.hls::-webkit-scrollbar { display: none; }
.hl { display: grid; justify-items: center; gap: 5px; width: 70px; flex: none; padding: 0; border: 0; background: none; font-size: 12.5px; color: var(--ink); }
.hl > .av { --in: 4px; }
.hl > .av::before { content: ''; background: var(--line); }
.hl > .av::after { content: ''; inset: 1px; background: var(--paper); }
.hl span:last-child { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-new { --s: 62px; display: grid; place-items: center; background: var(--line); color: var(--ink-2); border-radius: var(--av-r); clip-path: var(--av-clip); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 12px; }
.cell { position: relative; aspect-ratio: 1; background: var(--board); overflow: hidden; color: #fff; text-decoration: none; }
.cell img { width: 100%; height: 100%; object-fit: cover; }
.cell-tk { display: grid; place-items: center; align-content: center; height: 100%; padding: 8px; text-align: center; font-size: 12px; color: var(--board-dim); }
.cell-tk b { font: 700 22px/1 var(--display); color: #fff; }
.cell-multi { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.private { display: grid; justify-items: center; gap: 8px; margin: 28px 16px; padding: 30px 20px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); }
.private h2 { font: 700 22px/1.1 var(--display); color: var(--ink); }
.ep-av { display: grid; justify-items: center; gap: 6px; padding: 8px 0 18px; }
.arch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.arch-it { position: relative; aspect-ratio: 9 / 14; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--bg); color: #fff; }
.arch-it img { width: 100%; height: 100%; object-fit: cover; }
.arch-it > span { display: grid; place-items: center; height: 100%; padding: 6px; font: 700 15px/1.1 var(--display); }
.arch-it small { position: absolute; left: 6px; bottom: 5px; font-size: 11px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.arch-it[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--mark); }
.arch-it[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--mark); font: 700 14px/22px var(--text); text-align: center; }
.sheet #hl { padding: 0; margin-top: 14px; }

/* ---------- activitate ---------- */
.notes { list-style: none; margin: 0; padding: 0 16px; }
.notes li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.notes li.new .note-t::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--mark); vertical-align: 2px; }
.note-t { flex: 1; min-width: 0; font-size: 15px; color: inherit; text-decoration: none; }
.note-t small { color: var(--ink-3); font-size: 13px; }
.note-th { width: 46px; height: 46px; flex: none; border-radius: 6px; object-fit: cover; }
.lb .who { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }

/* ---------- mesaje ---------- */
.push-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 16px 10px; }
.convos { list-style: none; margin: 8px 0 0; padding: 0; }
.convos a { display: flex; align-items: center; gap: 12px; padding: 9px 16px; color: inherit; text-decoration: none; }
.convos a:active { background: var(--line); }
.cv-m { flex: 1; min-width: 0; }
.cv-m b { display: block; font-weight: 500; }
.cv-m small { display: block; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convos .unread b { font-weight: 700; }
.convos .unread small { color: var(--ink); font-weight: 600; }
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--mark); }
.cv-seen { font-size: 12.5px; color: var(--ink-3); }
.av-group { position: relative; width: 54px; height: 54px; flex: none; }
.av-group .av { position: absolute; --in: 2px; }
.av-group .av::before { content: ''; background: var(--snow); }
.av-group .av:first-child { top: 0; right: 0; } .av-group .av:last-child:not(:first-child) { bottom: 0; left: 0; }
.av-group.sm { width: 40px; height: 40px; }

.ch-head { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; gap: 4px; padding: calc(6px + env(safe-area-inset-top, 0px)) 6px 6px; background: var(--paper); border-bottom: 1px solid var(--line); }
body.immersive .topbar { display: none; }
.ch-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.ch-who b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-who small { display: block; font-size: 12.5px; color: var(--ink-3); }
.req { margin: 12px 16px 0; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; }
.req-b { display: flex; gap: 8px; margin-top: 10px; }
.msgs { list-style: none; margin: 0; padding: 10px 12px 8px; min-height: calc(100dvh - 140px); display: flex; flex-direction: column; justify-content: flex-end; }
.msgs .day { align-self: center; margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.msgs .older { align-self: center; margin: 6px 0; }
.msgs .sys { align-self: center; max-width: 86%; margin: 8px 0; padding: 6px 12px; border-radius: 999px; background: var(--line); font-size: 13px; color: var(--ink-2); text-align: center; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.msgs .sys small { color: var(--ink-3); }
.call-log.missed { background: #FDE8E6; color: #8A1C14; }
.msgs .seen { align-self: flex-end; font-size: 12px; color: var(--ink-3); margin: 2px 4px 0; }
.msg { display: grid; margin-top: 8px; max-width: 80%; }
.msg.grouped { margin-top: 2px; }
.msg.me { align-self: flex-end; justify-items: end; }
.msg.them { align-self: flex-start; }
.msg .who { margin: 0 0 2px 36px; font-size: 12px; color: var(--ink-3); }
.b-row { display: flex; align-items: flex-end; gap: 8px; }
.av-sp { width: 26px; flex: none; }
.b { position: relative; padding: 9px 13px; border-radius: 20px; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-line; user-select: text; -webkit-touch-callout: none; }
.me .b { background: var(--board); color: #fff; }
.them .b { background: var(--paper); border: 1px solid var(--line); }
.me.tail .b { border-bottom-right-radius: 6px; } .them.tail .b { border-bottom-left-radius: 6px; }
.b.big { padding: 0; background: none !important; border: 0 !important; font-size: 40px; line-height: 1.1; }
.b.image, .b.video { padding: 3px; }
.b-img { display: block; padding: 0; border: 0; background: none; }
.b-img img { display: block; max-width: 230px; max-height: 320px; width: 100%; border-radius: 17px; object-fit: cover; }
.b.image .b-text, .b.video .b-text { display: block; padding: 6px 10px 4px; }
.b-story { display: grid; gap: 4px; margin-bottom: 6px; }
.b-story small { font-size: 12px; opacity: .75; }
.b-story img, .b-story-t { width: 92px; height: 140px; border-radius: 10px; object-fit: cover; }
.b-story-t { display: grid; place-items: center; padding: 6px; background: var(--bg); color: #fff; font: 700 13px/1.1 var(--display); text-align: center; }
.b-post { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; color: inherit; text-decoration: none; min-width: 200px; }
.b-post img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.b-post span { font-size: 13.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ghost { font-style: italic; opacity: .7; }
.quote { display: block; margin-bottom: 5px; padding: 5px 9px; border-radius: 10px; background: rgba(127, 140, 150, .18); font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.reacts { position: absolute; bottom: -12px; right: 8px; padding: 1px 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 13px; line-height: 18px; white-space: nowrap; }
.them .reacts { right: auto; left: 8px; }
.b:has(.reacts) { margin-bottom: 12px; }
.typing { display: flex; gap: 4px; width: 56px; margin: 4px 0 8px 46px; padding: 12px 14px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .45; transform: none; } }
.reply-to { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; background: var(--paper); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); position: sticky; bottom: 62px; }
.reply-to button { border: 0; background: none; font-size: 20px; color: var(--ink-3); }
.ch-input { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px calc(8px + var(--safe-b)); background: var(--snow); }
.ch-input textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); font: 16px/1.35 var(--text); resize: none; }
.ch-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--mark); color: #fff; display: grid; place-items: center; }
.blocked-note { padding: 16px; text-align: center; color: var(--ink-2); font-size: 14px; }
.react-row { display: flex; justify-content: space-around; margin-top: 30px; padding: 8px; border-radius: 999px; background: var(--snow); }
.react-row button { width: 46px; height: 46px; border: 0; background: none; font-size: 28px; border-radius: 50%; }
.react-row button:active { transform: scale(1.25); background: var(--line); }

/* ---------- apel ---------- */
.overlay.call { background: var(--board); }
.cl { position: relative; height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: calc(60px + env(safe-area-inset-top, 0px)) 20px calc(36px + env(safe-area-inset-bottom, 0px)); background: radial-gradient(120% 70% at 50% 25%, #1E4A66 0%, var(--board) 70%); overflow: hidden; }
.cl-who { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; text-align: center; }
.cl-who b { font: 700 30px/1.1 var(--display); }
.cl-who span { color: var(--board-dim); font-size: 15px; max-width: 30ch; }
/* cât sună: un val portocaliu pleacă din poză, în forma aleasă */
.cl.incoming .cl-who .av::before, .cl.outgoing .cl-who .av::before { content: ''; background: rgba(255, 90, 31, .55); animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.cl video#cl-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cl.live .cl-who { margin-top: auto; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.cl.live .cl-who .av { display: none; }
.cl video#cl-local { position: absolute; z-index: 3; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); width: 104px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: #000; box-shadow: 0 4px 18px rgba(0, 0, 0, .4); transform: scaleX(-1); }
.cl-ctrl { position: relative; z-index: 3; display: flex; gap: 22px; justify-content: center; }
.cl-b { width: 64px; height: 64px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; }
.cl-b[aria-pressed="true"] { background: #fff; color: var(--ink); }
.cl-b.red { background: #E0352B; }
.cl-b.green { background: #17A65A; animation: nudge 1.4s ease-in-out infinite; }
.cl-b.red svg, .cl-b.green svg { fill: currentColor; }
@keyframes nudge { 50% { transform: translateY(-4px); } }

/* ---------- ture ---------- */
.ticket { position: relative; display: grid; grid-template-columns: 84px 1fr; color: var(--ink); text-decoration: none; filter: drop-shadow(0 1px 1px rgba(15, 34, 49, .12)); }
.tk-stub { display: grid; align-content: center; gap: 2px; padding: 12px 10px 12px 12px; border-radius: 12px 0 0 12px; background: var(--mark); color: #fff;
  -webkit-mask: radial-gradient(circle 7px at right 0 top 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 7px at right 0 bottom 0, transparent 98%, #000) bottom right / 100% 51% no-repeat;
  mask: radial-gradient(circle 7px at right 0 top 0, transparent 98%, #000) top right / 100% 51% no-repeat, radial-gradient(circle 7px at right 0 bottom 0, transparent 98%, #000) bottom right / 100% 51% no-repeat; }
.tk-stub b { font: 700 22px/1 var(--display); }
.tk-stub small { font-size: 12px; line-height: 1.2; opacity: .92; }
.tk-body { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 10px 6px; border-radius: 0 12px 12px 0; background: var(--paper); border-left: 2px dashed rgba(255, 90, 31, .5);
  -webkit-mask: radial-gradient(circle 7px at left 0 top 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 7px at left 0 bottom 0, transparent 98%, #000) bottom left / 100% 51% no-repeat;
  mask: radial-gradient(circle 7px at left 0 top 0, transparent 98%, #000) top left / 100% 51% no-repeat, radial-gradient(circle 7px at left 0 bottom 0, transparent 98%, #000) bottom left / 100% 51% no-repeat; }
.tk-body span { text-align: center; font-size: 11.5px; line-height: 1.2; color: var(--ink-2); }
.tk-body b { display: block; font: 700 22px/1.05 var(--display); color: var(--ink); }
.ticket.mini { grid-template-columns: 70px 1fr; }
.ticket.mini .tk-stub b, .ticket.mini .tk-body b { font-size: 18px; }
.start-box { display: grid; gap: 12px; margin-top: 8px; }
.start-box .fine { text-align: center; }
.rec-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #E0352B; animation: pulse 1.4s ease-in-out infinite; }
.rec-dot.white { background: #fff; }
.live { margin: 8px 16px 12px; padding: 18px 16px; border-radius: 16px; background: var(--board); color: #fff; }
.live-top { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #FFB7B1; }
.live-speed { margin-top: 10px; color: var(--board-dim); }
.live-speed b { display: block; font: 700 76px/.9 var(--display); color: #fff; }
.live-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; font-size: 12px; color: var(--board-dim); }
.live-nums b { display: block; font: 700 24px/1.05 var(--display); color: #fff; }
.live-note { margin-top: 14px; font-size: 13px; color: var(--board-dim); }
.season { margin: 0 16px; padding: 16px; border-radius: 16px; background: var(--board); color: #fff; }
.season-name { font-size: 13.5px; font-weight: 600; color: var(--mark); }
.season-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; margin-top: 12px; font-size: 12.5px; color: var(--board-dim); }
.season-nums b { display: block; font: 700 30px/1 var(--display); color: #fff; }
.season .cbar { margin-top: 16px; }
.season .cbar-legend { color: var(--board-dim); }
.cbar { display: flex; height: 10px; gap: 2px; border-radius: 6px; overflow: hidden; }
.cbar i { display: block; }
.cbar-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.cbar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cbar-legend i { width: 9px; height: 9px; border-radius: 50%; }
.records { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 16px 0; }
.record { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.record small { font-size: 12.5px; color: var(--ink-2); }
.record b { font: 700 26px/1.05 var(--display); }
.record span { font-size: 13px; color: var(--ink-2); }
.days { list-style: none; margin: 0 16px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.days li + li { border-top: 1px solid var(--line); }
.days a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; color: inherit; text-decoration: none; }
.day-d { text-align: center; font-size: 12px; color: var(--ink-2); line-height: 1.1; }
.day-d b { display: block; font: 700 24px/1 var(--display); color: var(--ink); }
.day-m b { display: block; font-weight: 600; }
.day-m small { font-size: 13.5px; color: var(--ink-2); }
.day-s { text-align: right; font: 700 22px/1 var(--display); }
.day-s small { display: block; font: 400 12px var(--text); color: var(--ink-2); }
.fun { margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; background: #FFF0E8; color: var(--mark-ink); font-weight: 600; font-size: 14.5px; }
.runs { list-style: none; margin: 0 16px; padding: 0; display: grid; gap: 8px; }
.runs button { position: relative; width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: left; }
.run-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font: 700 17px/1 var(--display); }
.run-m b { display: block; font-weight: 600; }
.run-m small { font-size: 13px; color: var(--ink-2); }
.run-s { text-align: right; font: 700 22px/1 var(--display); }
.run-s small { display: block; font: 400 11.5px var(--text); color: var(--ink-2); }
.run-badge { position: absolute; top: -8px; right: 10px; padding: 1px 8px; border-radius: 999px; background: var(--mark); color: #fff; font: 600 11.5px/18px var(--text); font-style: normal; }

/* ---------- forum ---------- */
.forum-top { display: flex; gap: 8px; padding-top: 14px; }
.forum-top .btn { flex: none; }
.chips.light.pad { margin: 0; padding: 12px 16px; }
.threads { list-style: none; margin: 10px 0 0; padding: 0; }
.thread a { display: grid; gap: 3px; padding: 12px 16px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.threads .thread:first-child a { border-top: 0; }
.thread b { font-weight: 600; font-size: 16px; }
.thread small { font-size: 13px; color: var(--ink-2); }
.thread-side { display: flex; gap: 10px; font-size: 12.5px; }
.thread-side i { font-style: normal; color: var(--ink-3); }
.solved { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 600; color: #127A43 !important; }
.q { margin: 8px 16px 0; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.q-meta { font-size: 13px; color: var(--ink-2); }
.q-meta a { color: inherit; }
.q h1 { margin-top: 4px; font: 700 26px/1.1 var(--display); }
.q-body { margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; }
.q-by { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.q-by a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-weight: 600; }
.replies-l { list-style: none; margin: 0 16px; padding: 0; display: grid; gap: 10px; }
.reply { padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.reply.sol { border: 2px solid #17A65A; }
.reply header { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.reply header a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.reply header small { color: var(--ink-3); }
.reply header .solved { margin-left: auto; }
.reply p { margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; }
.reply footer { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 13.5px; }
.vote { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; font-weight: 600; font-size: 13.5px; }
.vote.on { background: #E8F7EF; border-color: #17A65A; color: #127A43; }
.vote:disabled { opacity: .5; }
.facts.f3 { grid-template-columns: repeat(3, 1fr); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ---------- video ---------- */
/* eticheta de durată, pe miniaturi */
.vbadge { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px 3px 5px; border-radius: 999px; background: rgba(15, 34, 49, .72); color: #fff; font: 600 12px/1 var(--text); font-variant-numeric: tabular-nums; pointer-events: none; }
.np-thumb video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.sc-canvas video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-canvas video ~ textarea { background: rgba(15, 34, 49, .45); font-size: 24px; }
.sc-len { left: auto; right: 12px; bottom: auto; top: 12px; z-index: 2; }
/* în feed: pornește singur, fără sunet; butonul de sunet stă în colț */
.slide-v { position: relative; width: 100%; height: 100%; flex: none; scroll-snap-align: center; background: #0F2231; }
.slide-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-sound { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(15, 34, 49, .65); color: #fff; }
.slide-v.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .9s linear infinite; }
/* în chat: coperta cu butonul de redare */
.b-vid { position: relative; }
.b-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 34, 49, .6); color: #fff; padding-left: 3px; }
.b-len { position: absolute; right: 9px; bottom: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(15, 34, 49, .7); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
video.full-img { max-height: 78dvh; background: #000; }
.ch-up { position: sticky; bottom: 62px; z-index: 31; margin: 0 12px 6px; padding: 9px 14px; border-radius: 12px; background: var(--paper); box-shadow: 0 2px 10px rgba(15, 34, 49, .12); font-size: 14px; color: var(--ink-2); overflow: hidden; }
.ch-up span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: rgba(232, 93, 36, .14); transition: width .3s; }
.ch-up.proc span { animation: pulse 1.2s ease-in-out infinite; }
.ch-up b { position: relative; font-weight: 600; }
@keyframes pulse { 50% { opacity: .45; } }
/* alegerea bucății dintr-un video lung */
.trim { display: grid; gap: 10px; margin: 6px 0 16px; }
.trim video { width: 100%; max-height: 46dvh; border-radius: 12px; background: #000; object-fit: contain; }
.trim-bar { position: relative; height: 10px; border-radius: 5px; background: var(--line); }
.trim-win { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 5px; background: var(--mark); }
.trim input[type=range] { width: 100%; accent-color: var(--mark); }
.trim-t { margin: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Setări: forma pozelor de profil ---------- */
.menu > .menu-val { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-val small { font-size: 15px; color: var(--ink-3); }
.shp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
.shp { display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 118px; padding: 10px 2px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: 600 14.5px var(--text); }
.shp-pic { display: grid; place-items: center; height: 66px; }
.shp small { margin-top: -4px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.shp[aria-checked="true"] { border-color: var(--mark); background: #FFF6F1; box-shadow: 0 0 0 1px var(--mark); }

/* ---------- chat: atașamente, documente, apeluri ---------- */
.ch-plus { color: var(--ink); }
.attach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.attach button { display: grid; justify-items: center; gap: 8px; padding: 16px 2px 12px; border: 0; border-radius: 14px; background: var(--snow); color: var(--ink); font: 600 13.5px/1.2 var(--text); text-align: center; }
.attach button svg { width: 26px; height: 26px; color: var(--mark-ink); }
.attach-note { margin-top: 12px; font-size: 13.5px; }
.b.file { padding: 4px; }
.b-file { display: flex; align-items: center; gap: 10px; min-width: 210px; max-width: 260px; padding: 8px 10px 8px 8px; border-radius: 14px; color: inherit; text-decoration: none; background: rgba(255, 255, 255, .08); }
.them .b-file { background: var(--snow); }
.b-file-ic { position: relative; display: grid; place-items: center; width: 42px; height: 50px; flex: none; border-radius: 8px; background: #FFF0E8; color: var(--mark-ink); }
.b-file-ic i { position: absolute; bottom: 4px; font: 700 9.5px/1 var(--text); font-style: normal; letter-spacing: .02em; }
.b-file-ic svg { margin-top: -8px; }
.b-file-ic[data-ext="pdf"] { background: #FDECEC; color: #B42318; }
.b-file-ic[data-ext="xls"], .b-file-ic[data-ext="xlsx"], .b-file-ic[data-ext="ods"], .b-file-ic[data-ext="csv"] { background: #E7F6EE; color: #146C43; }
.b-file-ic[data-ext="doc"], .b-file-ic[data-ext="docx"], .b-file-ic[data-ext="odt"], .b-file-ic[data-ext="rtf"], .b-file-ic[data-ext="txt"] { background: #E8F0FC; color: #1D5DB8; }
.b-file-t { display: grid; min-width: 0; }
.b-file-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.b-file-t small { font-size: 12.5px; opacity: .75; }
.b.file .b-text { display: block; padding: 6px 8px 2px; }
/* butoanele de apel se văd mereu; când încă nu se poate suna, sunt mai stinse și explică de ce */
.ch-head .icon-btn.off { color: var(--ink-3); }

/* ---------- story-uri: mai multe deodată, boomerang, raportul zilei ---------- */
.sc-strip { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 10px 12px 0; scrollbar-width: none; }
.sc-th { position: relative; display: grid; place-items: center; width: 44px; height: 64px; flex: none; padding: 0; border: 2px solid rgba(255, 255, 255, .35); border-radius: 10px; overflow: hidden; color: #fff; font: 700 11px/1.1 var(--display); }
.sc-th.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.sc-th img, .sc-th video { width: 100%; height: 100%; object-fit: cover; }
.sc-th span { padding: 2px; overflow: hidden; max-height: 100%; }
.sc-th.add { border-style: dashed; background: rgba(0, 0, 0, .28); }
.sc-th-b { position: absolute; right: 3px; bottom: 2px; font: 700 12px/1 var(--text); font-style: normal; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.sc-del { margin-left: auto; flex: none; padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .32); color: #fff; font-weight: 600; font-size: 13.5px; }
.sc-inf { font: 700 22px/22px var(--text); }
.sc-rep { position: absolute; z-index: 2; left: 5%; right: 5%; bottom: 16px; }
.sc-canvas.has-report { container-type: size; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 6px 0; }
.sc-canvas.has-report textarea { min-height: 0; height: 46px; padding: 8px 12px; font-size: 17px; background: rgba(255, 255, 255, .08); }
.sv-mine { display: flex; gap: 8px; }
.sv-rep.full { position: absolute; inset: 0; z-index: 1; container-type: size; display: grid; place-items: center; padding: 64px 0 40px; pointer-events: none; }
.sv-rep-link { position: absolute; z-index: 3; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.sv-rep { position: absolute; z-index: 3; left: 5%; right: 5%; bottom: 16px; color: #fff; text-decoration: none; }
.menu-sub { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.tray-plus { width: 26px; height: 26px; line-height: 24px; }
.tray-plus::after { content: ''; position: absolute; inset: -10px; }

/* raportul zilei: traseul zilei, viteza maximă mare, cifrele într-o grilă */
.rep { --u: min(1cqw, .56cqh); width: calc(88 * var(--u)); display: grid; gap: calc(3.4 * var(--u)); color: #fff; font-family: var(--text); text-align: left; }
.rep-head { margin: 0; }
.rep-head b { display: block; font: 700 calc(10.5 * var(--u))/1 var(--display); letter-spacing: -.01em; }
.rep-head span { display: block; margin-top: calc(1.2 * var(--u)); font-size: calc(4.2 * var(--u)); color: var(--board-dim); }
.rep-head span::first-letter { text-transform: uppercase; }
.rep-note { margin: 0; font-size: calc(4.6 * var(--u)); line-height: 1.3; overflow-wrap: anywhere; }
.rep-mid { margin: 0 calc(-2 * var(--u)); min-height: 0; }
.rep-path { display: block; width: 100%; height: auto; aspect-ratio: 200 / 130; }
.rep-hero { display: flex; align-items: flex-end; gap: calc(2.4 * var(--u)); margin: 0; }
.rep-hero b { font: 700 calc(27 * var(--u))/.8 var(--display); letter-spacing: -.02em; }
.rep-hero span { padding-bottom: .calc(6 * var(--u)); font: 700 calc(7 * var(--u))/1 var(--display); color: #FF8A4C; }
.rep-hero small { display: block; margin-top: calc(1 * var(--u)); font: 500 calc(3.8 * var(--u))/1.2 var(--text); color: var(--board-dim); }
.rep-best { display: flex; align-items: center; gap: calc(2.6 * var(--u)); margin: 0; padding: calc(3 * var(--u)) calc(3.6 * var(--u)); border-radius: calc(3.6 * var(--u)); background: rgba(255, 255, 255, .09); font-size: calc(3.9 * var(--u)); line-height: 1.25; }
.rep-best i { width: calc(3 * var(--u)); height: calc(3 * var(--u)); flex: none; border-radius: 50%; box-shadow: 0 0 0 .calc(6 * var(--u)) rgba(255, 255, 255, .25); }
.rep-time { margin-left: auto; font: 700 calc(6.4 * var(--u))/1 var(--display); font-variant-numeric: tabular-nums; }
.rep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(3.4 * var(--u)) calc(2.4 * var(--u)); }
.rep-grid p { margin: 0; }
.rep-grid b { display: block; font: 700 calc(6.2 * var(--u))/1.05 var(--display); white-space: nowrap; }
.rep-grid small { display: block; margin-top: .calc(8 * var(--u)); font-size: calc(3.4 * var(--u)); color: var(--board-dim); }
.rep-foot { display: flex; align-items: center; gap: calc(2 * var(--u)); margin: 0; font-size: calc(3.4 * var(--u)); color: var(--board-dim); }
/* varianta peste o poză */
.rep.compact { width: auto; max-width: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(15, 34, 49, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rep-path.mini { width: 78px; flex: none; aspect-ratio: 90 / 70; }
.rep-c { min-width: 0; display: grid; gap: 6px; }
.rep.compact .rep-head b { font-size: 20px; }
.rep.compact .rep-head span { margin-top: 2px; font-size: 13px; }
.rep-row { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 13px; color: var(--board-dim); }
.rep-row b { font: 700 18px/1 var(--display); color: #fff; }

/* ---------- compunerea story-ului: început, unelte pe dreapta, elemente trase cu degetul ---------- */
.sc-start .sc-top { padding-bottom: 4px; }
.sc-title { margin: 0; font: 700 22px/1 var(--display); color: #fff; }
.sc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.sc-opt { display: grid; align-content: start; gap: 12px; min-height: 124px; padding: 16px 14px; border: 0; border-radius: 18px; background: var(--board-2); color: #fff; text-align: left; }
.sc-opt-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 90, 31, .16); color: #FF8A4C; }
.sc-opt-ic svg { width: 28px; height: 28px; }
.sc-opt-t b { display: block; font: 700 18px/1.15 var(--display); }
.sc-opt-t small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--board-dim); }
.sheet .sc-opts { padding: 8px 0 4px; }
.sheet .sc-opt { min-height: 0; padding: 12px; gap: 8px; background: var(--snow); color: var(--ink); }
.sheet .sc-opt-ic { width: 40px; height: 40px; background: #FFF0E8; color: var(--mark-ink); }
.sheet .sc-opt-t small { color: var(--ink-3); }
.sc-aa { font: 700 22px/1 var(--display); }
.sc-side { position: absolute; z-index: 4; top: 8px; right: 8px; display: grid; gap: 8px; }
.sc-side button { display: grid; justify-items: center; gap: 3px; width: 62px; padding: 8px 2px 7px; border: 0; border-radius: 14px; background: rgba(15, 34, 49, .55); color: #fff; font: 600 11.5px/1.1 var(--text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sc-side button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.sc-full { position: absolute; inset: 0; z-index: 1; container-type: size; display: grid; place-items: center; padding: 6px 74px 6px 0; pointer-events: none; }
.sc-hint { position: relative; z-index: 2; padding: 14px 22px; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 16px; background: none; color: #fff; font: 700 22px/1.1 var(--display); }
/* scrisul, locul și mențiunile: se trag; textul are trei mărimi și fundal opțional (la fel în story) */
.sc-el { position: absolute; z-index: 3; transform: translate(-50%, -50%); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; transition: transform .12s, opacity .12s; }
.sc-el.dragging { transform: translate(-50%, -50%) scale(1.06); }
.sc-el.doomed { opacity: .45; transform: translate(-50%, -50%) scale(.8); }
.sc-txt, .sv-text.pos { max-width: 84%; width: max-content; text-align: center; color: #fff; font-family: var(--display); font-weight: 700; line-height: 1.12; overflow-wrap: anywhere; white-space: pre-wrap; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.sc-txt.s-s, .sv-text.pos.s-s { font-size: 20px; } .sc-txt.s-m, .sv-text.pos.s-m { font-size: 28px; } .sc-txt.s-l, .sv-text.pos.s-l { font-size: 38px; }
.sc-txt.pill, .sv-text.pos.pill { padding: .22em .5em; border-radius: .4em; background: rgba(15, 34, 49, .62); text-shadow: none; }
.sv-text.pos { position: absolute; z-index: 3; margin: 0; transform: translate(-50%, -50%); pointer-events: none; }
.sc-tag, .sv-tag { padding: 7px 12px; border-radius: 10px; background: #fff; color: var(--mark-ink); font: 700 16px/1 var(--text); white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.sv-tag { position: absolute; z-index: 3; transform: translate(-50%, -50%); text-decoration: none; }
.sc-place, .sv-place.pos { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 10px; background: #fff; color: var(--ink); font: 700 15px/1 var(--text); white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.sc-place svg, .sv-place svg { color: var(--mark); }
.sv-place.pos { transform: translate(-50%, -50%); }
.sv-place { display: inline-flex; align-items: center; gap: 4px; }
.sc-trash { position: absolute; z-index: 5; left: 50%; bottom: 18px; display: grid; place-items: center; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(15, 34, 49, .5); color: #fff; transition: transform .12s, background .12s; }
.sc-trash.over { transform: scale(1.2); background: #DE3B3B; border-color: #DE3B3B; }
/* editarea scrisului: peste story, cu mărime și fundal */
.sc-edit { position: absolute; inset: 0; z-index: 10; display: grid; grid-template-rows: auto 1fr; background: rgba(15, 34, 49, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sc-edit-top { display: flex; align-items: center; gap: 8px; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 8px; }
.sc-edit-top button { padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: 600 14.5px var(--text); }
.sc-edit-top button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.sc-edit-top .te-done { margin-left: auto; background: var(--mark); color: #fff; padding: 9px 18px; }
.sc-edit textarea.sc-txt { align-self: center; justify-self: center; width: 84%; max-width: 84%; min-height: 1.5em; border: 0; outline: none; resize: none; background: transparent; }
.sc-edit textarea.sc-txt.pill { background: rgba(15, 34, 49, .62); }
.sc-edit textarea::placeholder { color: rgba(255, 255, 255, .55); }

/* compunerea are aceeași ramă ca story-ul văzut: bara de sus peste imagine, jos o bandă de aceeași înălțime,
   ca scrisul și mențiunile să apară exact unde le-ai tras */
.sc, .sv { --foot: calc(70px + env(safe-area-inset-bottom, 0px)); }
.sc:not(.sc-start) > .sc-top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; }
.sc:not(.sc-start) .sc-side { top: calc(64px + env(safe-area-inset-top, 0px)); }
.sv-foot { height: var(--foot); box-sizing: border-box; padding-top: 12px; }
.sc-bottom { position: relative; z-index: 6; display: flex; align-items: center; gap: 10px; height: var(--foot); box-sizing: border-box; padding: 0 12px env(safe-area-inset-bottom, 0px); }
.sc-bottom .sc-strip { flex: 1; min-width: 0; padding: 0; }
.sc-bottom .sc-th { width: 38px; height: 54px; }
.sc-bottom .sc-del { margin-left: 0; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.sc-bottom .sc-go { flex: none; margin: 0; padding: 12px 20px; font-size: 16px; }

/* ---------- clasament pe categorii ---------- */
.lb-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 4px; scrollbar-width: none; }
.lb-chips::-webkit-scrollbar { display: none; }
.lb-chips button { flex: none; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 14.5px var(--text); white-space: nowrap; }
.lb-chips button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.lb-head h2 { margin: 0; font: 700 24px/1.1 var(--display); }
.lb-per { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 13.5px var(--text); }
.lb .pts small { display: block; margin-top: 3px; font: 500 12.5px var(--text); color: var(--ink-2); }
.lb-alone { margin: 0 16px 14px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 10px; }
.lb-alone p { margin: 0; color: var(--ink-2); }

/* ---------- Ture: pregătește-te de pârtie ---------- */
.prep { display: grid; gap: 8px; margin: 4px 16px 16px; }
.prep-head { display: flex; align-items: baseline; justify-content: space-between; }
.prep-head h2 { margin: 0; font: 700 20px/1.2 var(--display); }
.prep-it { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); text-align: left; }
.prep-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: #FFF0E8; color: var(--mark-ink); }
.prep-ic .rec-dot { width: 18px; height: 18px; }
.prep-t { flex: 1; min-width: 0; }
.prep-t b { display: block; font-size: 16px; }
.prep-t small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.prep-ok { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--open); color: #fff; }
.prep-it.done { background: var(--snow); }
.prep-it.done .prep-t b { color: var(--ink-2); }
