/* ==== Design tokeny JABLOTRON (zdroj: Brand manuál DOC_UO_01, 2501-02 CZ, s. 10-11) ====
   Firemní barvy: žlutá #FFC300, modrá #0085CF, šedá #A2AAB6, černá #000, bílá #FFF.
   Intenzity 10/20/50/70 % jsou odvozeny mísením s bílou (manuál dovoluje úpravu intenzity).
   Písmo: JABLO FONT (Thin/Regular/Semibold) není dodán; náhrada Arial/Helvetica dle manuálu s. 11.
   Mimo manuál (nutné pro WCAG AA): --blue-ink, --red, --green, viz report.
   Tento soubor je zkopírován do public-api/public i internal-app/public, drž je shodné. */
@font-face { font-family:"Jablo"; font-weight:400; src:local("Jablo Regular"),local("JABLO Regular"),local("Jablo-Regular"); }
@font-face { font-family:"Jablo"; font-weight:600; src:local("Jablo Semibold"),local("JABLO Semibold"),local("Jablo-Semibold"); }
:root {
  --yellow:#FFC300; --yellow-hover:#E6B000; --yellow-20:#FFF3CC; --yellow-10:#FFF9E6;
  --blue:#0085CF; --blue-10:#E6F3FA; --blue-ink:#00629A;
  --grey:#A2AAB6; --grey-10:#F6F7F8; --grey-20:#ECEEF0; --grey-50:#D0D4DB;
  --black:#000; --black-70:#4D4D4D; --black-50:#767676; --white:#fff;
  --red:#B3261E; --red-10:#FCEBEA; --green:#1D6B3A; --green-10:#E8F4EC;
  --bg:var(--grey-10); --fg:var(--black); --muted:var(--black-70); --card:var(--white);
  --line:var(--grey-50); --line-strong:var(--black-50); --focus:var(--black);
  --font:"Jablo",Arial,Helvetica,sans-serif;
  --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem; --s5:1.5rem; --s6:2rem; --s7:3rem;
  --r-sm:.25rem; --r:.5rem; --r-pill:999px;
  --shadow:0 1px 2px rgba(0,0,0,.08),0 2px 8px rgba(0,0,0,.06);
}
* { box-sizing:border-box; }
body { margin:0; font:400 .9375rem/1.45 var(--font); background:var(--bg); color:var(--fg); }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; box-shadow:0 0 0 6px var(--yellow); }
.skip { position:absolute; left:-999px; } .skip:focus { left:8px; top:8px; background:var(--yellow); color:var(--black); font-weight:600; padding:8px 12px; z-index:10; }
.top { display:flex; flex-wrap:wrap; gap:8px 24px; align-items:center; justify-content:space-between; padding:14px 16px; background:var(--white); border-bottom:4px solid var(--yellow); }
/* Logo: výška dává šířku > 150 px (min. 20 mm); ochranná zóna ~9 % šířky loga zajištěna paddingem */
.logo { display:block; height:1.6rem; width:auto; }
.present-logo { display:block; height:clamp(2rem,7vh,4.5rem); width:auto; margin:0 0 2vh; }
.brand { display:flex; align-items:center; gap:12px; }
.top h1 { margin:0; font-size:.9375rem; font-weight:400; letter-spacing:.14em; text-transform:uppercase; color:var(--black-70); padding-left:16px; border-left:2px solid var(--grey-50); line-height:1.6rem; }
.who { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.who label { font-weight:600; }
nav { background:var(--black); overflow-x:auto; }
[role=tablist] { display:flex; gap:2px; padding:0 8px; }
[role=tab] { font:inherit; color:var(--grey-50); background:none; border:0; border-bottom:4px solid transparent; padding:10px 16px; min-height:44px; cursor:pointer; white-space:nowrap; }
[role=tab]:hover { color:var(--white); background:#1a1a1a; }
[role=tab][aria-selected=true] { color:var(--white); border-bottom-color:var(--yellow); font-weight:600; }
[role=tab][aria-selected=true]::before { content:"● "; color:var(--yellow); font-size:.7em; vertical-align:middle; }
nav :focus-visible { outline-color:var(--yellow); box-shadow:none; outline-offset:-3px; }
.badge { display:inline-block; min-width:1.5em; padding:0 6px; border-radius:var(--r-pill); background:var(--yellow); color:var(--black); font-size:.8rem; font-weight:600; text-align:center; }
main { max-width:60rem; margin:0 auto; padding:16px; }
main:focus { outline:none; }
.status { min-height:1.5em; padding:6px 16px; max-width:60rem; margin:0 auto; color:var(--muted); font-weight:600; }
.status.error { color:var(--red); } .status.error::before { content:"✕ "; }
h2 { font-size:1.0625rem; font-weight:600; margin:20px 0 8px; padding-bottom:4px; border-bottom:2px solid var(--yellow); }
.card { background:var(--card); border:1px solid var(--line); border-left:4px solid var(--grey); border-radius:var(--r); padding:10px 14px; margin:0 0 10px; }
.card .text { margin:0 0 6px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:1.0625rem; }
.meta { color:var(--muted); font-size:.85rem; display:flex; flex-wrap:wrap; gap:4px 12px; margin-bottom:8px; align-items:center; }
.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
button, select, input[type=text], input[type=number] { font:inherit; min-height:44px; }
button { padding:6px 14px; border-radius:var(--r-sm); border:2px solid var(--black); background:var(--white); color:var(--black); cursor:pointer; font-weight:600; }
button:hover:not(:disabled) { background:var(--grey-20); }
button.primary { background:var(--yellow); border-color:var(--yellow); }
button.primary:hover:not(:disabled) { background:var(--yellow-hover); border-color:var(--yellow-hover); }
button.danger { color:var(--red); border-color:var(--red); }
button.danger::before { content:"✕ "; }
button.danger:hover:not(:disabled) { background:var(--red-10); }
button:disabled { background:var(--grey-20); border-color:var(--grey-50); color:var(--black-70); cursor:not-allowed; }
[role=tab] { font-weight:400; border-radius:0; min-height:44px; }
[role=tab][aria-selected=true] { font-weight:600; }
select, input[type=text], input[type=number] { padding:4px 8px; border:2px solid var(--line-strong); border-radius:var(--r-sm); background:var(--white); color:var(--fg); max-width:100%; }
.muted { color:var(--muted); }
.empty { color:var(--muted); padding:32px 0; text-align:center; border:2px dashed var(--grey-50); border-radius:var(--r); }
.tag { display:inline-block; border:1px solid var(--black-50); border-radius:var(--r-sm); padding:0 6px; font-size:.8rem; font-weight:600; color:var(--black); background:var(--white); }
.tag.prio { background:var(--yellow-20); border-color:var(--black); }
.tag.prio::before { content:"★ "; }
/* Stavy otázky: rozlišeny glyfem a textem, ne jen barvou */
.tag.st::before { margin-right:.3em; }
.tag.st-free::before { content:"○"; }
.tag.st-assigned::before { content:"◔"; }
.tag.st-in_progress::before { content:"▶"; }
.tag.st-snoozed::before { content:"❚❚"; font-size:.7em; }
.tag.st-answered::before { content:"✓"; }
.tag.st-in_progress { background:var(--blue-10); border-color:var(--blue-ink); color:var(--blue-ink); }
.tag.st-answered { background:var(--green-10); border-color:var(--green); color:var(--green); }
.tag.st-snoozed { background:var(--grey-20); border-style:dashed; }
.tag.st-free { background:var(--white); }
.tag.st-assigned { background:var(--yellow-10); }
code { font-size:.8rem; overflow-wrap:anywhere; background:var(--grey-20); padding:0 4px; border-radius:3px; }
form.room { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:10px 16px; align-items:end; }
form.room label { display:flex; flex-direction:column; gap:4px; font-size:.9rem; font-weight:600; }
form.room fieldset { border:1px solid var(--line-strong); border-radius:var(--r-sm); margin:0; padding:6px 10px; grid-column:1/-1; display:flex; flex-wrap:wrap; gap:4px 16px; }
form.room .check { flex-direction:row; align-items:center; gap:8px; min-height:44px; font-weight:400; }
form.room .check input { width:20px; height:20px; accent-color:var(--black); }
.mergebox { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; width:100%; }
.mergebox input { flex:1 1 260px; }
@media (max-width:520px) { main { padding:12px; } .actions button { flex:1 1 auto; } .logo { height:1.4rem; } }
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s; } }
@media (forced-colors:active) { button.primary { border:2px solid ButtonText; } [role=tab][aria-selected=true] { border-bottom-color:Highlight; } }

