/* Figurație · fereastra, în stilul Finder / Files (iPadOS): bara laterală de sticlă care plutește peste conținut, bara de unelte
   cu capsule grupate, conținutul pe alb. Sticla e doar pe ce comandă (bara laterală, bara de unelte, bara de file a telefonului,
   bara de selecție, previzualizarea), cu o variantă opacă dacă browserul nu știe backdrop-filter sau dacă omul a cerut
   „Mai puțină transparență” (clasa fara-sticla pe <html>). Cardurile: poză portret 3:4, numele, un rând de date, pastila de stare,
   cel mult două etichete. Grila curge după lățimea panoului (container queries), nu a ecranului, ca ecranul împărțit să meargă. */

/* ---------- sticla ---------- */
.sticla, .sticla-bara, .sticla-ql { background: var(--glass-solid); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sticla { background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
  .sticla-bara { background: color-mix(in srgb, var(--win) 74%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
  .sticla-ql { background: var(--glass-strong); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); }
}
html.fara-sticla .sticla, html.fara-sticla .sticla-bara, html.fara-sticla .sticla-ql { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-solid); }
html.fara-sticla .sticla-bara { background: var(--win); }

/* ---------- fereastra ---------- */
body.x { background: var(--win); font-variant-numeric: tabular-nums; }
.x-cadru { display: grid; grid-template-columns: var(--lat) minmax(0, 1fr); min-height: 100vh; }
.x-foaie { min-width: 0; display: flex; flex-direction: column; container: foaie / inline-size; }

/* bara laterală: un panou de sticlă la 8 px de margini, cu nuanța „tapetului” */
.x-arbore { position: sticky; top: 8px; height: calc(100vh - 16px); margin: 8px 0 8px 8px; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: var(--r-pane); border: 1px solid var(--separator-2); box-shadow: inset 0 1px 0 var(--glass-line);
  background-image: linear-gradient(160deg, color-mix(in srgb, var(--wall-a) 38%, transparent), transparent 62%); }
.x-lat-sus { display: flex; align-items: center; gap: 8px; padding: 12px 10px 6px 12px; }
.x-marca { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--label-1); text-decoration: none; flex: 1; }
.x-marca:hover { color: var(--label-1); text-decoration: none; }
.x-marca strong { display: block; font-size: 13px; font-weight: 650; line-height: 1.2; }
.x-marca small { display: block; font-size: 11px; color: var(--label-3); line-height: 1.2; }
.x-inchide-lat { display: none; }
.x-canal { padding: 4px 10px 6px; margin: 0; }
.x-canal label { display: block; }
.x-canal select { width: 100%; height: 28px; min-height: 28px; border-radius: 7px; border: 0; background-color: var(--fill); font-weight: 550; font-size: 12px; padding: 0 26px 0 9px; }
.x-lat-nav { flex: 1; overflow-y: auto; padding: 2px 8px 12px; overscroll-behavior: contain; scrollbar-width: thin; }
.x-grup { margin: 0; padding: 14px 8px 4px; font-size: 11px; font-weight: 600; color: var(--label-3); letter-spacing: .01em; }
.x-noduri { list-style: none; margin: 0; padding: 0; }
.x-noduri.x-nivel { padding-left: 14px; }
.x-nod { position: relative; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px 0 8px; border-radius: 7px; color: var(--label-1); text-decoration: none; white-space: nowrap; font-size: var(--fs); }
.x-nod:hover { background: var(--fill); color: var(--label-1); text-decoration: none; }
.x-nod svg.i { color: var(--accent-text); }
.x-nod.are-copii { padding-left: 20px; }
.x-nod.are-copii::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border: solid var(--label-3); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s; }
.x-nod.are-copii.deschis::before { transform: rotate(45deg); margin-top: -4px; }
.x-nod-nume { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.x-nod-nr { flex: none; font-size: 12px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.x-nod[aria-current="page"] { background: var(--fill-selected); color: #fff; font-weight: 550; }
.x-nod[aria-current="page"] svg.i, .x-nod[aria-current="page"] .x-nod-nr { color: rgba(255, 255, 255, .9); }
.x-nod[aria-current="page"].are-copii::before { border-color: #fff; }
.x-nod.deschis:not([aria-current]) { background: var(--fill-selected-inactive); }
/* folderele de stare (colorate ca în Files) și punctele etichetelor */
.dosar { position: relative; flex: none; width: 15px; height: 12px; border-radius: 3px; background: var(--c, var(--s-anuntati)); margin-top: 2px; }
.dosar::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 4px; border-radius: 2px 2px 0 0; background: inherit; }
.d-anuntati { --c: var(--s-anuntati); } .d-vin { --c: var(--s-vin); } .d-fr { --c: var(--s-fr); } .d-alesi { --c: var(--s-alesi); }
.d-nupot { --c: var(--s-nupot); } .d-fara { --c: var(--s-fara); } .d-anulati { --c: var(--s-anulati); }
.x-nod[aria-current="page"] .dosar { background: #fff; }
.punct { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--label-3)); }
.punct.t0 { --c: #0a7cff; } .punct.t1 { --c: #30b05a; } .punct.t2 { --c: #f29a0a; } .punct.t3 { --c: #a35bd8; } .punct.t4 { --c: #ef4444; } .punct.t5 { --c: #14a3b8; }
.x-lat-jos { display: flex; align-items: center; gap: 4px; padding: 8px 8px 10px 10px; border-top: 1px solid var(--separator-2); }
.x-cont-mic { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; color: var(--label-1); text-decoration: none; font-weight: 550; font-size: 12.5px; }
.x-cont-mic:hover { color: var(--label-1); text-decoration: none; }
.x-cont-mic > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-cont-mic small { display: block; font-weight: 400; font-size: 11px; color: var(--label-3); }
.initiale { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #ffb36b, #f0743e); color: #fff; font-size: 11px; font-weight: 650; }
.iesire { margin: 0; }
.x-buton-rotund { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--label-2); cursor: pointer; }
.x-buton-rotund:hover { background: var(--fill-2); color: var(--label-1); }
.x-buton-rotund[aria-pressed="true"] { background: var(--accent-fill); color: var(--accent-text); }

/* bara de unelte: plutește peste conținut, cu titlul ecranului și capsulele grupate */
.x-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: var(--bara); padding: 0 14px 0 12px; border-bottom: 1px solid transparent; }
.x-nav.cu-umbra { border-bottom-color: var(--separator-2); }
.x-meniu { display: none; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--separator); border-radius: 999px; background: var(--glass-strong); color: var(--label-2); cursor: pointer; }
.capsula { display: inline-flex; align-items: center; flex: none; height: 32px; padding: 0 3px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--separator); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.capsula > button, .capsula > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 26px; min-width: 30px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--label-2); font: 500 var(--fs)/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.capsula > button:hover, .capsula > a:hover { background: var(--fill); color: var(--label-1); text-decoration: none; }
.capsula > [aria-pressed="true"], .capsula > [aria-current="true"] { background: var(--fill-2); color: var(--label-1); }
.capsula .sep { width: 1px; height: 16px; background: var(--separator); margin: 0 2px; }
.x-sageti .x-sageata { padding: 0 6px; }
.x-sus-nivel { display: none; }
.x-titlu-bara { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.2; margin: 0 4px; }
.x-titlu-bara b { font-size: var(--fs-titlu); font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-subtitlu, .x-cale { font-size: 11.5px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-cale { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; min-width: 0; }
.x-cale li { display: inline-flex; min-width: 0; }
.x-cale li + li::before { content: "›"; margin: 0 5px; color: var(--label-4); }
.x-cale a { color: var(--label-3); }
.x-cale a:hover { color: var(--label-1); }
.x-spatiu { flex: 1; min-width: 8px; }
.x-cauta { position: relative; flex: 0 1 230px; min-width: 120px; margin: 0; }
.x-cauta svg.i { position: absolute; left: 11px; top: 50%; margin-top: -8px; color: var(--label-3); pointer-events: none; }
.x-cauta input { width: 100%; height: 32px; min-height: 32px; padding: 0 30px 0 32px; border: 0; border-radius: 999px; background: var(--fill); font-size: var(--fs); }
.x-cauta input:focus { background: var(--win); }
.x-tasta { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.x-cauta input:focus + .x-tasta, .x-cauta input:not(:placeholder-shown) + .x-tasta { display: none; }
.x-principal { flex: none; }

body.x .x-continut { flex: 1; max-width: none; width: 100%; margin: 0; padding: 6px 20px 110px; min-width: 0; }
body.x .continut .cap { margin-bottom: 18px; }
body.x .continut .cap h1 { font-size: 22px; }

/* titlul din pagină: pe ecran lat e în bara de unelte (h1 rămâne pentru cititoarele de ecran), pe telefon devine titlu mare */
.x-titlu { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.x-titlu h1 { font-size: 26px; letter-spacing: -0.025em; }
.x-titlu .x-cati { color: var(--label-3); font-size: var(--fs); font-variant-numeric: tabular-nums; }
@container foaie (min-width: 768px) {
  .x-titlu h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .x-titlu { margin-top: 0; }
}

/* bara de unelte din pagină (filtre, acțiuni) */
.x-unelte { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.x-unelte .x-dreapta { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.x-cuvinte { position: relative; flex: 0 1 220px; min-width: 150px; }
.x-cuvinte input { width: 100%; height: 30px; min-height: 30px; border-radius: 999px; padding-left: 12px; border: 0; background: var(--fill); }
.x-filtre { position: relative; }
.x-filtre > summary { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--fill-2); font-weight: 550; cursor: pointer; list-style: none; }
.x-filtre > summary::-webkit-details-marker { display: none; }
.x-filtre > summary::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.x-filtre[open] > summary { background: var(--accent-fill); color: var(--accent-text); }
.x-filtre-panou { position: absolute; z-index: 25; top: 38px; left: 0; width: min(720px, calc(100vw - 340px)); padding: 16px 18px 18px; background: var(--win); border: 1px solid var(--separator); border-radius: var(--r-pane); box-shadow: var(--shadow-float); }
.x-filtre-panou .rand-filtre-casting { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.x-filtre-panou .actiuni { margin: 14px 0 0; justify-content: flex-end; }
.x-activ { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.x-activ .sub { font-size: var(--fs-mic); }
.x-filtru, .chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; border: 1px solid transparent; background: var(--accent-fill); color: var(--accent-text); font-weight: 550; font-size: var(--fs-mic); text-decoration: none; white-space: nowrap; }
.x-filtru:hover, .chip:hover { text-decoration: none; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.x-filtru .x-sterge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 12px; opacity: .7; }
.x-vederi { display: inline-flex; gap: 0; padding: 0 3px; height: 30px; align-items: center; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--separator); }
.x-vederi a, .x-vederi button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent; color: var(--label-2); font: 500 var(--fs-mic)/1 var(--font); text-decoration: none; cursor: pointer; }
.x-vederi a:hover, .x-vederi button:hover { color: var(--label-1); background: var(--fill); text-decoration: none; }
.x-vederi a[aria-current="true"], .x-vederi button[aria-pressed="true"] { background: var(--fill-2); color: var(--label-1); }

/* ---------- cardul de om ---------- */
.om-grila { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min, 152px), 1fr)); gap: 18px 12px; margin: 0 0 8px; container: grila / inline-size; }
.om-grila > * { min-width: 0; }
.om { position: relative; display: flex; flex-direction: column; gap: 0; min-width: 0; color: var(--label-1); border-radius: var(--r-card); outline: none;
  -webkit-touch-callout: none; }
.om-grila > .om:nth-child(n+19) { content-visibility: auto; contain-intrinsic-size: auto 320px; }
.om-poza { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; background: var(--fill); box-shadow: var(--card-shadow); }
.om-poza img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; -webkit-user-drag: none; user-select: none; transition: transform .25s ease; }
a.om-poza:hover img { transform: scale(1.025); }
.om-initiala { position: absolute; inset: 0; display: grid; place-items: center; font: 600 44px/1 var(--font); color: var(--label-4);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--label-4) 30%, transparent) 0 18%, transparent 19%), linear-gradient(180deg, var(--pane), var(--pane-2)); }
.om-oras { display: none; }
.om-jos { position: absolute; left: 7px; bottom: 7px; right: 7px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.om-jeton { padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.om-jeton.om-proiecte { background: rgba(255, 255, 255, .9); color: #1f7a3c; }
.om-pastila { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 650; color: #fff;
  background: color-mix(in srgb, var(--c, var(--s-anuntati)) 80%, black); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-vin { --c: var(--s-vin); } .p-fr { --c: var(--s-fr); } .p-alesi { --c: var(--s-alesi); } .p-nupot { --c: var(--s-nupot); } .p-fara { --c: #8e8e93; } .p-anuntati { --c: #8e8e93; } .p-anulati { --c: #8e8e93; }
.om-text { display: grid; gap: 1px; min-width: 0; padding: 8px 2px 0; }
.om-text > * { min-width: 0; }
.om-nume { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-nume a { color: var(--label-1); text-decoration: none; }
.om-nume a:hover { color: var(--label-1); text-decoration: underline; }
.om-date { margin: 0; font-size: var(--fs-mic); color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-marimi { display: none; margin: 0; font-size: var(--fs-mic); color: var(--label-3); }
.om-stare { margin: 3px 0 0; font-size: 11.5px; color: var(--label-2); line-height: 1.35; overflow-wrap: anywhere; }
.om-stare b { color: var(--label-1); font-weight: 600; }
.om-tel { display: none; align-items: center; gap: 6px; margin: 4px 0 0; flex-wrap: wrap; }
.om-tel-nr { font-size: var(--fs-mic); color: var(--label-1); font-variant-numeric: tabular-nums; margin-right: auto; white-space: nowrap; }
.om-tel-text { margin: 0; font-size: var(--fs-mic); color: var(--label-3); }
.rotund { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; text-decoration: none; transition: transform .08s; }
.rotund:hover { text-decoration: none; }
.rotund:active { transform: scale(.94); }
.rotund svg.i { width: 16px; height: 16px; }
.rotund-apel { background: var(--accent-fill); color: var(--accent-text); }
.rotund-apel:hover { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.rotund-wa { background: color-mix(in srgb, var(--s-vin) 16%, transparent); color: var(--s-vin-text); }
.rotund-wa:hover { color: var(--s-vin-text); background: color-mix(in srgb, var(--s-vin) 24%, transparent); }
.jetoane { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 0; }
.jeton { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 5px; background: var(--fill); color: var(--label-2); font-size: 11px; font-weight: 500; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.jeton.t0 { background: color-mix(in srgb, #0a7cff 12%, transparent); color: var(--accent-text); }
.jeton.t1 { background: color-mix(in srgb, #30b05a 14%, transparent); color: var(--s-vin-text); }
.jeton.t2 { background: color-mix(in srgb, #f29a0a 15%, transparent); color: var(--s-fr-text); }
.jeton.t3 { background: color-mix(in srgb, #a35bd8 14%, transparent); color: var(--s-alesi-text); }
.jeton.t4 { background: color-mix(in srgb, #ef4444 12%, transparent); color: var(--s-nupot-text); }
.jeton.t5 { background: color-mix(in srgb, #14a3b8 14%, transparent); color: #0e6f7e; }
.jeton-plus { background: transparent; color: var(--label-3); padding: 0 4px; }
.om-ales { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; margin-top: 6px; padding: 0 11px; border-radius: 999px; background: var(--fill); font-size: var(--fs-mic); font-weight: 550; cursor: pointer; justify-self: start; }
.om-ales:has(input:checked) { background: color-mix(in srgb, var(--s-alesi) 16%, transparent); color: var(--s-alesi-text); }
.om-ales input { width: 15px; height: 15px; accent-color: var(--s-alesi); }
.om-anuleaza { margin-top: 6px; }
.om-anuleaza .btn { min-height: 26px; }

/* selecția: cercul din colțul pozei apare la trecerea cu mausul, în modul de selecție și când e bifat */
.om-grup { position: absolute; top: 8px; left: 8px; z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .92); opacity: 0; transition: opacity .15s, background-color .15s; } /* taste-skill-ignore: contur */
.om-grup input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.om-grup::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.om:hover .om-grup, .om:focus-within .om-grup, .are-selectie .om-grup { opacity: 1; }
.om-grup:has(input:checked) { opacity: 1; background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.om-grup:has(input:checked)::after { opacity: 1; }
.om-grup:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.om.bifat .om-poza, .om:has(.muta-bifa:checked) .om-poza { outline: 3px solid var(--accent); outline-offset: 2px; }
.om:focus-visible .om-poza { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
@media (pointer: coarse) { .om-grup { opacity: 1; width: 28px; height: 28px; } }

/* cardul-bifă din „Anunță proiectul”: tot cardul e bifa */
.om-alege { cursor: pointer; }
.om-alege .om-bifa { position: absolute; opacity: 0; width: 1px; height: 1px; }
.om-alege .om-nume { display: block; }
.om-semn { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .92); } /* taste-skill-ignore: contur */
.om-alege:hover .om-poza { outline: 2px solid var(--fill-2); outline-offset: 2px; }
.om-alege:has(.om-bifa:checked) .om-poza { outline: 3px solid var(--accent); outline-offset: 2px; }
.om-alege:has(.om-bifa:checked) .om-semn { background: var(--accent); box-shadow: none; }
.om-alege:has(.om-bifa:checked) .om-semn::after { content: ""; position: absolute; left: 9px; top: 5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.om-alege:has(.om-bifa:focus-visible) .om-poza { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.om-oprit { cursor: default; opacity: .5; }
.om-oprit .om-semn { display: none; }

/* meniul „⋯ Mută în…” (calea fără tragere, și de la tastatură): discret, apare la trecerea cu mausul sau la focus */
.muta-meniu { position: relative; margin-top: 6px; font-size: var(--fs-mic); }
.muta-meniu > summary { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--fill); color: var(--label-2); cursor: pointer; list-style: none; font-weight: 550; }
.muta-meniu > summary::-webkit-details-marker { display: none; }
.muta-meniu > summary:hover { background: var(--fill-2); color: var(--label-1); }
.muta-meniu[open] > summary { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .om .muta-meniu:not([open]) > summary { opacity: 0; transition: opacity .15s; }
  .om:hover .muta-meniu > summary, .om:focus-within .muta-meniu > summary { opacity: 1; }
}
.muta-tinte { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; min-width: 200px; display: flex; flex-direction: column; max-height: 300px; overflow: auto; padding: 5px;
  border: 1px solid var(--separator); border-radius: 10px; background: var(--win); box-shadow: var(--shadow-float); }
.muta-tinta { padding: 7px 9px; border: 0; border-radius: 6px; background: none; color: var(--label-1); font: 450 var(--fs)/1.3 var(--font); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.muta-tinta:hover, .muta-tinta:focus-visible { background: var(--accent); color: #fff; outline: none; }

/* vederea „Poze”: doar poza și numele, des */
.om-grila.poze { --card-min: 112px; gap: 10px; }
.om-grila.poze .om-date, .om-grila.poze .om-marimi, .om-grila.poze .om-tel, .om-grila.poze .jetoane, .om-grila.poze .om-jos, .om-grila.poze .om-stare, .om-grila.poze .om-tel-text, .om-grila.poze .om-pastila { display: none; }
.om-grila.poze .om-nume { font-size: 12px; font-weight: 500; }

/* vederea listă (comutatorul din bara de unelte, ținut minte în browser) */
.om-grila.ca-lista { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--separator-2); border-radius: var(--r-pane); overflow: visible; background: var(--win); }
.om-grila.ca-lista > .om { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 12px; border-top: 1px solid var(--separator-2); border-radius: 0; content-visibility: visible; }
.om-grila.ca-lista > .om:first-child { border-top: 0; }
.om-grila.ca-lista .om-poza { aspect-ratio: 3 / 4; width: 44px; border-radius: 7px; box-shadow: none; }
.om-grila.ca-lista .om-pastila, .om-grila.ca-lista .om-jos { display: none; }
.om-grila.ca-lista .om-text { padding: 2px 0 0; grid-template-columns: minmax(160px, 1.2fr) minmax(0, 1.4fr) auto; column-gap: 16px; align-items: center; }
.om-grila.ca-lista .om-nume { grid-column: 1; }
.om-grila.ca-lista .om-date { grid-column: 1; }
.om-grila.ca-lista .om-marimi { display: block; grid-column: 2; grid-row: 1; }
.om-grila.ca-lista .om-stare { grid-column: 2; grid-row: 2; margin: 0; }
.om-grila.ca-lista .om-tel { display: flex; grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.om-grila.ca-lista .jetoane, .om-grila.ca-lista .muta-meniu, .om-grila.ca-lista .om-ales, .om-grila.ca-lista .om-anuleaza { grid-column: 1 / -1; }
.om-grila.ca-lista .om-grup { top: 50%; left: auto; right: 12px; margin-top: -12px; position: absolute; }
.om-grila.ca-lista .om-alege { padding: 8px 12px; }
@container grila (max-width: 560px) {
  .om-grila.ca-lista .om-text { grid-template-columns: minmax(0, 1fr); }
  .om-grila.ca-lista .om-marimi, .om-grila.ca-lista .om-stare, .om-grila.ca-lista .om-tel { grid-column: 1; grid-row: auto; }
}

/* bara de selecție a ecranului „Anunță proiectul” */
.x-bara-jos { position: sticky; bottom: 14px; z-index: 12; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px auto 0; width: fit-content; max-width: 100%; padding: 6px 6px 6px 16px;
  border-radius: 999px; border: 1px solid var(--separator); background: var(--glass-strong); box-shadow: var(--shadow-float); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .x-bara-jos { -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
}
html.fara-sticla .x-bara-jos { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-solid); }
.x-bara-jos #cati-bifati { font-weight: 650; white-space: nowrap; }
.x-bara-jos .scurt { display: none; }

/* bara de selecție plutitoare (cardurile cu „Mută în…”) */
.bara-selectie { position: fixed; z-index: 45; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px;
  border-radius: 999px; border: 1px solid var(--separator); box-shadow: var(--shadow-float); white-space: nowrap; max-width: calc(100vw - 24px); }
.bara-selectie[hidden] { display: none; }
.bara-selectie .bs-cati { margin-right: 6px; font-weight: 650; }
.bara-selectie .btn { min-height: 30px; }
.bara-selectie .btn:not(.btn-principal) { background: var(--fill-2); }
.bs-meniu-cap { position: relative; }
.bs-tinte { position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 240px; max-height: 320px; overflow: auto; padding: 5px; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--separator); box-shadow: var(--shadow-float); }
.bs-tinte[hidden] { display: none; }
.bs-tinte button { padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--label-1); font: 450 var(--fs)/1.3 var(--font); text-align: left; cursor: pointer; white-space: normal; }
.bs-tinte button:hover, .bs-tinte button:focus-visible { background: var(--accent); color: #fff; outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .bara-selectie:not([hidden]) { animation: urca .2s cubic-bezier(.2, .9, .3, 1.1); }
}
@keyframes urca { from { transform: translate(-50%, 12px); opacity: 0; } }

/* previzualizarea (Quick Look): <dialog> nativ */
dialog.ql { width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--separator); border-radius: 20px; color: var(--label-1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
dialog.ql[open] { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
dialog.ql::backdrop { background: rgba(0, 0, 0, .28); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { dialog.ql::backdrop { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); } }
html.fara-sticla dialog.ql::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, .4); }
@media (prefers-reduced-motion: no-preference) { dialog.ql[open] { animation: zoom .22s cubic-bezier(.2, .9, .3, 1.1); } }
@keyframes zoom { from { transform: scale(.94); opacity: 0; } }
.ql-foto { position: relative; min-height: 380px; background: var(--fill); }
.ql-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.ql-initiala { position: absolute; inset: 0; display: grid; place-items: center; font: 600 72px/1 var(--font); color: var(--label-4); }
.ql-info { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 16px 22px; min-width: 0; overflow: auto; }
.ql-cap { display: flex; align-items: flex-start; gap: 12px; }
.ql-cap > div { flex: 1; min-width: 0; }
.ql-cap h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ql-sub { margin: 3px 0 0; color: var(--label-3); }
.ql-fisa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--separator); border-radius: 10px; overflow: hidden; }
.ql-fisa:empty { display: none; }
.ql-fisa div { background: var(--win); padding: 8px 11px; }
.ql-fisa dt { font-size: 11px; color: var(--label-3); }
.ql-fisa dd { margin: 0; font-size: 15px; font-weight: 620; }
.ql-stare { margin: 0; color: var(--label-2); font-size: 12.5px; }
.ql-stare:empty, #ql-etichete:empty { display: none; }
.ql-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ql-taste { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--label-3); font-size: 11.5px; }

/* toastul „Mutat în… · Anulează” */
.toast { position: fixed; z-index: 50; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); padding: 8px 8px 8px 16px;
  border-radius: 999px; border: 1px solid var(--separator); color: var(--label-1); box-shadow: var(--shadow-float); font-weight: 550; transition: opacity .3s, transform .3s; }
.toast form { margin: 0; }
.toast .btn { background: var(--accent); color: #fff; }
.toast.pleaca { opacity: 0; transform: translate(-50%, 8px); }

/* bara de file a telefonului */
.x-file-jos { display: none; }

/* folderele mari (vechi; panglica de stare le înlocuiește în proiect) */
.foldere { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 2px 0 4px; }
.foldere::-webkit-scrollbar { display: none; }

/* ---------- tabletă: bara laterală devine un strat deasupra, deschis din bara de unelte ---------- */
@media (max-width: 1180px) {
  .x-cadru { grid-template-columns: minmax(0, 1fr); }
  .x-arbore { position: fixed; z-index: 60; top: 8px; left: 8px; bottom: 8px; height: auto; width: min(300px, calc(100vw - 32px)); margin: 0; transform: translateX(calc(-100% - 16px));
    transition: transform .22s cubic-bezier(.2, .9, .3, 1); box-shadow: var(--shadow); }
  body.meniu-deschis .x-arbore { transform: none; }
  .x-fundal-lat:not([hidden]) { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .25); }
  body:not(.meniu-deschis) .x-fundal-lat { display: none; }
  .x-meniu { display: inline-grid; }
  .x-inchide-lat { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--fill); color: var(--label-2); cursor: pointer; }
  .x-filtre-panou { width: min(720px, calc(100vw - 40px)); }
}
@media (max-width: 1180px) and (pointer: coarse) {
  .x-nav { height: 60px; }
  .capsula { height: 38px; } .capsula > button, .capsula > a { height: 32px; min-width: 38px; }
  .x-nod { height: 40px; }
}

/* ---------- telefon: titluri mari, cipuri care se derulează, două coloane de carduri, bara de file de jos ---------- */
@media (max-width: 767px) {
  body.x { background: var(--bg); }
  .x-nav { height: 52px; padding: 0 12px; gap: 8px; background: color-mix(in srgb, var(--bg) 80%, transparent); }
  .x-sageti, .x-cauta, .x-titlu-bara .x-cale, .x-titlu-bara .x-subtitlu { display: none; }
  .x-sus-nivel { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--accent-text); font-size: 16px; max-width: 45vw; }
  .x-sus-nivel span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .x-sus-nivel svg.i { width: 20px; height: 20px; }
  .x-sus-nivel ~ .x-titlu-bara { display: none; }
  .x-titlu-bara b { font-size: 16px; }
  .x-meniu { width: 40px; height: 40px; }
  .x-principal span { display: none; }
  .x-principal { width: 40px; height: 40px; padding: 0; min-height: 40px; }
  .x-nav .x-vederi, .x-nav .capsula:not(.x-sageti) { display: none; }
  body.x .x-continut { padding: 4px 16px 120px; }
  .x-titlu { margin: 4px 0 14px; display: block; }
  .x-titlu h1 { font-size: 32px; font-weight: 720; letter-spacing: -0.03em; }
  .x-titlu .x-cati { display: block; margin-top: 2px; font-size: 15px; }
  .x-unelte { gap: 8px; }
  .x-unelte .x-dreapta { margin-left: 0; width: 100%; }
  .x-cuvinte { flex: 1 1 100%; }
  .x-cuvinte input, .x-filtre > summary { height: 40px; min-height: 40px; }
  .x-filtre { position: static; }
  .x-filtre-panou { position: static; width: auto; margin-top: 8px; box-shadow: none; padding: 14px; }
  .x-filtre-panou .rand-filtre-casting { grid-template-columns: minmax(0, 1fr); }
  .x-vederi { height: 38px; }
  .x-vederi a, .x-vederi button { height: 32px; font-size: 14px; }
  .om-grila { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .om-grila.poze { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .om-grila.ca-lista { grid-template-columns: minmax(0, 1fr); }
  .om-nume { font-size: 15px; }
  .om-date { font-size: 13px; }
  .rotund { width: 44px; height: 44px; }
  .muta-meniu > summary { min-height: 36px; padding: 0 12px; }
  .x-file-jos { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 64px; padding: 6px;
    border-radius: 32px; border: 1px solid var(--separator); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
  .x-file-jos a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; border-radius: 26px; color: var(--label-2); font-size: 10.5px; font-weight: 600; text-decoration: none; }
  .x-file-jos a:hover { text-decoration: none; color: var(--label-1); }
  .x-file-jos a svg.i { width: 22px; height: 22px; }
  .x-file-jos a[aria-current="page"] { color: var(--accent-text); background: var(--fill); }
  .bara-selectie { bottom: calc(86px + env(safe-area-inset-bottom)); padding-left: 12px; gap: 4px; }
  .bara-selectie .btn span { display: none; }
  .bara-selectie .btn { width: 40px; padding: 0; min-height: 40px; }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .x-bara-jos { bottom: calc(86px + env(safe-area-inset-bottom)); border-radius: 22px; padding: 6px 6px 6px 14px; flex-wrap: nowrap; }
  .x-bara-jos .lung { display: none; }
  .x-bara-jos .scurt { display: inline; }
  dialog.ql[open] { grid-template-columns: minmax(0, 1fr); width: calc(100vw - 16px); max-height: calc(100vh - 24px); }
  .ql-foto { min-height: 0; aspect-ratio: 4 / 3; }
  .ql-taste { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .om-poza img, .x-arbore, .rotund, .x-nod.are-copii::before, .om-grup { transition: none !important; }
  a.om-poza:hover img { transform: none; }
}

/* „Anunță proiectul”: filmarea aleasă în bara de unelte */
.x-alege-filmarea select { height: 30px; min-height: 30px; border-radius: 999px; font-weight: 600; max-width: 320px; }
@media (max-width: 767px) { .x-alege-filmarea, .x-alege-filmarea label, .x-alege-filmarea select { width: 100%; max-width: none; } .x-alege-filmarea select { height: 44px; } }

/* ---------- tragerea (Pointer Events): fantoma cu numărul și ținta luminată ---------- */
.trage-fantoma { position: fixed; z-index: 80; left: 0; top: 0; width: 120px; pointer-events: none; transform-origin: 20px 20px; will-change: transform; }
.trage-fantoma .om-poza { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.trage-fantoma .tf-nr { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--s-nupot); color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 0 0 2px #fff; }
body.se-trage, body.se-trage * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.om.ridicat { opacity: .4; }

/* ce apare doar pe ecranul îngust (titlul mare) și ce dispare acolo */
@container foaie (min-width: 768px) { .x-titlu.doar-ingust { display: none; } }
.doar-ingust { }
/* „Anulează” de pe card: o acțiune liniștită, vizibilă la trecerea cu mausul (pe ecran tactil, mereu) */
@media (hover: hover) and (pointer: fine) {
  .om .om-anuleaza { opacity: 0; transition: opacity .15s; }
  .om:hover .om-anuleaza, .om:focus-within .om-anuleaza { opacity: 1; }
}
.om-anuleaza .btn-pericol { background: transparent; color: var(--s-nupot-text); padding: 0 8px; }
.om-anuleaza .btn-pericol:hover { background: var(--rosu-fundal); }

/* pe ecranele cu maus, „⋯ Mută în…” și „Anulează” stau pe poză (jos, în dreapta) și apar la trecerea cu mausul:
   nu mai țin loc gol sub fiecare card. Pe ecranul tactil rămân sub card, mereu vizibile. */
@media (hover: hover) and (pointer: fine) {
  .om:not(.om-alege) { container-type: inline-size; }
  .om-grila:not(.ca-lista) .om > .om-text > .muta-meniu { position: absolute; z-index: 4; top: calc(133.333cqw - 36px); right: 8px; margin: 0; }
  .om-grila:not(.ca-lista) .om > .om-text > .muta-meniu > summary { width: 28px; min-height: 28px; height: 28px; padding: 0; justify-content: center; font-size: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #1d1d1f; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
  .om-grila:not(.ca-lista) .om > .om-text > .muta-meniu > summary::before { content: "⋯"; font-size: 17px; line-height: 1; margin-top: -3px; }
  .om-grila:not(.ca-lista) .om > .om-text > .muta-meniu[open] > summary { background: var(--accent); color: #fff; }
  .om-grila:not(.ca-lista) .om > .om-text > .muta-meniu > .muta-tinte { left: auto; right: 0; width: max-content; max-width: 260px; }
  .om-grila:not(.ca-lista) .om > .om-text > .om-anuleaza { position: absolute; z-index: 4; top: calc(133.333cqw - 36px); right: 42px; margin: 0; }
  .om-grila:not(.ca-lista) .om > .om-text > .om-anuleaza .btn { min-height: 28px; height: 28px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); color: #c0262d; }
}

/* plasă de siguranță: nimic poziționat absolut nu lărgește pagina (pe telefon, browserul ar micșora tot) */
body.x { overflow-x: clip; }

/* tabletă: în bara de unelte, uneltele rămân doar cu pictograma (titlul și căutarea au nevoie de loc) */
@media (max-width: 1180px) { .x-nav .capsula:not(.x-sageti) > a > span, .x-nav .capsula:not(.x-sageti) > button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .x-cauta { flex-basis: 180px; } }

/* câmpurile goale: „lipsește” în gri, care duce la câmpul de completat */
.ff-gol dd { font-weight: 450; }
.ff-lipsa { color: var(--label-3); font-weight: 450; font-size: 13px; font-style: italic; text-decoration: underline dotted; text-underline-offset: 3px; }
.ff-lipsa:hover { color: var(--accent-text); }
.ff-lipsa-text { color: var(--label-3); font-style: italic; }
/* jetoanele detaliilor: câte unul pe însușire, cu contur */
.jeton-contur { background: transparent; box-shadow: inset 0 0 0 1px var(--separator); color: var(--label-1); height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; } /* taste-skill-ignore: contur */
.jetoane-detalii { gap: 6px; margin: 0; }
