/* Konzole organizatora (faze D, B3a; 23. 10. 2026). Vizual = designer (prototyping/output/2026-10-22-faze-d-design/mockup.html 02083cd6); barvy a pismo jako lachez-home.
   Kontejnerove dotazy (@container) pocitaji se sirkou korene #org (.org-ct) - stejne breakpointy jako mockup (600 / 700 / 900 px). */
* { box-sizing:border-box; }
html { background:var(--bg); }
body { margin:0; background:var(--bg); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; min-height:100vh; }
.org-ct { container-type:inline-size; min-height:100vh; }
:root { --bg:#fbf7ef; --ink:#3a2f1e; --accent:#c9701a; --muted:#786950; --line:#e0d2b9; --card:#ffffff; --paper:#f4ecdd; --ok:#2e7d32; --ok-soft:#e5f2e6; --warn:#a15c00; --warn-soft:#fff1d6; --err:#c62828; --err-soft:#fdecea; --note:#c62828; --grid:rgba(120,105,80,.13); --field:#ffffff; }
html[data-theme="dark"] { --bg:#121214; --ink:#e4e4e7; --accent:#e08a3a; --muted:#a1a1aa; --line:#3a3a44; --card:#1e1e24; --paper:#18181c; --ok:#66bb6a; --ok-soft:#1d2e1f; --warn:#ffb84d; --warn-soft:#3a2c12; --err:#ef5350; --err-soft:#3a1c1c; --note:#ef9a9a; --grid:rgba(255,255,255,.06); --field:#16161a; color-scheme:dark; }
/* app shell */
  .top { display:flex; align-items:center; gap:12px; padding:12px 24px; border-bottom:1px solid var(--line); background:var(--card); }
@container (max-width:600px) { .top { padding:10px 14px; } }
.brand { display:flex; align-items:center; gap:8px; font:700 18px Georgia,serif; }
.brand img { width:26px; }
.brand small { font:600 12px -apple-system,Arial,sans-serif; color:var(--muted); }
.top .sp { flex:1; }
.lngsw { font-size:13px; color:var(--muted); display:inline-flex; gap:6px; align-items:center; margin-right:12px; }
.lngsw a { color:var(--accent); text-decoration:none; font-weight:700; }
.lngsw b { color:var(--ink); }
.lngsw select { font:inherit; font-size:13px; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:8px; padding:4px 6px; max-width:9.5em; }      /* 13. 11. 2026: 9 jazyku jako vyber */
@container (max-width:600px) { .brand small { display:none; } .lngsw { margin-right:4px; } .lngsw select { max-width:6.2em; padding:3px 4px; } }      /* mobil: vyber + odhlaseni + motiv se vejdou */
.who { font-size:13px; color:var(--muted); }
.who a { color:var(--accent); text-decoration:none; font-weight:700; margin-left:10px; }
@container (max-width:600px) { .who .name { display:none; } }
.body { padding:24px; }
@container (max-width:600px) { .body { padding:16px 14px 24px; } }
h1 { font:700 28px Georgia,serif; margin:0 0 6px; }
@container (max-width:600px) { h1 { font-size:23px; } }
.muted { color:var(--muted); }
p.lead { color:var(--muted); font-size:15px; margin:0 0 16px; }
.btn { display:inline-flex; align-items:center; gap:6px; text-decoration:none; font-weight:700; font-size:14px; padding:10px 16px; border-radius:12px; border:2px solid transparent; cursor:pointer; font-family:inherit; }
.btn-primary { background:var(--accent); color:#fff; }
.btn-outline { color:var(--accent); border-color:var(--accent); background:transparent; }
.btn-ghost { color:var(--accent); background:transparent; padding:10px 6px; }
.btn[disabled] { opacity:.45; cursor:default; }
.chip { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; border:1px solid var(--line); color:var(--muted); background:var(--card); white-space:nowrap; }
.chip.ordered { background:var(--warn-soft); color:var(--warn); border-color:transparent; }
.chip.paid { background:var(--ok-soft); color:var(--ok); border-color:transparent; }
.chip.pub { color:var(--accent); border-color:var(--accent); }
.box { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:18px; }
label.f { display:block; font-size:13px; font-weight:700; margin:14px 0 6px; }
label.f span { font-weight:400; color:var(--muted); }
.in { width:100%; font:inherit; font-size:15px; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:var(--field); color:var(--ink); }
.in.err { border-color:var(--err); }
.errtxt { color:var(--err); font-size:12px; margin-top:4px; }
textarea.in { min-height:84px; resize:vertical; }
.row2 { display:grid; grid-template-columns:1fr; gap:0 16px; }
@container (min-width:700px) { .row2 { grid-template-columns:1fr 1fr; } }
.hint { color:var(--muted); font-size:12px; margin-top:4px; }
.drop { border:2px dashed var(--line); border-radius:12px; padding:16px; text-align:center; color:var(--muted); font-size:14px; }
.logo-up { display:flex; gap:12px; align-items:center; }
.logo-up .tile { background:#fff; border-radius:10px; padding:6px 10px; height:56px; display:flex; align-items:center; box-shadow:0 1px 3px rgba(0,0,0,.18); }
.logo-up .tile img { max-height:44px; max-width:120px; }
.toggle { display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-top:1px solid var(--line); }
.sw { flex:none; width:44px; height:26px; border-radius:13px; background:var(--line); position:relative; margin-top:2px; }
.sw::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.25); }
.sw.on { background:var(--accent); }
.sw.on::after { left:21px; }
.savebar { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:16px; }
.savebar .ok { color:var(--ok); font-size:13px; font-weight:700; }
/* partneři (konzole) */
  .partners { margin-top:6px; }
.prow { display:grid; grid-template-columns:96px 1fr 1fr auto auto; gap:10px; align-items:center; padding:10px 0; border-top:1px solid var(--line); }
.prow .ptile { height:56px; border-radius:10px; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 3px rgba(0,0,0,.18); }
.prow .ptile { box-sizing:border-box; padding:4px; overflow:hidden; }
.prow .ptile img { max-height:100%; max-width:100%; object-fit:contain; }
.prow .ptile.drop { background:transparent; box-shadow:none; border:2px dashed var(--line); color:var(--muted); font-size:11px; text-align:center; line-height:1.2; padding:4px; }
.prow .in { padding:9px 10px; font-size:14px; }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:10px; overflow:hidden; font-size:12.5px; white-space:nowrap; }
.seg span { padding:8px 10px; color:var(--muted); background:var(--field); }
.seg span.on { background:var(--accent); color:#fff; font-weight:700; }
.ord { display:flex; gap:2px; }
.ib { width:34px; height:34px; border-radius:8px; border:1px solid var(--line); background:var(--field); color:var(--ink); display:inline-flex; align-items:center; justify-content:center; font-size:15px; cursor:pointer; }
.ib[disabled] { opacity:.35; cursor:default; }
.ib.del { color:var(--err); }
@container (max-width:700px) {
    .prow { grid-template-columns:72px 1fr; grid-template-areas:"logo name" "logo web" "role role" "ord ord"; gap:8px 10px; }
    .prow .ptile { grid-area:logo; height:72px; } .prow .pn { grid-area:name; } .prow .pw { grid-area:web; }
    .prow .seg { grid-area:role; justify-self:start; } .prow .ord { grid-area:ord; justify-self:end; }
  }
/* stránka akce (fáze C) – partneři */
  .ep-head { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.ep-head .tile { background:#fff; border-radius:12px; padding:8px 12px; height:84px; display:flex; align-items:center; box-shadow:0 1px 3px rgba(0,0,0,.18); }
.ep-head .tile img { max-height:66px; max-width:180px; }
@container (max-width:600px) { .ep-head .tile { height:64px; } .ep-head .tile img { max-height:48px; } }
.ep-org { color:var(--muted); font-size:15px; margin-top:4px; }
.ep-org b { color:var(--accent); font-style:italic; }
.pp { margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }
.pp h3 { margin:0 0 8px; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.pp .lg { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.pp .lg a { text-decoration:none; color:var(--ink); }
.pp .gt { background:#fff; border-radius:10px; height:56px; min-width:96px; padding:6px 12px; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 3px rgba(0,0,0,.18); }
.pp .gt img { max-height:40px; max-width:150px; }
.pp .st { background:#fff; border-radius:8px; height:40px; min-width:72px; padding:4px 10px; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 2px rgba(0,0,0,.15); }
.pp .st img { max-height:28px; max-width:100px; }
.pp .nm { height:40px; display:flex; align-items:center; padding:0 12px; border:1px solid var(--line); border-radius:8px; font-size:13px; font-weight:600; background:var(--card); }
.pp .more { font-size:13px; color:var(--accent); font-weight:700; text-decoration:none; padding:0 6px; }
/* přihlášení */
  .auth { max-width:420px; margin:56px auto 40px; }
@container (max-width:600px) { .auth { margin:28px auto 20px; } }
.auth .box { padding:24px; }
.auth .alt { display:flex; justify-content:space-between; margin-top:10px; font-size:14px; }
.auth .alt a { color:var(--accent); text-decoration:none; font-weight:700; }
.alert { border-radius:12px; padding:12px 14px; font-size:14px; margin-bottom:14px; }
.alert.err { background:var(--err-soft); color:var(--err); }
.alert.ok { background:var(--ok-soft, rgba(46,125,50,.12)); color:var(--ok); }
.mailicon { width:48px; height:48px; border-radius:50%; background:var(--paper); display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:10px; color:var(--accent); }
/* seznam akcí */
  .listhead { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.evgrid { display:grid; gap:14px; grid-template-columns:1fr; }
@container (min-width:700px) { .evgrid { grid-template-columns:repeat(3,1fr); } }
.ev { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px; text-decoration:none; color:var(--ink); display:flex; flex-direction:column; gap:8px; }
.ev .t { display:flex; gap:10px; align-items:center; }
.ev .t .tile { background:#fff; border-radius:8px; padding:4px 6px; height:40px; display:flex; align-items:center; box-shadow:0 1px 2px rgba(0,0,0,.15); }
.ev .t .tile img { max-height:32px; max-width:72px; }
.ev .t .tile.fb { background:var(--accent); width:40px; justify-content:center; }
.ev .t .tile.fb img { filter:brightness(0) invert(1); max-height:28px; }
.ev b { font:700 17px Georgia,serif; }
.ev .meta { color:var(--muted); font-size:13px; }
.bar { height:6px; border-radius:3px; background:var(--line); overflow:hidden; }
.bar i { display:block; height:100%; background:var(--accent); }
.chips { display:flex; gap:6px; flex-wrap:wrap; }
.empty { text-align:center; padding:48px 20px; border:2px dashed var(--line); border-radius:16px; color:var(--ink); }
#org .empty a.btn-primary { color:#fff; background:var(--accent); }
#org .empty .lead { color:var(--muted); text-align:center; margin-left:auto; margin-right:auto; }
.empty h2 { font:700 22px Georgia,serif; margin:8px 0 6px; color:var(--ink); }
/* detail akce */
  .dbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 24px; border-bottom:1px solid var(--line); }
@container (max-width:600px) { .dbar { padding:12px 14px; } }
.dbar h1 { font-size:22px; margin:0; }
.dbar .sp { flex:1; }
.dbar a.back { color:var(--accent); text-decoration:none; font-weight:700; font-size:14px; width:100%; }
.layout { display:grid; grid-template-columns:260px 1fr; min-height:620px; }
@container (max-width:900px) { .layout { grid-template-columns:1fr; } }
.menu { border-right:1px solid var(--line); padding:14px 10px; }
.menu a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; text-decoration:none; color:var(--ink); font-size:14px; }
.menu a.on { background:var(--paper); font-weight:700; }
.menu a .st { margin-left:auto; font-size:11px; color:var(--muted); }
.dot { width:10px; height:10px; border-radius:50%; flex:none; background:var(--line); }
.dot.ok { background:var(--ok); }
.dot.miss { background:var(--warn); }
.dot.lock { background:transparent; border:2px solid var(--muted); width:10px; height:10px; }
.dot.info { visibility:hidden; }   /* Lety: bez stavu vyplneni */
.menu .prog { margin:12px 12px 4px; font-size:12px; color:var(--muted); }
.pane { padding:22px 26px 30px; }
.pane h2 { font:700 22px Georgia,serif; margin:0 0 4px; }
.pane > p.lead { margin-bottom:6px; }
/* mobil: sekce jako akordeon */
  .acc { display:none; }
@container (max-width:900px) { .layout { display:none; } .acc { display:block; padding:10px 14px 20px; } }
.acc details { border:1px solid var(--line); border-radius:14px; background:var(--card); margin-bottom:8px; }
.acc summary { list-style:none; display:flex; align-items:center; gap:10px; padding:14px; font-weight:700; font-size:15px; cursor:pointer; }
.acc summary::-webkit-details-marker { display:none; }
.acc summary .st { margin-left:auto; font-size:12px; color:var(--muted); font-weight:400; }
.acc details > div { padding:0 14px 14px; }
.map { position:relative; background-color:var(--paper); background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px); background-size:44px 44px; border-radius:12px; aspect-ratio:16/9; overflow:hidden; border:1px solid var(--line); }
.map .area { position:absolute; border:2px solid var(--accent); background:rgba(201,112,26,.12); border-radius:50%; }
.map .tgt { position:absolute; width:18px; height:18px; margin:-9px; color:var(--err); font:700 18px/18px Arial; text-align:center; }
.map .lbl { position:absolute; font-size:11px; font-weight:700; background:var(--card); border:1px solid var(--line); border-radius:6px; padding:1px 6px; }
.list { margin-top:12px; }
.li { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--line); font-size:14px; flex-wrap:wrap; }
.li .sp { flex:1; }
.li .in { width:auto; padding:7px 10px; font-size:14px; }
.linkrow { display:grid; grid-template-columns:96px 1fr; gap:14px; align-items:center; padding:14px 0; border-top:1px solid var(--line); }
.qr { width:96px; height:96px; border-radius:8px; background:repeating-linear-gradient(0deg,var(--ink) 0 6px,transparent 6px 12px),repeating-linear-gradient(90deg,var(--ink) 0 6px,transparent 6px 12px); background-blend-mode:difference; opacity:.85; border:6px solid #fff; }
.qr.locked { background:var(--paper); display:flex; align-items:center; justify-content:center; font-size:30px; border-color:var(--paper); opacity:1; }
.code { font:13px ui-monospace,Menlo,monospace; background:var(--paper); border-radius:8px; padding:10px; overflow:auto; white-space:nowrap; }
.lockbox { background:var(--warn-soft); color:var(--warn); border-radius:12px; padding:10px 12px; font-size:13px; margin-top:6px; }
.cardprev { max-width:340px; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--card); }
.cardprev .bn { aspect-ratio:16/9; background:var(--paper) center/cover no-repeat; position:relative; }
.cardprev .bn .tile { position:absolute; left:10px; top:10px; background:#fff; border-radius:10px; padding:5px 8px; height:46px; display:flex; align-items:center; }
.cardprev .bn .tile img { max-height:36px; max-width:110px; }
.cardprev .cb { padding:12px 14px; }
.cardprev b { font:700 17px Georgia,serif; }
/* obchod */
  .shop { display:grid; grid-template-columns:1fr; gap:18px; }
@container (min-width:900px) { .shop { grid-template-columns:3fr 2fr; align-items:start; } }
.pkg { display:flex; gap:10px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:12px; margin-top:8px; font-size:14px; }
.pkg.on { border:2px solid var(--accent); background:var(--paper); }
.pkg .sp { flex:1; }
.pkg .radio { width:18px; height:18px; border-radius:50%; border:2px solid var(--muted); flex:none; }
.pkg.on .radio { border:6px solid var(--accent); }
.pkg.dis { opacity:.5; }
.chk { width:18px; height:18px; border-radius:4px; border:2px solid var(--muted); flex:none; }
.chk { position:relative; }
.chk.on { background:var(--accent); border-color:var(--accent); }
/* fajfka v zapnutem zaskrtavatku (Petr 6. 11. 2026: oranzovy ctverec bez fajfky nevypadal zaskrtnute) */
.chk.on::after { content:""; position:absolute; left:4px; top:0; width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.sum .r { display:flex; justify-content:space-between; padding:6px 0; font-size:14px; }
.sum .r.disc { color:var(--ok); }
.sum .r.tot { border-top:1px solid var(--line); margin-top:6px; padding-top:10px; font-weight:800; font-size:18px; }
.vies { font-size:12px; margin-top:4px; }
.vies.ok { color:var(--ok); }
.vies.warn { color:var(--warn); }
.done { text-align:center; padding:36px 20px; }
.done .big { width:64px; height:64px; border-radius:50%; background:var(--ok-soft); color:var(--ok); display:inline-flex; align-items:center; justify-content:center; font-size:32px; font-weight:800; }
/* náhled */
  .pvbanner { background:#3a2f1e; color:#fbf7ef; display:flex; align-items:center; gap:12px; padding:10px 18px; font-size:14px; font-weight:700; flex-wrap:wrap; }
html[data-theme="dark"] .pvbanner { background:#e08a3a; color:#121214; }
.pvbanner .sp { flex:1; }
.pvbanner a { color:inherit; }
.tabs { display:flex; gap:6px; padding:12px 18px 0; flex-wrap:wrap; }
.tab { padding:8px 12px; border-radius:10px 10px 0 0; border:1px solid var(--line); border-bottom:none; font-size:13px; background:var(--paper); color:var(--muted); }
.tab.on { background:var(--card); color:var(--ink); font-weight:700; }
/* admin */
  table.adm { width:100%; border-collapse:collapse; font-size:14px; }
table.adm th { text-align:left; color:var(--muted); font-size:12px; font-weight:600; padding:8px; border-bottom:1px solid var(--line); }
table.adm td { padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.admm { display:none; }
@container (max-width:700px) { table.adm { display:none; } .admm { display:block; } .admm .it { border:1px solid var(--line); border-radius:14px; padding:12px; margin-bottom:10px; background:var(--card); display:flex; flex-direction:column; gap:6px; font-size:14px; } }
/* --- doplnky kodera (stavy, formulare, prepinace, toast) --- */
.org-ct a:not(.btn):not(.ev):not(.card):not(.stretch):not(.ptile):not(.menu a) { color:var(--accent); }
.toast { position:fixed; left:50%; bottom:20px; transform:translateX(-50%); z-index:50; max-width:90vw; background:#2b2620; color:#f4ecdd; border-radius:12px; padding:10px 16px; font-size:14px; box-shadow:0 4px 16px rgba(0,0,0,.3); }
.toast.err { background:var(--err); color:#fff; }
.hidden { display:none !important; }
.btn:focus-visible, .in:focus-visible, .menu a:focus-visible, .sec-h:focus-visible, a:focus-visible, button:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.chip.draft { }
.chip.archived { }
.field-err { color:var(--err); font-size:12px; margin-top:4px; }
.in.err { border-color:var(--err); }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.seg button { font:inherit; font-size:13px; padding:7px 12px; border:0; background:var(--card); color:var(--ink); cursor:pointer; }
.seg button.on { background:var(--accent); color:#fff; font-weight:700; }
.seg { max-width:100%; } .seg button { flex:1 1 auto; min-width:0; padding:7px 8px; white-space:normal; }
.sw { border:0; padding:0; cursor:pointer; }
.logo-up .tile { cursor:pointer; }
.srow { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.lockbox { border:1px dashed var(--line); border-radius:12px; padding:14px; color:var(--muted); font-size:14px; }
.codebox { font:700 24px ui-monospace,Menlo,Consolas,monospace; letter-spacing:.12em; padding:10px 14px; background:var(--paper); border-radius:10px; display:inline-block; }
.copyrow { display:flex; gap:8px; align-items:center; }
.copyrow input { flex:1; }
textarea.code { font:12px ui-monospace,Menlo,Consolas,monospace; min-height:90px; }
.sec { }
.sec-h { display:none; }
@container (max-width:900px) {
  .sec-h { display:flex; align-items:center; gap:10px; padding:14px; font:700 15px inherit; width:100%; border:1px solid var(--line); border-radius:14px; background:var(--card); color:var(--ink); cursor:pointer; margin-bottom:8px; text-align:left; font-family:inherit; }
  .sec-h .st { margin-left:auto; font-size:12px; color:var(--muted); font-weight:400; }
  .sec .secbody { display:none; padding:0 4px 14px; }
  .sec.active .secbody { display:block; }
  .layout { display:block; min-height:0; }
  .menu { display:none; }
  .pane { padding:10px 14px 20px; }
}
@container (min-width:901px) { .sec:not(.active) { display:none; } }
.prow-edit { display:grid; grid-template-columns:96px 1fr auto; gap:10px; align-items:start; padding:12px 0; border-top:1px solid var(--line); }
.prow-edit .tilebtn { width:96px; height:56px; background:#fff; border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,.18); display:flex; align-items:center; justify-content:center; cursor:pointer; border:0; padding:4px; }
.prow-edit .tilebtn.empty { background:transparent; border:2px dashed var(--line); box-shadow:none; color:var(--muted); font-size:11px; text-align:center; }
.prow-edit .tilebtn { box-sizing:border-box; overflow:hidden; }
.prow-edit .tilebtn img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
.prow-edit .fields { display:grid; gap:8px; }
.prow-edit .acts { display:flex; gap:4px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.prow-edit .acts { gap:8px; }
.prow-edit .acts button { min-width:40px; min-height:40px; padding:0 8px; border:1px solid var(--line); border-radius:10px; background:var(--card); }
.prow-edit .acts button[disabled] { opacity:.4; }
.prow-edit .acts .danger { color:var(--err); margin-left:6px; }
.dragover { outline:2px solid var(--accent); outline-offset:2px; }
@container (max-width:700px) { .prow-edit { grid-template-columns:72px 1fr; } .prow-edit .tilebtn { width:72px; } .prow-edit .acts { grid-column:1 / -1; justify-content:flex-start; } }
.cardprev { max-width:420px; margin-top:10px; }
.welcome-check { display:flex; gap:10px; align-items:flex-start; margin:14px 0 4px; font-size:13px; color:var(--muted); }

.top { padding-right:64px; }   /* misto pro plovouci prepinac motivu */

/* akce.css (karta v nahledu) se nacita PRED timto souborem; kolize tridy .chip: v konzoli je staticky, jen uvnitr nahledu karty absolutne */
#org .chip { position:static; }
#org .cardprev .chip { position:absolute; }
#org .cardprev .chip.live::before { }

.qrrow { display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin:12px 0 4px; }
.qrimg { background:#fff; border:1px solid var(--line); border-radius:12px; padding:6px; }
.qracts { display:flex; gap:8px; flex-wrap:wrap; }

/* nahled karty v konzoli: nazev jako na webu (ne odkaz) */
#org .cardprev .cname a, #org .cardprev .cname { color:var(--ink); text-decoration:none; font:700 17px Georgia,serif; }
#org .cardprev .cmeta { color:var(--muted); font-size:13px; }
#org .pcards { }
/* obchod (B4): souhrn objednavky */
.sum { position:sticky; top:12px; }
.sum .r { display:flex; justify-content:space-between; gap:10px; padding:6px 0; border-bottom:1px solid var(--line); font-size:14px; }
.sum .r.disc { color:var(--ok); }
.sum .r.tot { font-weight:800; font-size:16px; border-bottom:0; padding-top:10px; }
#org .pkg[role] { cursor:pointer; }
#org .pkg.dis { cursor:not-allowed; }
.done .big { color:var(--ok); }

/* B4 opravy designera */
.termsrow { display:flex; gap:10px; align-items:flex-start; margin-top:12px; font-size:14px; cursor:pointer; }
.termsrow input { width:20px; height:20px; margin-top:1px; accent-color:var(--accent); flex:none; }
.pkg { flex-wrap:wrap; }
.pkg .btn { white-space:nowrap; }
#adm .danger { color:var(--err); margin-left:14px; }
#adm .acts-cell { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }

/* Plochy a cile (B3b) */
.areamap { height:340px; border:1px solid var(--line); border-radius:12px; overflow:hidden; z-index:0; }
@container (max-width:600px) { .areamap { height:280px; } }
html[data-theme="dark"] .areamap .leaflet-tile-pane { filter:invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%); }
.areatip { background:rgba(255,255,255,.9); border:1px solid #c9701a; color:#3a2f1e; font-weight:700; font-size:12px; padding:2px 6px; }
.tgtmark { color:#c0392b; font:800 20px/22px sans-serif; text-align:center; text-shadow:0 0 3px #fff; }
.list .li { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:8px 0; border-top:1px solid var(--line); }
.list .li .nm { flex:1 1 160px; min-width:120px; } .list .li .rad { width:90px; }
#addSite.on, #addTarget.on { background:var(--accent); color:#fff; }

/* overeni DIC pred objednavkou (5d, 23. 10. 2026) */
.billhead { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.billhead h3 { font:700 20px Georgia,serif; margin:0; }
.billhead .sp { flex:1; }
.vst { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; padding:4px 10px; border-radius:999px; white-space:nowrap; }
.vst.ok { background:var(--ok-soft); color:var(--ok); }
.vst.pend { background:var(--warn-soft); color:var(--warn); }
.vst.bad { background:var(--err-soft); color:var(--err); }
.vst.miss { border:1px solid var(--line); color:var(--muted); }
.vbox { border-radius:12px; padding:12px 14px; font-size:13.5px; line-height:1.4; margin-top:10px; display:flex; gap:10px; align-items:flex-start; }
.vbox.ok { background:var(--ok-soft); color:var(--ok); }
.vbox.pend { background:var(--warn-soft); color:var(--warn); }
.vbox.bad { background:var(--err-soft); color:var(--err); }
.vbox.info { background:var(--paper); color:var(--muted); }
.vbox .ico { font-size:16px; line-height:1.2; }
.vbox .sub { display:block; font-size:12px; opacity:.85; margin-top:2px; }
.vbox .sub button { background:none; border:0; padding:0; font:inherit; font-weight:700; color:inherit; text-decoration:underline; cursor:pointer; }
.in.vok { border-color:var(--ok); }
.waitnote { display:flex; gap:6px; align-items:center; justify-content:center; font-size:13px; color:var(--warn); font-weight:700; margin-top:8px; }
.btn-sec { width:100%; justify-content:center; margin-top:10px; background:transparent; color:var(--ink); border:1px solid var(--line); font-weight:600; }
.novat { border:1px solid var(--line); border-radius:12px; padding:12px; margin-top:10px; font-size:13px; }
.novat b { display:block; margin-bottom:4px; }
.novat .acts { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.drop.on { border-color:var(--accent); color:var(--ink); }

/* oprava po kontrole B3b */
.iconbtn { min-width:40px; min-height:40px; padding:0 8px; border:1px solid var(--line); border-radius:10px; background:var(--card); font:inherit; cursor:pointer; }
.iconbtn.danger { color:var(--err); }
.list .li.area .rs { display:flex; align-items:center; gap:10px; margin-left:auto; }
.coordrow { display:flex; align-items:center; gap:8px 10px; flex-wrap:wrap; margin:0 0 8px; }      /* zadani souradnicemi (4. 11. 2026) */
.coordrow label { font-weight:700; font-size:14px; }
.coordrow .crd { flex:1 1 220px; min-width:0; max-width:340px; }
.list .li .crd { width:190px; font-variant-numeric:tabular-nums; font-size:13px; }
.li .tg { color:var(--err); font-weight:800; width:10px; text-align:center; }
@container (max-width:600px) { .list .li.area .nm { flex:1 1 100%; } .list .li.area .rs { flex:1 1 100%; justify-content:space-between; margin-left:0; flex-wrap:wrap; } .list .li .crd { flex:1 1 100%; width:auto; } .list .li.area .dot, .list .li.area .tg { display:none; } }
.wlock .wl-s { display:none; } .wlock .wl-l { display:inline; }
@container (min-width:700px) { .wlock .wl-s { display:inline; } .wlock .wl-l { display:none; } }

/* admin navigace (Objednavky | Prehled | Odkazy) - na uzkem displeji se zalomi pod logo */
.adm-top { flex-wrap:wrap !important; padding-right:64px !important; }   /* misto pro plovouci prepinac motivu (Petr 6. 11. 2026: hint „klíč jen v této záložce“ podtekal pod nej) */
@media (max-width:700px) { .adm-top > .muted { display:none; } }
@media (max-width:600px) { .adm-nav { width:100%; margin-left:0 !important; flex-wrap:wrap; } }

/* stav ulozeni: "Ulozeno" zustava, "Neulozeno" po zmene; Ulozit neaktivni bez zmen (23. 10. 2026) */
.sbst { font-size:13px; font-weight:700; margin-right:auto; }
.sbst.saved { color:var(--ok); }
.sbst.dirty { color:var(--muted); }
.savebar .btn[disabled] { opacity:.45; cursor:not-allowed; }

.dl-row { margin-top:4px; min-height:0; } .dl-link { font-size:13px; font-weight:700; color:var(--accent); } .dl-hint { margin-top:6px; }

/* uvodni obrazek karty (Zakladni udaje) */
.cover-up { display:flex; flex-direction:column; gap:8px; max-width:420px; }
.cover-prev, .cover-drop { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:12px; border:1px solid var(--line); background:var(--paper); }
.cover-drop { border:2px dashed var(--line); color:var(--muted); font:inherit; font-size:14px; cursor:pointer; }
.cover-drop.dragover, .cover-prev.dragover { outline:2px solid var(--accent); outline-offset:2px; }
.cover-acts { display:flex; gap:8px; flex-wrap:wrap; }
.role-adm { font-size:11.5px; font-weight:800; padding:3px 9px; border-radius:999px; letter-spacing:.02em; background:#ece9fb; color:#5b4bb7; }
html[data-theme="dark"] .role-adm { background:#26223f; color:#b3a8f5; }
.adm-nav a { color:var(--muted); text-decoration:none; padding:6px 10px; border-radius:8px; font-weight:600; font-size:13px; }
.adm-nav a.on { background:var(--paper); color:var(--ink); }

/* Lety (1. 11. 2026): panel live-tracker/flights_panel.css s promennymi konzole */
.org-flights { --surface:var(--card); --input:var(--field); --soft-green:var(--ok-soft); --soft-grey:var(--paper); --soft-blue:#f0f6fd; }
html[data-theme="dark"] .org-flights { --soft-blue:#14263a; }
.org-flights .fox-btn { font:inherit; font-size:12px; font-weight:700; padding:6px 12px; margin:0; border:0; border-radius:8px; background:var(--accent); color:#fff; cursor:pointer; }
.org-flights .fox-btn.is-fox { background:var(--ok); }
.org-flights .fox-btn:disabled { opacity:.5; cursor:default; }
.org-flights .target-map { height:260px; border-radius:10px; border:1px solid var(--line); }
.flbar { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 14px; }
.flimp { margin:0 0 14px; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:var(--card); }
.flimp summary { cursor:pointer; font-weight:700; }
.flimp .hint { margin:6px 0 8px; }

/* Obchod po objednani: platebni udaje + QR, kroky, nahled zalohovky (6. 11. 2026) */
.paybox { display:flex; gap:18px; flex-wrap:wrap; align-items:flex-start; background:var(--paper); border-radius:12px; padding:14px 16px; margin:10px 0; }
.payrows { flex:1 1 260px; min-width:0; }
.paytitle { display:block; margin-bottom:6px; }
.payrow { display:flex; gap:12px; justify-content:space-between; padding:3px 0; font-size:14px; border-bottom:1px solid var(--line); }
.payrow span:first-child { color:var(--muted); }
.payrow .b { font-weight:700; }
.payqr { flex:none; width:150px; text-align:center; }
.payqr img { display:block; width:150px; height:150px; background:#fff; border-radius:8px; }
.steps { margin:8px 0 0; padding-left:22px; }
.steps li { margin:4px 0; }
.pdfprev { display:block; width:100%; height:70vh; min-height:480px; border:1px solid var(--line); border-radius:10px; margin-top:8px; background:#fff; }
/* Tym v konzoli (12. 11. 2026): stitek akce tymu, pruh v detailu cizi akce, sekce Tym v Uctu */
.chip.team { color:var(--warn); background:var(--warn-soft); border-color:transparent; }
.alert.team { background:var(--warn-soft); color:var(--warn); }
.teamgroup { font:700 18px Georgia,serif; margin:28px 0 10px; }
.teamlist { list-style:none; padding:0; margin:0 0 12px; }
.teamlist li { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--line); }
.teamlist li:last-child { border-bottom:1px solid var(--line); }
.teamlist .tm { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; overflow-wrap:anywhere; }
.teamform { display:flex; gap:8px; flex-wrap:wrap; }
.teamform #teamEm { flex:2 1 220px; }
.teamform #teamSc { flex:1 1 180px; }
