/* Sykora IS — svět sykora.eu (teplá tma / krémový papír, Tiempos + Inter, sklo jen na plovoucích vrstvách). */

@font-face { font-family: 'Tiempos Headline'; src: url('/fonts/tiempos-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Tiempos Headline'; src: url('/fonts/tiempos-300-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Tiempos Headline'; src: url('/fonts/tiempos-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #c8262c;
  --brand-hi: #e23b40;
  --gold: #c0a878;
  --serif: 'Tiempos Headline', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bar-h: 68px;
  --wrap: 1240px;
  --gut: 32px;

  /* Tmavá = výchozí svět webu */
  --bg: #1c1813;
  --bg-2: #211c16;
  --elev: #262119;
  --elev-2: #312a22;
  --line: #2f2923;
  --line-2: #423b32;
  --text: #f5eee0;
  --mute: #b0a690;
  --dim: #988c78;
  --glass: rgba(28, 24, 19, 0.62);
  --glass-strong: rgba(33, 28, 22, 0.86);
  --glass-line: rgba(245, 238, 224, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --fill: rgba(245, 238, 224, 0.04);
  --fill-2: rgba(245, 238, 224, 0.07);
  --shadow: 0 1px 0 var(--glass-hi) inset, 0 18px 50px rgba(8, 6, 4, 0.45);
  --bloom-1: rgba(200, 38, 44, 0.13);
  --bloom-2: rgba(200, 38, 44, 0.08);
  --ok: #9bbf8a;
  --warn: #d9b26a;
  --sel: rgba(200, 38, 44, 0.42);
  color-scheme: dark;
}

/* Světlá = krémový papír webu */
:root[data-theme="light"] {
  --bg: #f3ede2;
  --bg-2: #efe8db;
  --elev: #f8f6f1;
  --elev-2: #ebe3d4;
  --line: #e0d6c3;
  --line-2: #cdbfa6;
  --text: #1a1612;
  --mute: #5f5443;
  --dim: #6b6052;
  --glass: rgba(248, 245, 238, 0.66);
  --glass-strong: rgba(250, 248, 243, 0.92);
  --glass-line: rgba(26, 22, 18, 0.10);
  --glass-hi: rgba(255, 255, 255, 0.7);
  --fill: rgba(26, 22, 18, 0.035);
  --fill-2: rgba(26, 22, 18, 0.06);
  --shadow: 0 1px 0 var(--glass-hi) inset, 0 18px 44px rgba(74, 52, 30, 0.12);
  --bloom-1: rgba(200, 38, 44, 0.07);
  --bloom-2: rgba(192, 168, 120, 0.16);
  --ok: #4f7a3c;
  --warn: #9a6a12;
  --sel: rgba(200, 38, 44, 0.22);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg: #f3ede2; --bg-2: #efe8db; --elev: #f8f6f1; --elev-2: #ebe3d4; --line: #e0d6c3; --line-2: #cdbfa6;
    --text: #1a1612; --mute: #5f5443; --dim: #6b6052;
    --glass: rgba(248, 245, 238, 0.66); --glass-strong: rgba(250, 248, 243, 0.92); --glass-line: rgba(26, 22, 18, 0.10); --glass-hi: rgba(255, 255, 255, 0.7);
    --fill: rgba(26, 22, 18, 0.035); --fill-2: rgba(26, 22, 18, 0.06);
    --shadow: 0 1px 0 var(--glass-hi) inset, 0 18px 44px rgba(74, 52, 30, 0.12);
    --bloom-1: rgba(200, 38, 44, 0.07); --bloom-2: rgba(192, 168, 120, 0.16);
    --ok: #4f7a3c; --warn: #9a6a12; --sel: rgba(200, 38, 44, 0.22);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 700px at 18% 4%, var(--bloom-1) 0%, transparent 70%),
    radial-gradient(900px 680px at 88% 92%, var(--bloom-2) 0%, transparent 70%);
  transform: translateZ(0);
}
::selection { background: var(--sel); color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-color: var(--line-2) transparent; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ── Horní lišta (sklo) ─────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 40;
  height: var(--bar-h);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-line);
}
.bar__in {
  max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); justify-self: start; }
.brand .logo { height: 20px; width: auto; color: var(--brand); }
.brand__is { font: 500 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); padding-left: 12px; border-left: 1px solid var(--line-2); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fill); border: 1px solid var(--glass-line); }
.tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  text-decoration: none; color: var(--mute); font-weight: 500; font-size: 14px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--text); color: var(--bg); }
.tabs .count { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--brand); color: #fff; }
.bar__end { justify-self: end; display: flex; align-items: center; gap: 6px; }
.iconbtn {
  width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--mute); cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.iconbtn:hover { color: var(--text); background: var(--fill-2); }
