:root {
  --ivory: #FAF8F3; --navy: #011038; --gold: #fdc002;
  --un-blue: #5B92E5; --ink: #22293A; --muted: #6b7280;
  --serif: "Montserrat", system-ui, sans-serif; --sans: "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
body { background: var(--ivory); color: var(--ink); font-family: var(--sans); line-height: 1.6;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; min-width: 0; } /* min-width:0 → flex item se poate micșora sub conținut lat = fără scroll orizontal pe mobil */
.footer { flex-shrink: 0; }
/* cuvinte/URL-uri lungi nu mai împing textul în marginea ecranului */
p, h1, h2, h3, li, blockquote, a, td, th { overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding-top: 2.25rem; padding-bottom: 4rem; }
.section-title { font-size: 2rem; margin-bottom: 0.5rem; }
.section-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 0.75rem; }

/* Navbar */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid #e8e4da; }
/* navul e mai lat decât containerul paginii (1100px) ca să încapă toate linkurile fără să se lipească de logo */
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1340px; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 600;
  font-size: 1.15rem; letter-spacing: -0.01em; color: var(--navy); text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.nav-logo b { font-weight: 900; }
.nav-links { display: flex; gap: 1rem; list-style: none; align-items: center; padding: 0; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 0.95rem; }
.nav-links a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle i { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 1px; }

/* Buttons */
.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: 4px; text-decoration: none; font-weight: 600; border: 1px solid var(--navy); color: var(--navy); background: transparent; cursor: pointer; font-family: var(--sans); font-size: 1rem; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.05); }

/* Eyebrow (section label, echoes hero) */
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem; }

/* About (homepage) */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.about-statement { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900; text-transform: uppercase;
  line-height: 1.05; letter-spacing: -0.01em; }
