/* ============================================================
   HARCOVNÍK — Administrace (design system)
   Brand tokens z veřejného webu, laděné pro hustý admin UI.
   ============================================================ */

:root {
  /* setniny — sdíleno s webem */
  --cervena: #c8362b;
  --zluta:   #e7a614;
  --zelena:  #3f7d3a;

  --accent:  #2f6d36;
  --accent-2: #1c4a22;
  --accent-soft: #e8f1e6;

  /* neutrály — teplá zeleno-šedá */
  --bg:      #eef0ea;
  --panel:   #ffffff;
  --panel-2: #f6f7f3;
  --panel-3: #eef0ea;
  --ink:     #1d231c;
  --ink-2:   #4a5247;
  --muted:   #79806f;
  --line:    #e2e5db;
  --line-2:  #d2d6c9;

  /* stavové barvy */
  --ok:      #3f7d3a;
  --warn:    #c98a12;
  --danger:  #c8362b;
  --info:    #2f6d8f;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, monospace;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --sidebar-w: 260px;
  --topbar-h: 62px;

  --shadow-sm: 0 1px 2px rgba(20,24,18,.06), 0 1px 1px rgba(20,24,18,.04);
  --shadow:    0 1px 3px rgba(20,24,18,.08), 0 8px 24px -14px rgba(20,24,18,.35);
  --shadow-lg: 0 2px 6px rgba(20,24,18,.1), 0 30px 60px -30px rgba(20,24,18,.5);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#root { height: 100%; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

h1,h2,h3,h4 { font-family: var(--display); margin: 0; letter-spacing: -.01em; line-height: 1.1; }

/* ============================================================
   LOGIN
   ============================================================ */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, var(--zelena) 14%, transparent), transparent 55%),
    repeating-linear-gradient(118deg, transparent 0 40px, color-mix(in oklab, var(--ink) 3%, transparent) 40px 41px),
    var(--bg);
}
.login__card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 34px; }
.login__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login__mark { width: 46px; height: 46px; display: grid; place-items: center; flex: none; }
.login__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.login__brand b { font-family: var(--display); font-size: 19px; display: block; line-height: 1; }
.login__brand span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.login h1 { font-size: 25px; margin-bottom: 6px; }
.login p.sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.login__persona { display: grid; gap: 8px; margin-bottom: 18px; }
.persona-btn { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel-2); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.persona-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.persona-btn:active { transform: scale(.99); }
.persona-btn .av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: 14px; }
.persona-btn .nm { font-weight: 700; font-size: 14.5px; }
.persona-btn .rl { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 100%; height: 100%; }
.sidebar { background: var(--ink); color: #cdd2c6; display: flex; flex-direction: column; min-height: 0; }
.sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 0 18px; height: var(--topbar-h); border-bottom: 1px solid rgba(255,255,255,.08); flex: none; }
.sidebar__mark { width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.sidebar__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar__brand b { font-family: var(--display); color: #fff; font-size: 15.5px; line-height: 1; display: block; }
.sidebar__brand span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #8b9382; }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; min-height: 0; }
.sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-color: transparent; }
.nav-group { margin-bottom: 4px; }
.nav-group__label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #79806f; padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 9px 12px; border: none; background: none; color: #c2c8b9; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background .13s, color .13s; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item--mobonly { display: none; } /* #115/3: „Můj profil" v menu jen na mobilu (desktop má profil v topbaru) */
.nav-item.active { background: var(--zelena); color: #fff; font-weight: 600; }

/* Urgentní skupina (K dořešení) – výrazně nahoře; plyne rovnou do Backlogu (pár tlačítek) */
.nav-group--urgent { margin-bottom: 6px; }
.nav-group--urgent .nav-item { color: #ff9b8f; font-weight: 700; background: rgba(200,54,43,.16); border: 1px solid rgba(200,54,43,.45); }
.nav-group--urgent .nav-item:hover { background: rgba(200,54,43,.28); color: #fff; }
.nav-group--urgent .nav-item.active { background: var(--danger); color: #fff; border-color: var(--danger); }
.nav-group--urgent .nav-item__ic { opacity: 1; }
.nav-group--urgent .nav-item__badge { background: #fff; color: var(--danger); }

/* Backlog (nápady) – hned pod Urgentním, jantarová/zlatá barva (ke hvězdičce) */
.nav-group--backlog { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-group--backlog .nav-item { color: #f3c869; font-weight: 700; background: rgba(231,166,20,.14); border: 1px solid rgba(231,166,20,.42); }
.nav-group--backlog .nav-item:hover { background: rgba(231,166,20,.26); color: #fff; }
.nav-group--backlog .nav-item.active { background: var(--zluta); color: #3a2a00; border-color: var(--zluta); }
.nav-group--backlog .nav-item__ic { opacity: 1; }
.nav-group--backlog .nav-item__badge { background: #fff; color: #9a6b08; }

/* Grafický výběr setniny (barevné swatche místo selectu) */
.setnina-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.setnina-sw { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--sw, var(--panel-3)); color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 14px; padding: 0; transition: transform .1s, box-shadow .12s, border-color .12s; }
.setnina-sw:hover { transform: translateY(-1px); }
.setnina-sw.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.setnina-sw__lbl { font-size: 11px; color: var(--muted); margin-left: 2px; }
.nav-item.active .nav-item__ic { opacity: 1; }
.nav-item__ic { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav-item__ic svg { width: 18px; height: 18px; display: block; }
.nav-item__badge { margin-left: auto; font-family: var(--mono); font-size: 10.5px; background: rgba(255,255,255,.16); color: #fff; padding: 1px 7px; border-radius: 99px; }
.nav-item.active .nav-item__badge { background: rgba(0,0,0,.22); }
.sidebar__foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); flex: none; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { height: var(--topbar-h); flex: none; background: color-mix(in oklab, var(--bg) 80%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 22px; position: sticky; top: 0; z-index: 20; }
.topbar__title { font-family: var(--display); font-weight: 700; font-size: 18px; }
.topbar__crumb { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.topbar__spacer { flex: 1; }
.topbar__search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; color: var(--muted); width: 210px; }
.topbar__search input { border: none; background: none; outline: none; font-family: inherit; font-size: 13.5px; color: var(--ink); width: 100%; }
.hamburger { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }

.roleswitch { display: flex; align-items: center; gap: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px 6px 5px 12px; cursor: pointer; transition: border-color .15s; }
.roleswitch:hover { border-color: var(--line-2); }
.roleswitch .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 12px; }
.roleswitch .nm { font-weight: 700; font-size: 13.5px; line-height: 1; }
.roleswitch .rl { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.roleswitch svg { width: 15px; height: 15px; color: var(--muted); }

.content { flex: 1; overflow-y: auto; min-height: 0; padding: clamp(18px, 2.4vw, 34px); }
.page { max-width: 1480px; margin: 0 auto; }
.page--anim { animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.2vw, 26px); }
.page__head-main { min-width: 0; }
.page__head h1 { font-size: clamp(22px, 2.4vw, 28px); display: inline-flex; align-items: center; gap: 4px; }
.page__head p { color: var(--muted); margin: 6px 0 0; font-size: 14px; max-width: 60ch; }
.page__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 13.5px; padding: 9px 15px; border-radius: 9px; border: 1px solid transparent; background: var(--accent); color: #fff; cursor: pointer; transition: background .14s, transform .1s, box-shadow .14s, border-color .14s; white-space: nowrap; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn--ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--panel-2); border-color: var(--line-2); }
.btn--soft { background: var(--accent-soft); color: var(--accent-2); }
.btn--soft:hover { background: color-mix(in oklab, var(--accent) 18%, var(--panel)); }
.btn--danger { background: var(--panel); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 30%, var(--line)); }
.btn--danger:hover { background: color-mix(in oklab, var(--danger) 9%, var(--panel)); }
.btn--sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn--icon { padding: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* Stav „Ukládám…" – spinner z currentColor (viditelný na plných i ghost tlačítkách) */
.btn-spin { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; vertical-align: -.15em; margin-right: .15em; animation: btnspin .6s linear infinite; }
@keyframes btnspin { to { transform: rotate(360deg); } }
.btn.is-loading, button.is-loading { opacity: .85; cursor: progress; }
.iconbtn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; transition: background .13s, color .13s; }
.iconbtn:hover { background: var(--panel-3); color: var(--ink); }
.iconbtn svg { width: 17px; height: 17px; }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card__head h3 { font-size: 16px; }
.card__head .sub { font-size: 12.5px; color: var(--muted); }
.card__body { padding: 20px; }
.card__body--flush { padding: 0; }
/* zaoblení tabulky uvnitř karty — horní rohy jen když je tabulka úplně nahoře (ne pod hlavičkou) */
.card > .card__body--flush.table-wrap:first-child { border-top-left-radius: calc(var(--r-lg) - 1px); border-top-right-radius: calc(var(--r-lg) - 1px); }
.card > .card__body--flush.table-wrap:last-child { border-bottom-left-radius: calc(var(--r-lg) - 1px); border-bottom-right-radius: calc(var(--r-lg) - 1px); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* stat tiles */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat__l { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat__v { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; margin-top: 10px; letter-spacing: -.02em; }
.stat__s { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.stat__trend { color: var(--ok); font-weight: 700; }
.stat__ic { position: absolute; right: 16px; top: 16px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.stat__ic svg { width: 17px; height: 17px; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl thead th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel); }
.tbl tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--panel-2); cursor: pointer; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td.num { font-family: var(--mono); text-align: right; }
.tbl .nowrap { white-space: nowrap; }
.tbl .t-strong { font-weight: 600; }
.tbl .t-mut { color: var(--muted); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; opacity: .35; transition: opacity .13s; }
.tbl tbody tr:hover .row-actions { opacity: 1; }

/* ============================================================
   BADGES / CHIPS / PILLS
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .03em; padding: 3px 9px; border-radius: 99px; border: 1px solid transparent; white-space: nowrap; }
.badge .d { width: 7px; height: 7px; border-radius: 50%; }
.badge--ok { background: color-mix(in oklab, var(--ok) 12%, var(--panel)); color: var(--ok); border-color: color-mix(in oklab, var(--ok) 26%, transparent); }
.badge--warn { background: color-mix(in oklab, var(--warn) 14%, var(--panel)); color: #9a6b08; border-color: color-mix(in oklab, var(--warn) 30%, transparent); }
.badge--danger { background: color-mix(in oklab, var(--danger) 11%, var(--panel)); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 26%, transparent); }
.badge--info { background: color-mix(in oklab, var(--info) 11%, var(--panel)); color: var(--info); border-color: color-mix(in oklab, var(--info) 26%, transparent); }
.badge--muted { background: var(--panel-3); color: var(--ink-2); border-color: var(--line); }
.badge--c { background: color-mix(in oklab, var(--cervena) 12%, var(--panel)); color: var(--cervena); }
.badge--z { background: color-mix(in oklab, var(--zluta) 16%, var(--panel)); color: #9a6b08; }
.badge--g { background: color-mix(in oklab, var(--zelena) 12%, var(--panel)); color: var(--zelena); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--line); color: var(--ink-2); }
.chip--role { font-family: var(--mono); font-size: 11px; text-transform: lowercase; }
.chip--sm { font-size: 11px; padding: 2px 7px; }

/* status pipeline */
.pipeline { display: flex; align-items: center; gap: 0; }
.pipeline__step { flex: 1; text-align: center; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 7px 4px; background: var(--panel-3); border-right: 2px solid var(--panel); position: relative; }
.pipeline__step:first-child { border-radius: 99px 0 0 99px; }
.pipeline__step:last-child { border-radius: 0 99px 99px 0; border-right: none; }
.pipeline__step.done { background: var(--accent-soft); color: var(--accent-2); }
.pipeline__step.current { background: var(--zelena); color: #fff; font-weight: 600; }

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: 14px; }
.field > label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]), .field textarea, .field select { width: 100%; font-family: var(--body); font-size: 14px; color: var(--ink); background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 9px; padding: 9px 12px; transition: border-color .14s, box-shadow .14s; }
.field input:not([type=checkbox]):not([type=radio]):focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.field--err input, .field--err textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 11.5px; margin-top: 5px; }
/* Jednotná nativní zaškrtávátka/radio (mimo .chk pilulky a .switch – ty mají vlastní styl níž) */
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: background .18s; cursor: pointer; }
.switch .track::before { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::before { transform: translateX(17px); }

.checkrow { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: background .12s, border-color .12s; }
.checkrow:hover { background: var(--panel-2); }
.checkrow input { width: 17px; height: 17px; accent-color: var(--accent); }
.checkrow.on { border-color: var(--accent); background: var(--accent-soft); }

.seg { display: inline-flex; background: var(--panel-3); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: none; background: none; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .13s, color .13s; white-space: nowrap; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar__spacer { flex: 1; }
.search-inline { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; color: var(--muted); min-width: 200px; }
.search-inline input { border: none; outline: none; background: none; font-family: inherit; font-size: 13.5px; color: var(--ink); width: 100%; }
.search-inline svg { width: 16px; height: 16px; flex: none; }

/* ============================================================
   MODAL / DRAWER
   ============================================================ */
.scrim { position: fixed; inset: 0; background: rgba(15,18,12,.46); backdrop-filter: blur(2px); z-index: 100; display: grid; place-items: center; padding: 24px; }
.scrim[hidden] { display: none; }
.modal { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop .22s var(--ease); }
.modal--wide { width: min(820px, 100%); }
@keyframes pop { from { transform: scale(.96) translateY(8px); } to { transform: none; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal__head h3 { font-size: 18px; }
.modal__body { padding: 22px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--panel); }

.drawer-scrim { position: fixed; inset: 0; background: rgba(15,18,12,.4); backdrop-filter: blur(2px); z-index: 100; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--panel); box-shadow: var(--shadow-lg); z-index: 101; display: flex; flex-direction: column; animation: slidein .26s var(--ease); }
@keyframes slidein { from { transform: translateX(24px); } to { transform: none; } }
.drawer__head { flex: none; padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer__foot { flex: none; padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; align-items: center; }

/* ============================================================
   MISC
   ============================================================ */
.section-block { margin-bottom: 26px; }
.section-block > h2 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section-block > h2 .count { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: .4; }
.empty p { margin: 0 0 4px; font-weight: 600; color: var(--ink-2); }
.empty span { font-size: 13px; }

.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.danger-text { color: var(--danger); }
.ok-text { color: var(--ok); }
.note { background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent); border-radius: var(--r); padding: 12px 14px; font-size: 13px; color: var(--accent-2); display: flex; gap: 10px; }
.note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.note--warn { background: color-mix(in oklab, var(--warn) 12%, var(--panel)); border-color: color-mix(in oklab, var(--warn) 30%, transparent); color: #8a5e06; }

.avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; flex: none; }

/* toast */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 11px; font-size: 13.5px; min-width: 240px; animation: toastin .26s var(--ease); }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.toast .ic svg { width: 14px; height: 14px; }
.toast--ok .ic { background: var(--ok); }
.toast--info .ic { background: var(--info); }
.toast--warn .ic { background: var(--warn); }

/* access-denied */
.denied { display: grid; place-items: center; padding: 60px 20px; text-align: center; }
.denied .lock { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in oklab, var(--danger) 12%, var(--panel)); color: var(--danger); display: grid; place-items: center; margin-bottom: 16px; }

/* ============================================================
   DVOUÚROVŇOVÁ NAVIGACE — rail (1. úroveň) + subpanel (2. úroveň)
   ============================================================ */
.nav2 { display: flex; height: 100%; min-height: 0; }

/* ---- 1. úroveň: rail skupin ---- */
.rail {
  width: 192px; flex: none; background: #181d17; color: #c2c8b9;
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: width .22s var(--ease);
}
.nav2--collapsed .rail { width: 68px; }
.rail__brand { display: flex; align-items: center; gap: 11px; padding: 0 17px; height: var(--topbar-h); flex: none; border-bottom: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.rail__brand .sidebar__mark, .rail__brand .sidebar__foto { width: 34px; height: 34px; flex: none; }
.rail__wordmark { min-width: 0; opacity: 1; transition: opacity .16s var(--ease); }
.rail__wordmark b { font-family: var(--display); color: #fff; font-size: 15px; line-height: 1; display: block; white-space: nowrap; }
.rail__wordmark span { font-family: var(--mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: #8b9382; white-space: nowrap; }
.nav2--collapsed .rail__wordmark { opacity: 0; }

.rail__list { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; padding: 10px 9px; display: flex; flex-direction: column; gap: 2px; }
.rail__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-color: transparent; }
/* plynulé sbalování: ikona má fixní 50px kontejner → její střed je v obou stavech
   34px od kraje railu. Animuje se JEN šířka railu + opacity popisků; žádné
   display:none / změny paddingu / justify, které by skákaly. */
.rail__item {
  position: relative; display: flex; align-items: center; gap: 0; width: 100%;
  padding: 9px 0; border: none; background: none; color: #b7bfae; cursor: pointer;
  border-radius: 9px; font-size: 13.5px; font-weight: 600; text-align: left;
  overflow: hidden; transition: background .13s, color .13s;
}
.rail__item:hover { background: rgba(255,255,255,.07); color: #fff; }
.rail__item.active { background: var(--zelena); color: #fff; }
.rail__ic { width: 50px; height: 19px; flex: none; display: grid; place-items: center; opacity: .9; }
.rail__ic svg { width: 19px; height: 19px; display: block; }
.rail__item.active .rail__ic { opacity: 1; }
.rail__lbl { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 1; transition: opacity .16s var(--ease); }
.nav2--collapsed .rail__lbl { opacity: 0; }
.rail__dot { position: absolute; top: 7px; left: 38px; width: 7px; height: 7px; border-radius: 50%; background: var(--zluta); box-shadow: 0 0 0 2px #181d17; }
.rail__item.active .rail__dot { box-shadow: 0 0 0 2px var(--zelena); }

.rail__toggle {
  flex: none; display: flex; align-items: center; gap: 0; width: calc(100% - 18px); margin: 6px 9px 10px;
  padding: 9px 0; border: none; background: none; color: #8b9382; cursor: pointer; overflow: hidden;
  border-radius: 9px; font-size: 12.5px; font-weight: 600; border-top: 1px solid rgba(255,255,255,.06);
}
.rail__toggle:hover { background: rgba(255,255,255,.06); color: #fff; }
.rail__toggle .rail__ic { width: 50px; }
.rail__toggle .rail__lbl { opacity: 1; transition: opacity .16s var(--ease); }
.nav2--collapsed .rail__toggle .rail__lbl { opacity: 0; }
.rail__toggle-ic svg { transition: transform .22s var(--ease); transform: rotate(90deg); }
.nav2--collapsed .rail__toggle-ic svg { transform: rotate(-90deg); }
/* #46: připnuté menu — aktivní stav + dvě tlačítka pod sebou bez dvojité linky */
.rail__toggle--on, .rail__toggle--on:hover { color: var(--zluta); }
.rail__toggle + .rail__toggle { border-top: none; margin-top: -4px; }

/* ---- 2. úroveň: subpanel se stránkami ---- */
.subnav { width: 214px; flex: none; background: var(--ink); color: #cdd2c6; display: flex; flex-direction: column; min-height: 0; }
.subnav__head { display: flex; align-items: center; gap: 9px; padding: 0 16px; height: var(--topbar-h); flex: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.subnav__head-ic { width: 18px; height: 18px; color: #8b9382; flex: none; }
.subnav__head-ic svg { width: 18px; height: 18px; }
.subnav__head-tx { font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subnav__list { flex: 1; overflow-y: auto; min-height: 0; padding: 10px 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.subnav__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-color: transparent; }
.subnav .nav-item { font-weight: 500; }
.subnav__pane { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.subnav__empty { padding: 18px 12px; font-size: 13px; color: #79806f; }
.subnav__cfg { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 10px 12px; padding: 9px; border: 1px dashed rgba(255,255,255,.14); background: none; color: #9aa28f; border-radius: 9px; cursor: pointer; font-size: 12.5px; font-weight: 600; transition: border-color .14s, color .14s, background .14s; }
.subnav__cfg:hover { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.04); }
.subnav__cfg svg { width: 15px; height: 15px; }

/* vlastní (nahraná) ikona skupiny — obrázek místo SVG */
.rail__ic img, .subnav__head-ic img, .menucfg__group-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ============================================================
   PŘIZPŮSOBENÍ MENU (sekce v profilu)
   ============================================================ */
.menucfg__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px 18px; margin-top: 16px; }
.menucfg__group { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); overflow: hidden; }
.menucfg__group-h { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.menucfg__group-ic { width: 17px; height: 17px; color: var(--accent); flex: none; }
.menucfg__group-ic svg { width: 17px; height: 17px; }
.menucfg__group-nm { font-family: var(--display); font-weight: 700; font-size: 13.5px; }
.menucfg__group-ct { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.menucfg__all { margin-left: auto; border: none; background: none; color: var(--accent); font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 3px 6px; border-radius: 6px; font-family: var(--mono); }
.menucfg__all:hover { background: var(--accent-soft); }
.menucfg__items { padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.menucfg__item { display: flex; align-items: center; gap: 11px; padding: 8px 9px; border-radius: 8px; cursor: pointer; transition: background .12s; }
.menucfg__item:hover { background: var(--panel); }
.menucfg__item-ic { width: 17px; height: 17px; color: var(--muted); flex: none; opacity: .55; transition: opacity .12s, color .12s; }
.menucfg__item-ic svg { width: 17px; height: 17px; }
.menucfg__item.on .menucfg__item-ic { opacity: 1; color: var(--ink-2); }
.menucfg__item-nm { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.menucfg__item.on .menucfg__item-nm { color: var(--ink); }
.menucfg__lock { display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--panel-3); padding: 1px 6px; border-radius: 99px; }
.menucfg__item.locked { cursor: default; }
.menucfg__item.locked .switch { opacity: .45; pointer-events: none; }

/* responsive */
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 274px; z-index: 120; transform: translateX(-100%); transition: transform .26s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  /* #115/3: na mobilu je menu napravo (drawer vyjede zprava; desktop beze změny) */
  .nav2 { position: fixed; inset: 0 0 0 auto; z-index: 120; transform: translateX(100%); transition: transform .26s var(--ease); max-width: 88vw; }
  .nav2.open { transform: none; box-shadow: var(--shadow-lg); }
  /* na mobilu vždy rozbalený rail; na úzkých telefonech se panely podělí o šířku */
  .nav2 .rail { width: 184px; min-width: 0; flex-shrink: 1; }
  .nav2 .subnav { min-width: 0; flex-shrink: 1; }
  .nav2 .rail__lbl, .nav2 .rail__wordmark { opacity: 1; } /* mobil = vždy rozbalený rail */
  .nav2 .rail__toggle { display: none; }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 119; }
  /* #115/3: hamburger doprava (menu vyjíždí zprava); profil je schovaný v menu dole */
  .hamburger { display: grid; place-items: center; order: 5; }
  .topbar__user { display: none; }
  .nav-item--mobonly { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .topbar__search { display: none; }
  .topbar__search--live { display: flex; } /* globální hledání (#34) je i na mobilu — sbalené na lupu, klik rozbalí */
  .roleswitch .nm, .roleswitch .rl { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .content { padding: 14px 12px; }
  .page__head { gap: 12px; }
  .page__actions { width: 100%; }
  .page__actions .btn { flex: 1; justify-content: center; }
  .roleswitch .who { display: none; }

  /* #115: na mobilu nic nesmí ujíždět doprava-doleva. Inline „grid-template-columns"
     v šablonách jinak přebije responsivní třídy (.grid-2/3/4) a vícesloupcový grid přeteče.
     U prvků s gridovou třídou ho proto srovnáme do jednoho sloupce a obsah zafixujeme.
     Tabulky scrollují uvnitř .table-wrap, takže je clip nezmrzačí. */
  .content { overflow-x: hidden; }
  .content .grid[style*="grid-template-columns"],
  .content .grid-2[style*="grid-template-columns"],
  .content .grid-3[style*="grid-template-columns"],
  .content .grid-4[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* #115/10: menší popisek pod nadpisem stránky na mobilu skrýt (přetékal, např. „Informace k táboru") */
  .page__head p { display: none; }

  /* #115/8: akční tlačítka s ikonou (Tisk, Export, Poslat e-mailem, Nový…) na mobilu jen ikonka
     — šetří místo. Týká se lišt akcí (.page__actions, .toolbar) + ručního hooku .btn--ico.
     Tlačítka BEZ ikony (jen text) zůstávají s textem (:has(svg) je nevybere). */
  .page__actions .btn:has(svg),
  .toolbar .btn:has(svg),
  .btn--ico { font-size: 0; gap: 0; padding-left: 12px; padding-right: 12px; }
  .page__actions .btn:has(svg) svg,
  .toolbar .btn:has(svg) svg,
  .btn--ico svg { width: 18px; height: 18px; }
  /* ikonová akční tlačítka nemusí být přes celou šířku — ať jsou kompaktní v řadě */
  .page__actions .btn:has(svg) { flex: 0 1 auto; }
}

/* ============================================================
   MOBIL — editace (osob i ostatní modaly) jako celostránkový sheet
   ============================================================ */
@media (max-width: 700px) {
  /* 16px vstupy = iOS Safari nezoomuje při fokusu; + pohodlnější výška */
  .field input:not([type=checkbox]):not([type=radio]), .field textarea, .field select { font-size: 16px; padding: 11px 13px; }

  /* Větší dotykové cíle */
  .iconbtn { width: 40px; height: 40px; }
  .btn { padding: 11px 16px; }
  .btn--sm { padding: 9px 13px; font-size: 13px; }

  /* Drawer (detaily) – bezpečná zóna pod gesty */
  .drawer__foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }

  /* Méně podstatné sloupce tabulek skryté na mobilu (méně vodorovného scrollu) */
  .col-hide-sm { display: none; }

  /* Záložky/přepínače (.seg) = vodorovně rolovatelné na mobilu (víc tabů se vejde, swipe) */
  .seg { display: flex; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: 0 0 auto; }

  /* Modal s formulářem = full-screen sheet (víc místa, palcem dosáhneš na vše).
     Scopováno přes :has(.modal__body), ať se nezkomolí modal bez scroll-oblasti. */
  .scrim:has(.modal__body) { padding: 0; place-items: stretch; }
  .modal:has(.modal__body) {
    width: 100% !important; max-width: 100%;
    height: 100dvh; max-height: 100dvh;
    border-radius: 0; overflow: hidden;
    display: flex; flex-direction: column;
    animation: sheetin .26s var(--ease);
  }
  /* funguje, ať jsou head/body/foot přímo v .modal nebo zabalené ve <form> */
  .modal:has(.modal__body) > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .modal:has(.modal__body) .modal__head { flex: none; position: static; }
  .modal:has(.modal__body) .modal__body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal:has(.modal__body) .modal__foot { flex: none; position: static; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
@keyframes sheetin { from { transform: translateY(100%); } to { transform: none; } }

/* Alpine.js */
[x-cloak] { display: none !important; }
/* Klientská viditelnost přes :class (testovatelná náhrada x-show) */
.is-hidden { display: none !important; }

/* ============================================================
   DESIGN PORT (admin.html): confirm dialog, select chevron, live search
   ============================================================ */

/* počet na proklikávací kategorii (.seg) */
.seg button .seg__n { margin-left: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; opacity: .6; }
.seg button.on .seg__n { opacity: .9; }

/* nativní <select> – vlastní šipka místo OS (vzhled dle .sel__btn) */
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a907e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px;
  cursor: pointer;
}

@keyframes selpop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* confirm dialog (window.confirmDialog) */
.confirm { width: min(412px, 100%); background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop .22s var(--ease); overflow: hidden; }
.confirm__body { padding: 28px 26px 22px; text-align: center; }
.confirm__ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; position: relative; }
.confirm__ic svg { width: 28px; height: 28px; }
.confirm__ic::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .22; }
.confirm__ic--danger { background: color-mix(in oklab, var(--danger) 13%, var(--panel)); color: var(--danger); }
.confirm__ic--warn { background: color-mix(in oklab, var(--warn) 16%, var(--panel)); color: #9a6b08; }
.confirm__ic--info { background: var(--accent-soft); color: var(--accent); }
.confirm h3 { font-size: 20px; margin-bottom: 8px; }
.confirm p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.5; }
.confirm__target { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 13px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: 13.5px; }
.confirm__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 22px 20px; }
.confirm__foot .btn { justify-content: center; }

/* select – vlastní grafický dropdown (.sel) pro opt-in použití */
.sel { position: relative; }
.sel__btn { width: 100%; display: flex; align-items: center; gap: 10px; font-family: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 9px; padding: 9px 12px; cursor: pointer; text-align: left; transition: border-color .14s, box-shadow .14s; }
.sel__btn:hover { border-color: var(--line); }
.sel--open .sel__btn { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.sel__btn .lead { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.sel__btn .lead svg { width: 15px; height: 15px; }
.sel__btn .val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel__btn .val.placeholder { color: var(--muted); }
.sel__btn .caret { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); flex: none; }
.sel--open .sel__btn .caret { transform: rotate(180deg); }
.sel__pop { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; max-height: 280px; overflow-y: auto; animation: selpop .16s var(--ease); }
.sel__pop--up { top: auto; bottom: calc(100% + 6px); }
.sel__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: none; background: none; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px; color: var(--ink); text-align: left; transition: background .12s; }
.sel__opt:hover, .sel__opt.active { background: var(--panel-2); }
.sel__opt.sel--on { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.sel__opt .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sel__opt .lbl { flex: 1; min-width: 0; }
.sel__opt .tick { width: 16px; height: 16px; color: var(--accent); flex: none; opacity: 0; }
.sel__opt.sel--on .tick { opacity: 1; }
.sel__opt .sub { display: block; font-size: 11.5px; color: var(--muted); }
.sel__opt[disabled] { opacity: .45; cursor: not-allowed; }
.sel__opt[hidden] { display: none; }
/* hledání v dlouhém dropdownu (≥10 položek nebo data-search) */
.sel__search { position: sticky; top: -6px; z-index: 1; display: flex; align-items: center; gap: 8px; margin: -6px -6px 6px; padding: 9px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.sel__search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.sel__search input { flex: 1; min-width: 0; border: none; background: none; font-family: var(--body); font-size: 13.5px; color: var(--ink); padding: 2px 0; }
.sel__search input:focus { outline: none; }
.sel__nohit { padding: 14px 10px; font-size: 13px; color: var(--muted); text-align: center; }
.sel__btn .lead .dot { width: 10px; height: 10px; border-radius: 50%; }
.sel--dis .sel__btn { opacity: .55; cursor: not-allowed; background: var(--panel-2); }
/* enhancer: skrytý nativní prvek zůstává v DOM (submit, x-model) */
.sel > select, .dpf > input { display: none !important; }

/* ============================================================
   FILE UPLOAD — grafické nahrávání souborů (DS v2026.1)
   .fup wrapper z admin-ui.js; nativní input zůstává validovatelný
   (proto NE display:none — bublina required potřebuje fokusovatelnost)
   ============================================================ */
.fup { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.fup__native { position: absolute !important; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; clip-path: inset(50%); pointer-events: none; }

/* kompaktní „Vybrat soubor" + název */
.filepick { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filepick__btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: border-color .14s, background .14s, color .14s; }
.filepick__btn:hover, .filepick.over .filepick__btn { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.filepick__btn svg { width: 16px; height: 16px; }
.filepick__name { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filepick__name.has { color: var(--ink-2); font-weight: 500; }

/* velká drag & drop zóna */
.uploader { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 30px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--panel-2); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.uploader:hover { border-color: var(--accent); background: var(--accent-soft); }
.uploader.over { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); }
.uploader__ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--accent); margin-bottom: 8px; transition: transform .15s, background .15s, color .15s; }
.uploader__ic svg { width: 22px; height: 22px; }
.uploader:hover .uploader__ic, .uploader.over .uploader__ic { transform: translateY(-2px); background: var(--accent); color: #fff; border-color: transparent; }
.uploader__title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.uploader__title b { color: var(--accent-2); }
.uploader__sub { font-size: 12.5px; color: var(--muted); }
.uploader__hint { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.uploader--sm { padding: 20px; }
.uploader--sm .uploader__ic { width: 38px; height: 38px; margin-bottom: 4px; }
.uploader--sm .uploader__ic svg { width: 18px; height: 18px; }

/* řádek vybraného souboru */
.filelist { display: flex; flex-direction: column; gap: 8px; }
.filelist:empty { display: none; }
.filechip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.filechip__ic { width: 36px; height: 36px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); overflow: hidden; }
.filechip__ic svg { width: 18px; height: 18px; }
.filechip__ic img { width: 100%; height: 100%; object-fit: cover; }
.filechip__main { flex: 1; min-width: 0; }
.filechip__name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filechip__meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.filechip--err { border-color: color-mix(in oklab, var(--danger) 34%, transparent); background: color-mix(in oklab, var(--danger) 6%, var(--panel)); }
.filechip--err .filechip__ic { background: color-mix(in oklab, var(--danger) 12%, var(--panel)); color: var(--danger); }
.filechip--err .filechip__meta { color: var(--danger); }
.filechip__del { flex: none; width: 30px; height: 30px; border-radius: 8px; border: none; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .14s, color .14s; }
.filechip__del:hover { background: color-mix(in oklab, var(--danger) 10%, var(--panel)); color: var(--danger); }
.filechip__del svg { width: 16px; height: 16px; }

/* ============================================================
   PERSON CELL — jednotný výpis osoby (avatar + jméno + přezdívka)
   include admin/_components/person.twig; konvence 2026-06-10
   ============================================================ */
.pcell { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; color: inherit; text-decoration: none; text-align: left; }
a.pcell:hover .pcell__nm { color: var(--accent-2); }
.pcell__av { flex: none; overflow: hidden; }
.pcell__av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pcell__txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pcell__nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcell__sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* live search (topbar + opt-in) */
.lsearch { position: relative; }
.lsearch__box { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 9px; padding: 8px 12px; color: var(--muted); transition: border-color .14s, box-shadow .14s; }
.lsearch--open .lsearch__box, .lsearch__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.lsearch__box svg { width: 16px; height: 16px; flex: none; }
.lsearch__box input { border: none; outline: none; background: none; font-family: inherit; font-size: 14px; color: var(--ink); width: 100%; }
.lsearch__clear { width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--panel-3); color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.lsearch__clear svg { width: 13px; height: 13px; }
.lsearch__pop { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; animation: selpop .16s var(--ease); }
.lsearch__head { padding: 9px 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--panel-2); }
.lsearch__list { max-height: 320px; overflow-y: auto; padding: 5px; }
.lsearch__row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: none; background: none; border-radius: 8px; cursor: pointer; text-align: left; transition: background .12s; text-decoration: none; color: var(--ink); }
.lsearch__row:hover, .lsearch__row.active { background: var(--panel-2); }
.lsearch__row .nm { font-weight: 600; font-size: 14px; }
.lsearch__row .nm mark { background: color-mix(in oklab, var(--zluta) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.lsearch__row .meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.lsearch__row .right { margin-left: auto; }
.lsearch__empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; }
/* globální hledání: skupiny podle zdroje + patička „všechny výsledky" */
.lsearch__groups { max-height: min(62vh, 480px); overflow-y: auto; }
.lsearch__groups .lsearch__list { max-height: none; }
.lsearch__all { display: block; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel-2); font-size: 12.5px; font-weight: 600; color: var(--accent-2); text-decoration: none; }
.lsearch__all:hover { background: var(--panel-3); }

/* topbar varianta live-search */
.topbar__search--live { padding: 0; border: none; background: none; width: 280px; overflow: visible; margin-left: auto; }
.topbar__search--live .lsearch__box { padding: 7px 12px; }
.topbar__search--live .lsearch__pop { width: min(380px, 80vw); left: auto; right: 0; }
@media (max-width: 980px) { .topbar__search--live { width: auto; } .topbar__search--live .lsearch__box input { width: 0; padding: 0; transition: width .2s; } .topbar__search--live.lsearch--open .lsearch__box input, .topbar__search--live .lsearch__box:focus-within input { width: 160px; } }

/* #115/4: globální hledání na mobilu = celoobrazovkový modal (místo roztahování topbaru,
   které tlačilo šířku a stránka ujížděla). Zavírá se křížkem (.lsearch__x). */
.lsearch__x { display: none; }
@media (max-width: 620px) {
  .topbar__search--live.lsearch--open {
    position: fixed; inset: 0; z-index: 200; width: auto; margin: 0;
    background: var(--bg); padding: 12px 12px 0; display: flex; flex-direction: column; gap: 10px;
  }
  .topbar__search--live.lsearch--open .lsearch__box { width: auto; padding: 12px 14px; border-radius: 12px; }
  .topbar__search--live.lsearch--open .lsearch__box input { width: 100%; padding: 0; font-size: 16px; }
  .topbar__search--live.lsearch--open .lsearch__x {
    display: grid; place-items: center; width: 30px; height: 30px; flex: none;
    border: none; border-radius: 50%; background: var(--panel-3); color: var(--muted); cursor: pointer;
  }
  .topbar__search--live.lsearch--open .lsearch__x svg { width: 16px; height: 16px; }
  .topbar__search--live.lsearch--open .lsearch__pop {
    position: static; inset: auto; width: auto; box-shadow: none; border: 1px solid var(--line);
    border-radius: 12px; flex: 1; min-height: 0; display: flex; flex-direction: column; animation: none;
  }
  .topbar__search--live.lsearch--open .lsearch__groups { max-height: none; flex: 1; }
}

/* ============================================================
   HLASOVÁNÍ TERMÍNŮ – kalendář, souhrnná mřížka, okna
   (přeneseno z Claude designu, sekce Akce)
   ============================================================ */
/* ---- Hlasování: kalendář (moje dostupnost) ---- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.cal__day { position: relative; aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--muted); cursor: default; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: inherit; }
.cal__day--on { background: var(--panel); color: var(--ink); border-color: var(--line-2); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .1s, box-shadow .14s; }
.cal__day--on:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.cal__day:disabled { opacity: .45; }
.cal__day--final { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal__n { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1; }
.cal__hint { font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }
.cal__v { font-size: 10px; font-weight: 600; }
.vote-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; font-size: 12.5px; }
.vote-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vote-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* ---- Hlasování: souhrnná mřížka ---- */
.vote-grid th, .vote-grid td { text-align: center; }
.vote-grid thead th:first-child, .vote-grid tbody td:first-child, .vote-grid tfoot td:first-child { text-align: left; }
.vote-grid thead th { background: var(--panel-2); border-bottom: 2px solid var(--line); }
.vote-grid tbody td { border-bottom: 1px solid var(--line); }
.vote-grid tbody tr:nth-child(even) td { background: color-mix(in oklab, var(--panel-2) 45%, transparent); }
.vote-grid tbody tr:hover td { background: var(--accent-soft); }
.vote-col { padding: 7px 4px !important; vertical-align: bottom; }
.vote-col--weekend { background: color-mix(in oklab, var(--ink) 4%, var(--panel-2)); }
.vote-cell--weekend { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.vote-th { display: flex; flex-direction: column; line-height: 1.05; }
.vote-th b { font-family: var(--display); font-size: 15px; color: var(--ink); }
.vote-th span { font-family: var(--mono); font-size: 9px; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.vote-col--best { background: color-mix(in oklab, var(--accent) 13%, var(--panel)) !important; box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent); }
.vote-col--best .vote-th b { color: var(--accent-2); }
.vote-col--best .vote-th span { color: var(--accent); }
.vote-best-flag { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-top: 2px; font-weight: 600; }
.vote-col--final { background: color-mix(in oklab, var(--accent) 20%, var(--panel)) !important; }
.vote-pick { display: block; width: 22px; height: 22px; margin: 4px auto 0; border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--muted); border-radius: 6px; padding: 0; line-height: 1; transition: border-color .12s, background .12s, color .12s; }
.vote-pick:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.vote-col--final .vote-pick { background: var(--accent); border-color: var(--accent); color: #fff; }
.vote-pick svg { width: 13px; height: 13px; }
.vote-cell { padding: 7px 4px !important; }
.vote-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.vote-dot svg { width: 12px; height: 12px; color: #fff; }
.vote-dot--empty { width: 7px; height: 7px; box-shadow: none; }
.vote-sum td { background: var(--panel-2); border-top: 2px solid var(--line); font-size: 12.5px; padding: 9px 4px !important; }
.vote-sum--ano td { background: color-mix(in oklab, var(--zelena) 6%, var(--panel-2)); }
.vote-sum .vote-bignum { font-family: var(--display); font-size: 15px; }
.vote-off { opacity: 0; transition: opacity .12s; }
tr:hover .vote-off { opacity: .7; }
tr:hover .vote-off:hover { opacity: 1; }

/* ---- okno přepínač ---- */
.okno-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.okno-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); cursor: pointer; transition: border-color .14s, background .14s; min-width: 150px; text-decoration: none; }
.okno-tab:hover { border-color: var(--line-2); }
.okno-tab.on { border-color: var(--accent); background: var(--accent-soft); }
.okno-tab__nm { font-weight: 700; font-size: 13.5px; padding-left: 16px; position: relative; color: var(--ink); }
.okno-tab__nm::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--zelena); }
.okno-tab.is-done .okno-tab__nm::before { background: var(--muted); }
.okno-tab__sub { font-family: var(--mono); font-size: 10.5px; color: var(--muted); padding-left: 16px; }

/* ============================================================
   SELECTOR BUTTONY – kompaktní přepínací pilulky (vícenásobný výběr)
   Použití: <div class="chips"> <label class="chk"><input type=checkbox ...>
            <span class="chk__box">{{icon check}}</span><span>Popisek</span></label> … </div>
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1.5px solid var(--line-2); border-radius: 99px; background: var(--panel); color: var(--ink); font-size: 13px; line-height: 1.1; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: border-color .14s, background .14s, color .14s; }
.chk:hover { border-color: var(--line); }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chk__box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--panel); display: grid; place-items: center; flex: none; transition: border-color .14s, background .14s; }
.chk__box svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .1s; }
.chk:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.chk:has(input:checked) .chk__box { background: var(--accent); border-color: var(--accent); }
.chk:has(input:checked) .chk__box svg { opacity: 1; }
.chk:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }
/* řádkový switch s popiskem (jeden bool přepínač ve formuláři) */
.switch-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; }

/* ===== Dokumentace stránky („íčko" v hlavičce + modal; z claude.ai/design) ===== */
.topbar__title { display: inline-flex; align-items: center; gap: 4px; }
.page__info { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: none; background: none; color: var(--line-2); cursor: pointer; padding: 0; margin-left: 2px; transition: color .14s, background .14s, transform .14s; position: relative; top: 1px; }
.page__info svg { width: 19px; height: 19px; }
.page__info:hover { color: var(--accent); background: var(--accent-soft); transform: scale(1.08); }
.doc-modal__title { display: inline-flex; align-items: center; gap: 9px; }
.doc-modal__title svg { width: 19px; height: 19px; color: var(--accent); }
.doc { font-size: 14px; }
.doc__group { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 99px; }
.doc__ucel { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 12px 0 4px; text-wrap: pretty; }
.doc__sec { margin-top: 20px; }
.doc__h { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; white-space: nowrap; }
.doc__h svg { width: 14px; height: 14px; color: var(--accent); }
.doc__funkce { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.doc__funkce li { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 6px 16px; align-items: baseline; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.doc__funkce li:last-child { border-bottom: none; padding-bottom: 0; }
.doc__fnm { font-weight: 700; color: var(--ink); }
.doc__fpop { color: var(--ink-2); line-height: 1.5; }
.doc__data { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.doc__data li { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.doc__datadot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.doc__roles { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.doc__rolerow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.doc__rolerow + .doc__rolerow { border-top: 1px solid var(--line); }
.doc__rolelbl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; color: var(--muted); width: 96px; flex: none; }
.doc__rolelbl svg { color: var(--muted); }
.doc__rolechips { display: flex; flex-wrap: wrap; gap: 5px; }
.rchip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.rchip--all { background: var(--accent-soft); border-color: transparent; color: var(--accent-2); }
.rchip--edit { background: color-mix(in oklab, var(--ok) 14%, var(--panel)); border-color: transparent; color: var(--ok); }
.rchip--note { background: var(--panel-3); }
.doc__readonly { font-size: 13px; color: var(--muted); font-style: italic; }
.doc__rolenotes { list-style: none; margin: 11px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.doc__rolenotes li { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.doc__tip { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding: 12px 14px; background: var(--accent-soft); border-radius: var(--r); font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.doc__tip svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 1px; }
@media (max-width: 560px) { .doc__funkce li { grid-template-columns: 1fr; gap: 2px; } }

/* ============================================================
   DATE FIELD (vlastní grafický kalendář)
   ============================================================ */
.dpf { position: relative; }
.dpf__btn { width: 100%; display: flex; align-items: center; gap: 10px; font-family: var(--body); font-size: 14px; color: var(--ink); background: var(--panel); border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 9px 12px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.dpf__btn:hover { border-color: var(--line); }
.dpf__btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.dpf--open .dpf__btn { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.dpf--dis .dpf__btn { opacity: .55; cursor: not-allowed; background: var(--panel-2); }
.dpf__lead { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.dpf__lead svg { width: 15px; height: 15px; }
.dpf__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpf__val.placeholder { color: var(--muted); }
.dpf__clear { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; transition: background .12s, color .12s; }
.dpf__clear svg { width: 13px; height: 13px; }
.dpf__clear:hover { background: var(--panel-3); color: var(--danger); }
.dpf__pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 286px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 12px; animation: selpop .16s var(--ease); }
.dpf__pop--up { top: auto; bottom: calc(100% + 6px); }
.dpf__bar { display: flex; align-items: center; gap: 2px; margin-bottom: 10px; }
.dpf__title { flex: 1; text-align: center; font-family: var(--display); font-weight: 700; font-size: 15px; text-transform: capitalize; }
.dpf__nav { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: none; background: none; border-radius: 8px; cursor: pointer; color: var(--muted); }
.dpf__nav:hover { background: var(--panel-2); color: var(--ink); }
.dpf__nav svg { width: 15px; height: 15px; }
.dpf__nav--double svg + svg { margin-left: -9px; }
.dpf__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.dpf__dow span { text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 2px 0; }
.dpf__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dpf__empty { aspect-ratio: 1; }
.dpf__day { aspect-ratio: 1; display: grid; place-items: center; border: none; background: none; border-radius: 8px; cursor: pointer; font-family: var(--body); font-size: 13px; color: var(--ink); transition: background .12s; }
.dpf__day:hover { background: var(--accent-soft); color: var(--accent-2); }
.dpf__day.we { color: var(--muted); }
.dpf__day.today { box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; }
.dpf__day.on { background: var(--accent); color: #fff; font-weight: 700; }
.dpf__day.on:hover { background: var(--accent-2); color: #fff; }
.dpf__day.dis { opacity: .3; cursor: not-allowed; }
.dpf__day.dis:hover { background: none; color: var(--ink); }
.dpf__foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.dpf__today { font-family: var(--mono); font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; padding: 4px 10px; border-radius: 7px; }
.dpf__today:hover { background: var(--accent-soft); }

/* ============================================================
   DOSTIHY — gamifikovaný závod (globální; scoped verze v dostihy.twig)
   ============================================================ */
.race { position: relative; background: linear-gradient(180deg, #f3f6ee, #e7eede); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.race__bridle { height: 12px; background: repeating-linear-gradient(45deg, var(--accent) 0 9px, var(--accent-2) 9px 18px); opacity: .9; }
.race__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px 4px; }
.race__title { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.race__sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.race__stamp { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 2.5px dashed color-mix(in oklab, var(--accent) 60%, transparent); color: var(--accent-2); display: grid; place-items: center; text-align: center; transform: rotate(-9deg); opacity: .82; padding: 8px; }
.race__stamp b { font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.race__stamp span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 4px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; padding: 14px 28px 22px; max-width: 560px; margin: 0 auto; }
.podium__col { text-align: center; }
.podium__img { height: 80px; width: auto; margin: 0 auto; display: block; filter: drop-shadow(0 6px 10px rgba(20,24,18,.28)); }
.podium__col--1 .podium__img { height: 104px; }
.podium__name { font-family: var(--display); font-weight: 800; font-size: 14.5px; margin-top: 4px; }
.podium__pts { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.podium__block { margin-top: 8px; border-radius: 10px 10px 0 0; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.podium__col--1 .podium__block { height: 76px; background: linear-gradient(180deg, #e7b53d, #c8951c); }
.podium__col--2 .podium__block { height: 58px; background: linear-gradient(180deg, #b9c0c7, #939ba3); }
.podium__col--3 .podium__block { height: 44px; background: linear-gradient(180deg, #cd8e5e, #a96b3c); }
.lanes { padding: 6px 24px 24px; display: flex; flex-direction: column; gap: 7px; }
.lanes__legend { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 0 8px; }
.lane { display: grid; grid-template-columns: 26px 1fr 52px; align-items: center; gap: 12px; }
.lane__rank { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--muted); text-align: center; }
.lane--top .lane__rank { color: var(--accent); font-weight: 700; }
.lane__track { position: relative; height: 70px; border-radius: 999px; background: #fff; border: 1px solid var(--line); background-image: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), color-mix(in oklab, var(--ink) 8%, transparent) calc(20% - 1px) 20%); }
.lane__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; opacity: .2; transition: width .9s var(--ease); }
.lane__finish { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 14px; height: 22px; border-radius: 2px; background-image: conic-gradient(#1d231c 90deg, #fff 90deg 180deg, #1d231c 180deg 270deg, #fff 270deg); background-size: 7px 7px; opacity: .55; }
.lane__horse { position: absolute; top: 50%; height: 84px; width: auto; transform: translate(-50%, -50%); transition: left .9s var(--ease); pointer-events: none; filter: drop-shadow(0 3px 5px rgba(20,24,18,.32)); }
.lane__pts { font-family: var(--display); font-weight: 800; font-size: 16px; text-align: right; }
.lane__pts small { font-family: var(--mono); font-weight: 400; font-size: 10px; color: var(--muted); display: block; margin-top: -2px; }
.matrix { font-size: 13px; }
.matrix th.ksticky, .matrix td.ksticky { position: sticky; left: 0; background: var(--panel); z-index: 1; min-width: 150px; }
.matrix tbody tr:hover td.ksticky { background: var(--panel-2); }
.matrix td.cell { text-align: center; padding: 4px; }
.matrix input { width: 46px; text-align: center; font-family: var(--mono); font-size: 13px; padding: 6px 4px; border: 1px solid transparent; border-radius: 7px; background: var(--panel-2); color: var(--ink); }
.matrix input:hover { border-color: var(--line-2); }
.matrix input:focus { outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-soft); }
.matrix .tot { font-family: var(--display); font-weight: 800; text-align: center; background: var(--panel-2); }
@media (max-width: 620px) {
  .podium__img { height: 60px; } .podium__col--1 .podium__img { height: 78px; }
  .lane { grid-template-columns: 22px 1fr 44px; gap: 8px; }
  .lane__track { height: 56px; }
  .lane__horse { height: 66px; }
}

/* ============================================================
   PIVOGRAF (scoped .pvg) — papírová síň slávy baru
   ============================================================ */
.pvg { --script: "Caveat", cursive; }
.pvg__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.pvg__eyebrow::before, .pvg__eyebrow::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.pvg__eyebrow span { flex: none; }
.pvg-paper { background: linear-gradient(180deg, #ffffff, #fcfdfb); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.pvg-podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; padding: 44px 0 10px; position: relative; }
.pvg-pod { display: flex; flex-direction: column; align-items: center; }
.pvg-kings { display: flex; gap: 12px; position: relative; }
.pvg-king { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pvg-king .nm { font-family: var(--display); font-weight: 800; font-size: 14px; }
.pvg-king .pt { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pvg-pod--1 .pvg-king:nth-child(3) { transform: translateY(6px); }
.pvg-block { margin-top: 10px; border-radius: 10px 10px 0 0; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--ink-2); box-shadow: inset 0 -3px 0 rgba(0,0,0,.07); background: var(--panel-2); border: 1px solid var(--line); border-bottom: none; }
.pvg-pod--1 .pvg-block { height: 76px; width: 196px; background: color-mix(in oklab, var(--zluta) 14%, var(--panel-2)); }
.pvg-pod--2 { align-self: flex-end; }
.pvg-pod--2 .nm { font-family: var(--display); font-weight: 800; font-size: 13px; margin-top: 5px; }
.pvg-pod--2 .pt { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.pvg-pod--2 .pvg-block { height: 54px; width: 112px; }
.pvg-crown { position: absolute; top: -32px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 96px; height: 36px; }
.pvg-crown path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pvg-stamp { position: absolute; top: 12px; right: 0; font-family: var(--script); font-size: 30px; color: var(--accent-2); transform: rotate(-3deg); border: 2px solid var(--accent-2); border-radius: 8px; padding: 1px 12px; opacity: .85; line-height: 1.1; }
.pvg-cor-note { text-align: center; font-family: var(--script); font-size: 19px; color: var(--accent); margin: 4px 0 0; }
.pvg-cor-line { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 2px; }
.pvg-av { border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--ink); flex: none; box-shadow: var(--shadow-sm); }
.pvg-av--gold { box-shadow: 0 0 0 2px var(--zluta), var(--shadow-sm); }
.pvg-list { padding: 4px 6px 8px; }
.pvg-row { display: grid; grid-template-columns: 56px minmax(140px,1.4fr) minmax(120px,1fr) 1.6fr auto; gap: 16px; align-items: center; min-height: 72px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pvg-coaster { width: 52px; height: 52px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; position: relative; flex: none; box-shadow: var(--shadow-sm); }
.pvg-coaster::before { content: ""; position: absolute; inset: 5px; border-radius: 99px; border: 1px dashed var(--line-2); opacity: .7; }
.pvg-coaster--gold { border-color: var(--zluta); box-shadow: 0 0 0 2px color-mix(in oklab, var(--zluta) 60%, transparent), var(--shadow-sm); }
.pvg-coaster .rank { font-family: var(--mono); font-size: 13px; color: var(--ink); position: relative; }
.pvg-coaster--empty { background: var(--panel-2); }
.pvg-coaster--empty .rank { color: var(--muted); font-size: 9px; text-align: center; line-height: 1.2; }
.pvg-mname { font-family: var(--mono); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.pvg-mdef { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pvg-win { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.pvg-win .nm { font-family: var(--display); font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvg-win .perf { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.pvg-mg__track { position: relative; height: 6px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); }
.pvg-mg__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 99px; transition: width .6s var(--ease); }
.pvg-mg__tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-2); opacity: .55; border-radius: 2px; }
.pvg-mg__scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--muted); margin-top: 5px; }
.pvg-place { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; line-height: 1.7; min-width: 96px; }
.pvg-place b { color: var(--ink-2); font-weight: 500; }
.pvg-curio { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 14px; margin: 6px; border-top: 2px solid var(--line); }
.pvg-curio__lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pvg-curio__main { font-family: var(--display); font-weight: 800; font-size: 16px; margin-top: 3px; }
.pvg-curio__note { font-family: var(--script); font-size: 17px; color: var(--accent); margin-top: 2px; }
.pvg-curio__val { font-family: var(--display); font-weight: 800; font-size: 22px; text-align: right; }
.pvg-curio__val small { display: block; font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); }
.pvg-board { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 18px; background: var(--panel-2); border-radius: var(--r-lg); padding: 22px; background-image: radial-gradient(var(--line) 1px,transparent 1px); background-size: 16px 16px; }
.pvg-bcoaster { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; position: relative; box-shadow: var(--shadow-sm); }
.pvg-bcoaster::after { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--cervena); }
.pvg-bcoaster--gold { box-shadow: 0 0 0 2px color-mix(in oklab, var(--zluta) 55%, transparent), var(--shadow-sm); }
.pvg-bcoaster .bn { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.pvg-bcoaster .bw { font-family: var(--display); font-weight: 800; font-size: 15px; margin-top: 6px; }
.pvg-bcoaster .bp { font-family: var(--mono); font-size: 12px; color: var(--accent-2); margin-top: 2px; }
.pvg-drow { display: grid; grid-template-columns: 54px minmax(120px,1.3fr) auto 1.4fr; gap: 16px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.pvg-ticker { font-family: var(--mono); font-size: 22px; text-align: center; color: var(--ink); }
.pvg-dname { font-family: var(--display); font-weight: 700; font-size: 16px; }
.pvg-jump { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.pvg-jump .from { color: var(--muted); }
.pvg-jump .to { color: var(--ink); }
.pvg-jump .pct { color: var(--accent); display: inline-flex; align-items: center; gap: 3px; }
.pvg-jump .pct svg { width: 13px; height: 13px; }
.pvg-spark { display: flex; align-items: flex-end; gap: 2px; height: 40px; }
.pvg-spark .b { width: 5px; background: var(--accent); border-radius: 1px; opacity: .85; }
.pvg-spark .b.d1 { opacity: .4; }
.pvg-spark__ax { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--muted); margin-top: 4px; }
.pvg-note { font-family: var(--script); font-size: 18px; color: var(--accent); }
.pvg-split { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 6px 0 4px; border: 1px solid var(--line); }
.pvg-split i { height: 100%; }
.pvg-split-leg { display: flex; gap: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.pvg-split-leg i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: middle; }
.pvg-chain { font-family: var(--mono); font-size: 18px; letter-spacing: 2px; width: 100%; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--panel); color: var(--ink); }
.pvg-chain:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pvg-prev { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.pvg-pchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 11px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); }
.pvg-pchip .c { font-family: var(--mono); font-weight: 600; }
.pvg-pchip--err { background: color-mix(in oklab, var(--danger) 10%, var(--panel)); border-color: color-mix(in oklab, var(--danger) 34%, transparent); color: var(--danger); }
.pvg-pchip--ok { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 30%, transparent); }
.pvg-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pvg-lchip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; padding: 5px 10px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); }
.pvg-lchip .c { font-family: var(--mono); font-weight: 600; min-width: 14px; text-align: center; }
.pvg-lchip .pr { color: var(--muted); font-family: var(--mono); }
.pvg-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(112px,1fr)); gap: 10px; }
.pvg-tile { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 13px 12px; cursor: pointer; text-align: left; min-height: 74px; transition: border-color .15s, background .15s; }
.pvg-tile:hover { border-color: var(--accent); background: var(--accent-soft); }
.pvg-tile .tc { font-family: var(--mono); font-weight: 600; font-size: 16px; }
.pvg-tile .tn { font-size: 12.5px; margin-top: 3px; }
.pvg-tile .tp { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 5px; }
@media (max-width: 920px) { .pvg-row { grid-template-columns: 52px 1.3fr 1fr; } .pvg-row .pvg-mg { grid-column: 1 / -1; } .pvg-place { grid-column: 1 / -1; text-align: left; min-width: 0; } }
@media (max-width: 620px) { .pvg-podium { flex-direction: column; gap: 18px; padding-top: 46px; } .pvg-drow { grid-template-columns: 46px 1fr; } .pvg-drow .pvg-jump, .pvg-drow .pvg-spark { grid-column: 1 / -1; } .pvg-row { grid-template-columns: 48px 1fr; } .pvg-win { grid-column: 1 / -1; } .pvg-stamp { font-size: 24px; } }

/* ============================================================
   SKLAD (WMS) — lokace, inventář, balení, tisk
   ============================================================ */
.lok-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.lok-ic svg { width: 18px; height: 18px; }
.bal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bal-leg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; transition: border-color .14s, background .14s; }
.bal-leg:hover { border-color: var(--line-2); }
.bal-leg.on { border-color: var(--accent); background: var(--accent-soft); }
.bal-leg .dot { width: 10px; height: 10px; border-radius: 50%; }
.bal-leg b { font-family: var(--mono); }
.bal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bal-card { text-align: left; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 16px 18px; cursor: pointer; font-family: inherit; transition: transform .12s var(--ease), box-shadow .14s; box-shadow: var(--shadow-sm); }
.bal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bal-card:active { transform: scale(.99); }
.bal-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bal-card__kod { font-size: 13px; font-weight: 600; color: var(--ink); }
.bal-card__badge { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.bal-card__badge svg { width: 12px; height: 12px; }
.bal-card__name { font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.1; }
.bal-card__meta { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.bal-card__hint { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 12px; opacity: .7; }
.bal-stav { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-family: var(--mono); font-size: 12px; padding: 7px 13px; border-radius: 999px; border: none; cursor: pointer; white-space: nowrap; transition: transform .1s, filter .12s; min-height: 36px; }
.bal-stav:hover { filter: brightness(1.06); }
.bal-stav:active { transform: scale(.96); }
.print-sheet { display: flex; justify-content: center; padding: 8px 0 30px; }
.psheet { background: #fff; color: #1a1a1a; box-shadow: var(--shadow-lg); border-radius: 4px; }
.psheet--a4 { width: 100%; max-width: 720px; padding: 38px 42px; min-height: 400px; }
.psheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 3px solid #1a1a1a; padding-bottom: 16px; margin-bottom: 18px; }
.psheet__kod { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: #666; }
.psheet__name { font-family: var(--display); font-size: 28px; font-weight: 800; margin: 2px 0 4px; color: #1a1a1a; }
.psheet .muted { color: #777; }
.psheet__tbl { width: 100%; border-collapse: collapse; }
.psheet__tbl th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #888; padding: 8px 6px; border-bottom: 1px solid #ddd; }
.psheet__tbl td { padding: 10px 6px; border-bottom: 1px solid #eee; font-size: 14px; }
.psheet__check { display: inline-block; width: 18px; height: 18px; border: 1.5px solid #999; border-radius: 4px; }
.psheet__foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid #ddd; font-family: var(--mono); font-size: 10.5px; color: #999; text-align: center; }
.psheet--label { width: 100%; max-width: 100%; padding: 0; }
.plabel { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 60vh; }
.plabel__main { flex: 1; min-width: 0; }
.plabel__qr { flex: none; width: 33%; max-width: 33%; }
.plabel__qr svg { width: 100%; height: auto; display: block; }
.plabel__kod { font-family: var(--mono); font-size: clamp(48px, 9vw, 92px); font-weight: 700; color: #1a1a1a; line-height: 1; }
.plabel__name { font-family: var(--display); font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-top: 14px; }
.plabel__resp { font-size: 16px; color: #666; margin-top: 16px; }
.plabel__count { font-family: var(--mono); font-size: 14px; color: #999; margin-top: 4px; }
@media (max-width: 620px) { .bal-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .bal-card { padding: 13px 13px; } .bal-card__name { font-size: 15px; } }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .page__head, .toolbar, .sidebar-scrim, .nav2 { display: none !important; }
  .app { display: block; }
  .content { padding: 0; overflow: visible; }
  .print-sheet { padding: 0; }
  .psheet { box-shadow: none; border-radius: 0; max-width: none; width: 100%; }
  .psheet__check { -webkit-print-color-adjust: exact; }
}

/* ============================================================
   PERSON EDITOR — cropper, uploader, fotky, taby, doklady
   ============================================================ */
.cropper { position: relative; margin: 0 auto; border-radius: var(--r); overflow: hidden; background: #1d231c; cursor: grab; touch-action: none; user-select: none; }
.cropper:active { cursor: grabbing; }
.cropper__mask { position: absolute; inset: 0; pointer-events: none; background: rgba(20,24,18,.55); -webkit-mask: radial-gradient(circle at center, transparent 49.5%, #000 50%); mask: radial-gradient(circle at center, transparent 49.5%, #000 50%); }
.cropper__ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.cropper__zoom { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 6px; }
.cropper__zoom input[type=range] { flex: 1; accent-color: var(--accent); }
.avup { position: relative; border-radius: 50%; overflow: hidden; cursor: pointer; flex: none; background: var(--panel-2); border: 2px dashed transparent; transition: border-color .15s, transform .12s; }
.avup:hover { transform: translateY(-1px); }
.avup--over { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.avup img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avup__ini { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; }
.avup__hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,24,18,.45); color: #fff; opacity: 0; transition: opacity .15s; }
.avup__hint svg { width: 24px; height: 24px; }
.avup:hover .avup__hint, .avup--over .avup__hint { opacity: 1; }
.pfotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pfoto { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.pfoto img { width: 100%; height: 100%; object-fit: cover; }
.pfoto__star { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(20,24,18,.5); color: #fff; cursor: pointer; display: grid; place-items: center; }
.pfoto__star svg { width: 15px; height: 15px; }
.pfoto__star.on { background: var(--zluta); color: #3a2a00; }
.pfoto__del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(20,24,18,.5); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .14s; }
.pfoto:hover .pfoto__del { opacity: 1; }
.pfoto__del svg { width: 14px; height: 14px; }
.pfoto__main { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; background: var(--zluta); color: #3a2a00; padding: 2px; }
.pfoto-drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); display: grid; place-items: center; aspect-ratio: 1; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.pfoto-drop:hover, .pfoto-drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pfoto-drop svg { width: 22px; height: 22px; }
.ptabs { display: flex; gap: 2px; padding: 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab { border: none; background: none; padding: 13px 14px; font-family: var(--body); font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; transition: color .14s, border-color .14s; }
.ptab:hover { color: var(--ink); }
.ptab.on { color: var(--accent-2); border-bottom-color: var(--accent); }
.ptab .lock { width: 13px; height: 13px; opacity: .6; }
.pe-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pe-head__name { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; }
.pe-head__nick { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.pe-body { padding: 20px 22px; max-height: min(64vh, 560px); overflow-y: auto; }
.pe-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.pchips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.psec { margin-bottom: 22px; }
.psec__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.psec__h h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.psec__h .lock-badge { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.psec__h .count { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 500; }
.dok-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #9a6b08; background: color-mix(in oklab, var(--zluta) 18%, var(--panel)); border: 1px solid color-mix(in oklab, var(--zluta) 34%, transparent); padding: 3px 9px; border-radius: 999px; }
.dok-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.dok-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.dok-ic { width: 34px; height: 40px; border-radius: 6px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dok-ic svg { width: 18px; height: 18px; }
.dok-main { flex: 1; min-width: 0; }
.dok-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dok-req { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--danger); background: color-mix(in oklab, var(--danger) 12%, transparent); padding: 1px 6px; border-radius: 4px; }
.dok-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.dok-stav { flex: none; }
.dok-act { display: flex; gap: 2px; flex: none; }
.dok-upload { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.dok-file { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r); cursor: pointer; color: var(--muted); font-size: 13.5px; transition: border-color .14s, background .14s; }
.dok-file:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dok-file svg { width: 18px; height: 18px; flex: none; }
.dok-types { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.dok-type { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.dok-newtype { border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 560px) { .dok-row { flex-wrap: wrap; } .dok-stav { order: 3; } .pe-body { max-height: 70vh; } }
.miniline { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px; background: var(--panel); }
.miniline .yr { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.vazba { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px; }
.vazba__typ { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-left: auto; }
@media (max-width: 560px) { .miniline { grid-template-columns: 56px 1fr auto; } }

/* ============================================================
   NEWSLETTER — e-mailový klient
   ============================================================ */
.nl-camprow { display: grid; grid-template-columns: 1fr repeat(4, 76px) 110px; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.nl-camprow:hover { background: var(--panel-2); }
.nl-camprow__subj { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 9px; min-width: 0; }
.nl-camprow__subj .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-camprow__meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nl-metric { text-align: right; }
.nl-metric .v { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1; }
.nl-metric .l { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nl-metric .v.dim { color: var(--line-2); }
.nl-camphead { display: grid; grid-template-columns: 1fr repeat(4, 76px) 110px; gap: 14px; padding: 10px 16px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.nl-camphead span { text-align: right; }
.nl-camphead span:first-child { text-align: left; }
.nl-compose { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.nl-groups { display: grid; gap: 8px; }
.nl-group { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .14s, background .14s; }
.nl-group:hover { border-color: var(--line-2); }
.nl-group.on { border-color: var(--accent); background: var(--accent-soft); }
.nl-group__check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; transition: background .14s, border-color .14s; }
.nl-group.on .nl-group__check { background: var(--accent); border-color: var(--accent); }
.nl-group__check svg { width: 13px; height: 13px; opacity: 0; }
.nl-group.on .nl-group__check svg { opacity: 1; }
.nl-group__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.nl-group__name { font-weight: 600; font-size: 13.5px; flex: 1; }
.nl-group__count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nl-indiv { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.nl-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 11px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; font-size: 12.5px; }
.nl-pill button { width: 18px; height: 18px; border: none; background: var(--panel-3); border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.nl-pill button svg { width: 11px; height: 11px; }
.nl-preview { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: sticky; top: 16px; }
.nl-preview__bar { display: flex; align-items: center; gap: 7px; padding: 9px 13px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.nl-preview__bar i { width: 9px; height: 9px; border-radius: 50%; }
.nl-preview__body { padding: 0; background: #fff; max-height: 440px; overflow-y: auto; }
.nl-mail { font-family: var(--body); color: #222; }
.nl-mail__hd { padding: 22px 24px 16px; border-bottom: 1px solid #eee; }
.nl-mail__brand { display: flex; align-items: center; gap: 10px; }
.nl-mail__logo { width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.nl-mail__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nl-mail__from { font-size: 12px; color: #888; }
.nl-mail__subj { font-family: var(--display); font-weight: 800; font-size: 19px; color: #1a1a1a; margin: 14px 0 0; }
.nl-mail__pre { font-size: 12.5px; color: #999; margin-top: 4px; }
.nl-mail__content { padding: 20px 24px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; min-height: 80px; }
.nl-mail__content.empty { color: #bbb; font-style: italic; }
.nl-foot { background: #1d231c; color: #cdd2c6; padding: 22px 24px; text-align: center; }
.nl-foot__stripes { display: flex; justify-content: center; gap: 4px; margin-bottom: 12px; }
.nl-foot__stripes i { width: 26px; height: 5px; border-radius: 3px; }
.nl-foot__brand { font-family: var(--display); font-weight: 800; color: #fff; font-size: 15px; }
.nl-foot__tag { font-family: var(--script, cursive); color: #e7a614; font-size: 17px; margin: 2px 0 10px; }
.nl-foot__soc { display: flex; justify-content: center; gap: 14px; font-size: 12px; margin-bottom: 12px; }
.nl-foot__soc a { color: #cdd2c6; text-decoration: none; }
.nl-foot__legal { font-size: 11px; color: #8b9382; line-height: 1.6; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
.nl-foot__legal a { color: #b9c0ad; text-decoration: underline; }
.nl-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nl-stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; position: relative; }
.nl-stat__ic { position: absolute; top: 13px; right: 13px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.nl-stat__ic svg { width: 15px; height: 15px; }
.nl-stat__v { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.nl-stat__pct { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: 5px; }
.nl-stat__l { font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.nl-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px 0; }
.nl-chart__bar { flex: 1; background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent) 55%, var(--panel))); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; transition: opacity .12s; }
.nl-chart__bar:hover { opacity: .7; }
.nl-chart__ax { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--muted); margin-top: 6px; }
.nl-bar { height: 9px; border-radius: 99px; background: var(--panel-2); overflow: hidden; display: flex; margin: 6px 0; }
.nl-bar i { height: 100%; }
.nl-linkrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nl-linkrow:last-child { border-bottom: none; }
.nl-linkrow__url { font-family: var(--mono); font-size: 12.5px; color: var(--info); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-linkrow__track { width: 120px; height: 7px; border-radius: 99px; background: var(--panel-2); overflow: hidden; flex: none; }
.nl-linkrow__track i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.nl-linkrow__n { font-family: var(--mono); font-size: 12.5px; font-weight: 600; min-width: 56px; text-align: right; }
@media (max-width: 860px) { .nl-compose { grid-template-columns: 1fr; } .nl-preview { position: static; } .nl-camprow, .nl-camphead { grid-template-columns: 1fr 60px 60px 90px; } .nl-camprow .nl-metric:nth-child(4), .nl-camphead span:nth-child(4), .nl-camprow .nl-metric:nth-child(5), .nl-camphead span:nth-child(5) { display: none; } .nl-statgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Lékárna: ideální stav ---- */
.ideal-row { transition: background .12s; }
.ideal-row--expandable:hover { background: var(--panel-2); }
.ideal-row--ok td:first-child    { border-left: 3px solid var(--ok); }
.ideal-row--warn td:first-child   { border-left: 3px solid var(--warn); }
.ideal-row--low td:first-child    { border-left: 3px solid var(--danger); }
.ideal-row--empty td:first-child  { border-left: 3px solid var(--danger); }
.ideal-row--muted td:first-child  { border-left: 3px solid var(--line); }
.stav { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; border: 1px solid transparent; white-space: nowrap; }
.stav--ok    { background: color-mix(in oklab, var(--ok) 12%, var(--panel)); color: var(--ok); border-color: color-mix(in oklab, var(--ok) 26%, transparent); }
.stav--warn  { background: color-mix(in oklab, var(--warn) 14%, var(--panel)); color: #9a6b08; border-color: color-mix(in oklab, var(--warn) 30%, transparent); }
.stav--low   { background: color-mix(in oklab, var(--danger) 11%, var(--panel)); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 26%, transparent); }
.stav--empty { background: color-mix(in oklab, var(--danger) 14%, var(--panel)); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 30%, transparent); }
.stav--muted { background: var(--panel-3); color: var(--muted); border-color: var(--line); }
.stav__excl  { font-size: 13px; font-weight: 700; line-height: 1; }
.tbl--ideal tbody tr:last-child td { border-bottom: none; }
/* Autocomplete dropdown v modalu */
.ac-wrap { position: relative; }
.ac-dropdown { position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 200; background: var(--panel); border: 1.5px solid var(--accent); border-radius: 0 0 var(--r-sm) var(--r-sm); box-shadow: var(--shadow); max-height: 220px; overflow-y: auto; }
.ac-item { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 9px 14px; border: none; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font-family: var(--body); font-size: 14px; color: var(--ink); transition: background .1s; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item:focus { background: var(--accent-soft); outline: none; }
.ac-item__name { font-weight: 600; }
.ac-item__cat  { font-size: 12px; color: var(--muted); }
/* Sortovatelné sloupce tabulky */
.th-sort { cursor: pointer; user-select: none; white-space: nowrap; color: inherit; text-decoration: none; }
.th-sort:hover { color: var(--ink-2); }
.th-sort--on, .th-sort--on:hover { color: var(--accent); }
.th-sort__dir { display: inline-block; width: 12px; margin-left: 3px; font-size: 8.5px; vertical-align: 1.5px; }
.chip--sm { font-size: 11px; padding: 2px 7px; }

/* === Cross-browser centrování obsahu tlačítek (#42 follow-up) ===
   Safari/WebKit nerespektuje centrování přes CSS Grid nastavené PŘÍMO na <button>
   (obsah — ikona/číslo — padá do levého horního rohu; v Chrome je vystředěný).
   Sjednoceno na flexbox (stejně jako .btn a .dpf__nav, které fungují všude) → ikony
   v tlačítkách vypadají identicky napříč prohlížeči. Týká se jen <button>; divy
   s grid centrováním (avatary, ikon-holdery) Safari středí správně, ty neměníme. */
.iconbtn, .hamburger, .lsearch__clear, .filechip__del, .dpf__clear, .dpf__day,
.setnina-sw, .nl-pill button, .pfoto__star, .pfoto__del, .page__info {
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Přepínač ročníku (yeardrop) — Claude Design yearbar-ukazka.html „Menu jako mřížka" ── */
.yeardrop { position: relative; display: inline-block; }
.yeardrop__btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: var(--body); transition: border-color .14s, background .14s, box-shadow .14s; }
.yeardrop__btn svg.cal { width: 15px; height: 15px; flex: none; }
.yeardrop__btn .yeardrop__lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.yeardrop__btn .yeardrop__val { font-family: var(--display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }
.yeardrop__btn .chev { width: 15px; height: 15px; flex: none; color: var(--muted); transition: transform .18s var(--ease); }
.yeardrop.open .yeardrop__btn .chev { transform: rotate(180deg); }
.yeardrop--box .yeardrop__btn { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; box-shadow: var(--shadow-sm); }
.yeardrop--box .yeardrop__btn:hover { border-color: var(--line-2); }
.yeardrop--box .cal { color: var(--accent); }
.yeardrop__menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; display: none; max-height: 320px; overflow-y: auto; }
.yeardrop__menu--right { left: auto; right: 0; }
.yeardrop.open .yeardrop__menu { display: block; animation: yd-in .14s var(--ease); }
.yeardrop__opt { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: none; padding: 8px 11px; border-radius: 8px; cursor: pointer; text-align: left; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2); transition: background .12s, color .12s; }
.yeardrop__opt:hover { background: var(--accent-soft); color: var(--accent-2); }
.yeardrop__opt.on { background: var(--accent); color: #fff; }
.yeardrop__menu--grid { display: none; }
.yeardrop.open .yeardrop__menu--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; min-width: 200px; }
.yeardrop__menu--grid .yeardrop__opt { justify-content: center; padding: 9px 6px; }
.yeardrop__opt--live { box-shadow: inset 0 0 0 1.6px var(--accent); }
@keyframes yd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.yeardrop__opt--all { font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--muted); }
.yeardrop__opt--all.on { background: var(--accent); color: #fff; }