.iconbtn .ic { width: 20px; height: 20px; }
.theme-ic-light, .theme-ic-dark, .theme-ic-auto { display: none; }
:root[data-theme="light"] .theme-ic-light, :root[data-theme="dark"] .theme-ic-dark, :root:not([data-theme]) .theme-ic-auto, :root[data-theme="auto"] .theme-ic-auto { display: block; }

.me { position: relative; }
.me > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--glass-line); }
.me > summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--elev-2); color: var(--text); font: 600 12px/1 var(--sans); letter-spacing: .02em; }
.me__menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px; padding: 8px;
  background: var(--glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line); border-radius: var(--r-md); box-shadow: var(--shadow);
}
.me__who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me__who strong { display: block; font-weight: 600; }
.me__who span { color: var(--mute); font-size: 13px; }
.me__menu a, .me__menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-xs); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); font-size: 14px; }
.me__menu a:hover, .me__menu button:hover { background: var(--fill-2); }
.me__menu .ic { color: var(--mute); }

/* ── Kostra stránky ────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
main { padding: 48px 0 120px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
h1 { font-size: 3rem; line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.2; }
.lede { color: var(--mute); max-width: 60ch; margin: 10px 0 0; }
.muted { color: var(--mute); }
.dim { color: var(--dim); }

/* ── Tlačítka (pilulky webu) ───────────────────────────────────────── */
.btn {
  --b: var(--text);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: 500 14px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: color .32s var(--ease), border-color .32s var(--ease), transform .12s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--b); transform: translateY(101%); transition: transform .36s var(--ease); }
.btn:hover { color: var(--bg); border-color: var(--b); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; transition: transform .36s var(--ease); }
.btn:hover .ic-go { transform: translateX(4px); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: #fff; --b: var(--brand-hi); }
.btn--brand:hover { color: #fff; border-color: var(--brand-hi); }
.btn--quiet { border-color: transparent; color: var(--mute); padding: 0 14px; }
.btn--quiet::before { display: none; }
.btn--quiet:hover { color: var(--text); background: var(--fill-2); border-color: transparent; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ''; width: 14px; height: 14px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Čipy, štítky, stavy ───────────────────────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--glass-line); background: var(--fill); color: var(--mute);
  font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .ic { width: 16px; height: 16px; }
.chip .n { font-variant-numeric: tabular-nums; opacity: .7; }


.status { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--glass-line); color: var(--mute); background: var(--fill); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.status--novy { color: var(--brand-hi); border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); }
:root[data-theme="light"] .status--novy { color: var(--brand); }
.status--reseni { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.status--hotovo { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.status--zamitnuto { color: var(--dim); }

/* ── Sklo panel ────────────────────────────────────────────────────── */
.panel {
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .panel, .me__menu { background: var(--glass-strong); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ── Formuláře ─────────────────────────────────────────────────────── */
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text); }
.field .help { font-size: 13px; color: var(--mute); margin: 0; }
.field .err { font-size: 13px; color: var(--brand-hi); margin: 0; }
:root[data-theme="light"] .field .err { color: var(--brand); }
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 11px 16px; border-radius: 12px;
  background: var(--fill); border: 1px solid var(--glass-line); color: var(--text);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-2); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: color-mix(in srgb, var(--text) 42%, transparent); background: var(--fill-2); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--brand); }
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.search { position: relative; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); width: 18px; height: 18px; pointer-events: none; }
.search .input { border-radius: 999px; padding-left: 44px; min-height: 42px; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--fill); border: 1px solid var(--glass-line); flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mute); transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--glass-line); background: var(--fill-2); margin-bottom: 28px; }
.flash--ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.flash--err { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.flash .ic { margin-top: 2px; }

/* ── Přihlášení ────────────────────────────────────────────────────── */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px); gap: 64px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px var(--gut); }
.auth__brand .logo { height: 30px; width: auto; color: var(--brand); margin-bottom: 64px; }
.auth__brand h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.auth__brand h1 em { font-style: normal; color: var(--mute); }
.auth__brand p { color: var(--mute); max-width: 44ch; font-size: 16px; margin: 28px 0 0; }
.auth__card { padding: 36px; }
.auth__card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.auth__card .lede { margin: 0 0 28px; font-size: 14px; }
.code-input { font: 400 30px/1 var(--serif); letter-spacing: 0.4em; text-align: center; padding: 14px 0 14px 0.4em; }
.auth__foot { margin-top: 22px; font-size: 13px; color: var(--dim); }