.about-statement .gold { color: var(--gold); }
.about-body p { max-width: 60ch; }
.stats { display: flex; gap: 2.75rem; margin: 2rem 0 0; }
.stats dt { font-family: var(--serif); font-weight: 900; font-size: 2.2rem; color: var(--navy); line-height: 1; }
.stats dd { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* CTA band (homepage bookend) */
.cta-band { text-align: center; color: #fff; padding: 6rem 1.25rem; background:
  linear-gradient(rgba(13, 19, 36, 0.88), rgba(13, 19, 36, 0.88)),
  url("/assets/img/cta-timisoara.jpg") center 62% / cover no-repeat var(--navy); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { color: #cfd6e4; margin: 1rem 0 2rem; font-size: 1.15rem; }
.cta-band .eyebrow { margin-bottom: 1rem; }
.cta-band .countdown { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; margin-bottom: 2rem; }

/* Partner feature (homepage) */
.partner-feature { display: flex; align-items: center; gap: 1.75rem; margin-top: 2rem; }
.partner-feature img { max-height: 96px; width: auto; }
.partner-feature strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.partner-feature span { color: var(--muted); font-size: 0.9rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card { background: #fff; border: 1px solid #e8e4da; border-radius: 8px; padding: 1.5rem; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(1, 16, 56, 0.08); }
.card h3 { font-size: 1.25rem; }
.card .abbr { color: var(--un-blue); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; }
.card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }

.person-card { text-align: center; }
.person-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.75rem; }
.person-card .role { color: var(--gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.person-card.tba img { filter: grayscale(1); opacity: 0.4; }

.badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; letter-spacing: 0.05em; }

/* Quotes (homepage testimonials) */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.quote { position: relative; margin: 0; background: #fff; border: 1px solid #e8e4da; border-radius: 8px; padding: 2.4rem 1.5rem 1.5rem; }
.quote::before { content: "\201C"; position: absolute; top: 0.4rem; left: 1.1rem; font-family: var(--serif);
  font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; }
.quote blockquote { margin: 0 0 1rem; font-size: 0.97rem; color: var(--ink); }
.quote figcaption { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* Packages (apply page) */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.package { position: relative; background: #fff; border: 1px solid #e8e4da; border-radius: 8px; padding: 1.5rem; }
.package--featured { border-color: var(--gold); border-width: 2px; }
.package-tag { position: absolute; top: -0.8rem; left: 1.25rem; background: var(--gold); color: var(--navy);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px; }
.package .price { font-family: var(--serif); font-weight: 900; font-size: 2rem; color: var(--navy); margin: 0.5rem 0 1rem; }
.package .price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
/* numărul Basic e într-un <span data-basic-price> (populat din /api/config) — readu-l la stilul mare al prețului, nu la cel mic al unității "RON" */
.package .price span[data-basic-price] { font-size: 2rem; font-weight: 900; color: var(--navy); }
.package ul { margin: 0; padding-left: 1.1rem; color: var(--ink); font-size: 0.93rem; }
.package li { margin-bottom: 0.45rem; }
.package--link { display: block; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
/* ---- Homepage awards band (navy + gold prize pills) ---- */
.awards-band { position: relative; overflow: hidden; border-radius: 20px; padding: 3rem 2.6rem;
  background: linear-gradient(160deg, #0a2255, #020b26); }
.awards-band::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 90% 0%, rgba(253,192,2,0.13), transparent 55%); }
.awards-band .eyebrow { color: var(--gold); position: relative; }
.awards-title { font-family: var(--serif); color: #fff; font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0.3rem 0 1.8rem; position: relative; }
.awards-title span { color: var(--gold); }
.awards-pool { position: relative; margin: -0.9rem 0 1.6rem; color: #cdd6ef; font-size: 1.05rem; }
.awards-pool strong { color: var(--gold); font-size: 1.2rem; }
.awards-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2.6rem; }
.award-row { display: flex; gap: 1rem; align-items: flex-start; padding: 0.9rem 0; border-top: 1px solid rgba(253,192,2,0.2); }
.award-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(253,192,2,0.16); color: var(--gold); }
.award-ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.award-t { min-width: 0; }
.award-t strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.award-t > span { display: block; color: #aeb8d4; font-size: 0.86rem; margin-top: 0.1rem; }
.award-prize { display: inline-flex !important; align-items: center; gap: 0.4rem; margin-top: 0.55rem;
  color: var(--navy); background: var(--gold); border-radius: 999px; padding: 0.28rem 0.75rem; font-size: 0.82rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(253,192,2,0.35); }
.award-prize svg { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.award-prize { text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
a.award-prize:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(253,192,2,0.4); }
.award-prizes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.award-prizes .award-prize { margin-top: 0; }
@media (max-width: 700px) { .awards-band { padding: 2.2rem 1.4rem; } .awards-grid { grid-template-columns: 1fr; gap: 0; } }

.chair-card { margin-top: 2rem; background: #fff; border: 1px solid #e8e4da; border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 1.5rem 1.75rem; }
.chair-card .chair-tag { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.7rem; }
.chair-card h3 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.35rem; }
.chair-card p { margin: 0 0 1rem; color: var(--ink); font-size: 0.95rem; }
.chair-card .btn { margin: 0; }
.package--link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(1, 16, 56, 0.08); }
.package-line { color: var(--muted); font-size: 0.92rem; }

/* Accordion (FAQ) */
.accordion details { background: #fff; border: 1px solid #e8e4da; border-radius: 8px; margin-bottom: 0.75rem; padding: 1rem 1.25rem; }
.accordion summary { font-weight: 600; cursor: pointer; color: var(--navy); }
.accordion details p { margin-top: 0.75rem; color: var(--muted); }

/* Forms */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-field input, .form-field textarea { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; background: #fff; }
/* casetele de text au dimensiune fixă — utilizatorul nu le poate redimensiona (drag din colț) */
textarea { resize: none; }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--navy); color: #cfd6e4;
  padding: 4rem 0 2rem; margin-top: 4rem; border-top: 4px solid var(--gold); }
.footer a { color: #cfd6e4; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; }
.footer-tagline { font-family: var(--serif); font-style: normal; font-weight: 700; color: #fff; margin: 0.75rem 0 0.25rem; }
.footer-meta { font-size: 0.9rem; color: #9aa6c8; }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1.25rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; }
.footer-social a:hover { border-color: var(--gold); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1.6rem; }
.footer-cols h4 { color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-cols a { display: block; font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer-bottom { position: relative; z-index: 1; margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12); }
.footer .fine { font-size: 0.8rem; color: #8b96ad; margin: 0; }
.footer-ghost { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%);
  font-family: var(--serif); font-weight: 900; font-size: clamp(9.5rem, 32vw, 28rem); line-height: 1;
  letter-spacing: -0.02em; color: #fff; opacity: 0.05; pointer-events: none; user-select: none; white-space: nowrap; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 2.25rem; } }

/* Archive theming */
.archive img { filter: grayscale(0.7) sepia(0.15); }

/* Nav: hamburger până când toate linkurile încap pe orizontală (~1100px) */
@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ivory); flex-direction: column; padding: 1rem 1.25rem; border-bottom: 1px solid #e8e4da; margin-left: 0; }
  .nav-links.open { display: flex; }
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { gap: 1.75rem; flex-wrap: wrap; }
  .partner-feature { flex-direction: column; align-items: flex-start; }
}

/* ===== Hero globe (homepage) ===== */
.hero-globe { position: relative; min-height: 100svh; background:
  linear-gradient(180deg, rgba(10,15,30,0.78) 0%, rgba(9,13,26,0.5) 45%, rgba(7,11,22,0.92) 100%),
  url("/assets/img/hero-timisoara.jpg") center 38% / cover no-repeat #070b16;
  color: #fff; display: flex; align-items: safe center; overflow: hidden; }
.hero-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0.65; }
/* padding-top degajă navbar-ul fix (65px); `safe center` face ca la conținut mai înalt decât ecranul
   să se alinieze sus (nu să iasă peste nav) → data de sus rămâne mereu vizibilă */
.hero-stage { position: relative; z-index: 2; padding-top: calc(65px + 1.5rem); padding-bottom: 3rem; }
.hero-eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem; }
.hero-title { font-size: clamp(2.5rem, 7.2vw, 6rem); line-height: 1.02; text-transform: uppercase;
  letter-spacing: -0.01em; font-weight: 900; color: #fff; margin: 0 0 1.5rem; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%);
  animation: line-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero-title .line:nth-child(4) > span { animation-delay: 0.36s; }
.hero-title .gold { color: var(--gold); }
@keyframes line-up { to { transform: translateY(0); } }
.hero-sub { color: #aeb9d4; font-size: 1.15rem; max-width: 34ch; margin-bottom: 2rem;
  opacity: 0; animation: fade-in 0.8s ease 0.55s forwards; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap;
  opacity: 0; animation: fade-in 0.8s ease 0.75s forwards; }
.btn-ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
@keyframes fade-in { to { opacity: 1; } }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(14px); opacity: 0.15; } }

/* Navbar over dark hero */
.nav--overlay { background: transparent; border-bottom-color: transparent; }
.nav--overlay .nav-links a { color: #fff; }
.nav--overlay .nav-links a[aria-current="page"] { color: var(--gold); }
.nav--overlay .nav-logo { color: #fff; }
.nav--overlay .nav-logo img { filter: brightness(0) invert(1); }
.nav--overlay .nav-toggle i { background: #fff; }
.nav--overlay.nav--solid { background: rgba(250, 248, 243, 0.95); border-bottom-color: #e8e4da; }
.nav--overlay.nav--solid .nav-links a { color: var(--ink); }
.nav--overlay.nav--solid .nav-links a[aria-current="page"] { color: var(--gold); }
.nav--overlay.nav--solid .nav-logo { color: var(--navy); }
.nav--overlay.nav--solid .nav-logo img { filter: none; }
.nav--overlay.nav--solid .nav-toggle i { background: var(--navy); }
.nav-logo img { display: block; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif);
  font-weight: 600; font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.footer-brand b { font-weight: 900; }
.footer-brand img { filter: brightness(0) invert(1); opacity: 0.9; }
@media (max-width: 720px) {
  .nav--overlay .nav-links { background: #0c1224; }
  .nav--overlay.nav--solid .nav-links { background: var(--ivory); }
  .hero-globe canvas { opacity: 0.5; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
}

/* Chatbot (fixed-question assistant) */
.chatbot-toggle { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(1, 16, 56, 0.35); }
.chatbot-toggle:hover { background: #24375e; }
/* puls care atrage atenția când apare nudge-ul */
.chatbot-toggle.is-pulsing { animation: cb-pulse 1.8s ease-out infinite; }
@keyframes cb-pulse { 0% { box-shadow: 0 8px 24px rgba(1,16,56,0.35), 0 0 0 0 rgba(253,192,2,0.55); }
  70% { box-shadow: 0 8px 24px rgba(1,16,56,0.35), 0 0 0 16px rgba(253,192,2,0); }
  100% { box-shadow: 0 8px 24px rgba(1,16,56,0.35), 0 0 0 0 rgba(253,192,2,0); } }
@media (prefers-reduced-motion: reduce) { .chatbot-toggle.is-pulsing { animation: none; } }
/* bula proactivă (nudge) lângă buton */
.chatbot-nudge { position: fixed; right: 1.25rem; bottom: 5.4rem; z-index: 60; width: min(280px, calc(100vw - 2.5rem));
  background: #fff; color: var(--ink); border: 1px solid #e8e4da; border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 0.85rem 2rem 0.85rem 1rem; font-size: 0.9rem; line-height: 1.45;
  box-shadow: 0 12px 34px rgba(1,16,56,0.22); cursor: pointer; animation: cb-nudge-in 0.35s ease-out; }
.chatbot-nudge strong { color: var(--navy); }
.chatbot-nudge-x { position: absolute; top: 0.35rem; right: 0.45rem; background: none; border: 0;
  font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0.2rem; }
@keyframes cb-nudge-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chatbot-panel { position: fixed; right: 1.25rem; bottom: 6rem; z-index: 60; width: min(360px, calc(100vw - 2.5rem));
  max-height: min(520px, calc(100vh - 8rem)); display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e8e4da; border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(1, 16, 56, 0.25); }
.chatbot-head { background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700;
  padding: 0.8rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.chatbot-close { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.chatbot-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.chatbot-msg { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 10px; font-size: 0.92rem; line-height: 1.45; }
.chatbot-msg--bot { background: var(--ivory); border: 1px solid #e8e4da; align-self: flex-start; }
.chatbot-msg--user { background: var(--navy); color: #fff; align-self: flex-end; }
.chatbot-chips { padding: 0.75rem 1rem 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid #f0ece2; }
.chatbot-chip { border: 1px solid var(--navy); background: transparent; color: var(--navy); font: inherit;
  font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 999px; cursor: pointer; }
.chatbot-chip:hover { background: var(--navy); color: #fff; }
.chatbot-chip--ghost { border-color: #b8860b; color: #b8860b; }
.chatbot-chip--ghost:hover { background: var(--gold); color: var(--navy); }

/* Scroll reveals + card polish */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
.card { position: relative; }
.card:hover { border-color: var(--gold); }
.card .abbr { position: relative; }

/* Placard cards (committees — country-placard edge + ghost logo watermark) */
.card--placard { border-top: 4px solid var(--navy); overflow: hidden; padding-bottom: 2.4rem; }
.card-mark { position: absolute; right: -0.5rem; bottom: -0.8rem; width: 118px; height: 118px;
  object-fit: contain; filter: invert(1); opacity: 0.08; pointer-events: none; }
.committee-emblem { display: flex; align-items: center; justify-content: center; width: 116px; height: 116px;
  border-radius: 50%; background: var(--navy); margin-bottom: 1.5rem; }
.committee-emblem img { width: 68%; height: 68%; object-fit: contain; }
.card--placard:hover { border-top-color: var(--gold); }
.card-go { position: absolute; left: 1.5rem; bottom: 1.1rem; color: var(--gold); font-weight: 700;
  opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.2s; }
.card--placard:hover .card-go { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span { animation: none; transform: none; }
  .hero-sub, .hero-ctas { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* Hero fixes: nav floats over hero; type breathing room */
.has-hero-globe .nav { position: fixed; top: 0; left: 0; right: 0; }
.has-hero-globe .footer { margin-top: 0; }
.hero-title { line-height: 1.04; }

/* Contact quick lines */
.contact-lines { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 1.25rem 0 0.5rem; }
.contact-lines a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); }

/* ===== Delegate platform (/app/) ===== */
.app-tabs { display: flex; gap: 0.5rem; margin: 1.5rem 0; }
.app-tab { flex: 1; padding: 0.6rem; font: inherit; font-weight: 600; background: #fff;
  border: 1px solid #e8e4da; border-radius: 6px; cursor: pointer; color: var(--muted); }
.app-tab.is-active { border-color: var(--navy); color: var(--navy); }
.app-status { margin-top: 1rem; font-weight: 600; }
.app-warn { background: #fff7df; border: 1px solid var(--gold); border-radius: 8px;
  padding: 0.9rem 1.1rem; margin-top: 1rem; font-size: 0.95rem; }
.app-card { background: #fff; border: 1px solid #e8e4da; border-left: 4px solid var(--navy);
  border-radius: 8px; padding: 1.5rem; margin-top: 1.5rem; }
.app-steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 1.5rem 0 2rem;
  counter-reset: step; }
.app-steps li { flex: 1; text-align: center; font-size: 0.85rem; color: var(--muted);
  padding-top: 2rem; position: relative; counter-increment: step; }
.app-steps li::before { content: counter(step); position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; line-height: 26px;
  background: #e8e4da; color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.app-steps li.is-active { color: var(--navy); font-weight: 600; }
.app-steps li.is-active::before { background: var(--navy); color: #fff; }
.app-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem; margin-top: 1.5rem; }
.app-choice { text-align: left; background: #fff; border: 1px solid #e8e4da; border-radius: 8px;
  padding: 1rem 1.1rem; cursor: pointer; font: inherit; }
.app-choice strong { display: block; color: var(--navy); font-family: var(--serif); }
.app-choice em { display: block; font-style: normal; font-weight: 700; color: var(--navy); margin: 0.2rem 0; }
.app-choice span { font-size: 0.85rem; color: var(--muted); }
.app-choice:hover, .app-choice.is-active { border-color: var(--gold); }
.app-choice.is-active { box-shadow: 0 0 0 1px var(--gold); }
.app-seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem; margin-top: 0.5rem; }
.app-seat { font: inherit; font-size: 0.88rem; padding: 0.5rem 0.6rem; background: #fff;
  border: 1px solid #e8e4da; border-radius: 6px; cursor: pointer; }
.app-seat:hover:not([disabled]) { border-color: var(--gold); }
.app-seat[disabled] { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.app-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: #fff; }
.app-table th, .app-table td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid #eee7d9; }
.app-table th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
.app-table tr.is-paid td { background: #f3faf3; }
.app-table tr.is-cancelled td { opacity: 0.5; }
.app-table .btn { padding: 0.25rem 0.7rem; font-size: 0.82rem; }

.app-google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%;
  margin-top: 1.5rem; background: #fff; }
.app-or { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 1rem 0 0; }

/* ===== Platformă: foaie "diplomat" ===== */
[data-app-page] { background: #fff; border: 1px solid #e8e4da; border-radius: 14px;
  padding: 2.75rem 2.5rem 3rem; margin-top: 3rem; margin-bottom: 4.5rem;
  box-shadow: 0 14px 44px rgba(1, 16, 56, 0.07); }
[data-app-page] .section-title { font-size: 1.55rem; }
[data-app-page] .section-title::after { width: 44px; }
[data-app-page] .eyebrow { margin-bottom: 0.4rem; font-size: 0.72rem; }
[data-app-page] h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }

.form-field label { font-size: 0.85rem; color: var(--navy); }
.form-field label .opt { font-weight: 400; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #d6d1c4; border-radius: 8px;
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink); }
.form-field select:invalid { color: var(--muted); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(253, 192, 2, 0.25); }
.form-field { margin-bottom: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.app-tabs { border-bottom: 1px solid #e8e4da; gap: 0; margin: 1.75rem 0 1.5rem; }
.app-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  padding: 0.6rem 0; margin-right: 1.5rem; flex: none; font-size: 0.95rem; }
.app-tab.is-active { border-bottom-color: var(--gold); color: var(--navy); }

.app-google { border-color: #d6d1c4; font-weight: 600; }
.app-google:hover { border-color: var(--navy); }

.app-steps { margin: 2rem 0 2.25rem; border-bottom: 1px solid #f0ece2; padding-bottom: 1.5rem; }
.app-steps li { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.app-steps li::before { width: 22px; height: 22px; line-height: 22px; font-size: 0.72rem; }

/* Modal comitete */
.committee-modal { margin: auto; border: 0; border-radius: 14px; padding: 0; max-width: min(640px, calc(100vw - 2rem));
  width: 100%; box-shadow: 0 24px 80px rgba(1, 16, 56, 0.35); border-top: 4px solid var(--gold); }
.committee-modal::backdrop { background: rgba(1, 16, 56, 0.55); backdrop-filter: blur(3px); }
.committee-modal .modal-head { display: flex; gap: 1.25rem; align-items: center;
  padding: 1.75rem 2rem 1rem; }
.committee-emblem--sm { width: 72px; height: 72px; margin: 0; flex: none; }
.committee-modal h2 { margin: 0.15rem 0 0.5rem; font-size: 1.35rem; }
.committee-modal .modal-body { padding: 0.5rem 2rem 0; max-height: 46vh; overflow-y: auto; }
.committee-modal .modal-body p { margin-bottom: 0.9rem; font-size: 0.95rem; }
.committee-modal .modal-actions { padding: 1rem 2rem 1.75rem; margin: 0; }
.modal-close { position: absolute; top: 0.7rem; right: 0.9rem; background: none; border: 0;
  font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; }

/* modal generic (confirmări custom, ex. refund) */
.tmun-modal { margin: auto; border: 0; border-radius: 16px; padding: 0; max-width: min(440px, calc(100vw - 2rem));
  width: 100%; background: var(--ivory); color: var(--ink); box-shadow: 0 24px 70px rgba(1, 16, 56, 0.32);
  border-top: 4px solid var(--gold); }
.tmun-modal::backdrop { background: rgba(1, 16, 56, 0.55); backdrop-filter: blur(3px); }
.tmun-modal-inner { padding: 1.6rem 1.75rem 1.5rem; }
.tmun-modal-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem;
  color: var(--gold); font-weight: 700; margin: 0 0 0.3rem; }
.tmun-modal h3 { margin: 0 0 0.7rem; font-size: 1.25rem; }
.tmun-modal #rfm-body p { margin: 0 0 0.5rem; font-size: 0.95rem; line-height: 1.55; }
.tmun-modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.4rem; flex-wrap: wrap; }
.tmun-modal-actions:empty { margin-top: 0; }

/* istoric tranzacții card (secretariat) */
.txn-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 760px; }
.txn-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); border-bottom: 2px solid #e8e4da; padding: 0.5rem 0.6rem; white-space: nowrap; }
.txn-table td { padding: 0.65rem 0.6rem; border-bottom: 1px solid #eee7d9; vertical-align: top; }
.txn-table tbody tr:hover, .txn-table tbody tr:hover { background: #fbf9f3; }
.txn-sub { color: var(--muted); font-size: 0.76rem; }
.txn-pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600;
  background: #ece7db; color: #4a4636; white-space: nowrap; }
.txn-pill.txn-s2 { background: #dff3e4; color: #1a6b38; }
.txn-pill.txn-s4, .txn-pill.txn-s7 { background: #fdeecf; color: #8a5a00; }
.txn-pill.txn-s6 { background: #fbe0e0; color: #a12626; }
.txn-pill.txn-s3 { background: #e6e9f2; color: #3a4a72; }

/* pagina Settings — redesign (card list cu rânduri etichetă/descriere + control) */
.settings { max-width: 700px; display: flex; flex-direction: column; gap: 1.25rem; }
.settings-card { background: #fff; border: 1px solid #e8e4da; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(1, 16, 56, 0.05); }
.settings-row { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 1.25rem 2.25rem;
  padding: 1.5rem 1.6rem; align-items: start; }
.settings-row + .settings-row { border-top: 1px solid #efe9dc; }
.settings-row h3 { margin: 0 0 0.25rem; font-size: 1.02rem; }
.settings-row .s-desc { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.settings-row .s-body { min-width: 0; }
.settings-row .s-body form { max-width: 380px; }
.settings-row .s-body .form-field { margin-bottom: 0.75rem; }
.settings-row .s-body .app-status:empty { display: none; }
.s-account { font-size: 0.95rem; font-weight: 600; color: var(--navy); word-break: break-word; }
.settings-danger { border-color: #f0cfcf; background: #fdf6f6; box-shadow: none; }
.settings-danger h3 { color: #a12626; }
@media (max-width: 620px) { .settings-row { grid-template-columns: 1fr; gap: 0.55rem; padding: 1.25rem 1.15rem; } }
.modal-close:hover { color: var(--navy); }

/* filigran logo în modal (ca pe carduri) */
.committee-modal .modal-mark { position: absolute; right: -1.5rem; bottom: -1.5rem;
  width: 240px; height: 240px; object-fit: contain; filter: invert(1); opacity: 0.07;
  pointer-events: none; }
.committee-modal .modal-head > div { position: relative; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.news-card { position: relative; display: block; background: #fff; border: 1px solid #e8e4da; border-radius: 8px;
  padding: 1.5rem; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(1, 16, 56, 0.08); }
.news-card h3 { font-size: 1.15rem; margin: 0.4rem 0 0.5rem; }
.news-card p { color: var(--muted); font-size: 0.92rem; }
.news-byline { display: block; margin-top: 0.9rem; color: var(--muted); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.news-official { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 999px; }
.news-card--sg { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 6px 28px rgba(253, 192, 2, 0.28); }
.news-card--sg:hover { box-shadow: 0 0 0 1px var(--gold), 0 10px 34px rgba(253, 192, 2, 0.4); }
.article--sg { border-left: 4px solid var(--gold); padding-left: 1.5rem; }
.article-body p { margin-bottom: 1rem; }
.article-byline { border-top: 1px solid #e8e4da; padding-top: 1rem; margin-top: 2rem; }
.news-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid #e8e4da; border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.news-row--sg { border-color: var(--gold); }
.news-row .btn { padding: 0.3rem 0.8rem; font-size: 0.85rem; }

/* welcome + nav login */
.apply-welcome { background: #fff7df; border: 1px solid var(--gold); border-radius: 10px;
  padding: 1rem 1.25rem; margin: 1.25rem 0 0; font-size: 0.98rem; }
.nav-login { padding: 0.45rem 1.1rem; font-size: 0.92rem; }
.nav--overlay .nav-links .nav-login { border-color: rgba(255,255,255,0.45); color: #fff; }
.nav--overlay.nav--solid .nav-links .nav-login { border-color: var(--navy); color: var(--navy); }

/* sloturi preferinte */
.pref-slot { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.9rem; }
.pref-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy);
  color: #fff; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
@media (max-width: 560px) { .pref-slot { flex-wrap: wrap; } }
.app-table select { font: inherit; font-size: 0.82rem; padding: 0.25rem; max-width: 190px; }

.app-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem;
  margin: 0.6rem 0; cursor: pointer; line-height: 1.45; }
.app-check input { margin-top: 0.25rem; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }

/* Dashboard shell (sidebar stanga + continut dreapta) */
.dash-shell { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; margin-top: 1.5rem; align-items: start; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.dash-nav button, .dash-nav a { display: block; width: 100%; text-align: left; background: none; border: 0;
  border-left: 3px solid transparent; padding: 0.55rem 0.9rem; font: inherit; font-size: 0.95rem;
  color: var(--ink); cursor: pointer; text-decoration: none; border-radius: 0 6px 6px 0; }
.dash-nav button:hover, .dash-nav a:hover { background: #f1ede3; }
.dash-nav button.is-active { border-left-color: var(--gold); color: var(--navy); font-weight: 600; background: #fff; }
.dash-nav-sep { border-top: 1px solid #e8e4da; margin: 0.6rem 0; }
.dash-content section > .app-card h3 { margin-top: 0; }
@media (max-width: 720px) {
  .dash-shell { grid-template-columns: 1fr; gap: 1rem; }
  .dash-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .dash-nav button, .dash-nav a { width: auto; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; }
  .dash-nav button.is-active { border-bottom-color: var(--gold); }
}

/* Secțiuni mari comitete (/committees/) */
.committee-block { padding: 3.5rem 0; border-top: 1px solid #eee7d9; }
.committee-block--alt { background: #fff; }
.cb-inner { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
.committee-block--alt .cb-inner { grid-template-columns: 1fr 300px; }
.committee-block--alt .cb-media { order: 2; }
.cb-media { background: var(--navy); border-radius: 14px; aspect-ratio: 1; display: flex;
  align-items: center; justify-content: center; border-bottom: 4px solid var(--gold); }
.cb-media img { width: 62%; height: 62%; object-fit: contain; }
.cb-body h2 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.cb-teaser { font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; }
.cb-desc { color: var(--ink); max-width: 62ch; }
.cb-meta { margin: 1.25rem 0 1.5rem; }
@media (max-width: 760px) {
  .cb-inner, .committee-block--alt .cb-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .committee-block--alt .cb-media { order: 0; }
  .cb-media { max-width: 220px; }
}

/* Roster țări pe pagina de detaliu */
.roster-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.roster-chip { background: #fff; border: 1px solid #e8e4da; border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.88rem; color: var(--navy); font-weight: 500; }
.roster-chip--taken { opacity: 0.45; background: #f4f0e6; }

/* dashboard full-width */
.dash-page { padding: 3rem clamp(1.25rem, 3.5vw, 3rem) 4rem; }
.dash-shell { grid-template-columns: 240px minmax(0, 1fr); }
.dash-content { min-width: 0; }
/* bara mobilă + backdrop drawer: ascunse pe desktop. Regulile drawer-ului sunt mai jos,
   DUPĂ regulile .dash-aside din feature-ul sticky (altfel `position:fixed` e suprascris). */
.dash-mnav, .dash-drawer-bg { display: none; }

/* Board */
.board-lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem; max-width: 720px; }
.board-lead { background: #fff; border: 1px solid var(--gold); border-radius: 14px; text-align: center;
  padding: 2.5rem 2rem 2.25rem; box-shadow: 0 0 0 1px var(--gold), 0 10px 36px rgba(253, 192, 2, 0.22); }
.board-lead-photo { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 1.25rem;
  overflow: hidden; border: 3px solid var(--gold); background: var(--navy);
  display: flex; align-items: center; justify-content: center; }
.board-lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.board-lead-photo .board-tba-emblem { width: 62%; height: 62%; object-fit: contain; opacity: 0.85; }
.board-role { color: #b8860b; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 0.35rem; }
.board-name { font-size: 1.3rem; margin: 0; }
.board-name-sm { font-size: 1.05rem; margin: 0; }
.board-soon { color: var(--muted); font-size: 0.82rem; font-style: italic; margin-top: 0.5rem; }
.board-lead.is-tba .board-name, .board-card.is-tba .board-name-sm { color: var(--muted); }
.board-section { margin-top: 3rem; }
.board-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.board-card { display: flex; align-items: center; gap: 1rem; background: #fff;
  border: 1px solid #e8e4da; border-top: 3px solid var(--navy); border-radius: 10px; padding: 1rem 1.1rem; }
.board-card-photo { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden;
  background: var(--navy); display: flex; align-items: center; justify-content: center; }
.board-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.board-card-photo .board-tba-emblem { width: 60%; height: 60%; object-fit: contain; opacity: 0.8; }
.board-cta { margin-top: 4rem; background: #fff; border: 1px solid #e8e4da; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 1.75rem 2rem; }

/* dashboard: lipit de navbar si footer, fara benzi crem */
.dash-page { padding: 1.75rem clamp(1.25rem, 3.5vw, 3rem) 2.5rem; min-height: calc(100vh - 64px); }
body:has(.dash-page) .footer { margin-top: 0; }

/* app chrome (layout-app: topbar in loc de navbarul de site, fara footer) */
.app-body { background: var(--ivory); }
.app-topbar { position: sticky; top: 0; z-index: 60; background: var(--navy); border-bottom: 3px solid var(--gold); }
.app-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px;
  padding: 0 clamp(1rem, 3vw, 2rem); }
.app-topbar .brand { display: flex; align-items: center; gap: 0.55rem; color: #fff; text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 1.02rem; }
.app-topbar .brand img { height: 30px; filter: brightness(0) invert(1); }
.app-topbar .brand b { color: var(--gold); font-weight: 900; }
.app-topbar .brand em { font-style: normal; font-weight: 400; color: #9aa6c8; font-size: 0.8rem; margin-left: 0.2rem; }
.app-topbar-right { display: flex; align-items: center; gap: 1.1rem; font-size: 0.88rem; }
.app-topbar-right a { color: #cfd6e4; text-decoration: none; }
.app-topbar-right a:hover { color: var(--gold); }
#topbar-user { color: #9aa6c8; }
.btn-topbar { background: transparent; border: 1px solid #33406b; color: #fff; border-radius: 4px;
  padding: 0.35rem 0.9rem; cursor: pointer; font: inherit; font-size: 0.84rem; }
.btn-topbar:hover { border-color: var(--gold); color: var(--gold); }
.app-main { min-height: 0; }
.dash-page { min-height: 0; }

/* sub-tab-uri secretariat + form chairs */
.sec-tabs { display: flex; gap: 0.4rem; margin: 0.75rem 0 1.25rem; border-bottom: 1px solid #e8e4da; }
.sec-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.5rem 1rem;
  font: inherit; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.sec-tabs button.is-active { color: var(--navy); font-weight: 600; border-bottom-color: var(--gold); }
.chair-add { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.chair-add input, .chair-add select { padding: 0.55rem 0.8rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; }
.chair-add input { min-width: 260px; }

/* ============================================================
   PLATFORM V2 — "cancelarie diplomatică"
   Chrome navy sobru + conținut ca document oficial cu letterhead.
   Suprascrie stilurile de platformă anterioare.
   ============================================================ */

.app-body { background: #f6f3ea; }
.app-main { min-height: calc(100vh - 160px); }

/* — chrome — */
.app-topbar { position: sticky; top: 0; z-index: 60; background: var(--navy);
  border-bottom: 2px solid var(--gold); box-shadow: 0 6px 24px rgba(1, 16, 56, 0.25); }
.app-topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between; }
.app-topbar .brand { display: flex; align-items: center; gap: 0.6rem; color: #fff;
  text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.app-topbar .brand img { height: 30px; filter: brightness(0) invert(1); }
.app-topbar .brand b { font-weight: 900; }
.app-topbar .brand em { font-style: normal; font-weight: 500; color: var(--gold);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,0.25); padding-left: 0.7rem; margin-left: 0.15rem; }
.app-topbar-right { display: flex; align-items: center; gap: 1.25rem; font-size: 0.85rem; }
.app-topbar-right a { color: #cfd6e4; text-decoration: none; }
.app-topbar-right a:hover { color: var(--gold); }
#topbar-user { color: #9aa6c8; font-size: 0.82rem; }
.btn-topbar { background: none; border: 1px solid rgba(255,255,255,0.35); color: #fff;
  font: inherit; font-size: 0.8rem; padding: 0.35rem 0.9rem; border-radius: 3px; cursor: pointer; }
.btn-topbar:hover { border-color: var(--gold); color: var(--gold); }

.app-footline { max-width: 1100px; margin: 0 auto; padding: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: center;
  font-size: 0.75rem; letter-spacing: 0.06em; color: #9b9484; text-transform: uppercase; }
.app-footline a { color: #9b9484; text-decoration: none; }
@media (max-width: 640px) { .app-topbar .brand em, .app-footline-sep { display: none; } }

/* — documentul oficial — */
[data-app-page] { background: #fffdf8; border: 1px solid #e3ddcd; border-radius: 4px;
  padding: 2rem 3rem 3.25rem; margin-top: 1.25rem; margin-bottom: 3rem;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px rgba(1, 16, 56, 0.07); }
[data-app-page]::before { content: "Timișoara International Model United Nations · MMXXVI";
  display: block; text-align: center; font-family: var(--sans); font-size: 0.66rem;
  font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: #b8860b;
  padding: 62px 0 16px; margin-bottom: 2.25rem;
  background: url("/assets/img/emblem.png") center top / 46px no-repeat;
  border-bottom: 1px solid #e8e2d2; box-shadow: 0 3px 0 -2px #e8e2d2; }
/* Command surfaces (floor, projector, console) sit on a navy body — the dark
   crest is invisible there, so swap in the white emblem and drop the light rule. */
.cmd-body [data-app-page]::before { background-image: url("/assets/img/emblem-white.png");
  border-bottom-color: rgba(255,255,255,.16); box-shadow: 0 3px 0 -2px rgba(255,255,255,.16); }
@media (max-width: 640px) { [data-app-page] { padding: 1.5rem 1.25rem 2.5rem; } }

[data-app-page] .eyebrow { font-size: 0.68rem; letter-spacing: 0.28em; color: #b8860b; margin-bottom: 0.5rem; }
[data-app-page] .section-title { font-size: 1.5rem; letter-spacing: -0.01em; }
[data-app-page] .section-title::after { width: 38px; height: 2px; margin-top: 0.6rem; }
[data-app-page] h2 { font-size: 1.02rem; margin: 0 0 0.9rem; letter-spacing: 0.01em; }

/* — autentificare — */
.app-google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%;
  margin-top: 1.6rem; background: #fff; border: 1px solid #d8d2c2; border-radius: 3px;
  font-weight: 600; padding: 0.75rem 1rem; }
.app-google:hover { border-color: var(--navy); background: #fff; }
.app-or { text-align: center; color: #9b9484; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin: 1.2rem 0 0; }
.app-tabs { display: flex; gap: 0; border-bottom: 1px solid #e8e2d2; margin: 1.4rem 0 1.6rem; }
.app-tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; margin-right: 1.75rem; padding: 0.55rem 0; font: inherit; font-size: 0.9rem;
  font-weight: 600; color: #9b9484; cursor: pointer; }
.app-tab.is-active { color: var(--navy); border-bottom-color: var(--gold); }

/* — câmpuri de registru — */
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 0.4rem; }
.form-field label .opt { font-weight: 500; color: #9b9484; text-transform: none; letter-spacing: 0.02em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.68rem 0.85rem; border: 1px solid #d8d2c2; border-radius: 3px;
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(253, 192, 2, 0.22); }
.app-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem;
  margin: 0.65rem 0; cursor: pointer; line-height: 1.5; }
.app-check input { margin-top: 0.22rem; accent-color: var(--navy); width: 15px; height: 15px; flex: none; }

/* — pașii ca articole de tratat — */
.app-steps { display: flex; list-style: none; padding: 0 0 1.4rem; margin: 1.9rem 0 2rem;
  border-bottom: 1px solid #e8e2d2; counter-reset: step; }
.app-steps li { flex: 1; text-align: center; counter-increment: step; position: relative;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #b9b29e; padding-top: 1.85rem; }
.app-steps li::before { content: counter(step, upper-roman); position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); font-family: var(--serif); font-size: 0.95rem; font-weight: 800;
  color: #cfc8b2; letter-spacing: 0.05em; }
.app-steps li.is-active { color: var(--navy); }
.app-steps li.is-active::before { color: #b8860b; }

/* — opțiuni ca dosare oficiale — */
.app-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem; margin-top: 1.4rem; }
.app-choice { text-align: left; background: #fff; border: 1px solid #e3ddcd; border-left: 3px solid var(--navy);
  border-radius: 3px; padding: 1rem 1.1rem; cursor: pointer; font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s; }
.app-choice strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 0.98rem; }
.app-choice em { display: block; font-style: normal; font-weight: 700; color: #b8860b; margin: 0.2rem 0; font-size: 0.9rem; }
.app-choice span { font-size: 0.82rem; color: #6b7280; line-height: 1.45; display: block; margin-top: 0.15rem; }
.app-choice:hover { border-color: var(--gold); border-left-color: var(--gold); }
.app-choice.is-active { border-left-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: #fffcf2; }
.app-choice[disabled] { opacity: 0.45; cursor: not-allowed; }

.app-seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.45rem; margin-top: 0.5rem; }
.app-seat { font: inherit; font-size: 0.85rem; padding: 0.48rem 0.6rem; background: #fff;
  border: 1px solid #e3ddcd; border-radius: 2px; cursor: pointer; color: var(--ink); }
.app-seat:hover:not([disabled]) { border-color: var(--gold); background: #fffcf2; }
.app-seat[disabled] { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* — preferințele I / II / III — */
#pref-slots { counter-reset: pref; margin-top: 1.5rem; }
.pref-slot { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.9rem; counter-increment: pref; }
.pref-num { flex: none; width: 34px; height: 34px; border: 1px solid var(--navy); border-radius: 2px;
  background: #fff; color: transparent; position: relative; }
.pref-num::before { content: counter(pref, upper-roman); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif);
  font-weight: 800; font-size: 0.8rem; color: var(--navy); }
@media (max-width: 560px) { .pref-slot { flex-wrap: wrap; } }

/* — dosarul din dashboard & note — */
.app-card { background: #fff; border: 1px solid #e3ddcd; border-left: 3px solid var(--navy);
  border-radius: 3px; padding: 1.6rem 1.75rem; margin-top: 1.5rem; }
.app-card h3 { font-size: 1.02rem; }
.app-warn { background: #fffcf2; border: 1px solid #eadfb8; border-left: 3px solid var(--gold);
  border-radius: 3px; padding: 0.95rem 1.15rem; margin-top: 1.1rem; font-size: 0.92rem; }
.app-status { margin-top: 1rem; font-weight: 600; font-size: 0.9rem; }
.apply-welcome { background: #fffcf2; border: 1px solid #eadfb8; border-left: 3px solid var(--gold);
  border-radius: 3px; padding: 0.95rem 1.2rem; margin: 1.1rem 0 0; font-size: 0.95rem; }
.badge { border-radius: 2px; letter-spacing: 0.06em; }

/* ---- Step 1 "how to take part" — segmented tracks ---- */
.join-head { margin-bottom: 1.4rem; }
.join-head h2 { margin: 0 0 0.35rem; }
.join-sub { color: var(--muted); font-size: 0.95rem; margin: 0; max-width: 60ch; }
.join-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 2rem; }
.join-tab { text-align: left; background: #fff; border: 1px solid #e3ddcd; border-radius: 12px;
  padding: 1rem 1.05rem; cursor: pointer; display: flex; flex-direction: column; gap: 0.28rem;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; }
.join-tab strong { color: var(--navy); font-family: var(--serif); font-size: 1rem; line-height: 1.25; }
.join-tab span { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.join-tab:hover { border-color: var(--gold); transform: translateY(-1px); }
.join-tab.is-active { background: var(--navy); border-color: var(--navy); box-shadow: 0 8px 22px rgba(1,16,56,0.2); }
.join-tab.is-active strong { color: #fff; }
.join-tab.is-active span { color: rgba(255,255,255,0.72); }
.join-panel[hidden] { display: none; }
.join-panel-lead { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.2rem; max-width: 60ch; }
.pkg-fee-note { font-size: 0.72rem; color: var(--muted); opacity: 0.6; line-height: 1.5;
  margin: 2.25rem 0 0; max-width: 72ch; }
@media (max-width: 640px) { .join-tabs { grid-template-columns: 1fr; gap: 0.55rem; } }

/* ---- Organizing-team department options — rows with icon + arrow ---- */
.dept-list { display: flex; flex-direction: column; gap: 0.55rem; }
.dept-row { display: flex; align-items: center; gap: 1rem; text-align: left; background: #fff;
  border: 1px solid #e3ddcd; border-radius: 12px; padding: 1rem 1.15rem; cursor: pointer; width: 100%;
  transition: border-color .15s, background .15s; }
.dept-row:hover { border-color: var(--gold); }
/* rândul selectat = capul acordeonului: bordură aurie, colțuri de jos drepte, se leagă de corp */
.dept-row.is-active { border-color: var(--gold); background: #fffdf5; box-shadow: none;
  border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
/* corpul acordeonului (detaliul rolului), atașat sub rândul activ */
.dept-detail { border: 1px solid var(--gold); border-top: 1px solid #efe7cf;
  border-radius: 0 0 12px 12px; background: #fff; margin-top: -0.55rem;
  padding: 1.2rem 1.25rem 1.35rem; }
.dept-detail > h3:first-child { margin-top: 0; }
.dept-detail > h3:first-child::after { content: none; }
.dept-ic { width: 42px; height: 42px; flex: none; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; background: var(--navy); color: #fff; }
.dept-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.dept-tx { flex: 1; min-width: 0; }
.dept-tx strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1rem; }
.dept-tx span { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.dept-chev { color: #c9c2ae; flex: none; font-size: 1.1rem; }

/* HR team directory list */
.hrdir { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.hrdir li { padding: 0.4rem 0; border-bottom: 1px solid #f0ece2; font-size: 0.92rem; }
.hrdir li:last-child { border-bottom: 0; }

/* HR participants — filtre + rândul de detalii al unei persoane */
.hrp-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.9rem; }
.hrp-tools input[type="search"] { flex: 1 1 15rem; min-width: 0; }
.hrp-tools select { flex: 0 1 11rem; }
.hrp-tools .btn { margin-left: auto; }
.hrp-sub { display: block; color: var(--muted); font-size: 0.78rem; }
.hrp-none { color: var(--muted); }
.app-table tr.hrp-row { cursor: pointer; }
.app-table tr.hrp-row:hover td { background: #fbf9f3; }
.app-table tr.hrp-more td { background: #fbf9f3; font-size: 0.84rem; }
.hrp-facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.hrp-facts li { color: #333a4d; }
.hrp-facts b { color: var(--muted); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; display: block; }
@media (max-width: 640px) { .hrp-tools .btn { margin-left: 0; width: 100%; text-align: center; } }

/* Media kit */
.mk-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.75rem 0; border-bottom: 1px solid #f0ece2; }
.mk-item:last-child { border-bottom: 0; }
.mk-meta strong { display: block; color: var(--navy); font-size: 0.95rem; }
.mk-meta span { color: var(--muted); font-size: 0.8rem; text-transform: capitalize; }
.mk-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Run of show */
.ros { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.ros li { display: flex; align-items: baseline; gap: 0.85rem; padding: 0.5rem 0; border-bottom: 1px solid #f0ece2; }
.ros li:last-child { border-bottom: 0; }
.ros-t { flex: none; width: 3.6rem; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.ros-b { flex: 1; min-width: 0; font-size: 0.92rem; }
.ros .muted, .ob-member .muted { color: var(--muted); }
.ros-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--navy); background: rgba(253,192,2,0.22); border-radius: 4px; padding: 0.05rem 0.35rem; vertical-align: middle; }

/* Onboarding */
.ob-step { margin: 0.3rem 0; }
.ob-member { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.55rem 0; border-bottom: 1px solid #f0ece2; font-size: 0.92rem; }
.ob-member:last-child { border-bottom: 0; }
.ob-prog { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.ob-bar { display: inline-block; width: 90px; height: 7px; border-radius: 999px; background: #ece5d4; overflow: hidden; }
.ob-bar span { display: block; height: 100%; background: var(--gold); }

/* — registre (tabele) — */
.app-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: #fff;
  border: 1px solid #e3ddcd; }
.app-table th { background: #fffdf8; color: var(--navy); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-align: left;
  padding: 0.7rem 0.75rem; border-bottom: 2px solid var(--navy); white-space: nowrap; }
.app-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid #efe9da; vertical-align: top; }
.app-table tr.is-assigned td { background: #f6faf4; }
.app-table tr.is-paid td { background: #f4f8fd; }
.app-table tr:hover td { background: #fffcf2; }
.app-table .btn { padding: 0.28rem 0.7rem; font-size: 0.78rem; border-radius: 2px; }
.app-table select { font: inherit; font-size: 0.8rem; padding: 0.28rem; max-width: 190px;
  border: 1px solid #d8d2c2; border-radius: 2px; }

/* — newsroom — */
.news-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid #e3ddcd; border-left: 3px solid var(--navy);
  border-radius: 3px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.news-row--sg { border-left-color: var(--gold); }

/* footerul site-ului, adaptat pe platformă */
.footer--app { margin-top: 0; }

/* checkout */
.checkout-total { margin-top: 1.25rem; font-size: 1.05rem; }
.checkout-total strong { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.checkout-total s { color: #9b9484; margin-left: 0.5rem; font-size: 0.95rem; }
.checkout-box { background: #fffcf2; border: 1px solid #eadfb8; border-left: 3px solid var(--gold);
  border-radius: 3px; padding: 1.1rem 1.3rem; margin-top: 1rem; }
.checkout-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #b8860b; margin: 0 0 0.25rem; }
.checkout-amount { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--navy); margin: 0; }
.checkout-amount s { font-size: 1rem; color: #9b9484; font-weight: 500; margin-left: 0.5rem; }
.checkout-code { margin: 0.35rem 0 0; font-size: 0.85rem; color: #1d7a34; }

/* dashboard: document fără bordură */
[data-app-page="dashboard"] { border: 0; }

/* comitete pe homepage: 4 echilibrate + banner press separat */
.card-grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .card-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .card-grid--four { grid-template-columns: 1fr; } }

.press-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.75rem;
  margin-top: 1.25rem; background: var(--navy); color: #fff; border-radius: 8px;
  border-left: 4px solid var(--gold); padding: 1.75rem 2.25rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s; }
.press-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(1, 16, 56, 0.3); }
.press-banner h3 { color: #fff; font-size: 1.25rem; margin: 0.2rem 0 0.4rem; }
.press-banner-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin: 0; }
.press-banner-sub { color: #b9c2da; font-size: 0.92rem; margin: 0; max-width: 60ch; }
.press-banner-mark { position: absolute; right: 2.5rem; bottom: -1.5rem; width: 120px; height: 120px;
  object-fit: contain; opacity: 0.14; pointer-events: none; }
.press-banner-go { margin-left: auto; color: var(--gold); font-weight: 700; font-size: 1.3rem; flex: none; }
@media (max-width: 640px) { .press-banner { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .press-banner-go { display: none; } }

/* FAQ + Contact: layout lat în două coloane (aside sticky + conținut) */
.faq-layout, .contact-layout { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: 3.5rem; align-items: start; }
.faq-aside, .contact-aside { position: sticky; top: 96px; }
.faq-aside > p, .contact-aside > p { color: var(--muted); max-width: 42ch; }

.faq-help { margin-top: 2rem; background: #fff; border: 1px solid #e8e4da; border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 1.4rem 1.6rem; }
.faq-help p { margin: 0; }
.faq-help-sub { font-size: 0.92rem; color: var(--muted); margin: 0.3rem 0 1.1rem !important; }
.faq-help .btn { margin-top: 1rem; }

.accordion--wide details { padding: 1.15rem 1.5rem; }
.accordion--wide summary { font-size: 1.02rem; }

.contact-cards { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.75rem; }
.contact-card { display: block; background: #fff; border: 1px solid #e8e4da; border-radius: 8px;
  padding: 0.95rem 1.2rem; text-decoration: none; color: var(--navy);
  transition: border-color 0.15s, transform 0.15s; }
a.contact-card:hover { border-color: var(--gold); transform: translateX(3px); }
.contact-card-label { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #b8860b; margin-bottom: 0.2rem; }
.contact-card strong { font-weight: 600; font-size: 0.98rem; }

.contact-form-panel { background: #fff; border: 1px solid #e8e4da; border-radius: 10px;
  padding: 2.25rem 2.5rem; }
.contact-form-panel h2 { font-size: 1.3rem; margin: 0; }

@media (max-width: 900px) {
  .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .faq-aside, .contact-aside { position: static; }
  .contact-form-panel { padding: 1.5rem; }
}

/* PLATFORM V3: o singură suprafață — documentul se contopește cu pagina (cerință: o singură culoare) */
.app-body { background: #fffdf8; }
[data-app-page] { background: none; border: 0; box-shadow: none; border-radius: 0;
  padding: 1rem 1.25rem 0; margin-top: 0; margin-bottom: 1.5rem; }
.dash-page[data-app-page] { padding: 1.25rem clamp(1.25rem, 3.5vw, 3rem) 2.5rem; }

/* progress tracker dashboard (stil Common App) */
.dash-track { list-style: none; display: flex; margin: 0 0 1.5rem; padding: 0; max-width: 640px; }
.dash-track li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  position: relative; text-align: center; }
.dash-track li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px;
  background: #e3ddcd; }
.dash-track li:first-child::before { display: none; }
.dash-track li.is-done::before, .dash-track li.is-current::before { background: var(--navy); }
.dt-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: #fff; border: 2px solid #e3ddcd; color: #9b9484;
  font-size: 0.78rem; font-weight: 700; position: relative; z-index: 1; }
.is-done .dt-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.is-current .dt-dot { border-color: var(--gold); background: var(--gold); color: var(--navy);
  box-shadow: 0 0 0 4px rgba(253, 192, 2, 0.22); }
.dt-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #9b9484; }
.is-done .dt-label, .is-current .dt-label { color: var(--navy); }
.ov-days { color: #b8860b; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; margin: 0 0 0.4rem; }
@media (max-width: 560px) { .dt-label { font-size: 0.58rem; } }

/* resurse: form publish (secretariat + chair) + liste delegat */
.res-form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.res-form input[type="text"], .res-form input:not([type]), .res-form input[type="url"],
.res-form input[type="datetime-local"], .res-form input[type="number"],
.res-form select { padding: 0.55rem 0.8rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; background: #fff; }
.coach-slot { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0.95rem; border: 1px solid #e6e1d5; border-radius: 8px; margin-bottom: 0.6rem; }
.coach-slot .btn { flex: none; }
.res-form #rf-title { flex: 1; min-width: 220px; }
.res-form input[type="file"] { font-size: 0.85rem; }
.res-group { margin: 1.25rem 0 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #b8860b; }
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list li { padding: 0.45rem 0; border-bottom: 1px solid #efeadd; }
.res-list li:last-child { border-bottom: 0; }
.res-list a { font-weight: 600; }

/* dashboard: titlul + salutul în coloana stângă — dreapta începe la același nivel cu stânga */
.dash-aside { position: sticky; top: 84px; align-self: start; }
.dash-aside .eyebrow { margin-bottom: 0.4rem; }
.dash-hello { margin: 0.5rem 0 1.5rem; font-size: 0.95rem; color: var(--muted); }
.dash-shell { margin-top: 0.5rem; }
.dash-aside .dash-nav { position: static; }
/* ambele coloane sticky: coloana mai scurtă rămâne vizibilă (coboară odată cu scroll-ul)
   cât timp derulezi coloana mai lungă — fără spațiu gol sub ea */
.dash-content.dash-sticky { position: sticky; top: 84px; align-self: start; }
@media (max-width: 720px) { .dash-aside, .dash-content.dash-sticky { position: static; } }

/* ---- Platformă pe TELEFON: o coloană + nav lateral ca drawer ☰ ----
   Plasat DUPĂ regulile .dash-aside de mai sus ca `position:fixed` să nu fie suprascris. */
@media (max-width: 820px) {
  .dash-page { padding: 1.1rem 1rem 3rem; }
  .dash-shell { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .dash-mnav { display: flex; align-items: center; gap: 0.55rem; width: 100%; position: sticky;
    top: 56px; z-index: 55; background: #fff; border: 1px solid #e8e4da; border-radius: 11px;
    padding: 0.75rem 0.95rem; margin-bottom: 1.1rem; font: inherit; font-weight: 700; font-size: 1rem;
    color: var(--navy); cursor: pointer; box-shadow: 0 3px 10px rgba(1, 16, 56, 0.06); text-align: left; }
  .dash-mnav .ico { font-size: 1.2rem; line-height: 1; }
  .dash-mnav .cur { color: var(--muted); font-weight: 500; margin-left: 0.15rem; }
  .dash-aside { position: fixed; top: 0; left: 0; width: 85vw; max-width: 330px; margin: 0;
    height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
    background: var(--ivory); z-index: 250; transform: translateX(-100%); transition: transform 0.25s ease;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 1.4rem 1.25rem 2rem; box-shadow: 0 0 55px rgba(1, 16, 56, 0.35); border-right: 1px solid #e8e4da; }
  .dash-aside.open { transform: translateX(0); }
  .dash-aside .section-title { font-size: 1.45rem; }
  .dash-drawer-bg { display: block; position: fixed; inset: 0; background: rgba(1, 16, 56, 0.5);
    z-index: 249; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  .dash-drawer-bg.open { opacity: 1; pointer-events: auto; }
  .dash-aside .dash-nav { position: static; flex-direction: column; gap: 2px; }
  .dash-aside .dash-nav button, .dash-aside .dash-nav a { width: 100%; border-left: 3px solid transparent;
    border-bottom: 0; border-radius: 0 6px 6px 0; padding: 0.72rem 0.9rem; font-size: 1rem; }
  .dash-aside .dash-nav button.is-active { border-left-color: var(--gold); border-bottom-color: transparent; }
  .app-topbar-right { gap: 0.7rem; font-size: 0.82rem; }
  #topbar-user { display: none; }
  .app-topbar .brand em { display: none; }
  #adm-stats, .adm-stats { flex-wrap: wrap; }
}

/* meniu dashboard categorizat pe roluri + newsroom drafturi + anunțuri */
.dash-group { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: #b8860b; margin: 1.1rem 0 0.3rem; padding-left: 0.9rem; }
.dash-nav .dash-group:first-child { margin-top: 0; }
.chip { display: inline-block; border: 1px solid; border-radius: 999px; padding: 0.05rem 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.ann-item, .review-item { border-top: 1px solid #efeadd; padding: 0.8rem 0; }
.ann-head { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.ann-head .ann-meta { color: #9b9484; font-size: 0.8rem; margin-left: auto; flex: none; }
.ann-head button { flex: none; }
.ann-body { margin: 0.35rem 0 0; color: var(--ink); font-size: 0.95rem; white-space: pre-line; }
.review-body { margin-top: 0.6rem; color: var(--ink); font-size: 0.95rem; }
.review-item summary { cursor: pointer; color: var(--navy); font-size: 0.9rem; margin-top: 0.4rem; }

/* galerie 2025 — masonry pe coloane + lightbox nativ <dialog> */
.gal-grid { columns: 3 300px; column-gap: 0.9rem; margin-top: 2rem; }
.gal-item { display: block; margin-bottom: 0.9rem; border-radius: 6px; overflow: hidden;
  break-inside: avoid; background: #e8e4da; }
.gal-item img { width: 100%; display: block; transition: transform 0.25s, filter 0.25s; }
.gal-item:hover img { transform: scale(1.03); filter: brightness(1.05); }
#lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; overflow: visible; margin: auto; }
#lightbox::backdrop { background: rgba(1, 16, 56, 0.93); }
#lightbox img { max-width: 92vw; max-height: 84vh; display: block; margin: 0 auto;
  border-radius: 4px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }
.lb-bar { display: flex; justify-content: center; gap: 0.75rem; margin-top: 0.9rem; }
.lb-bar button { background: none; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff;
  border-radius: 4px; padding: 0.35rem 1.1rem; font: inherit; font-size: 0.9rem; cursor: pointer; }
.lb-bar button:hover { border-color: var(--gold); color: var(--gold); }

/* Digital ID — legitimația de conferință */
.tmun-id { max-width: 440px; background: var(--navy); color: #fff; border-radius: 14px;
  overflow: hidden; box-shadow: 0 18px 50px rgba(1, 16, 56, 0.35); }
.tid-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.06); border-bottom: 2px solid var(--gold);
  font-size: 0.58rem; letter-spacing: 0.18em; font-weight: 700; text-transform: uppercase; color: var(--gold); }
.tid-head img { height: 24px; filter: brightness(0) invert(1); flex: none; }
.tid-body { display: flex; gap: 1.2rem; padding: 1.4rem 1.25rem; align-items: center; }
.tid-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none;
  background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold); }
.tid-photo img { width: 100%; height: 100%; object-fit: cover; }
.tid-photo .tid-emblem { width: 58%; height: 58%; object-fit: contain; opacity: 0.7; filter: brightness(0) invert(1); }
.tid-role { color: var(--gold); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; margin: 0 0 0.3rem; }
.tid-info h3 { color: #fff; margin: 0 0 0.45rem; font-size: 1.3rem; }
.tid-line { margin: 0.12rem 0; color: #cfd6e4; font-size: 0.88rem; }
.tid-line a { color: var(--gold); text-decoration: none; }
.tid-foot { display: flex; justify-content: space-between; padding: 0.7rem 1.25rem;
  background: rgba(0, 0, 0, 0.28); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #9aa6c8; }
@media (max-width: 480px) { .tid-body { flex-direction: column; text-align: center; } }

/* avatar în panoul Profile */
.pf-avatar-row { display: flex; align-items: center; gap: 1.1rem; }
.pf-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar .pf-avatar-emblem { width: 55%; height: 55%; object-fit: contain; opacity: 0.7; filter: brightness(0) invert(1); }

/* ===== MUN Command — chair live console ===== */
.cmd-bar { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.cmd-committee { font-family: var(--serif); font-weight: 900; font-size: 1.15rem; color: var(--navy); letter-spacing: 0.04em; }
.cmd-mode { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.cmd-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) { .cmd-grid { grid-template-columns: 1fr; } }
.cmd-col h4 { margin: 0 0 0.5rem; }
.cmd-gsl { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.cmd-gsl li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; border: 1px solid #e8e4da; border-radius: 6px; margin-bottom: 0.35rem; }
.cmd-gsl li.speaking { border-color: var(--gold); background: #fff7df; }
.cmd-gsl li.spoke { opacity: 0.5; }
.cmd-gsl .sp-ctrls button { background: none; border: 1px solid #d6d1c4; border-radius: 4px; padding: 0.05rem 0.4rem; cursor: pointer; margin-left: 0.15rem; }
.cmd-requests { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cmd-timer { margin-bottom: 1rem; }
.cmd-timer-ctrls { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.35rem; }
.cmd-time { font-family: var(--serif); font-size: 2.4rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
/* Timer hits 0 (spec §7): brief red flash. Sound (beep()) fires regardless of this animation. */
.cmd-time.time-up { animation: cmd-time-up 0.6s ease; }
@keyframes cmd-time-up {
  0%, 100% { color: inherit; text-shadow: none; }
  50% { color: #d92626; text-shadow: 0 0 14px rgba(217, 38, 38, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .cmd-time.time-up { animation: none; }
}
.cmd-points .pt { padding: 0.35rem 0; border-bottom: 1px solid #f0ece2; font-size: 0.9rem; }
.cmd-points .pt button { background: none; border: 1px solid #d6d1c4; border-radius: 4px; cursor: pointer; padding: 0.05rem 0.4rem; }
.cmd-attendance { list-style: none; padding: 0; margin: 0.5rem 0 0; max-height: 60vh; overflow: auto; }
.cmd-attendance li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid #f0ece2; font-size: 0.9rem; }
.att-toggle { display: inline-flex; gap: 0.2rem; }
.att { border: 1px solid #d6d1c4; background: #fff; border-radius: 4px; padding: 0.1rem 0.4rem; cursor: pointer; font-size: 0.78rem; }
.att.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge-ft { background: var(--un-blue); color: #fff; font-size: 0.65rem; padding: 0.05rem 0.35rem; border-radius: 99px; }
.badge-ns { color: #b8860b; font-size: 0.65rem; }
.cmd-tally { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }

/* motions & voting */
.cmd-motions-area { margin-top: 1.5rem; border-top: 1px solid #e8e4da; padding-top: 1rem; }
.cmd-motion-add { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.75rem; }
.cmd-motion-add input, .cmd-motion-add select { padding: 0.4rem 0.5rem; border: 1px solid #d6d1c4; border-radius: 6px; font: inherit; }
.cmd-motions { list-style: none; padding: 0; margin: 0; }
.cmd-motion { border: 1px solid #e8e4da; border-radius: 6px; padding: 0.5rem 0.6rem; margin-bottom: 0.5rem; }
.cmd-motion-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; }
.cmd-motion-type { background: var(--navy); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.1rem 0.45rem; border-radius: 99px; }
.cmd-motion-ctrls { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.cmd-motion-ctrls select { padding: 0.3rem 0.4rem; border: 1px solid #d6d1c4; border-radius: 6px; font: inherit; font-size: 0.85rem; }
.cmd-motion-ctrls .btn { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

.cmd-vote { margin-top: 1rem; border: 1px solid var(--gold); border-radius: 8px; background: #fffdf5; padding: 0.75rem 0.85rem; }
.cmd-vote-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.cmd-vote-tally { font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.cmd-vote-preview { font-weight: 800; letter-spacing: 0.03em; margin: 0.3rem 0 0.6rem; }
.cmd-vote-preview.passed, .cmd-vote-res.passed { color: #157347; }
.cmd-vote-preview.failed, .cmd-vote-res.failed { color: #b02a37; }
.cmd-vote-manual { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.cmd-vote-manual label { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--muted); gap: 0.2rem; }
.cmd-vote-manual input { width: 5rem; padding: 0.4rem 0.5rem; border: 1px solid #d6d1c4; border-radius: 6px; font: inherit; }
.cmd-vote-manual .btn, .cmd-vote-manual p { flex-basis: 100%; }
.cmd-ballots { list-style: none; padding: 0; margin: 0.3rem 0 0.75rem; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.25rem; max-height: 40vh; overflow: auto; }
.cmd-ballot { display: flex; justify-content: space-between; gap: 0.4rem; padding: 0.2rem 0.4rem;
  border: 1px solid #f0ece2; border-radius: 4px; font-size: 0.82rem; }
.cmd-ballot-choice { text-transform: uppercase; font-size: 0.7rem; font-weight: 700; }
.cmd-ballot.for { border-color: #157347; } .cmd-ballot.for .cmd-ballot-choice { color: #157347; }
.cmd-ballot.against { border-color: #b02a37; } .cmd-ballot.against .cmd-ballot-choice { color: #b02a37; }
.cmd-ballot.abstain .cmd-ballot-choice { color: var(--muted); }
.cmd-ballot.pending { opacity: 0.6; }
.cmd-vote-hist { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid #f0ece2; font-size: 0.88rem; }
.cmd-vote-res { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; }
.live-dot { color: #d0202f; display: inline-block; animation: pj-pulse 1.4s ease-in-out infinite; }
.ls-attend { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0; flex-wrap: wrap; }
.ls-now { margin: 0.75rem 0; }
.ls-actions { display: flex; align-items: center; gap: 0.6rem; margin: 0.75rem 0; flex-wrap: wrap; }

.ls-motion { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 1rem 0 0.5rem;
  border-top: 1px solid #e8e4da; padding-top: 1rem; }
.ls-motion select, .ls-motion input { padding: 0.4rem 0.5rem; border: 1px solid #d6d1c4; border-radius: 6px; font: inherit; }

.ls-vote { margin-top: 1rem; border: 1px solid var(--gold); border-radius: 8px; background: #fffdf5; padding: 0.75rem 0.85rem; }
.ls-vote-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.ls-vote-ineligible { color: var(--muted); font-style: italic; margin: 0; }
.ls-vote-choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ls-vote-btn { flex: 1 1 8rem; min-height: 3.2rem; padding: 0.75rem 1rem; border-radius: 8px; border: 2px solid #d6d1c4;
  background: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; letter-spacing: 0.02em; }
.ls-vote-btn--for.is-selected { border-color: #157347; background: #157347; color: #fff; }
.ls-vote-btn--against.is-selected { border-color: #b02a37; background: #b02a37; color: #fff; }
.ls-vote-btn--abstain.is-selected { border-color: var(--muted); background: var(--muted); color: #fff; }
.ls-vote-result { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; margin: 0.2rem 0; }
.ls-vote-result.passed { color: #157347; }
.ls-vote-result.failed { color: #b02a37; }

/* ===== MUN Command — projector (read-only big screen) ===== */
/* ===== Command back-screen / projector (SP3 C) — read-only big screen ===== */
body:has(.cmd-projector-page) .cmd-topbar { display: none; }
body:has(.cmd-projector-page) .cmd-main { padding: 0; }
.cmd-projector-page { --pj-line: rgba(255,255,255,.12); }
.pj { min-height: 100vh; background: radial-gradient(120% 130% at 80% -10%, #0a2a6e 0%, #02143c 45%, #010a22 100%);
  color: #eaf0ff; display: grid; grid-template-rows: auto 1fr; font-family: var(--sans); }
.pj-emblem { width: 2.4vw; min-width: 34px; aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #ffe488); color: var(--navy); font-weight: 800; font-size: 1vw; }
.pj-agenda { display: flex; align-items: center; gap: 1.4vw; padding: 2.2vh 3vw; border-bottom: 1px solid var(--pj-line); }
.pj-agenda-topic { font-weight: 800; font-size: clamp(16px, 1.9vw, 30px); letter-spacing: .01em; }
.pj-agenda-sub { color: #9fb0d8; font-size: clamp(10px, 1.1vw, 15px); letter-spacing: .06em; text-transform: uppercase; margin-top: .3vh; }
.pj-pill { margin-left: auto; font-size: clamp(11px, 1.1vw, 16px); font-weight: 700; padding: .7vh 1.2vw; border-radius: 999px;
  background: rgba(74,163,255,.16); color: #9fd0ff; border: 1px solid rgba(74,163,255,.35); white-space: nowrap; }
.pj-pill-mod { background: rgba(176,107,255,.16); color: #d3b4ff; border-color: rgba(176,107,255,.35); }
.pj-pill-unmod { background: rgba(253,192,2,.16); color: #ffdd7a; border-color: rgba(253,192,2,.35); }
.pj-pill-vote { background: rgba(46,199,107,.16); color: #7ff0b0; border-color: rgba(46,199,107,.35); }
.pj-body { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 0; }
.pj-left { padding: clamp(24px, 6vh, 90px) 3vw; display: flex; flex-direction: column; justify-content: center; }
.pj-now-lbl { font-size: clamp(11px, 1.3vw, 18px); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pj-now { display: flex; align-items: center; gap: 1.2vw; margin: 1.4vh 0 .6vh; }
.pj-now b { font-size: clamp(28px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pj-flag { font-size: clamp(24px, 3.4vw, 52px); line-height: 1; }
.pj-timer { font-size: clamp(64px, 13vw, 168px); font-weight: 800; letter-spacing: -.03em; line-height: .9; color: #fff;
  font-variant-numeric: tabular-nums; text-shadow: 0 8px 40px rgba(253,192,2,.22); }
.pj-bar { height: clamp(8px, 1vh, 12px); border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 1.6vh; max-width: 46vw; }
.pj-bar > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), #ffde7c); transition: width .25s linear; }
.pj-vote { display: flex; gap: 1.4vw; margin-top: 3vh; }
.pj-v { font-size: clamp(15px, 1.7vw, 26px); font-weight: 700; padding: 1vh 1.6vw; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--pj-line); }
.pj-v b { margin-left: .5vw; font-variant-numeric: tabular-nums; }
.pj-v-for { color: #7ff0b0; } .pj-v-against { color: #ff9aa6; } .pj-v-abs { color: #9fb0d8; }
.pj-right { border-left: 1px solid var(--pj-line); background: rgba(255,255,255,.02);
  padding: clamp(24px, 6vh, 84px) 2.6vw; display: flex; flex-direction: column; }
.pj-right-h { font-size: clamp(11px, 1.2vw, 17px); letter-spacing: .18em; text-transform: uppercase; color: #9fb0d8; font-weight: 700; margin-bottom: 2vh; }
.pj-upnext { display: flex; flex-direction: column; overflow: hidden; }
.pj-up { display: flex; align-items: center; gap: 1.1vw; padding: clamp(8px, 1.5vh, 16px) 0; border-bottom: 1px solid var(--pj-line); }
.pj-up:last-child { border-bottom: 0; }
.pj-up-o { font-size: clamp(14px, 1.7vw, 24px); font-weight: 800; color: var(--gold); width: 1.6vw; min-width: 22px; }
.pj-up b { font-size: clamp(15px, 1.9vw, 28px); font-weight: 700; }
.pj-up .pj-flag { font-size: clamp(18px, 2vw, 30px); }
.pj-waiting { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; text-align: center; }
.pj-emblem-lg { width: 8vw; min-width: 70px; font-size: 3vw; border-radius: 14px; }
.pj-wait-cmt { font-weight: 800; font-size: clamp(28px, 5vw, 64px); color: #fff; }
.pj-wait-msg { color: #9fb0d8; font-size: clamp(14px, 1.6vw, 22px); }
@media (max-width: 720px) { .pj-body { grid-template-columns: 1fr; } .pj-right { border-left: 0; border-top: 1px solid var(--pj-line); } }

/* Command topbar: real white wordmark logo (already white → no invert filter) */
.cmd-topbar .brand .cmd-brand-logo { height: 34px; width: auto; filter: none; }
.cmd-topbar .brand em { margin-left: 0.5rem; padding-left: 0.6rem; border-left: 1px solid rgba(255,255,255,.25); }

/* ===== Command secretariat admin panel (SP3 D) ===== */
.cv2-adm .cv2-card { background: #0a1c4d; border: 1px solid rgba(255,255,255,.10); }
.cv2-adm .cv2-card-title { color: #fff; }
.cv2-adm-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .cv2-adm-grid { grid-template-columns: 1fr; } }
.cv2-adm-table { width: 100%; border-collapse: collapse; }
.cv2-adm-table td { padding: 0.7rem 0.6rem; border-top: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
.cv2-adm-table tr:first-child td { border-top: 0; }
.cv2-adm-cmt { font-weight: 800; font-size: 0.95rem; color: #fff; }
.cv2-adm-sub { color: #9fb0d8; font-size: 0.78rem; margin-top: 2px; }
.cv2-adm-now { font-weight: 600; font-size: 0.9rem; color: #eaf0ff; }
.cv2-adm-tm { font-variant-numeric: tabular-nums; }
.cv2-adm-st { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.cv2-adm-st-gsl { background: rgba(74,163,255,.16); color: #9fd0ff; }
.cv2-adm-st-mod { background: rgba(176,107,255,.16); color: #d3b4ff; }
.cv2-adm-st-unmod { background: rgba(253,192,2,.16); color: #ffdd7a; }
.cv2-adm-st-vote { background: rgba(46,199,107,.16); color: #7ff0b0; }
.cv2-adm-st-idle { background: rgba(255,255,255,.08); color: #9fb0d8; }
.cv2-adm-enter { font-size: 0.78rem; padding: 6px 12px; }
.cv2-adm-logs { display: flex; flex-direction: column; max-height: 420px; overflow: auto; }
.cv2-adm-log { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.5rem 0.2rem; border-top: 1px solid rgba(255,255,255,.07); font-size: 0.82rem; }
.cv2-adm-log:first-child { border-top: 0; }
.cv2-adm-log-t { color: #9fb0d8; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.cv2-adm-log-who { font-weight: 700; color: #fff; flex: 0 0 auto; }
.cv2-adm-log-wt { color: #c9d4ee; flex: 1 1 auto; }
.cv2-adm-log-cmt { color: var(--gold); font-size: 0.68rem; font-weight: 700; letter-spacing: .04em; flex: 0 0 auto; }
.cv2-muted { color: #9fb0d8; font-size: 0.85rem; }
.cv2-adm-expand { background: none; border: 0; color: #fff; font-weight: 800; font-size: 0.95rem; cursor: pointer; padding: 0; text-align: left; }
.cv2-adm-roster td { padding: 0.4rem 0.6rem 0.9rem !important; }
.cv2-adm-roster-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px; border-radius: 8px; }
.cv2-adm-roster-row:nth-child(odd) { background: rgba(255,255,255,.03); }
.cv2-adm-roster-row > span:first-child { color: #eaf0ff; font-size: 0.86rem; }
@keyframes pj-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Digital ID — variante vizuale per rol */
/* Chairperson: banda de antet plină, aurie */
.tid--chair { border: 2px solid var(--gold); }
.tid--chair .tid-head { background: var(--gold); color: var(--navy); }
.tid--chair .tid-head img { filter: none; }
/* Press: card ivory/alb ca staff-ul, cu doar un accent subtil (albastru) pe rol */
.tid--press { background: #fffdf8; color: var(--ink); border: 1px solid #e3ddcd; box-shadow: 0 12px 36px rgba(1, 16, 56, 0.12); }
.tid--press .tid-head { background: var(--navy); color: #eaeefb; }
.tid--press .tid-photo .tid-emblem { filter: none; opacity: 0.5; }
.tid--press .tid-role { color: var(--un-blue); }
.tid--press .tid-info h3 { color: var(--navy); }
.tid--press .tid-line { color: var(--muted); }
.tid--press .tid-foot { background: #efeadd; color: #9b9484; }
/* Secretariat: card auriu, text navy */
.tid--secretariat { background: linear-gradient(135deg, #fdc002, #e8ae00); color: var(--navy); }
.tid--secretariat .tid-head { background: var(--navy); color: var(--gold); }
.tid--secretariat .tid-photo { border-color: var(--navy); background: rgba(1, 16, 56, 0.15); }
.tid--secretariat .tid-role { color: var(--navy); }
.tid--secretariat .tid-info h3 { color: var(--navy); }
.tid--secretariat .tid-line { color: #3a3413; }
.tid--secretariat .tid-line a { color: var(--navy); font-weight: 600; }
.tid--secretariat .tid-foot { background: rgba(1, 16, 56, 0.18); color: var(--navy); }
/* Staff/board (voluntari, PR): ivory, sobru */
.tid--staff { background: #fffdf8; color: var(--ink); border: 1px solid #e3ddcd; box-shadow: 0 12px 36px rgba(1, 16, 56, 0.12); }
.tid--staff .tid-head { background: var(--navy); }
.tid--staff .tid-photo { border-color: var(--navy); background: #efeadd; }
.tid--staff .tid-photo .tid-emblem { filter: none; opacity: 0.5; }
.tid--staff .tid-role { color: #b8860b; }
.tid--staff .tid-info h3 { color: var(--navy); }
.tid--staff .tid-line { color: var(--muted); }
.tid--staff .tid-line a { color: var(--navy); }
.tid--staff .tid-foot { background: #efeadd; color: #9b9484; }

/* platformă fără carduri: conținut direct pe pagină, secțiuni separate de titluri + hairline.
   Excepții intenționate: .tmun-id (legitimația e un obiect), .app-warn / .checkout-box (callouts). */
.app-card { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.app-card > h3:first-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 1.1rem; }
.app-card > h3:first-child::after { content: ""; display: block; width: 30px; height: 2px;
  background: var(--gold); margin-top: 0.5rem; }
.app-card + .app-card, .dash-content .app-card + .app-card {
  margin-top: 2rem !important; border-top: 1px solid #eee7d9; padding-top: 1.75rem; }

/* overview editorial: statusul ca declarație, faptele ca bandă compactă */
.dash-content [data-panel="overview"], .dash-content [data-panel="id"],
.dash-content [data-panel="application"], .dash-content [data-panel="resources"] { max-width: 780px; }
.ov-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: #b8860b; margin: 1.5rem 0 0.6rem; }
[data-app-page] h2.ov-headline { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 0.55rem; line-height: 1.15; }
.ov-sub { color: var(--muted); max-width: 54ch; margin: 0; }
.ov-cta { margin-top: 1.6rem; }
.ov-eyebrow.is-urgent { color: #b00020; }
.ov-urgency { margin: 0.9rem 0 0; font-size: 0.85rem; color: #8a5a00; background: #fff7df;
  border: 1px solid #f2d98a; border-radius: 8px; padding: 0.5rem 0.8rem; display: inline-block; }

/* Overview — carduri KPI live pe rol */
.ov-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin-top: 1.75rem; }
.ov-card { display: flex; flex-direction: column; gap: 0.1rem; padding: 1rem 1.1rem; background: #fff;
  border: 1px solid #e8e4da; border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s, transform 0.1s; }
.ov-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.ov-card.is-urgent { border-color: #f2b0b0; background: #fdf6f6; }
.ov-card-value { font-family: var(--serif); font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.ov-card.is-urgent .ov-card-value { color: #a12626; }
.ov-card-label { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-top: 0.35rem; }
.ov-card-sub { font-size: 0.76rem; color: var(--muted); }

/* Overview — checklist de completare */
.ov-checklist { margin-top: 1.5rem; }
.ovc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ovc-head h3 { margin: 0; font-size: 1.05rem; }
.ovc-pct { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.ovc-bar { height: 8px; background: #eee7d9; border-radius: 999px; overflow: hidden; margin: 0.7rem 0 1rem; }
.ovc-bar > span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.3s; }
.ovc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ovc-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--muted); }
.ovc-list li.is-done { color: var(--ink); }
.ovc-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid #d6d1c4;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #fff; }
.ovc-list li.is-done .ovc-dot { background: #1a6b38; border-color: #1a6b38; }
.ov-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; margin-top: 3rem; padding: 1rem 0.1rem;
  border-top: 1px solid #eee7d9; border-bottom: 1px solid #eee7d9;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #9b9484; }
.ov-facts #ov-days { color: #b8860b; font-weight: 700; }
.ov-facts a { color: #9b9484; text-decoration: none; text-transform: none; letter-spacing: 0.04em; }
.ov-facts a:hover { color: var(--navy); }

/* selecturi custom — proprietăți explicite ca să învingă shorthand-ul `background:#fff` din regulile vechi */
[data-app-page] select, .form-field select, .res-form select, .exp-add select, .chair-add select {
  -webkit-appearance: none !important; appearance: none !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23011038' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 12px 8px !important;
  padding-right: 2.3rem !important;
  cursor: pointer; }
.app-table select { background-position: right 0.45rem center !important; padding-right: 1.7rem !important; }

/* exp-add: rând compact, nu câmpuri full-width stivuite */
.form-field .exp-add input, .form-field .exp-add select { width: auto; }
.form-field .exp-add input[type="number"] { width: 5.6rem; }
.form-field .exp-add #pfx-name, .form-field .exp-add #stx-name { flex: 1; min-width: 180px; width: auto; }

/* dropdown custom (.cs) — lista deschisă în tema site-ului */
.cs { position: relative; display: block; }
.exp-add .cs, .res-form .cs, .chair-add .cs { display: inline-block; min-width: 130px; }
.cs select { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px;
  opacity: 0; pointer-events: none; padding: 0 !important; }
.cs-btn { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.95rem;
  color: var(--ink); background-color: #fff; border: 1px solid #d8d2c2; border-radius: 4px;
  padding: 0.6rem 2.3rem 0.6rem 0.85rem; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23011038' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 12px 8px; }
.cs-btn:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(253, 192, 2, 0.22); }
.cs-btn .cs-ph { color: #9b9484; }
.cs-list { position: absolute; z-index: 90; top: calc(100% + 5px); left: 0; min-width: 100%;
  max-height: 270px; overflow: auto; background: #fff; border: 1px solid #e3ddcd;
  border-top: 2px solid var(--gold); border-radius: 8px; padding: 0.3rem;
  box-shadow: 0 16px 44px rgba(1, 16, 56, 0.16); }
.cs-opt { display: block; width: 100%; text-align: left; background: none; border: 0;
  font: inherit; font-size: 0.92rem; color: var(--ink); padding: 0.48rem 0.7rem;
  border-radius: 6px; cursor: pointer; white-space: nowrap; }
.cs-opt:hover, .cs-opt:focus-visible, .cs-opt.is-active { background: #fff7df; color: var(--navy); outline: none; }
.cs-opt.is-sel { font-weight: 600; color: var(--navy); }
.cs-opt.is-sel::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 0.45rem; }
.cs-opt.is-dis { opacity: 0.4; cursor: default; }

/* pasul „Your details": secțiuni-card + contor de cuvinte pentru motivație */
#profile-form .pf-section { padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; }
#profile-form .pf-section > h3:first-child { margin-top: 0; }
@media (max-width: 560px) { #profile-form .pf-section { padding: 1.1rem 1.1rem; } }
.pf-wordcount { margin: 0.35rem 0 0; font-size: 0.78rem; color: #9b9484; text-align: right; }
.pf-wordcount.over { color: #b00020; font-weight: 600; }

/* „Submit your documents": sub-secțiuni-card ca la pașii din wizardul de aplicare */
#ov-docs .doc-section { background: #fff; border: 1px solid #e3ddcd; border-left: 3px solid var(--navy);
  border-radius: 3px; padding: 1.4rem 1.5rem; margin-top: 1.25rem; }
#ov-docs .doc-section > h3 { margin: 0 0 0.4rem; font-size: 1rem; }
#ov-docs .doc-section > h3::after { content: ""; display: block; width: 30px; height: 2px;
  background: var(--gold); margin-top: 0.5rem; }
#ov-docs .doc-hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.1rem; }
#ov-docs .doc-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
#ov-docs .doc-download { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0; }
#ov-docs .doc-section .form-field label .muted { font-weight: 400; font-size: 0.82rem; text-transform: none; letter-spacing: 0.02em; }
#ov-docs .doc-preview { max-width: 160px; border-radius: 8px; margin-top: 0.5rem; }
#ov-docs .doc-section .app-status { margin-top: 0.75rem; }
@media (max-width: 560px) { #ov-docs .doc-section { padding: 1.15rem 1.15rem; } }

/* Statistics: contoare + bare */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9b9484; }
.stat-bar-row { display: flex; align-items: center; gap: 0.8rem; margin: 0.45rem 0; }
.stat-bar-label { width: 4.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--navy); }
.stat-bar { flex: 1; height: 10px; background: #efeadd; border-radius: 999px; overflow: hidden; }
.stat-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e8ae00); border-radius: 999px; }
.stat-bar-num { width: 3.4rem; text-align: right; font-size: 0.8rem; color: var(--muted); }
.stat-days { display: flex; align-items: flex-end; gap: 6px; min-height: 90px; }
.stat-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-day span { display: block; width: 16px; min-height: 3px; background: var(--navy); border-radius: 3px 3px 0 0; }
.stat-day em { font-style: normal; font-size: 0.62rem; color: #9b9484; }

/* file input custom (.cf) */
.cf { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.cf input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-btn { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--navy); background: #fff;
  border: 1px solid var(--navy); border-radius: 4px; padding: 0.5rem 1.15rem; cursor: pointer;
  transition: background 0.15s, border-color 0.15s; }
.cf-btn:hover { background: var(--gold); border-color: var(--gold); }
.cf-name { font-size: 0.85rem; color: #9b9484; }
.cf-name.has-file { color: var(--ink); font-weight: 500; }

/* calendar custom (.cd) */
.cd { position: relative; display: block; }
.cd input[type="date"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0 !important; }
.cd-btn { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.95rem; color: var(--ink);
  background-color: #fff; border: 1px solid #d8d2c2; border-radius: 4px; padding: 0.6rem 2.3rem 0.6rem 0.85rem; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%23011038' stroke-width='1.6'%3E%3Crect x='1.5' y='2.5' width='12' height='11' rx='2'/%3E%3Cpath d='M1.5 6h12M5 1v3M10 1v3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; }
.cd-btn:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(253, 192, 2, 0.22); }
.cd-pop { position: absolute; z-index: 95; top: calc(100% + 5px); left: 0; width: 300px;
  background: #fff; border: 1px solid #e3ddcd; border-top: 2px solid var(--gold); border-radius: 10px;
  padding: 0.8rem; box-shadow: 0 16px 44px rgba(1, 16, 56, 0.16); }
.cd-head { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; }
.cd-head .cs { flex: 1; }
.cd-head .cs-btn { padding: 0.4rem 1.7rem 0.4rem 0.6rem; font-size: 0.85rem; background-position: right 0.5rem center; }
.cd-nav { flex: none; width: 30px; height: 30px; border: 1px solid #e3ddcd; border-radius: 6px;
  background: #fff; font-size: 1rem; color: var(--navy); cursor: pointer; }
.cd-nav:hover { border-color: var(--gold); background: #fff7df; }
.cd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cd-dow span { text-align: center; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  color: #9b9484; padding: 0.2rem 0 0.35rem; }
.cd-day { border: 0; background: none; font: inherit; font-size: 0.85rem; color: var(--ink);
  width: 100%; aspect-ratio: 1; border-radius: 50%; cursor: pointer; }
.cd-day:hover { background: #fff7df; color: var(--navy); }
.cd-day.is-sel { background: var(--gold); color: var(--navy); font-weight: 700; }

/* photo picker integrat (.pp): avatarul e butonul; crop-ul se face în același cerc */
.pp { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.pp-side { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 0.7rem; }
.pp-note { color: var(--muted); font-size: 0.85rem; margin: 0; max-width: 42ch; line-height: 1.5; }
.pp input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pp-circle { position: relative; width: 150px; height: 150px; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--navy); border: 3px solid var(--gold); cursor: pointer; }
.pp-circle > img { width: 100%; height: 100%; object-fit: cover; }
.pp-circle .pf-avatar-emblem { width: 52%; height: 52%; object-fit: contain; opacity: 0.65;
  filter: brightness(0) invert(1); position: absolute; inset: 0; margin: auto; }
.pp-crop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; touch-action: none; cursor: grab; }
.pp-crop:active { cursor: grabbing; }
/* imaginea din cropper trebuie poziționată absolut ca zoom-ul (width) și drag-ul (left/top) să aibă efect */
.pp-crop img { position: absolute; top: 0; left: 0; max-width: none; }
.pp-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.4rem 0 0.5rem;
  text-align: center; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap;
  text-transform: uppercase; color: #fff; background: rgba(1, 16, 56, 0.65);
  opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.pp-circle:hover .pp-overlay { opacity: 1; }
.pp-circle .pf-avatar-emblem ~ .pp-overlay, .pp-circle:has(.pf-avatar-emblem:not([hidden])) .pp-overlay { opacity: 1; }
.pp-circle.is-cropping { cursor: grab; }
.pp-circle.is-cropping .pp-overlay { display: none; }
.pp .crop-controls { margin-top: 0; }

/* butonul de fișier fără nume de fișier */
.cf-btn.has-file { border-color: #1d7a34; color: #1d7a34; }
.cf-btn.has-file:hover { background: #f0f7ef; border-color: #1d7a34; }
.cf-name { display: none; }

/* exp-rows: rânduri editabile cu Add pe ultimul și coș pe restul */
.exp-rows { display: flex; flex-direction: column; gap: 0.5rem; }
/* grid cu coloane fixe → fiecare casetă e aliniată exact sub cea de deasupra */
.exp-row { display: grid; grid-template-columns: minmax(0,1fr) 128px 5.6rem 140px 38px; gap: 0.5rem; align-items: center; }
.exp-row input, .exp-row select { padding: 0.5rem 0.7rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; background: #fff; width: 100%; }
.exp-row .xr-name { min-width: 0; }
.exp-row .xr-year { width: 100%; }
.exp-row .cs { display: block; min-width: 0; width: 100%; }
@media (max-width: 600px) { .exp-row { grid-template-columns: 1fr; } .exp-row .xr-del, .exp-row .xr-add { justify-self: start; } }
.xr-del, .xr-add { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e3ddcd; border-radius: 6px; cursor: pointer; padding: 0; }
.xr-del { color: #b00020; }
.xr-del:hover { border-color: #b00020; background: #fdf2f2; }
.xr-add { color: var(--navy); }
.xr-add:hover { border-color: var(--gold); background: #fffbe9; }

/* buton Digital ID pe cardurile de board */
.board-id-link { display: inline-block; margin-top: 0.5rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #b8860b; text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 11, 0.4); padding-bottom: 1px; }
.board-id-link:hover { color: var(--navy); border-color: var(--navy); }

/* ============================================================
   DIGITAL ID v2 — badge vertical de conferință (lanyard style)
   ============================================================ */
.tmun-id { position: relative; max-width: 340px; background: var(--navy); color: #fff;
  border-radius: 20px; padding: 1.4rem 0 0; overflow: hidden; border: 0;
  box-shadow: 0 24px 60px rgba(1, 16, 56, 0.4), 0 4px 14px rgba(1, 16, 56, 0.2); }
.tid-slot { display: block; width: 58px; height: 9px; margin: 0 auto 1.2rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6); }
.tid-wm { position: absolute; right: -55px; top: 34%; width: 240px; opacity: 0.05;
  filter: brightness(0) invert(1); pointer-events: none; }
.tid-brand { text-align: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.tid-brand b { font-weight: 900; color: var(--gold); }
.tid-brand span { display: block; margin-top: 0.3rem; font-family: var(--sans); font-weight: 700;
  font-size: 0.5rem; letter-spacing: 0.3em; text-transform: uppercase; color: #9aa6c8; }
.tmun-id .tid-photo { position: relative; width: 132px; height: 132px; margin: 1.3rem auto 0;
  border-radius: 50%; overflow: hidden; border: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; }
.tmun-id .tid-photo img { width: 100%; height: 100%; object-fit: cover; }
.tmun-id .tid-photo .tid-emblem { width: 54%; height: 54%; object-fit: contain; opacity: 0.65;
  filter: brightness(0) invert(1); }
.tid-name { color: #fff; text-align: center; font-size: 1.45rem; margin: 1rem 1.25rem 0.9rem;
  letter-spacing: -0.01em; }
.tmun-id .tid-role { display: block; background: var(--gold); color: var(--navy); text-align: center;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.55rem 1rem; margin: 0; }
.tid-details { padding: 1.1rem 1.5rem 1.2rem; text-align: center; position: relative; }
.tmun-id .tid-line { margin: 0.18rem 0; color: #cfd6e4; font-size: 0.88rem; }
.tmun-id .tid-line a { color: var(--gold); text-decoration: none; }
.tmun-id .tid-foot { display: flex; justify-content: space-between; padding: 0.75rem 1.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.22);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #9aa6c8; }

/* variante pe rol — v2 */
.tid--chair { box-shadow: 0 0 0 2px var(--gold), 0 24px 60px rgba(1, 16, 56, 0.4); }
/* Press: card ivory/alb ca staff-ul, cu accent albastru doar pe rol */
.tid--press { background: #fffdf8; color: var(--ink); border: 1px solid #e3ddcd;
  box-shadow: 0 16px 44px rgba(1, 16, 56, 0.14); }
.tid--press .tid-brand { color: var(--navy); }
.tid--press .tid-brand span { color: #9b9484; }
.tid--press .tid-photo { border-color: var(--navy); background: #efeadd; }
.tid--press .tid-photo .tid-emblem { filter: none; opacity: 0.5; }
.tid--press .tid-name { color: var(--navy); }
.tid--press .tid-role { background: var(--navy); color: var(--un-blue); }
.tid--press .tid-line { color: var(--muted); }
.tid--press .tid-line a { color: var(--navy); }
.tid--press .tid-foot { border-top-color: #e3ddcd; background: #f4f0e6; color: #9b9484; }
.tid--press .tid-wm { filter: none; opacity: 0.05; }
.tid--press .tid-slot { background: #d9d2c2; border-color: #cfc7b4; box-shadow: inset 0 2px 4px rgba(0,0,0,0.15); }
.tid--secretariat { background: linear-gradient(160deg, #fdc002, #e8ae00); color: var(--navy); }
.tid--secretariat .tid-brand span { color: rgba(1, 16, 56, 0.55); }
.tid--secretariat .tid-brand b { color: var(--navy); }
.tid--secretariat .tid-photo { border-color: var(--navy); background: rgba(1, 16, 56, 0.12); }
.tid--secretariat .tid-photo .tid-emblem { filter: none; opacity: 0.55; }
.tid--secretariat .tid-name { color: var(--navy); }
.tid--secretariat .tid-role { background: var(--navy); color: var(--gold); }
.tid--secretariat .tid-line { color: #4a4213; }
.tid--secretariat .tid-line a { color: var(--navy); font-weight: 600; }
.tid--secretariat .tid-foot { border-top-color: rgba(1, 16, 56, 0.3); background: rgba(1, 16, 56, 0.14); color: rgba(1, 16, 56, 0.65); }
.tid--secretariat .tid-wm { filter: none; opacity: 0.08; }
.tid--secretariat .tid-slot { background: rgba(1, 16, 56, 0.4); border-color: rgba(1, 16, 56, 0.2); }
.tid--staff { background: #fffdf8; color: var(--ink); border: 1px solid #e3ddcd;
  box-shadow: 0 16px 44px rgba(1, 16, 56, 0.14); }
.tid--staff .tid-brand { color: var(--navy); }
.tid--staff .tid-brand span { color: #9b9484; }
.tid--staff .tid-photo { border-color: var(--navy); background: #efeadd; }
.tid--staff .tid-photo .tid-emblem { filter: none; opacity: 0.5; }
.tid--staff .tid-name { color: var(--navy); }
.tid--staff .tid-role { background: var(--navy); color: var(--gold); }
.tid--staff .tid-line { color: var(--muted); }
.tid--staff .tid-foot { border-top-color: #e3ddcd; background: #f4f0e6; color: #9b9484; }
.tid--staff .tid-wm { filter: none; opacity: 0.05; }
.tid--staff .tid-slot { background: #d9d2c2; border-color: #cfc7b4; box-shadow: inset 0 2px 4px rgba(0,0,0,0.15); }

/* ===== Digital ID — pata de culoare per departament + Head diferit de membri ===== */
.tid-dept--public-relations { --dept-accent: #e05a78; }
.tid-dept--human-resources  { --dept-accent: #12a394; }
.tid-dept--logistics        { --dept-accent: #db851f; }
.tid-dept--press            { --dept-accent: #7c5cd6; }
.tid-dept--finance          { --dept-accent: #279e63; }
.tid-dept--advisors         { --dept-accent: #3577cf; }
/* accentul departamentului: bara de rol + inelul pozei (cardurile albe: staff & press) */
.tid--staff[class*="tid-dept--"] .tid-role,
.tid--press[class*="tid-dept--"] .tid-role { background: var(--dept-accent); color: #fff; }
.tid--staff[class*="tid-dept--"] .tid-photo,
.tid--press[class*="tid-dept--"] .tid-photo { border-color: var(--dept-accent); }
/* Head of department — fără badge: doar accent mai bogat — nume colorat + ring 2px pe accent */
.tid--head { border: 2px solid var(--dept-accent) !important;
  box-shadow: 0 18px 48px rgba(1, 16, 56, 0.2) !important; }
.tid--head .tid-name { color: var(--dept-accent); }

/* legitimația în dashboard: cardul stânga, setările dreapta */
.id-layout { display: flex; align-items: flex-start; gap: 1.75rem; }
.id-layout .tmun-id { flex: 0 0 auto; }
.id-settings { flex: 1 1 340px; min-width: 0; }
@media (max-width: 720px) { .id-layout { flex-direction: column; } }

/* pagina publică a legitimației: badge-ul prezentat centrat */
.id-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 3rem; }
.id-hero .tmun-id { animation: id-in 0.5s ease-out both; }
@media (prefers-reduced-motion: reduce) { .id-hero .tmun-id { animation: none; } }
@keyframes id-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.id-verified { margin: 1.5rem auto 0; color: var(--muted); font-size: 0.85rem; max-width: 34ch; line-height: 1.5; }
.id-verified span { display: inline-flex; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 800;
  align-items: center; justify-content: center; margin-right: 0.25rem; }
.id-backlink { margin-top: 0.6rem; }
.id-backlink a { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #9b9484; text-decoration: none; }
.id-backlink a:hover { color: var(--navy); }

/* Admissions — tabel aerisit + status pills */
#admin-table { font-size: 0.88rem; }
#admin-table th { padding: 0.7rem 0.9rem; }
#admin-table td { padding: 0.85rem 0.9rem; vertical-align: top; }
#admin-table tr.is-assigned td { background: #f6faf4; }
#admin-table tr.is-paid td { background: #f4f8fd; }
#admin-table tr.is-reserved td { background: #fffdf5; }
#admin-table td:last-child { white-space: nowrap; }
#admin-table td:last-child .btn { margin: 0 0.2rem 0.35rem 0; padding: 0.32rem 0.75rem; font-size: 0.8rem; }
#admin-summary { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--muted); padding: 0.9rem 0; border-bottom: 1px solid #eee7d9; }

/* Digital ID public — verificat + backlink compacte imediat sub card */
.id-verified { margin: 1.1rem auto 0; color: var(--muted); font-size: 0.82rem; max-width: 32ch; line-height: 1.45; }
.id-verified span { display: inline-flex; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 0.62rem; font-weight: 800;
  align-items: center; justify-content: center; margin-right: 0.3rem; vertical-align: -3px; }
.id-backlink { margin-top: 0.35rem; }
.id-backlink a { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #b8860b; text-decoration: none; }
.id-backlink a:hover { color: var(--navy); }

/* CTA de aplicare dezactivat vizual când aplicările sunt închise */
.btn.is-disabled, a.is-disabled { opacity: 0.4; pointer-events: none; cursor: default; filter: grayscale(0.4); }

/* Resources — grupuri + vedere Finder (recuperat) */
.res-group { margin: 1.25rem 0 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #b8860b; }
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list li { padding: 0.45rem 0; border-bottom: 1px solid #efeadd; }
.res-list li:last-child { border-bottom: 0; }
.res-list a { font-weight: 600; }
.finder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 1rem 0.6rem; margin: 0.75rem 0 1.5rem; }
.ftile { display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-decoration: none; padding: 0.7rem 0.35rem; border-radius: 10px; border: 1px solid transparent; }
.ftile:hover { background: #f7f3e9; border-color: #eee7d9; }
.ftile-media { width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; flex: none; }
.ft-thumb { width: 66px; height: 66px; object-fit: cover; border-radius: 9px;
  border: 1px solid #e3ddcd; background: #fff; display: block; }
.ft-video { position: relative; overflow: hidden; display: block; }
.ft-video video { width: 66px; height: 66px; object-fit: cover; display: block; }
.ft-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; background: rgba(1, 16, 56, 0.35); border-radius: 9px; }
.ftile-name { font-size: 0.78rem; text-align: center; color: var(--ink); line-height: 1.3;
  max-width: 116px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* editor rich (WordPress-like) în Newsroom */
.rte { border: 1px solid #d8d2c2; border-radius: 6px; overflow: hidden; background: #fff; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 0.4rem; background: #faf7ef; border-bottom: 1px solid #eadfc8; }
.rte-btn { min-width: 32px; height: 30px; padding: 0 0.5rem; border: 1px solid transparent; border-radius: 4px;
  background: none; font: inherit; font-size: 0.9rem; color: var(--navy); cursor: pointer; }
.rte-btn:hover { background: #fff; border-color: #e3ddcd; }
.rte-sep { width: 1px; background: #e3ddcd; margin: 3px 4px; }
.rte-editor { min-height: 260px; max-height: 520px; overflow-y: auto; padding: 1rem 1.1rem;
  font: inherit; font-size: 0.98rem; line-height: 1.7; color: var(--ink); outline: none; }
.rte-editor:empty::before { content: attr(data-placeholder); color: #9b9484; }
.rte-editor:focus { box-shadow: inset 0 0 0 2px rgba(253, 192, 2, 0.25); }
.rte-editor h2 { font-size: 1.4rem; margin: 1rem 0 0.5rem; }
.rte-editor h3 { font-size: 1.15rem; margin: 0.9rem 0 0.4rem; }
.rte-editor p { margin: 0 0 0.75rem; }
.rte-editor blockquote { border-left: 3px solid var(--gold); margin: 0.75rem 0; padding: 0.25rem 0 0.25rem 1rem; color: var(--muted); font-style: italic; }
.rte-editor ul, .rte-editor ol { margin: 0 0 0.75rem 1.4rem; }
.rte-editor a { color: var(--navy); }

/* pagina demo (switcher de roluri) */
.demo-grid { display: grid; gap: 0.9rem; margin-top: 2rem; }
.demo-role { display: flex; flex-direction: column; gap: 0.3rem; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid #e3ddcd; border-left: 3px solid var(--navy); border-radius: 10px;
  padding: 1.1rem 1.3rem; font: inherit; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s; }
.demo-role:hover { transform: translateY(-2px); border-left-color: var(--gold); box-shadow: 0 10px 28px rgba(1,16,56,0.1); }
.demo-r-title { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.demo-r-sub { font-size: 0.88rem; color: var(--muted); }

/* Admissions redesign: stat strip + tabs pe status + carduri curate */
.adm-stats { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; padding: 0.5rem 0 1.1rem; border-bottom: 1px solid #eee7d9; }
.adm-stat strong { display: block; font-family: var(--serif); font-weight: 800; font-size: 1.5rem; color: var(--navy); line-height: 1; }
.adm-stat span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9b9484; }
.adm-tabs { display: flex; gap: 0.4rem; margin: 1.1rem 0 1.25rem; border-bottom: 1px solid #eee7d9; }
.adm-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.5rem 0.9rem;
  font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.adm-tabs button.is-active { color: var(--navy); border-bottom-color: var(--gold); }
/* o singură coloană: fiecare aplicație e un rând full-width (nume | status | Manage);
   pe 2 coloane cardurile se îngustau și textul din stânga se rupea cuvânt-cu-cuvânt */
.adm-list { display: flex; flex-direction: column; gap: 0.75rem; }
.adm-card { background: #fff; border: 1px solid #e7e1d3; border-radius: 12px; padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.65rem; }
.adm-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.adm-card h4 { font-family: var(--serif); font-size: 1.08rem; margin: 0 0 0.2rem; color: var(--navy); }
.adm-meta { margin: 0.1rem 0; font-size: 0.85rem; color: var(--muted); }
.adm-meta a { color: var(--navy); text-decoration: none; }
.adm-pill { flex: none; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.adm-pending { background: #f3e8ff; color: #6b2fb3; }
.adm-reserved { background: #fff4d6; color: #8a6400; }
.adm-paid { background: #e4eefb; color: #2b5797; }
.adm-assigned { background: #e7f5ea; color: #1d7a34; }
.adm-rejected { background: #f0ece2; color: #8a8372; }
span.adm-assigned { display: inline-block; align-self: flex-start; font-family: var(--serif); font-weight: 700;
  font-size: 0.92rem; padding: 0.3rem 0.7rem; border-radius: 6px; letter-spacing: 0.02em; }
.adm-prefs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.adm-prefs li { font-size: 0.85rem; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; }
.adm-prefs li.is-taken { color: #9b9484; }
.adm-prefs li em { color: #b00020; font-style: normal; font-size: 0.78rem; }
.pref-i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #f1ede3; color: var(--navy);
  font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.adm-docs { font-size: 0.82rem; color: var(--muted); margin: 0; }
.adm-docs-label { font-weight: 600; color: var(--ink); }
.adm-docs a { color: var(--navy); }
.adm-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.25rem; padding-top: 0.7rem; border-top: 1px solid #f1ece0; }
.adm-actions .btn { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.adm-assign { display: flex; gap: 0.4rem; flex: 1; min-width: 200px; }
.adm-assign select { flex: 1; padding: 0.4rem 0.6rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; font-size: 0.82rem; background: #fff; }
.adm-press { border-color: #d6d1c4 !important; }
.adm-hint { font-size: 0.8rem; color: var(--muted); align-self: center; }
.adm-empty { color: var(--muted); padding: 1.5rem 0; }

/* editor fullscreen */
.rte-fs { margin-left: auto; }
body.rte-locked { overflow: hidden; }
.rte.rte-fullscreen-on { position: fixed; inset: 0; z-index: 200; border-radius: 0; border: 0;
  display: flex; flex-direction: column; background: #fff; }
.rte.rte-fullscreen-on .rte-toolbar { padding: 0.7rem 1.25rem; }
.rte.rte-fullscreen-on .rte-editor { flex: 1; max-height: none; font-size: 1.05rem;
  padding: 2rem clamp(1.25rem, 8vw, 6rem); }
.rte.rte-fullscreen-on .rte-editor > * { max-width: 70ch; margin-left: auto; margin-right: auto; }

/* Photo desk — editor + galerie bancă */
.pd-stage { margin-bottom: 1rem; }
.pd-canvas-wrap { width: 320px; max-width: 100%; }
#pd-canvas { width: 320px; height: 320px; border-radius: 10px; border: 1px solid #e3ddcd; background: #f4f0e6; touch-action: none; }
.pd-tools { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; margin-top: 0.8rem; }
.pd-slider { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.pd-slider input { accent-color: var(--gold); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; align-items: center; }
.pd-meta input { flex: 1; min-width: 200px; padding: 0.55rem 0.8rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; background: #fff; }
.pd-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 1.75rem 0 1.1rem; }
.pd-fsep { width: 1px; height: 20px; background: #e3ddcd; margin: 0 0.4rem; }
.pd-chip { background: #fff; border: 1px solid #e3ddcd; border-radius: 999px; padding: 0.32rem 0.85rem;
  font: inherit; font-size: 0.8rem; color: var(--navy); cursor: pointer; }
.pd-chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.pd-item { margin: 0; background: #fff; border: 1px solid #e7e1d3; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.pd-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pd-item figcaption { padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.pd-tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #b8860b; }
.pd-cap { font-size: 0.85rem; color: var(--ink); }
.pd-by { font-size: 0.76rem; color: var(--muted); }
.pd-del { align-self: flex-start; margin-top: 0.3rem; background: none; border: 1px solid #e3ddcd; border-radius: 4px;
  padding: 0.2rem 0.6rem; font: inherit; font-size: 0.76rem; color: #b00020; cursor: pointer; }
.pd-del:hover { border-color: #b00020; }

/* poza inserată în articol (editor + public) */
.rte-insert { font-weight: 600; color: var(--navy); }
figure.article-photo { margin: 1.25rem 0; }
figure.article-photo img { width: 100%; border-radius: 8px; display: block; }
figure.article-photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }
figure.article-photo figcaption .credit { display: block; font-size: 0.76rem; color: #b8860b;
  font-weight: 700; letter-spacing: 0.04em; margin-top: 0.15rem; }

/* modal selector poze — centrat pe pagină */
.pick-modal { border: 0; padding: 0; border-radius: 14px; width: 92vw; max-width: 760px;
  max-height: 88vh; margin: 0; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 30px 80px rgba(1,16,56,0.4); }
.pick-modal::backdrop { background: rgba(1,16,56,0.55); }
.pick-item.is-off { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.6); }
.pick-item.is-off:hover { border-color: #e7e1d3; transform: none; }
.pick-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem;
  border-bottom: 1px solid #eee7d9; font-family: var(--serif); font-size: 1.05rem; color: var(--navy); }
.pick-close { background: none; border: 0; font-size: 1.1rem; color: var(--muted); cursor: pointer; }
.pick-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; padding: 0.9rem 1.3rem 0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem;
  padding: 1rem 1.3rem 1.4rem; max-height: 60vh; overflow-y: auto; }
.pick-item { position: relative; border: 1px solid #e7e1d3; border-radius: 8px; overflow: hidden; padding: 0;
  background: none; cursor: pointer; transition: border-color 0.12s, transform 0.12s; }
.pick-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.pick-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pick-tag { position: absolute; left: 0; right: 0; bottom: 0; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(1,16,56,0.7);
  padding: 0.25rem 0.4rem; text-align: left; }

/* contor reclame în editor */
.ar-ads { display: inline-block; margin: 0.5rem 0 0; font-size: 0.82rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: 999px; }
.ar-ads.is-ok { background: #e7f5ea; color: #1d7a34; }
.ar-ads.is-short { background: #fff4d6; color: #8a6400; }

/* reclama inserată în articol — bandă orizontală, lungă și subțire, ca o linie de separare */
.article-ad { margin: 1.75rem 0; padding: 0.7rem 0; border-top: 1px solid #eee7d9; border-bottom: 1px solid #eee7d9; text-align: center; }
/* eticheta „Sponsor” prin CSS — nu depinde de markup care poate fi rescris de sanitizer */
.article-ad::before { content: "Sponsor"; display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #9b9484; margin-bottom: 0.4rem; }
.article-ad img { display: block; width: 100%; height: auto; max-height: 150px; object-fit: contain; border-radius: 4px; }

/* markere vizibile DOAR în editor pentru poza/reclama inserată (curățate la salvare) */
.blk-tag, .blk-del { display: none; }
#ar-editor .article-photo, #ar-editor .article-ad { position: relative; outline: 2px dashed #cbb87f; outline-offset: 5px; }
#ar-editor .blk-tag { display: inline-block; position: absolute; top: -11px; left: 8px; z-index: 3;
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #011038; background: var(--gold); padding: 0.14rem 0.55rem; border-radius: 999px; }
#ar-editor .article-ad::before { content: "Sponsor ad"; position: absolute; top: -11px; left: 8px; z-index: 3;
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #011038; background: var(--gold); padding: 0.14rem 0.55rem; border-radius: 999px; }
#ar-editor .blk-del { display: flex; align-items: center; justify-content: center; position: absolute;
  top: -12px; right: 8px; z-index: 3; width: 23px; height: 23px; border: 0; border-radius: 50%;
  background: #011038; color: #fff; font-size: 0.66rem; line-height: 1; cursor: pointer; }
#ar-editor .blk-del:hover { background: #c0392b; }

/* modal ad picker + panou sponsors */
.ad-pick { grid-column: 1 / -1; }
.ad-pick img { aspect-ratio: auto; height: auto; max-height: 76px; object-fit: contain; background: #faf7ef; padding: 0.35rem; }
.ad-pick .pick-tag { text-align: center; }
.spon-spec { margin-top: 0.9rem; padding: 0.7rem 0.9rem; background: #faf7ef; border: 1px solid #ece4d2;
  border-radius: 8px; font-size: 0.85rem; color: var(--ink); line-height: 1.5; }
.spon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.spon-item { margin: 0; background: #fff; border: 1px solid #e7e1d3; border-radius: 10px; overflow: hidden; }
.spon-item img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #faf7ef; display: block; padding: 0.5rem; }
.spon-item figcaption { padding: 0.6rem 0.75rem; font-size: 0.85rem; color: var(--ink); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.spon-item figcaption a { color: var(--navy); }
.spon-item .spon-uses { font-size: 0.72rem; font-weight: 700; color: #6b6350; background: #f0ece0;
  padding: 0.12rem 0.5rem; border-radius: 999px; }
.spon-item .spon-uses.is-full { color: #8a2b20; background: #fbe3df; }
.spon-item .pd-del { margin-left: auto; }

/* ===== Photo desk — mini-Lightroom (multi-poză) ===== */
.lr-modal { border: 0; padding: 0; border-radius: 14px; width: min(96vw, 980px); max-height: 92vh;
  margin: 0; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; box-shadow: 0 30px 80px rgba(1,16,56,0.45); flex-direction: column; overflow: hidden; }
.lr-modal[open] { display: flex; }
.lr-modal::backdrop { background: rgba(1,16,56,0.6); }
.lr-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #eee7d9; font-family: var(--serif); font-size: 1.05rem; color: var(--navy); }
.lr-body { display: grid; grid-template-columns: 1fr 300px; gap: 1.2rem; padding: 1.1rem 1.2rem; min-height: 0; }
.lr-stage { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; min-width: 0; }
.lr-stage .pd-canvas-wrap { width: 100%; display: flex; justify-content: center; }
#pd-canvas { width: 440px; max-width: 100%; aspect-ratio: 1 / 1; height: auto; background: #0d1a33;
  border-radius: 10px; touch-action: none; }
.lr-panel { display: flex; flex-direction: column; gap: 0.7rem; }
.lr-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.lr-field input { font-weight: 400; text-transform: none; letter-spacing: 0; }
.lr-adjust { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.2rem; padding-top: 0.8rem;
  border-top: 1px solid #eee7d9; }
.lr-strip { display: flex; gap: 0.5rem; align-items: center; padding: 0.6rem 1.2rem; overflow-x: auto;
  border-top: 1px solid #eee7d9; background: #faf7ef; }
.lr-thumb { position: relative; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.lr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lr-thumb.is-active { border-color: var(--gold); }
.lr-ok, .lr-need { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%;
  font-size: 0.58rem; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #fff; }
.lr-ok { background: #1d7a34; } .lr-need { background: #c0392b; }
.lr-add { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 8px; border: 2px dashed #cbb87f;
  background: none; color: #b8860b; font-size: 1.3rem; cursor: pointer; }
.lr-foot { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.2rem; border-top: 1px solid #eee7d9; }
@media (max-width: 720px) { .lr-body { grid-template-columns: 1fr; } #pd-canvas { width: 320px; } }

/* ===== Position paper — status delegat + acțiuni chair ===== */
.pp-banner { margin: 0.6rem 0 0.9rem; padding: 0.7rem 0.95rem; border-radius: 8px; font-size: 0.9rem; line-height: 1.5; }
.pp-banner strong { display: block; }
.pp-banner p { margin: 0.35rem 0; white-space: pre-line; }
.pp-banner span { display: block; font-size: 0.82rem; opacity: 0.85; margin-top: 0.2rem; }
.pp-banner.is-return { background: #fbe3df; border: 1px solid #f0c4bc; color: #8a2b20; }
.pp-banner.is-ok { background: #e7f5ea; border: 1px solid #bfe3c9; color: #1d7a34; }
.pp-banner.is-wait { background: #fff4d6; border: 1px solid #f0e0ad; color: #8a6400; }
.pp-chip { display: inline-block; margin-left: 0.4rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.12rem 0.5rem; border-radius: 999px; vertical-align: middle; }
.pp-chip.pp-submitted { background: #fff4d6; color: #8a6400; }
.pp-chip.pp-returned { background: #fbe3df; color: #8a2b20; }
.pp-chip.pp-approved { background: #e7f5ea; color: #1d7a34; }
.pp-acts { display: flex; gap: 0.35rem; margin-top: 0.4rem; }
.pp-acts button { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 6px;
  border: 1px solid #d8d0be; background: #fff; color: var(--navy); cursor: pointer; }
.pp-acts button[data-pp-ret]:hover { border-color: #c0392b; color: #c0392b; }
.pp-acts button[data-pp-ok]:hover { border-color: #1d7a34; color: #1d7a34; }

/* ===== Awards — chair picks + admin types ===== */
.aw-row { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid #eee7d9; }
.aw-row:last-child { border-bottom: 0; }
.aw-name { flex: 0 0 220px; font-weight: 700; color: var(--navy); }
.aw-row .cs { flex: 1; min-width: 0; }
.awt-item { padding: 0.7rem 0.85rem; border: 1px solid #e7e1d3; border-radius: 8px; margin-bottom: 0.6rem; background: #fff; }
.awt-item .awt-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.awt-item .awt-top strong { color: var(--navy); }
.awt-edit { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.awt-edit .awt-in { flex: 1; min-width: 160px; }
.awt-edit .awt-val { flex: none; width: 120px; min-width: 0; }
.awt-item .awt-in { width: 100%; }
.awt-pz-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0.9rem 0 0.4rem; }
.awt-prizes { display: flex; flex-direction: column; gap: 0.5rem; }
.awt-prow { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; background: #faf7ef; border: 1px solid #ece4d2; border-radius: 8px; padding: 0.5rem; }
.awt-prow input { flex: 1; min-width: 130px; }
.awt-prow .pp-name { flex: 2; min-width: 160px; }
.awt-prow .pp-val { flex: none; width: 90px; min-width: 0; }
.awt-prow .pp-del { flex: none; }
.awt-pz-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
@media (max-width: 560px) { .aw-row { flex-direction: column; align-items: stretch; gap: 0.4rem; } .aw-name { flex: none; } }
@media (max-width: 560px) { .aw-row { flex-direction: column; align-items: stretch; gap: 0.4rem; } .aw-name { flex: none; } }

/* cookie consent banner (doar site public) */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  max-width: 660px; margin: 0 auto; background: var(--navy); color: #cfd6e4;
  border: 1px solid rgba(253, 192, 2, 0.45); border-radius: 12px; padding: 1.05rem 1.2rem;
  box-shadow: 0 14px 44px rgba(1, 16, 56, 0.4); display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.85rem 1.2rem; }
.cookie-text { flex: 1 1 250px; margin: 0; font-size: 0.86rem; line-height: 1.5; }
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.cookie-banner .btn { padding: 0.5rem 1.15rem; font-size: 0.86rem; }
.cookie-reject { border-color: #33406b; color: #cfd6e4; background: transparent; }
.cookie-reject:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 540px) { .cookie-actions { flex: 1 1 100%; } .cookie-banner .btn { flex: 1; } }

/* ===== Consimțământ parental (sub 18) ===== */
.guardian-box { background: #faf7ef; border: 1px solid #ece4d2; border-radius: 10px; padding: 0.9rem 1rem; margin: 0.4rem 0; }
.guardian-box .guardian-note { margin: 0 0 0.7rem; font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
.guardian-box .app-check { font-size: 0.88rem; align-items: flex-start; }

/* ===== Ștergere cont (danger zone) ===== */
.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-danger:hover { background: #a93226; border-color: #a93226; }
.danger-zone { border-color: #f0c4bc; }

/* ===== Terms & Conditions — bilingv (EN/RO) ===== */
.tc-meta { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin: 0.2rem 0 1.1rem; }
.lang-toggle { display: inline-flex; border: 1px solid #d8d0be; border-radius: 999px; overflow: hidden; margin-bottom: 1.5rem; }
.lang-toggle button { border: 0; background: #fff; color: var(--navy); font-weight: 700; font-size: 0.85rem; padding: 0.4rem 1.15rem; cursor: pointer; }
.lang-toggle button.is-active { background: var(--navy); color: #fff; }
.tc-body h3 { margin-top: 1.9rem; }
.tc-body h4 { margin-top: 1.15rem; font-size: 1rem; }
.tc-body p, .tc-body li { line-height: 1.65; }

/* ===== Guest (invitat special) — ID + cutia de invitație la aplicare ===== */
.tid--guest { box-shadow: 0 0 0 2px var(--gold), 0 24px 60px rgba(1, 16, 56, 0.4); }
.tid--guest .tid-role { background: var(--gold); color: var(--navy); font-weight: 700; }
.tid--guest .tid-photo { border-color: var(--gold); }
.guest-invite { margin-top: 1.5rem; padding: 1rem 1.15rem; background: #faf7ef; border: 1px solid #ece4d2;
  border-radius: 10px; }
.guest-invite input { font-family: inherit; }

/* pagini legale (privacy / terms / confidentialitate) */
.legal-page h1.section-title { margin-bottom: 1.25rem; }
.legal-h2 { font-size: 1.3rem; margin: 2.25rem 0 0.75rem; padding-top: 1.1rem; border-top: 1px solid #e8e4da; }
.legal-h3 { font-size: 1rem; margin: 1.3rem 0 0.3rem; color: var(--navy); }
.legal-page p { margin-bottom: 0.85rem; max-width: 76ch; }
.legal-table { border-collapse: collapse; margin: 1rem 0 1.5rem; width: 100%; max-width: 640px; font-size: 0.92rem; }
.legal-table th, .legal-table td { border: 1px solid #ddd6c8; padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.legal-table th { background: #f3efe6; font-weight: 700; }

/* legal footer (stil RO eCommerce: link-uri + ANPC SAL + SOL) */
.legal-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.4rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; margin-bottom: 1rem; }
.legal-links a { font-size: 0.82rem; color: #cfd6e4; text-decoration: none; }
.legal-links a:hover { color: var(--gold); }
.legal-banners { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1rem; }
.legal-banners img { display: block; height: 46px; width: auto; border-radius: 5px; }
.legal-id { font-size: 0.76rem; color: #9aa6c8; line-height: 1.6; margin: 0; max-width: 95ch; }
.legal-id a { color: #cfd6e4; } .legal-id a:hover { color: var(--gold); }

/* rand mic sigle card in footer (acoperire cerinta BT) */
.footer-pay { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1rem; }
.fp-chip { background: #fff; border-radius: 4px; padding: 4px 7px; height: 26px; display: inline-flex; align-items: center; box-sizing: border-box; }
.fp-chip img { display: block; }

/* badge-uri plata card (doar checkout/aplicare pe platforma) */
.pay-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1.25rem 0; }
.pay-chip { background: #fff; border: 1px solid #e8e4da; border-radius: 6px; padding: 6px 10px; height: 34px; display: inline-flex; align-items: center; box-sizing: border-box; }
.pay-chip img { display: block; }
.pay-note { flex-basis: 100%; font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

/* callout taxa de sustinere proiect (text oficial ARPD) */
/* fine print under the packages — collapsed by default (quiet, out of the way) */
.fee-note { margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid #ece6d6; max-width: 78ch; }
.fee-note > summary { cursor: pointer; list-style: none; width: fit-content; user-select: none;
  font-size: 0.78rem; font-weight: 600; color: #9b9484; display: inline-flex; align-items: center; gap: 0.4rem; }
.fee-note > summary::-webkit-details-marker { display: none; }
.fee-note > summary::after { content: "▾"; font-size: 0.7em; transition: transform 0.15s ease; }
.fee-note[open] > summary::after { transform: rotate(180deg); }
.fee-note > summary:hover { color: var(--navy); }
.fee-note p { margin: 0.8rem 0 0; font-size: 0.8rem; line-height: 1.55; color: var(--muted); }
.fee-note strong { color: var(--ink); font-weight: 600; }
.fee-note-sub { margin-top: 0.45rem !important; color: #9b9484; font-size: 0.76rem !important; }

/* review documente in panoul de secretariat */
.adm-review { font-size: 0.82rem; color: var(--muted); margin: 0.3rem 0 0; }
.rev-badge { font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 4px; font-size: 0.76rem; }
.rev-ok { background: #e6f4ea; color: #1e7e34; }
.rev-flagged { background: #fde8e8; color: #b02a37; }
.rev-wait { background: #fff4d6; color: #8a6d00; }
.rev-none { background: #eee; color: #888; }
.btn-mini { font-size: 0.72rem; padding: 0.1rem 0.5rem; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; margin-left: 0.15rem; }
.btn-mini:hover { border-color: var(--navy); }

/* panou „ce conține" pachetul/codul la aplicare */
.pick-list { margin: 0; padding-left: 1.15rem; }
.pick-list li { margin: 0.25rem 0; color: var(--ink); }

/* panoul „ce conține" coboară din carduri (drop-down) */
#pkg-detail, #code-detail { transform-origin: top center; }
.detail-drop { animation: detailDrop .34s cubic-bezier(.22,.61,.36,1); }
@keyframes detailDrop {
  from { opacity: 0; transform: translateY(-14px) scaleY(.96); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .detail-drop { animation: none; } }

/* panourile de detaliu ca „text bubble" — vârf în sus, spre carduri / câmpul de cod */
.pick-bubble { position: relative; padding: 1.3rem 1.5rem; background: #fffdf6; border: 1.5px solid var(--gold); border-radius: 14px; box-shadow: 0 6px 20px rgba(17,16,56,0.08); }
.pick-bubble > h3:first-child { margin-top: 0; }
.pick-bubble > h3:first-child::after { content: none; }
.pick-bubble::before {
  content: ""; position: absolute; left: var(--arrow-x, 34px); top: -8px;
  width: 15px; height: 15px; background: #fffdf6;
  border-left: 1.5px solid var(--gold); border-top: 1.5px solid var(--gold);
  border-top-left-radius: 3px; transform: rotate(45deg);
}

/* ===================================================================
   TMUN Command — consola full-screen (command.tm-mun.arpd.ro)
   Shell navy pe tot ecranul; consola chair sta pe o "suprafata"
   luminoasa (refoloseste stilurile .cmd-* light); floor view delegat
   e nativ dark.
   =================================================================== */
.cmd-body { background: var(--navy); color: #e8ecf5; }
.cmd-topbar { background: #000a24; }
/* Explicit (belt-and-suspenders) — the emblem is navy-on-transparent, so
   .app-topbar .brand img's brightness(0)+invert(1) filter already renders
   it white on the navy bar; restate it here scoped to .cmd-topbar so the
   Command console's wordmark+emblem stay visibly white even if that base
   rule ever changes independently. */
.cmd-topbar .brand img { filter: brightness(0) invert(1); }
.cmd-main { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 3.5rem; min-height: calc(100vh - 60px); }
.cmd-page { display: block; }
.cmd-body a { color: #cfd6e4; }

/* sidebar external link (dashboard) */
.dash-nav .dnav-ext { font-weight: 600; }

/* gate + secretariat picker (stari centrate) */
.cmd-gate, .cmd-picker { min-height: 68vh; display: grid; place-items: center; text-align: center; }
.cmd-gate-inner, .cmd-picker-inner { max-width: 640px; }
.cmd-gate h1, .cmd-picker h1 { color: #fff; font-size: 2rem; margin: 0.4rem 0 1rem; }
.cmd-gate p, .cmd-picker p { color: #c3ccdd; }
.floor-eyebrow { color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.72rem; font-weight: 800; margin: 0; }
.cmd-picker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.75rem; }
.cmd-pick { padding: 1.5rem 1rem; font-family: var(--serif); font-weight: 900; font-size: 1.35rem;
  letter-spacing: 0.05em; color: #fff; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; cursor: pointer; transition: all 0.15s; }
.cmd-pick:hover { border-color: var(--gold); color: var(--gold); background: rgba(253,192,2,0.08); }

/* consola chair — suprafata luminoasa pe navy */
.cmd-console-tabs { border-bottom-color: rgba(255,255,255,0.15); }
.cmd-console-tabs button { color: #aeb8d0; }
.cmd-console-tabs button.is-active { color: #fff; border-bottom-color: var(--gold); }
.cmd-surface { background: var(--ivory); color: var(--ink); border-radius: 16px;
  padding: 1.35rem 1.5rem; box-shadow: 0 24px 70px rgba(0,0,0,0.4); }

/* ===== floor view delegat (dark) ===== */
.floor-waiting { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.floor-waiting-inner { max-width: 640px; }
.floor-waiting h1 { color: #fff; font-size: 2rem; margin: 0.4rem 0 1rem; }
.floor-waiting p { color: #c3ccdd; }

.floor { display: flex; flex-direction: column; gap: 1.15rem; }
.floor .btn { border-color: rgba(255,255,255,0.35); color: #fff; }
.floor .btn:hover { border-color: var(--gold); color: var(--gold); }
.floor .btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.floor .btn-gold:hover { color: var(--navy); }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1.05rem; }

.floor-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 0.9rem; }
.floor-head-l { font-family: var(--serif); font-weight: 900; font-size: 1.35rem; color: #fff; letter-spacing: 0.04em; }
.floor-head-sub { color: #aeb8d0; font-weight: 500; font-size: 0.9rem; letter-spacing: 0; }
.floor-head-r { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.floor-mystatus { color: #aeb8d0; }

.floor-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.floor-stage { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 2.2rem 1.5rem; text-align: center; }
.floor-label { color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.72rem; font-weight: 800; margin: 0 0 0.6rem; }
.floor-current { font-family: var(--serif); font-weight: 900; font-size: 1.9rem; color: #fff;
  margin: 0; line-height: 1.15; }
.floor .cmd-time, .floor-timer { color: #fff; }
.floor-timer { font-size: 4.6rem; margin: 0.3rem 0 1.2rem; }
.floor-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

.floor-side { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 1.2rem 1.25rem; }
.floor-gsl { max-height: 46vh; overflow: auto; }
.floor-gsl li { border-color: rgba(255,255,255,0.14); color: #e8ecf5; background: transparent; }
.floor-gsl li.speaking { border-color: var(--gold); background: rgba(253,192,2,0.12); color: #fff; }
.floor-gsl li.spoke { opacity: 0.45; }
.floor-gsl li.mine { box-shadow: inset 3px 0 0 var(--un-blue); }

/* vot — card luminos, proeminent */
.floor-vote { background: var(--ivory); color: var(--ink); border: 2px solid var(--gold);
  border-radius: 16px; padding: 1.3rem 1.5rem; box-shadow: 0 24px 70px rgba(0,0,0,0.45); }

/* dock actiuni */
.floor-dock { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 1.1rem 1.25rem; }
.floor-point { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.floor-point input#ls-point-text { flex: 1; min-width: 220px; }
.floor-dock select, .floor-dock input { background: #fbfbf7; color: var(--ink);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; padding: 0.5rem 0.6rem; font: inherit; }
.floor-motion { margin-top: 0.85rem; }
.floor-motion summary { cursor: pointer; color: #aeb8d0; font-weight: 600; }
.floor-motion .ls-motion { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }

@media (max-width: 820px) {
  .floor-body { grid-template-columns: 1fr; }
  .cmd-picker-grid { grid-template-columns: 1fr; }
  .floor-timer { font-size: 3.2rem; }
  .cmd-main { padding: 1rem 0.9rem 3rem; }
}

/* ===== Run of show — redesign (timeline + iPhone time wheel + live) ===== */
.ros-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ros-form { margin-top: 1.25rem; background: #faf8f3; border: 1px solid #ece7db; border-radius: 14px; padding: 1.1rem 1.2rem; }
.ros-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem 1rem; margin-bottom: 1rem; }
.ros-fld { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.ros-fld input, .ros-fld select { font-weight: 400; }
.ros-col-2 { grid-column: 1 / -1; }
@media (max-width: 620px) { .ros-form-grid { grid-template-columns: 1fr; } }
.ros-time-btn { display: inline-flex; align-items: center; gap: 0.6rem; justify-content: space-between; background: #fff;
  border: 1px solid #d9d3c6; border-radius: 8px; padding: 0.5rem 0.8rem; font-size: 1.05rem; font-weight: 700; color: var(--navy);
  font-variant-numeric: tabular-nums; cursor: pointer; }
.ros-time-caret { color: var(--muted); font-size: 0.8rem; }

.ros-timeline { margin-top: 1.5rem; }
.ros-day-h { font-family: var(--serif); font-weight: 800; color: var(--navy); font-size: 1.05rem; margin: 1.75rem 0 1rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold); }
.ros-day-h:first-child { margin-top: 0; }
.ros-tl { list-style: none; margin: 0 0 0 4.6rem; padding: 0; }
.ros-tl li { display: block; padding: 0.7rem 0 0.7rem 1.1rem; position: relative; border-left: 2px solid #ece7db; }
.ros-tl li::before { content: ""; position: absolute; left: -7px; top: 1rem; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid #cfc7b6; }
.ros-tl .ros-time { position: absolute; left: -5.7rem; top: 0.62rem; width: 4rem; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.ros-tl .ros-title { font-weight: 600; color: var(--ink); }
.ros-tl .ros-meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
.ros-tl li.is-now { border-left-color: var(--gold); }
.ros-tl li.is-now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(253,192,2,0.22); }
.ros-now-badge { display: inline-block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: #1d7a34; border-radius: 999px; padding: 0.12rem 0.5rem; margin-left: 0.45rem; vertical-align: middle; }
.ros-now-badge.next { background: #5B92E5; }
.ros-now-badge .live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 4px;
  animation: roslive 1.4s ease-in-out infinite; }
@keyframes roslive { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.ros-live-banner { display: flex; align-items: center; gap: 0.6rem; background: var(--navy); color: #fff; border-radius: 12px;
  padding: 0.7rem 1rem; margin-bottom: 1.25rem; font-size: 0.92rem; }
.ros-live-banner .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d058; animation: roslive 1.4s ease-in-out infinite; flex: none; }
.ros-live-banner b { color: var(--gold); }
.ros-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.9rem; padding: 0.2rem; position: absolute; right: 0; top: 0.6rem; }
.ros-del:hover { color: #c0392b; }

/* iPhone-style time wheel picker */
.tw-sheet { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.tw-sheet[hidden] { display: none; }
.tw-backdrop { position: absolute; inset: 0; background: rgba(1,16,56,0.45); }
.tw-panel { position: relative; background: #fff; width: 100%; max-width: 420px; border-radius: 20px 20px 0 0;
  padding: 0.4rem 1rem 1.5rem; box-shadow: 0 -10px 40px rgba(0,0,0,0.2); }
@media (min-width: 520px) { .tw-sheet { align-items: center; } .tw-panel { border-radius: 20px; } }
.tw-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.2rem; border-bottom: 1px solid #eee; margin-bottom: 0.4rem; }
.tw-cancel, .tw-done { background: none; border: 0; font-size: 1rem; cursor: pointer; color: var(--navy); padding: 0.3rem 0.4rem; }
.tw-done { font-weight: 700; color: #b8860b; }
.tw { position: relative; display: flex; align-items: stretch; justify-content: center; gap: 0.4rem; height: 200px; overflow: hidden; }
.tw-col { flex: 0 0 92px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; text-align: center; }
.tw-col::-webkit-scrollbar { display: none; }
.tw-col::before, .tw-col::after { content: ""; display: block; height: 80px; }
.tw-item { height: 40px; line-height: 40px; scroll-snap-align: center; font-size: 1.5rem; font-variant-numeric: tabular-nums;
  color: #b9b2a3; transition: color 0.12s, transform 0.12s; }
.tw-item.is-sel { color: var(--navy); font-weight: 700; transform: scale(1.06); }
.tw-sep { display: flex; align-items: center; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.tw-center { position: absolute; top: 50%; left: 0; right: 0; height: 40px; transform: translateY(-50%);
  background: rgba(1,16,56,0.04); border-top: 1px solid #e0dccf; border-bottom: 1px solid #e0dccf; pointer-events: none; border-radius: 8px; }

/* ===== Command v2 ===================================================== */
.cmdv2 { display: block; }

/* [data-app-page] (see the "documentul oficial" letterhead rules earlier in
   this file) puts a decorative "Timișoara International Model United
   Nations" watermark + margin/padding above EVERY app page's content,
   .cmdv2 included. That's fine for the setup screen (a normal scrolling
   form, same as any other app page) but has no place above a live session
   cockpit that needs its full height-locked viewport budget (see
   .cmd-main:has(.cv2-session) below) — so it's switched off, and .cmdv2 /
   #cv2-root are given a definite 100% height, only once a session actually
   mounts (.cv2-session appears), so the setup screen is untouched. */
.cmdv2:has(.cv2-session)::before { display: none; }
.cmdv2:has(.cv2-session) { height: 100%; padding: 0; margin: 0; }
#cv2-root:has(.cv2-session) { display: block; height: 100%; }
.cv2-wrap { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }

.cv2-hero { padding: 0.25rem 0.1rem 0.5rem; }
.cv2-hero h1 { color: #fff; font-size: 1.6rem; margin-bottom: 0.35rem; }
.cv2-hero p { color: #b7c0d6; font-size: 0.95rem; }

.cv2-card { background: #fff; border-radius: 14px; padding: 1.35rem 1.25rem; box-shadow: 0 10px 30px rgba(1,16,56,0.28); }
.cv2-card-title { font-size: 1.05rem; color: var(--navy); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }

.cv2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 1.1rem;
  border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 0.92rem; cursor: pointer;
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); text-decoration: none; transition: filter 0.15s, transform 0.1s; }
.cv2-btn:hover { filter: brightness(0.97); }
.cv2-btn:active { transform: translateY(1px); }
.cv2-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cv2-btn-ghost { background: transparent; border-color: #d6d1c4; color: var(--navy); }
.cv2-btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.cv2-btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.cv2-btn-gold:hover { filter: brightness(1.05); }
.cv2-btn-small { padding: 0.4rem 0.8rem; font-size: 0.82rem; }

.cv2-load-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cv2-error { color: #b3261e; background: #fbeae9; border-radius: 8px; padding: 0.6rem 0.8rem; font-size: 0.85rem; margin-top: 0.75rem; }

.cv2-template-wrap { position: relative; }
.cv2-template-menu { list-style: none; margin: 0; padding: 0.4rem; position: absolute; top: calc(100% + 0.4rem); left: 0;
  min-width: 220px; background: #fff; border: 1px solid #e8e4da; border-radius: 12px; box-shadow: 0 10px 30px rgba(1,16,56,0.2); z-index: 10; }
.cv2-template-option { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%;
  padding: 0.55rem 0.7rem; border: 0; background: none; border-radius: 8px; cursor: pointer; font: inherit;
  font-size: 0.88rem; font-weight: 600; color: var(--ink); text-align: left; }
.cv2-template-option:hover { background: #faf8f3; }
.cv2-template-option span { font-size: 0.72rem; font-weight: 600; color: var(--muted); }

.cv2-add-row { display: flex; gap: 0.6rem; margin-bottom: 1.1rem; }
.cv2-add-row .cv2-input { flex: 1; }
.cv2-input { width: 100%; padding: 0.65rem 0.85rem; border: 1.5px solid #d6d1c4; border-radius: 10px;
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink); }
.cv2-input:focus { outline: none; border-color: var(--navy); }
.cv2-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.cv2-search { margin-bottom: 0.75rem; }

.cv2-un-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; border: 1px solid #e8e4da;
  border-radius: 10px; }
.cv2-un-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.75rem; cursor: pointer;
  border-bottom: 1px solid #f0ede4; transition: background 0.1s; }
.cv2-un-row:last-child { border-bottom: 0; }
.cv2-un-row:hover { background: #faf8f3; }
.cv2-un-row[hidden] { display: none; }
.cv2-flag { font-size: 1.35rem; line-height: 1; flex: none; }
.cv2-un-name { flex: 1; font-size: 0.92rem; color: var(--ink); }
.cv2-code { font-size: 0.68rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; flex: none; }
.cv2-un-status { font-size: 0.72rem; font-weight: 700; color: var(--un-blue); text-transform: uppercase;
  letter-spacing: 0.04em; flex: none; }
.cv2-un-row.is-added { cursor: pointer; background: #f4f7fd; }
.cv2-un-row.is-added .cv2-un-status { color: #1d7a34; font-weight: 800; }
.cv2-un-row.is-added:hover { background: #fbeaea; }
.cv2-un-row.is-added:hover .cv2-un-status { color: #b3261e; }
.cv2-un-row.is-added:hover .cv2-un-status::after { content: " (remove)"; font-weight: 700; }

.cv2-committee-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
.cv2-committee-head .cv2-card-title { margin-bottom: 0; }
.cv2-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem;
  padding: 0 0.4rem; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 0.85rem; font-weight: 800; }
.cv2-empty { color: var(--muted); font-size: 0.9rem; }

.cv2-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cv2-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: #f4f2ea; border: 1px solid #e8e4da;
  border-radius: 999px; padding: 0.35rem 0.4rem 0.35rem 0.65rem; font-size: 0.86rem; color: var(--ink); }
.cv2-chip-remove { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.cv2-chip-remove:hover { background: #e8e4da; color: #b3261e; }

.cv2-start-row { display: flex; justify-content: flex-end; padding: 0.25rem 0.1rem 0.5rem; }
.cv2-btn-start { padding: 0.75rem 1.6rem; font-size: 1rem; }

@media (max-width: 640px) {
  .cv2-add-row { flex-direction: column; }
  .cv2-committee-head { flex-wrap: wrap; }
  .cv2-start-row { justify-content: stretch; }
  .cv2-btn-start { width: 100%; }
}

/* ---- Session shell: TopBar + TabBar + panels (Task 11) --------------- */

/* The session view locks its own height to exactly "viewport minus the
   60px navy app topbar" (the same constant .cmd-main already uses for its
   min-height below) and clips overflow, so the OUTER PAGE never scrolls
   while a session is active — there is no scroll container for the
   committee header to slide past, so it can't ever be overlapped by
   whatever's beneath it. Only the inner tab-rail/panels region (a bounded
   flex/grid child, see .cv2-panels + the ≥820px rail below) scrolls, via
   ordinary flex/grid sizing (auto header row + 1fr content row) instead of
   a max-height guessed from the header's typical content height — so it
   stays correct no matter how tall the header gets. The setup screen
   (.cv2-wrap, before a session is started) isn't matched by this selector
   and keeps scrolling with the page like a normal form. */
.cmd-main:has(.cv2-session) { padding-top: 0; padding-bottom: 0; height: calc(100vh - 60px); height: calc(100dvh - 60px); overflow: hidden; }
@media (max-width: 640px) {
  .cmd-main:has(.cv2-session) { padding-top: 0; padding-bottom: 0; }
}

.cv2-session { height: 100%; display: flex; flex-direction: column; gap: 1.1rem; }

.cv2-topbar { z-index: 45; background: #fff; border-radius: 14px; flex: none;
  box-shadow: 0 10px 30px rgba(1,16,56,0.18); padding: 0.9rem 1.1rem; border-bottom: 3px solid var(--gold); }
.cv2-topbar-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.cv2-topbar-heading { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.cv2-committee-name { font-size: 1.15rem; color: var(--navy); margin: 0; }
.cv2-member-count { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.cv2-session-ctl { display: flex; align-items: center; gap: 0.5rem; }
.cv2-session-badge { display: inline-block; background: #f4f2ea; color: var(--muted); font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 999px; letter-spacing: 0.05em; text-transform: uppercase; }
.cv2-session-badge.is-open { background: #eaf6ec; color: #1d7a34; }

.cv2-pills { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cv2-pill { display: inline-flex; align-items: baseline; gap: 0.32rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  background: #f4f2ea; font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.cv2-pill b { font-size: 0.95rem; }
.cv2-pill small { font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.62rem; color: var(--muted); }
.cv2-pill-voting { background: #eaf6ec; }
.cv2-pill-voting b { color: #1d7a34; }
.cv2-pill-present { background: #eef2fb; }
.cv2-pill-present b { color: var(--un-blue); }
.cv2-pill-absent { background: #fbeae9; }
.cv2-pill-absent b { color: #b3261e; }
#cv2-rc-toggle.is-open { background: var(--navy); border-color: var(--navy); color: #fff; }

.cv2-agenda-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #efece3; }
.cv2-agenda-text { font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.cv2-agenda-text.is-empty { color: var(--muted); font-weight: 500; font-style: italic; }
.cv2-agenda-input { flex: 1; min-width: 180px; }

/* Roll Call — a native <dialog> (see command-v2.js's makeSessionView,
   which drives it with showModal()/close()) rather than an inline panel:
   a real backdrop + top-layer stacking means it's a properly CONTAINED
   element that can never overlap/collide with the page underneath while
   scrolling, and it gets focus-trap + ESC-to-close for free. Mirrors the
   existing .tmun-modal/.committee-modal dialog pattern elsewhere in this
   file. Header (title + actions) stays fixed; only the member list scrolls
   internally — the same bounded-flex-child technique as the outer shell. */
.cv2-rc-dialog { margin: auto; border: 0; border-radius: 16px; padding: 0;
  width: min(560px, calc(100vw - 2rem)); max-height: 82vh; max-height: 82dvh;
  flex-direction: column; background: #fff;
  box-shadow: 0 24px 80px rgba(1,16,56,0.35); border-top: 4px solid var(--gold); }
/* display:flex only while [open] — the browser's own dialog:not([open]) {
   display:none } must stay in charge of hiding it when closed; setting
   display unconditionally here would override that and leave the closed
   dialog's (still flex-laid-out) content sitting inertly in the grid/flex
   flow of .cv2-session instead of actually disappearing. */
.cv2-rc-dialog[open] { display: flex; }
.cv2-rc-dialog::backdrop { background: rgba(1, 16, 56, 0.55); backdrop-filter: blur(3px); }
.cv2-rc-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  flex: none; padding: 1.4rem 1.6rem 0.9rem; border-bottom: 1px solid #efece3; }
.cv2-rc-head h3 { font-size: 1.05rem; color: var(--navy); margin: 0; }
.cv2-rc-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.cv2-rc-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 0.1rem 0.3rem; }
.cv2-rc-close:hover { color: var(--navy); }
.cv2-rc-list { list-style: none; margin: 0; padding: 0.6rem 1.6rem 1.4rem; flex: 1; min-height: 0; overflow-y: auto; }
.cv2-rc-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.1rem; border-bottom: 1px solid #f0ece2; }
.cv2-rc-row:last-child { border-bottom: 0; }
.cv2-rc-row .cv2-flag { font-size: 1.1rem; flex: none; }
.cv2-rc-name { flex: 1; font-size: 0.85rem; }
.cv2-rc-btns { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.cv2-rc-btn { border: 1.5px solid #d6d1c4; background: #fff; border-radius: 999px; padding: 0.22rem 0.6rem;
  font-size: 0.72rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.cv2-rc-btn.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.cv2-rc-btn[data-status="present_voting"].is-current { background: #1d7a34; border-color: #1d7a34; }
/* Mobile: iOS/WebKit collapses a flex:1 list inside an auto-height <dialog>, so
   the member list shrank to ~1 clipped row. A definite height (dvh) turns it into
   a bottom sheet where the scrollable list resolves correctly on every browser. */
@media (max-width: 640px) {
  .cv2-rc-dialog { width: 100vw; max-width: 100vw; height: 88dvh; max-height: 88dvh;
    margin: auto auto 0; border-radius: 18px 18px 0 0; }
  .cv2-rc-btns { flex-wrap: nowrap; }
}

/* Tab bar — mobile default: fixed bottom bar, icon + label */
.cv2-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff;
  box-shadow: 0 -6px 20px rgba(1,16,56,0.18); border-top: 2px solid var(--gold); }
.cv2-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  padding: 0.5rem 0.2rem 0.6rem; background: none; border: 0; cursor: pointer; color: var(--muted); font-family: inherit; }
.cv2-tab-icon svg { width: 21px; height: 21px; display: block; }
.cv2-tab-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.cv2-tab.is-active { color: var(--navy); }
.cv2-tab.is-active .cv2-tab-icon { color: var(--gold); }

/* .cv2-panels is a flex child of the height-locked .cv2-session (mobile) —
   flex:1 + min-height:0 makes it fill exactly whatever space is left under
   the header (whatever that header's actual height turns out to be) and
   scroll internally, instead of a max-height guessed from the header's
   *typical* content height (the old approach broke the moment the header
   was taller than guessed, e.g. wrapped pills). padding-bottom clears the
   fixed bottom tab bar so the last card is never hidden under it. */
.cv2-panels { flex: 1 1 auto; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: 5rem; }
.cv2-panel-placeholder { background: #fff; border-radius: 14px; padding: 2.5rem 1.5rem; text-align: center;
  box-shadow: 0 10px 30px rgba(1,16,56,0.12); color: var(--muted); }
.cv2-panel-placeholder h2 { color: var(--navy); margin-bottom: 0.4rem; }

/* GSL panel */
.cv2-gsl-panel { display: flex; flex-direction: column; gap: 1.1rem; }
.cv2-gsl-current-card { text-align: center; }
.cv2-timer-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; text-align: center; margin: 0.4rem 0 0; }
.cv2-gsl-current-info { display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.cv2-gsl-current-info .cv2-flag { font-size: 1.6rem; }
.cv2-gsl-time { font-size: 3.2rem; text-align: center; margin: 0.3rem 0 0.9rem; }
.cv2-gsl-timer-ctrls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
.cv2-gsl-seconds-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem;
  font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.cv2-gsl-seconds-input { width: 4.6rem; padding: 0.4rem 0.5rem; }

.cv2-gsl-mode { display: flex; align-items: center; gap: 0.5rem; }
.cv2-gsl-mode .cv2-label { margin-bottom: 0; }
.cv2-gsl-mode-select { width: auto; padding: 0.4rem 0.6rem; }

.cv2-gsl-list { list-style: none; margin: 0 0 0.9rem; padding: 0; }
.cv2-gsl-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem;
  border: 1px solid #e8e4da; border-radius: 8px; margin-bottom: 0.4rem; }
.cv2-gsl-row-num { font-size: 0.75rem; font-weight: 700; color: var(--muted); min-width: 1.2rem; }
.cv2-gsl-row-name { flex: 1; font-size: 0.9rem; }
.cv2-gsl-row-btns { display: flex; gap: 0.25rem; flex: none; }
.cv2-icon-btn { background: none; border: 1px solid #d6d1c4; border-radius: 6px; width: 1.7rem; height: 1.7rem;
  line-height: 1; cursor: pointer; color: var(--navy); font-size: 0.85rem; }
.cv2-icon-btn:hover { background: #f4f2ea; }
.cv2-icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cv2-icon-btn-remove { color: #b3261e; border-color: #f0c9c6; }
.cv2-icon-btn-remove:hover { background: #fbeae9; }

.cv2-gsl-add { margin-top: 0.4rem; }
.cv2-gsl-picker { margin-top: 0.6rem; border-top: 1px solid #efece3; padding-top: 0.6rem; }
.cv2-gsl-picker-search { margin-bottom: 0.5rem; }
.cv2-gsl-picker-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto;
  border: 1px solid #e8e4da; border-radius: 8px; }
.cv2-gsl-picker-row[hidden] { display: none; }
.cv2-gsl-picker-btn { width: 100%; display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.7rem;
  background: none; border: 0; border-bottom: 1px solid #f0ece2; cursor: pointer; font-size: 0.88rem;
  color: var(--ink); text-align: left; font-family: inherit; }
.cv2-gsl-picker-row:last-child .cv2-gsl-picker-btn { border-bottom: 0; }
.cv2-gsl-picker-btn:hover { background: #faf8f3; }

/* Motions panel — "further motions" list reuses the shared .cmd-motion*
   badge/list styles (see "motions & voting" above) rather than duplicating
   them under a cv2- prefix. */
.cv2-motions-panel { display: flex; flex-direction: column; gap: 1.1rem; }
.cv2-motion-top-card { text-align: center; }
.cv2-motion-title { color: var(--ink); font-size: 1.15rem; margin: 0.5rem 0 0.3rem; }
.cv2-motion-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.2rem; }
.cv2-motion-proposer { color: var(--muted); font-size: 0.82rem; margin: 0 0 0.9rem; }
.cv2-motion-actions { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.6rem; }
.cv2-btn-fail { color: #b3261e; border-color: #f0c9c6; }
.cv2-btn-fail:hover { background: #fbeae9; }

.cv2-motion-form { display: flex; flex-direction: column; gap: 0.7rem; }
.cv2-motion-form .cv2-label { margin-bottom: 0.3rem; }
.cv2-motion-time-row { display: flex; flex-direction: column; }

.cv2-motion-clear-row { display: flex; justify-content: flex-end; }

/* Vote panel — final panel. Prominent gold-bordered card (.cv2-vote-card);
   pass=green / fail=red mirrors the existing .cmd-vote*/.ls-vote* result
   colors used elsewhere in the app (see the top of this file). */
.cv2-vote-panel { display: flex; flex-direction: column; gap: 1.1rem; }
.cv2-vote-card { border: 2px solid var(--gold); }

.cv2-vote-start-form { display: flex; flex-direction: column; gap: 0.9rem; }
.cv2-vote-start-form .cv2-label { margin-bottom: 0.3rem; }
.cv2-vote-start-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cv2-vote-start-row > div { flex: 1; min-width: 160px; }

/* Cloud-only manual-count toggle on the Start Vote form (see renderStart in
   command-v2.js) — an actual checkbox control, so it gets its own row
   instead of borrowing .cv2-empty's muted note styling. */
.cv2-vote-manual-toggle { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink); cursor: pointer; }
.cv2-vote-manual-toggle input { flex: none; }

.cv2-vote-hist-list { list-style: none; margin: 0; padding: 0; }
.cv2-vote-hist-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.1rem; border-bottom: 1px solid #f0ece2; }
.cv2-vote-hist-row:last-child { border-bottom: 0; }
.cv2-vote-hist-badge { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.2rem 0.55rem; border-radius: 999px; flex: none; }
.cv2-vote-hist-badge--passed { background: #eaf6ec; color: #157347; }
.cv2-vote-hist-badge--failed { background: #fbeae9; color: #b02a37; }
.cv2-vote-hist-label { flex: 1; font-size: 0.9rem; color: var(--ink); }
.cv2-vote-hist-counts { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.cv2-vote-open-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.cv2-vote-open-label { color: var(--navy); font-size: 1.2rem; margin: 0; }
.cv2-vote-open-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.cv2-vote-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--navy); background: #f4f2ea; border-radius: 999px; padding: 0.28rem 0.65rem; }

.cv2-vote-mode-toggle { display: flex; gap: 0.4rem; margin-bottom: 0.9rem; }
.cv2-vote-mode-toggle .is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.cv2-vote-member-list { list-style: none; margin: 0 0 0.9rem; padding: 0; max-height: 360px; overflow-y: auto; }
.cv2-vote-member-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.2rem; border-bottom: 1px solid #f0ece2; }
.cv2-vote-member-row:last-child { border-bottom: 0; }
.cv2-vote-member-name { flex: 1; font-size: 0.9rem; }
.cv2-vote-member-btns { display: flex; gap: 0.3rem; flex-wrap: wrap; flex: none; }
.cv2-vote-choice-btn { border: 1.5px solid #d6d1c4; background: #fff; border-radius: 999px; padding: 0.3rem 0.75rem;
  font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.cv2-vote-choice-btn:hover { background: #faf8f3; }
.cv2-vote-choice-btn--for.is-selected { background: #157347; border-color: #157347; color: #fff; }
.cv2-vote-choice-btn--against.is-selected { background: #b02a37; border-color: #b02a37; color: #fff; }
.cv2-vote-choice-btn--abstain.is-selected { background: var(--muted); border-color: var(--muted); color: #fff; }

.cv2-vote-manual-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.cv2-vote-manual-label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.cv2-vote-manual-input { width: 6rem; }

.cv2-vote-tally { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: 0.75rem; border-top: 1px solid #efece3; margin-bottom: 0.4rem; }
.cv2-vote-tally-item { font-size: 0.85rem; color: var(--muted); }
.cv2-vote-tally-item b { font-size: 1.05rem; color: var(--ink); margin-left: 0.3rem; }
.cv2-vote-tally-for b { color: #157347; }
.cv2-vote-tally-against b { color: #b02a37; }

.cv2-vote-projected { font-weight: 800; letter-spacing: 0.02em; font-size: 1rem; margin: 0 0 0.9rem; }
.cv2-vote-projected.passed { color: #157347; }
.cv2-vote-projected.failed { color: #b02a37; }

.cv2-vote-close-row { display: flex; justify-content: flex-end; }

/* Desktop ≥820px: tabs become a left rail, topbar spans full width.
   grid-template-rows: auto minmax(220px,1fr) — row 1 is exactly the
   header's real (auto) height, row 2 gets whatever's left of the
   height-locked .cv2-session (see .cmd-main:has(.cv2-session) above) down
   to a 220px floor, so the rail/panels can never be squeezed to nothing by
   a very tall header. Both the rail and the panels get their own
   overflow-y so EITHER can scroll independently within that fixed row —
   neither ever needs to guess the header's height, and neither can slide
   over it since row 2 starts only after row 1 ends. */
@media (min-width: 820px) {
  .cv2-session { display: grid; grid-template-columns: 230px 1fr; grid-template-rows: auto minmax(220px, 1fr); gap: 1.25rem; }
  .cv2-topbar { grid-column: 1 / -1; }
  .cv2-tabbar { position: static; flex-direction: column; grid-column: 1; grid-row: 2; align-self: stretch;
    z-index: 1; min-height: 0; overflow-y: auto; /* z-index only matters as a grid item — must stay below .cv2-topbar's 45 */
    background: #fff; border-radius: 14px; border-top: 0; box-shadow: 0 10px 30px rgba(1,16,56,0.14); padding: 0.7rem; gap: 0.2rem; }
  .cv2-tab { flex-direction: row; justify-content: flex-start; gap: 0.7rem; padding: 0.65rem 0.85rem; border-radius: 10px; }
  .cv2-tab-label { font-size: 0.85rem; text-transform: none; letter-spacing: normal; }
  .cv2-tab.is-active { background: var(--navy); color: #fff; }
  .cv2-tab.is-active .cv2-tab-icon { color: var(--gold); }
  .cv2-panels { grid-column: 2; grid-row: 2; min-height: 0; padding-bottom: 0; }
}

/* TIMUN member-code card on the Profile page + Perks section */
/* TIMUN ID — "member pass" (ticket with a perforated navy stub) */
.prof-id-card { display: flex; margin-top: 1.5rem; border: 1px solid #e3ddcd; border-radius: 14px;
  overflow: hidden; background: #fff; box-shadow: 0 14px 36px -22px rgba(1, 16, 56, 0.55); }
.prof-id-main { flex: 1; min-width: 0; padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, #fffdf8, #fbf5e6); }
.prof-id-eb { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: #b8860b; margin: 0 0 0.55rem; }
.prof-id-code { display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.55rem; font-weight: 800; letter-spacing: 0.1em; color: var(--navy); margin: 0 0 0.65rem; }
.prof-id-note { font-size: 0.83rem; color: var(--muted); margin: 0 0 0.85rem; max-width: 36ch; line-height: 1.5; }
.prof-id-note a { color: var(--navy); font-weight: 600; }
.prof-id-copy { font-size: 0.78rem; font-weight: 700; color: var(--navy); background: transparent;
  border: 1.5px solid var(--gold); border-radius: 999px; padding: 0.35rem 0.9rem; cursor: pointer;
  transition: background 0.15s; }
.prof-id-copy:hover { background: var(--gold); }
.prof-id-stub { flex: none; width: 118px; background: var(--navy); color: #eaf0ff; padding: 1.1rem 0.75rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem;
  text-align: center; position: relative; }
.prof-id-stub::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(#fff 0 7px, transparent 7px 15px); }
.prof-id-emb { width: 40px; height: 40px; object-fit: contain; }
.prof-id-m { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.prof-id-y { font-size: 0.72rem; color: #cfd6e4; }
@media (max-width: 430px) { .prof-id-stub { width: 96px; } .prof-id-main { padding: 1.1rem 1.15rem; } }
.perks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.perk-card { background: #fff; border: 1px solid #e8e4da; border-radius: 14px; padding: 1.2rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem; }
.perk-card .perk-partner { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #b8860b; }
.perk-card h4 { margin: 0; color: var(--navy); font-size: 1.08rem; }
.perk-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.perk-card .perk-link { margin-top: 0.35rem; align-self: flex-start; }
.perk-empty { color: var(--muted); }