/* Vstup účastníků: kód u místnosti a stránka Promítnout */
.share { border:1px solid var(--line); border-left:4px solid var(--yellow); border-radius:var(--r-sm); background:var(--yellow-10); padding:8px 12px; margin:0 0 12px; }
.share p { margin:0 0 6px; }
.joincode { font-size:1.5rem; font-weight:600; letter-spacing:.12em; font-variant-numeric:tabular-nums; }
body.presenting .top, body.presenting nav, body.presenting .status, body.presenting .skip { display:none; }
body.presenting { background:var(--white); }
body.presenting main { max-width:none; padding:0; }
.present { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem; padding:2vh 4vw; text-align:center; border-top:1.5vh solid var(--yellow); }
.present h1 { margin:0; font-size:clamp(1.5rem,4vw,3rem); font-weight:600; }
.present-qr svg { display:block; width:min(40vh,80vw); height:min(40vh,80vw); }
.present-hint { margin:0; font-size:clamp(1rem,2.2vw,1.75rem); color:var(--muted); }
.present-url { margin:0; font-size:clamp(1.5rem,4vw,3rem); font-weight:600; overflow-wrap:anywhere; }
.present-code { margin:0; font-size:clamp(3rem,min(13vw,13vh),9rem); line-height:1; font-weight:600; letter-spacing:.12em; font-variant-numeric:tabular-nums; }
.present-warn { margin:0; padding:6px 16px; border:2px solid var(--red); color:var(--red); font-weight:600; font-size:clamp(1rem,2.5vw,2rem); }
.present-actions { margin-top:1rem; justify-content:center; }
@media print { .present-actions { display:none; } }

/* Odpovědi, fokus po akci, stavová hláška (rev-a11y A1, S4–S7) */
.status { position:sticky; top:0; z-index:6; background:var(--bg); border-bottom:1px solid transparent; }
.status:not(:empty) { border-bottom-color:var(--line); }
.card:focus { outline:3px solid var(--focus); outline-offset:2px; }
.answer { margin:0 0 8px; padding:6px 10px; border-left:4px solid var(--green); background:var(--green-10); border-radius:var(--r-sm); }
.answer .meta { margin:0 0 2px; } .answer-text { font-size:1rem; margin:0; }
.answerbox { width:100%; display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.answerbox[hidden] { display:none; }
.answerbox textarea { font:inherit; width:100%; min-height:6rem; padding:8px; border:2px solid var(--line-strong); border-radius:var(--r-sm); resize:vertical; }
.answerbox .hint { margin:0; font-size:.85rem; }
.idtag { font-size:.8rem; font-weight:400; }
input[type=checkbox] { width:20px; height:20px; accent-color:var(--black); }
@media (max-width:640px) { [role=tablist] { flex-wrap:wrap; } nav { overflow-x:visible; } }