/* ── Novinky ───────────────────────────────────────────────────────── */

.meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }



.pager { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }

.empty { padding: 72px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty h2 { margin-bottom: 10px; }
.empty p { color: var(--mute); margin: 0 auto 22px; max-width: 46ch; }

/* Detail novinky */
.article { max-width: 760px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); text-decoration: none; font-size: 14px; margin-bottom: 36px; }
.back:hover { color: var(--text); }
.article h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 16px 0 20px; }
.article__cat { font-size: 13px; color: var(--mute); }
.article .meta { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.prose { font-size: 17px; line-height: 1.7; max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose blockquote { margin: 0 0 1.2em; padding: 0; font: 300 1.45rem/1.35 var(--serif); color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--text); text-decoration-color: var(--brand); }
.prose img { border-radius: var(--r-md); margin: 1.4em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 36px; }
.file { display: grid; gap: 10px; text-decoration: none; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--glass-line); background: var(--fill); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.file:hover { border-color: var(--line-2); background: var(--fill-2); }
.file__img { aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--elev-2) center / cover no-repeat; display: grid; place-items: center; color: var(--dim); overflow: hidden; }
.file__img img { width: 100%; height: 100%; object-fit: cover; }
.file__img .ic { width: 32px; height: 32px; }
.file__name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__size { font-size: 12px; color: var(--dim); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-nav a { text-decoration: none; display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--r-md); }
.article-nav a:hover { background: var(--fill); }
.article-nav span { font-size: 12px; color: var(--dim); }
.article-nav strong { font: 300 1.15rem/1.25 var(--serif); }
.article-nav a:last-child { text-align: right; }

/* ── Podněty ───────────────────────────────────────────────────────── */
.toolbar { display: grid; gap: 16px; margin-bottom: 26px; }
.toolbar__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.toolbar .search { flex: 1 1 260px; max-width: 420px; }

.tlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.trow > a {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) 190px 110px; gap: 20px; align-items: center;
  padding: 16px 14px; margin: 0 -14px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color .2s var(--ease);
}
.trow > a:hover { background: var(--fill); }
.trow__title { min-width: 0; }
.trow__title strong { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow__title span { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; margin-top: 4px; overflow: hidden; white-space: nowrap; }
.trow__title .ic { width: 15px; height: 15px; }
.trow__who { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow__when { font-size: 13px; color: var(--dim); text-align: right; display: grid; justify-items: end; gap: 4px; }
.trow__when .cm { display: inline-flex; gap: 4px; align-items: center; }
.trow__when .ic { width: 14px; height: 14px; }

/* Nový podnět — dlaždice systémů */
.systems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 8px; }
.sys { position: relative; }
.sys input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.sys__card {
  height: 100%; display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--r-md);
  border: 1px solid var(--glass-line); background: var(--fill);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.sys__card .ic { width: 28px; height: 28px; color: var(--mute); transition: color .2s var(--ease); }
.sys__card strong { font: 400 1.12rem/1.2 var(--serif); }
.sys__card span { font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.sys:hover .sys__card { border-color: var(--line-2); background: var(--fill-2); }
.sys input:checked + .sys__card { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, transparent); box-shadow: 0 0 0 1px var(--brand) inset; }
.sys input:checked + .sys__card .ic { color: var(--brand-hi); }
.sys input:focus-visible + .sys__card { outline: 2px solid var(--brand); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.form-section { margin-bottom: 40px; }
.form-section > h2 { font-size: 1.35rem; margin-bottom: 4px; }
.form-section > .help { color: var(--mute); margin: 0 0 18px; font-size: 14px; }
.drop {
  display: grid; place-items: center; gap: 8px; text-align: center; padding: 26px; border-radius: var(--r-md);
  border: 1px dashed var(--line-2); background: var(--fill); color: var(--mute); font-size: 14px; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.drop:hover, .drop.is-over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); color: var(--text); }
.drop .ic { width: 26px; height: 26px; }
.drop kbd { font: 600 12px/1 var(--sans); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--fill-2); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { position: relative; width: 104px; height: 78px; border-radius: var(--r-sm); overflow: hidden; background: var(--elev-2); display: grid; place-items: center; font-size: 11px; color: var(--mute); padding: 6px; text-align: center; word-break: break-all; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 999px; border: 0; background: rgba(20, 16, 12, .72); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 1; }
.thumb button .ic { width: 14px; height: 14px; }
.context-box { padding: 16px 18px; border-radius: var(--r-md); background: var(--fill); border: 1px solid var(--glass-line); font-size: 13px; color: var(--mute); display: grid; gap: 6px; word-break: break-all; }
.context-box strong { color: var(--text); font-weight: 600; }

/* Detail podnětu */
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.ticket h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 14px 0 0; }
.thread { list-style: none; margin: 36px 0 0; padding: 0; position: relative; }
.thread::before { content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.ev { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-bottom: 28px; }
.ev .avatar { width: 36px; height: 36px; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--bg); }
.ev__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.ev__head strong { color: var(--text); font-weight: 600; font-size: 14px; }
.ev__body { padding: 16px 18px; border-radius: var(--r-md); background: var(--fill); border: 1px solid var(--glass-line); }
.ev__body .prose { font-size: 15px; line-height: 1.6; }
.ev__body .prose p:last-child { margin-bottom: 0; }
.ev--first .ev__body { background: var(--elev); }
.ev--sys { align-items: center; padding-bottom: 22px; }
.ev--sys .dotic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; background: var(--bg); position: relative; z-index: 1; color: var(--dim); }
.ev--sys .dotic .ic { width: 18px; height: 18px; }
.ev--sys p { margin: 0; font-size: 13.5px; color: var(--mute); }
.ev--sys p strong { color: var(--text); font-weight: 600; }
.reply { margin-top: 8px; }
.side { position: sticky; top: calc(var(--bar-h) + 24px); padding: 22px; display: grid; gap: 18px; }
.side dl { margin: 0; display: grid; gap: 14px; }
.side dt { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.side dd { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; word-break: break-word; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.side form { display: grid; gap: 10px; }
.watchers { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.stack { display: flex; }
.stack .avatar { width: 26px; height: 26px; font-size: 10px; box-shadow: 0 0 0 2px var(--glass-strong); margin-left: -6px; }
.stack .avatar:first-child { margin-left: 0; }

/* Správa */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--fill); }
.table .select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; background-position: calc(100% - 20px) 16px, calc(100% - 15px) 16px; }
.owners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.owner { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--glass-line); background: var(--fill); display: grid; gap: 10px; }
.owner h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }

/* Editor novinky */
.editor { border: 1px solid var(--glass-line); border-radius: 12px; background: var(--fill); }
.editor:focus-within { border-color: color-mix(in srgb, var(--text) 42%, transparent); }
.editor__tools { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.editor__tools button { height: 32px; min-width: 32px; padding: 0 8px; border-radius: var(--r-xs); border: 0; background: none; color: var(--mute); cursor: pointer; font-weight: 600; font-size: 13px; }
.editor__tools button:hover { background: var(--fill-2); color: var(--text); }
.editor__area { min-height: 260px; padding: 16px 18px; outline: none; }
.editor__area:empty::before { content: attr(data-placeholder); color: var(--dim); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--mute); }

/* ── Pohyb: jen stav, krátce ───────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .5s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .me__menu { animation: pop .18s var(--ease) both; transform-origin: top right; }
  @keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
}

/* ── Responzivita ──────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .news-layout, .ticket, .form-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .side { position: static; }
  .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trow > a { grid-template-columns: 116px minmax(0, 1fr) 100px; }
  .trow__who { display: none; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; --bar-h: 60px; }
  main { padding: 28px 0 96px; }
  h1 { font-size: 2.2rem; }
  .bar__in { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand__is { display: none; }
  .tabs { justify-self: center; }
  .tabs a { padding: 8px 12px; font-size: 13px; }
  .tabs a .ic { display: none; }
  .me__name { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; align-items: start; }
  .auth__brand .logo { margin-bottom: 32px; }
  .auth__brand p { display: none; }
  .auth__card { padding: 24px; }
  .systems { grid-template-columns: minmax(0, 1fr); }
  .sys__card { grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .sys__card span { grid-column: 2; }
  .trow > a { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .trow > a .status { grid-row: 1; grid-column: 2; }
  .trow__title { grid-row: 1; grid-column: 1; }
  .trow__when { grid-column: 1 / -1; grid-row: 2; text-align: left; justify-items: start; grid-auto-flow: column; justify-content: start; gap: 12px; }
  .owners { grid-template-columns: minmax(0, 1fr); }
  .article-nav { grid-template-columns: minmax(0, 1fr); }
  .article-nav a:last-child { text-align: left; }
  .table .hide-sm { display: none; }
}
@media print {
  .bar, .side, .foot, .back { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
}
.back { display: flex; width: max-content; }
.trow .status { justify-self: start; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
@media (max-width: 1080px) {
}
@media (max-width: 760px) {
  .pagehead .search { width: 100%; }
}

/* ── Novinky: přehledný seznam (distill 2. 10. 2026) ─────────────────
   Bez kurzívy, bez velkých čísel a bez „titulku" první novinky. Řádek = datum · název + jeden
   řádek textu · štítek jen u kategorií, které se mají vidět (Ukončení, Nové produkty/provedení). */
.wrap--feed { max-width: 1160px; }
.pagehead__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pagehead__actions .search { width: 300px; }
.filters { margin: -8px 0 8px; }
.chip--quiet { background: transparent; border-color: transparent; }
.ngroup { margin-top: 28px; }
.ngroup__head { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding: 0 0 10px; border-bottom: 1px solid var(--line-2); }
.nlist { list-style: none; margin: 0; padding: 0; }
.nrow > a {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline;
  padding: 14px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: var(--r-xs);
  text-decoration: none; transition: background-color .15s var(--ease);
}
.nrow > a:hover { background: var(--fill); }
.nrow__date { font-size: 13px; color: var(--mute); white-space: nowrap; }
.nrow__main { min-width: 0; display: grid; gap: 3px; }
.nrow__title { font: 600 15.5px/1.35 var(--sans); color: var(--text); display: flex; align-items: baseline; gap: 8px; }
.nrow__title .dot { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--brand); transform: translateY(-1px); }
.nrow:not(.is-unread) .nrow__title { font-weight: 500; }
.nrow__text { font-size: 14px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nrow__meta { display: flex; align-items: center; gap: 10px; justify-content: flex-end; white-space: nowrap; color: var(--mute); font-size: 13px; }
.nrow__clip .ic { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--sans); white-space: nowrap; }
/* Barvy kategorií novinek — štítek v seznamu, tečka ve filtru, štítek v detailu. */
.badge--info, .cdot--info { --c: #cdbf9f; }
.badge--produkty, .cdot--produkty { --c: #8cc174; }
.badge--provedeni, .cdot--provedeni { --c: #dcbb6e; }
.badge--zmena, .cdot--zmena { --c: #ee9c5f; }
.badge--ukonceni, .cdot--ukonceni { --c: #f27a7d; }
.badge--napoveda, .cdot--napoveda { --c: #93b5db; }
:root[data-theme="light"] :is(.badge--info, .cdot--info) { --c: #6b5d45; }
:root[data-theme="light"] :is(.badge--produkty, .cdot--produkty) { --c: #3a6a24; }
:root[data-theme="light"] :is(.badge--provedeni, .cdot--provedeni) { --c: #7a5c14; }
:root[data-theme="light"] :is(.badge--zmena, .cdot--zmena) { --c: #9a4a10; }
:root[data-theme="light"] :is(.badge--ukonceni, .cdot--ukonceni) { --c: #a81e24; }
:root[data-theme="light"] :is(.badge--napoveda, .cdot--napoveda) { --c: #2c5888; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) :is(.badge--info, .cdot--info) { --c: #6b5d45; }
  :root:not([data-theme="dark"]):not([data-theme="light"]) :is(.badge--produkty, .cdot--produkty) { --c: #3a6a24; }
  :root:not([data-theme="dark"]):not([data-theme="light"]) :is(.badge--provedeni, .cdot--provedeni) { --c: #7a5c14; }
  :root:not([data-theme="dark"]):not([data-theme="light"]) :is(.badge--zmena, .cdot--zmena) { --c: #9a4a10; }
  :root:not([data-theme="dark"]):not([data-theme="light"]) :is(.badge--ukonceni, .cdot--ukonceni) { --c: #a81e24; }
  :root:not([data-theme="dark"]):not([data-theme="light"]) :is(.badge--napoveda, .cdot--napoveda) { --c: #2c5888; }
}
.badge[class*="badge--"] { color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; margin-right: 7px; }
.cdot { width: 8px; height: 8px; border-radius: 999px; background: var(--c); flex: none; }
.chip[aria-current="true"] .cdot { box-shadow: 0 0 0 2px var(--text); }
.nrow > a { grid-template-columns: 56px 136px minmax(0, 1fr) auto; }
.nrow__cat { align-self: baseline; }
.nrow__cat .badge { transform: translateY(-1px); }
@media (max-width: 760px) {
  .pagehead__actions, .pagehead__actions .search { width: 100%; }
  .pagehead__actions .btn { width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1) 4px; padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { height: 44px; padding: 0 16px; }
  .nrow > a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 4px; margin: 0 -4px; }
  .nrow > a { grid-template-columns: minmax(0, 1fr) auto; }
  .nrow__cat { grid-column: 1; grid-row: 1; }
  .nrow__date { grid-column: 2; grid-row: 1; text-align: right; }
  .nrow__main { grid-column: 1 / -1; grid-row: 2; }
  .nrow__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .nrow__meta { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
  .nrow__meta:empty { display: none; }
}
.file-remove { list-style: none; margin: 0 0 10px; padding: 0; }
@media (max-width: 760px) {
  .brand .logo { height: 17px; }
  .bar__end { gap: 2px; }
  .iconbtn { width: 36px; height: 36px; }
  .me > summary { padding: 0; border: 0; }
  .tabs { padding: 3px; }
  .tabs a { padding: 7px 11px; }
}
@media (max-width: 370px) { .theme-form { display: none; } }
.tlist--own .trow > a { grid-template-columns: 128px minmax(0, 1fr) 140px; }
@media (max-width: 760px) { .tlist--own .trow > a { grid-template-columns: minmax(0, 1fr) auto; } }

/* „Zobrazit jako" (jen správce) */
.me__sep { height: 1px; background: var(--line); margin: 6px 0; }
.me__label { padding: 6px 12px 2px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.me__menu button[aria-checked="true"] { font-weight: 600; }
.me__menu button[aria-checked="true"] .ic { color: var(--brand-hi); }
.viewas { background: color-mix(in srgb, var(--warn) 16%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.viewas__in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; flex-wrap: wrap; }
.viewas__in > span { flex: 1; min-width: 200px; }
.viewas__in .ic { color: var(--warn); }

/* ── Detail novinky (široký, 2. 10. 2026) ─────────────────────────── */
.wrap--article { max-width: 1160px; }
.ahead { max-width: 900px; margin: 4px 0 32px; }
.ahead__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--mute); margin-bottom: 18px; }
.ahead h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.028em; max-width: 22ch; }
.ahero { margin: 0 0 44px; border-radius: var(--r-lg); overflow: hidden; background: var(--elev-2); aspect-ratio: 16 / 7; box-shadow: var(--shadow); }
.ahero img { width: 100%; height: 100%; object-fit: cover; }
.abody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.prose--article { font-size: 17.5px; line-height: 1.75; max-width: 70ch; }
.prose--article > :first-child { margin-top: 0; }
.prose--article blockquote { font: 400 1.5rem/1.35 var(--serif); letter-spacing: -0.01em; color: var(--text); margin: 0 0 1em; }
.prose--article h2, .prose--article h3 { font-family: var(--sans); font-weight: 650; font-size: 1.15rem; letter-spacing: 0; margin: 1.8em 0 .5em; }
.prose--article ul, .prose--article ol { padding-left: 1.2em; }
.prose--article li::marker { color: var(--brand); }
.prose--article a { text-decoration-color: color-mix(in srgb, var(--brand) 70%, transparent); text-underline-offset: 4px; }
.ainfo { position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 22px; padding: 22px; border-radius: var(--r-lg); background: var(--fill); border: 1px solid var(--glass-line); }
.ainfo__dl { margin: 0; display: grid; gap: 14px; }
.ainfo__dl dt { font-size: 12px; color: var(--mute); margin-bottom: 2px; }
.ainfo__dl dd { margin: 0; font-size: 14.5px; font-weight: 500; }
.ainfo__h { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.ainfo__block { border-top: 1px solid var(--line); padding-top: 18px; }
.doclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.doclist a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 10px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: var(--r-sm); text-decoration: none; transition: background-color .15s var(--ease); }
.doclist a:hover { background: var(--fill-2); }
.doclist__ic { width: 34px; height: 34px; border-radius: var(--r-xs); display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand-hi); }
.doclist__ic .ic { width: 18px; height: 18px; }
.doclist__name { min-width: 0; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doclist__name small { display: block; font-size: 12px; font-weight: 400; color: var(--mute); }
.doclist__dl { color: var(--mute); }
.agallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.agallery__item { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--elev-2); aspect-ratio: 4 / 3; }
.agallery__item.is-single { grid-column: 1 / -1; aspect-ratio: auto; }
.agallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.agallery__item.is-single img { height: auto; object-fit: contain; }
.agallery__item:hover img { transform: scale(1.02); }
.amore { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.amore__h { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.amore__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.amore__card { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--glass-line); background: var(--fill); text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.amore__card:hover { border-color: var(--line-2); background: var(--fill-2); }
.amore__img { aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--elev-2); }
.amore__img img { width: 100%; height: 100%; object-fit: cover; }
.amore__meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--mute); flex-wrap: wrap; }
.amore__card strong { font-weight: 600; font-size: 15px; line-height: 1.35; }

/* ── Formulář novinky ─────────────────────────────────────────────── */
.nform { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.nform__side { position: sticky; top: calc(var(--bar-h) + 24px); display: grid; gap: 16px; }
.nform__panel { padding: 20px; display: grid; gap: 14px; }
.nform__panel h2 { font: 600 15px/1.2 var(--sans); letter-spacing: 0; }
.nform__panel .help { margin: -8px 0 0; font-size: 13px; color: var(--mute); }
.nform__panel .field { margin: 0; }
.input--title { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -0.015em; min-height: 58px; }
.catpick { display: flex; flex-wrap: wrap; gap: 8px; }
.catpick label { position: relative; cursor: pointer; }
.catpick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.catpick .badge { height: 34px; padding: 0 14px; font-size: 13px; opacity: .62; transition: opacity .15s var(--ease), box-shadow .15s var(--ease); }
.catpick label:hover .badge { opacity: .9; }
.catpick input:checked + .badge { opacity: 1; box-shadow: inset 0 0 0 2px var(--c); }
.catpick input:focus-visible + .badge { outline: 2px solid var(--brand); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.herodrop { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r-md); border: 1px dashed var(--line-2); background: var(--fill); overflow: hidden; cursor: pointer; color: var(--mute); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.herodrop:hover, .herodrop.is-over { border-color: var(--brand); color: var(--text); }
.herodrop.has-img { border-style: solid; border-color: var(--glass-line); }
.herodrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.herodrop__empty { display: grid; justify-items: center; gap: 8px; font-size: 13px; text-align: center; padding: 12px; }
.herodrop__empty .ic { width: 28px; height: 28px; }
.heropick .label { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.heropick__row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.heropick label { position: relative; width: 64px; height: 44px; border-radius: var(--r-xs); overflow: hidden; cursor: pointer; }
.heropick input { position: absolute; opacity: 0; inset: 0; }
.heropick img { width: 100%; height: 100%; object-fit: cover; }
.heropick input:checked + img { outline: 2px solid var(--brand); outline-offset: -2px; }
.file-remove { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.file-remove li { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.file-remove label { display: flex; gap: 6px; align-items: center; color: var(--mute); font-size: 13px; }

@media (max-width: 1080px) {
  .abody, .nform { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ainfo, .nform__side { position: static; }
  .amore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ahero { aspect-ratio: 4 / 3; margin-bottom: 28px; border-radius: var(--r-md); }
  .prose--article { font-size: 16.5px; }
  .agallery, .amore__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Důležitost (novinky i podněty) ───────────────────────────────── */
.prio { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font: 700 11.5px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; flex: none; }
.prio .ic { width: 13px; height: 13px; }
.prio--1 { color: #1c1813; background: #e3b55c; }
.prio--2 { color: #fff; background: var(--brand); }
.nrow__title .prio, .trow__title .prio { margin-right: 2px; transform: translateY(-1px); }
.trow__title strong { display: flex; align-items: center; gap: 8px; }
.nrow--p2 > a { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.nrow--p2 > a:hover { background: color-mix(in srgb, var(--brand) 11%, transparent); }
.prio-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prio-pick label { position: relative; cursor: pointer; }
.prio-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.prio-pick__opt { display: grid; gap: 3px; height: 100%; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--glass-line); background: var(--fill); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.prio-pick__opt strong { font-size: 13.5px; font-weight: 600; }
.prio-pick__opt small { font-size: 12px; color: var(--mute); line-height: 1.35; }
.prio-pick label:hover .prio-pick__opt { border-color: var(--line-2); }
.prio-pick input:checked + .prio-pick__opt--0 { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.prio-pick input:checked + .prio-pick__opt--1 { border-color: #e3b55c; box-shadow: inset 0 0 0 1px #e3b55c; background: color-mix(in srgb, #e3b55c 12%, transparent); }
.prio-pick input:checked + .prio-pick__opt--2 { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.prio-pick input:focus-visible + .prio-pick__opt { outline: 2px solid var(--brand); outline-offset: 2px; }
.nform__panel .prio-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nform__panel .prio-pick__opt { padding: 8px 6px; text-align: center; }
@media (max-width: 560px) { .prio-pick { grid-template-columns: minmax(0, 1fr); } }

/* ── Úložiště (16. 10. 2026) ───────────────────────────────────────── */
.store-up { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 20px; align-items: start; }
.store-up .field { margin-bottom: 0; }
.store-up .btn { margin-top: 28px; }
.store__name { display: flex; gap: 12px; align-items: center; min-width: 0; }
.store__name > .ic { width: 26px; height: 26px; flex: none; color: var(--mute); }
.store__name strong { font-weight: 600; overflow-wrap: anywhere; }
.store__link { display: flex; gap: 4px; align-items: center; min-width: 220px; }
.store__link .input { height: 36px; font-size: 13px; min-width: 0; flex: 1; }
.store__act { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.store__replace label { cursor: pointer; white-space: nowrap; }
.iconbtn.is-done { color: var(--ok); }
@media (max-width: 760px) {
  .store-up { grid-template-columns: minmax(0, 1fr); }
  .store-up .btn { margin-top: 0; }
  .table.store, .table.store tbody, .table.store tr, .table.store td { display: block; }
  .table.store thead { display: none; }
  .table.store tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table.store td { border: 0; padding: 4px 0; }
  .store__link { min-width: 0; }
  .store__act { justify-content: flex-start; }
  .tabs a[href="/uloziste"] span { display: none; }
  .tabs a[href="/uloziste"] .ic { display: inline-block; }
  .store-up { gap: 18px; }
}
@media (max-width: 420px) {
  .tabs { gap: 2px; }
  .tabs a { padding: 7px 8px; }
  .bar__end { gap: 2px; }
}
/* Správce má o záložku víc — přepínač vzhledu ustoupí dřív (jako u všech pod 370 px). */
@media (max-width: 400px) { .bar:has(.tabs a[href="/uloziste"]) .theme-form { display: none; } }
@media (max-width: 345px) {
  .bar:has(.tabs a[href="/uloziste"]) .tabs a { padding: 6px 6px; font-size: 13px; }
  .bar:has(.tabs a[href="/uloziste"]) .brand .logo { height: 14px; }
}

/* ── Produkty / Prodej (převzato z Nápovědy, 22. 10. 2026) ───────── */
.kgroup { margin-bottom: 44px; scroll-margin-top: calc(var(--bar-h) + 20px); }
.kgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.kcard { display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: var(--r-md); border: 1px solid var(--glass-line); background: var(--fill); text-decoration: none; overflow: hidden; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.kcard:hover { border-color: var(--line-2); background: var(--fill-2); }
.kcard__img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; }
.kcard__img img { width: 100%; height: 100%; object-fit: contain; }
.kcard__body { display: grid; gap: 6px; align-content: start; padding: 14px 16px 16px; }
.kcard__body strong { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.kcard__text { font-size: 13.5px; line-height: 1.5; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kcard--text .kcard__body { padding: 18px; }
.knav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.knav a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: var(--r-sm); text-decoration: none; font-size: 14px; color: var(--mute); }
.knav a:hover { background: var(--fill-2); color: var(--text); }
.knav a[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--fill-2); }
/* Technické výkresy a fotky z Nápovědy mají bílé pozadí — na tmavé stránce je dáme na bílou kartu. */
.prose--kb img { background: #fff; margin: .6em 0; }
.prose--kb p:has(> img + img) { display: flex; flex-wrap: wrap; gap: 12px; }
.prose--kb p:has(> img + img) img { margin: 0; max-width: calc(50% - 6px); height: auto; }
.prose--kb em { font-style: normal; font-size: 14px; color: var(--mute); }
.prose--kb hr { margin: 1.6em 0; }
.prose--kb table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.prose--kb td, .prose--kb th { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose--kb td p { margin: 0; }
.prose--kb tr:first-child td { font-weight: 600; background: var(--fill-2); }
.prose ul.plusy, .prose ul.minusy { list-style: none; padding: 14px 18px; border-radius: var(--r-md); margin: 0 0 1em; }
.prose ul.plusy { background: color-mix(in srgb, var(--ok) 10%, transparent); box-shadow: inset 3px 0 0 var(--ok); }
.prose ul.minusy { background: color-mix(in srgb, var(--brand) 9%, transparent); box-shadow: inset 3px 0 0 var(--brand-hi); }
.prose ul.plusy li, .prose ul.minusy li { position: relative; padding-left: 22px; }
.prose ul.plusy li::before, .prose ul.minusy li::before { position: absolute; left: 0; font-weight: 800; }
.prose ul.plusy li::before { content: '+'; color: var(--ok); }
.prose ul.minusy li::before { content: '–'; color: var(--brand-hi); }
.store__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.store__head h2 { margin: 0; }
.store__head .search { width: 300px; max-width: 100%; }
.store__thumb { width: 40px; height: 40px; flex: none; object-fit: cover; border-radius: var(--r-xs); background: #fff; }
@media (max-width: 760px) { .prose--kb p:has(> img + img) img { max-width: 100%; } }
.ainfo > .ainfo__block:first-child { border-top: 0; padding-top: 0; }
