/* FEMstylesIntranet.css — kořenové CSS intranetu femsynology (varianta B „Klidný provoz“, rozhodnutí FH 04-11-2026).
   Obsah: 1) písma  2) tokeny (CSS proměnné) pro světlý a tmavý režim  3) sdílené komponenty  4) doplňky stránek.
   Režim: atribut data-theme na <html> nastaví scripts/fem-boot.js ještě před vykreslením; bez JS (např. veřejná
   přihlašovací stránka z internetu, kde /scripts/ není dostupné) platí systémové nastavení přes prefers-color-scheme.
   Mobile-first: základ platí pro úzký displej, širší rozložení přidávají @media (min-width: 640px / 1024px).
   Jméno FEMstyles*.css: nginx ho servíruje i z internetu (veřejná úvodní stránka) — bez změny konfigurace.
   Stará FEMstyles.css / SmallScreens / WideScreens / Dovca zůstávají (Jenkins reporty, dovca.php do K6). */

/* ==================== 1) Písma (lokálně, bez CDN) ==================== */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  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: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/space-grotesk-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/space-grotesk-latin.woff2) format('woff2');
  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;
}

/* ==================== 2) Tokeny ==================== */
:root {
  --radius: 14px; --radius-sm: 8px;
  --gap: clamp(0.75rem, 2vw, 1.5rem);
  --maxw: 1400px;
  --tap: 44px;                                   /* min. výška ovládacích prvků (dotyk) */
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: var(--font-body);
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.15s var(--ease);
  --brand: #cf130a;                              /* červený čtvereček loga FEM — stejný v obou variantách */
  --linux: #e95420;                              /* proužek bloku „Linux x64“ ve Vacátku (barva Ubuntu) */
}
:root { --radius: 10px; --radius-sm: 6px;
  --h1: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem); --h2: 1.1rem; --cell-py: 0.4rem; --cell-px: 0.6rem; --head-ls: 0; }

/* světlý režim = výchozí */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #edf0f4; --surface-3: #e1e6ec;
  --border: #d6dce4; --border-hi: #b3bdca;
  --text: #17202c; --text-dim: #44505f; --text-faint: #5b6778;
  --accent: #1d5bb8; --accent-hover: #164a99; --on-accent: #ffffff; --accent-soft: #e4edfa;
  --link: #1a55ad;
  --focus: #c0110a;
  --header-bg: #ffffff; --header-text: #17202c; --header-dim: #4f5b6b;
  --ok-bg: #e0f3e6; --ok-fg: #12592b; --warn-bg: #fdf0cf; --warn-fg: #6a4300;
  --fail-bg: #fbe3e1; --fail-fg: #9a150d;        /* B: chyba červeně — akcent je modrý, nesplývá */
  --info-bg: #e4edfa; --info-fg: #1a4a90; --neutral-bg: #e8ebf0; --neutral-fg: #3b4654;
  --st-o: #cdebd6; --st-w: #fbefc6; --st-u: #f1f2d0; --st-f: #f9d6d2; --st-m: #fbe3c8; --st-e: #f2bcb6; --st-t: #dfe3ea;
  --st-c: #9a150d; --st-c-fg: #ffffff;
  --shadow: 0 6px 20px -14px rgba(16, 32, 56, 0.35);
}
/* tmavý režim: ruční volba nebo systém (fem-boot.js) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f141b; --surface: #161d27; --surface-2: #1d2631; --surface-3: #26313e;
  --border: #2a3542; --border-hi: #3e4c5d;
  --text: #e7ecf2; --text-dim: #b3bfcc; --text-faint: #93a0b0;
  --accent: #6ea8ff; --accent-hover: #93bfff; --on-accent: #0b1320; --accent-soft: #1b2c47;
  --link: #8cb9ff;
  --focus: #ffb15c;
  --header-bg: #121922; --header-text: #e7ecf2; --header-dim: #a9b5c3;
  --ok-bg: #133222; --ok-fg: #8fdcaa; --warn-bg: #362b11; --warn-fg: #f5cf7a;
  --fail-bg: #3a1a1a; --fail-fg: #ffa39b;
  --info-bg: #1b2c47; --info-fg: #a9c9ff; --neutral-bg: #232c38; --neutral-fg: #b3bfcc;
  --st-o: #163828; --st-w: #3a3015; --st-u: #30331c; --st-f: #46201e; --st-m: #412e1b; --st-e: #572522; --st-t: #27303b;
  --st-c: #c2362c; --st-c-fg: #ffffff;
  --shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.75);
}
/* tmavý režim bez JS: podle systému (stejné hodnoty jako výše) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0f141b; --surface: #161d27; --surface-2: #1d2631; --surface-3: #26313e;
    --border: #2a3542; --border-hi: #3e4c5d;
    --text: #e7ecf2; --text-dim: #b3bfcc; --text-faint: #93a0b0;
    --accent: #6ea8ff; --accent-hover: #93bfff; --on-accent: #0b1320; --accent-soft: #1b2c47;
    --link: #8cb9ff;
    --focus: #ffb15c;
    --header-bg: #121922; --header-text: #e7ecf2; --header-dim: #a9b5c3;
    --ok-bg: #133222; --ok-fg: #8fdcaa; --warn-bg: #362b11; --warn-fg: #f5cf7a;
    --fail-bg: #3a1a1a; --fail-fg: #ffa39b;
    --info-bg: #1b2c47; --info-fg: #a9c9ff; --neutral-bg: #232c38; --neutral-fg: #b3bfcc;
    --st-o: #163828; --st-w: #3a3015; --st-u: #30331c; --st-f: #46201e; --st-m: #412e1b; --st-e: #572522; --st-t: #27303b;
    --st-c: #c2362c; --st-c-fg: #ffffff;
    --shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.75);
  }
}

/* ==================== 3) Sdílené komponenty ==================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: var(--head-ls); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: var(--h1); font-weight: 600; }
h2 { font-size: var(--h2); font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 0.75em; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-dim); }
.small { font-size: 0.875rem; }

/* ---------- Hlavička a navigace (rámec home.php) ---------- */
.app-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg); color: var(--header-text);
  border-bottom: 1px solid var(--border);
}
.app-header__bar {
  max-width: var(--maxw); margin: 0 auto; padding: 0.4rem var(--gap);
  display: flex; align-items: center; gap: 0.5rem; min-height: 60px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font: 600 1.05rem/1 var(--font-head); margin-right: auto; min-height: var(--tap); }
.brand__mark { width: 22px; height: 22px; border-radius: 5px; background: var(--brand); flex: none; }
.brand__sub { color: var(--header-dim); font-weight: 500; }
.user-chip { color: var(--header-dim); font-size: 0.875rem; display: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); flex: none;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: inherit; cursor: pointer; font-size: 1.1rem;
}
.icon-btn:hover { border-color: var(--border-hi); }
.icon-btn svg { width: 20px; height: 20px; }
.nav { display: none; flex-direction: column; padding: 0 var(--gap) 0.75rem; max-width: var(--maxw); margin: 0 auto; }
.nav[data-open="true"] { display: flex; }
.nav__link {
  display: flex; align-items: center; gap: 0.5rem; min-height: var(--tap); padding: 0 0.85rem;
  color: var(--header-text); text-decoration: none; border-radius: var(--radius-sm); font-weight: 500;
}
.nav__link:hover { background: color-mix(in srgb, var(--header-text) 10%, transparent); }
.nav__link[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.nav__link .ext { margin-left: auto; color: var(--header-dim); font-size: 0.8rem; }
.theme-toggle { display: inline-flex; align-items: center; gap: 0.35rem; width: auto; padding: 0 0.6rem; font-size: 0.85rem; }
.theme-toggle__label { color: var(--header-dim); }

@media (min-width: 1024px) {
  .user-chip { display: inline; }
  .nav-toggle { display: none; }
  .nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.25rem; padding-top: 0; }
  .nav__link .ext { margin-left: 0.25rem; }
}

/* ---------- Rozvržení rámce ---------- */
.layout { max-width: var(--maxw); margin: 0 auto; padding: var(--gap); display: grid; gap: var(--gap); }
.sidebar { min-width: 0; }
.main { min-width: 0; }
.frame { width: 100%; min-height: 75vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: block; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .layout--wide-side { grid-template-columns: 340px minmax(0, 1fr); }      /* úvodní/přihlašovací stránka (K8) */
  .sidebar { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
}
.app-footer { max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gap) 2rem; color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Karty, mřížka, sbalovací panel ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card--accent { border-top: 3px solid var(--accent); }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.stack > * + * { margin-top: var(--gap); }

details.fold { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
details.fold + details.fold { margin-top: 0.5rem; }
details.fold > summary {
  list-style: none; cursor: pointer; min-height: var(--tap); padding: 0 0.9rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 500;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); transition: transform var(--t-fast); }
details.fold[open] > summary::after { transform: rotate(225deg); }
details.fold > .fold__body { padding: 0 0.9rem 0.75rem; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 0.25rem; min-height: var(--tap); border-top: 1px solid var(--border); }
/* název se zalamuje (dřív useknutý „…“, K8); výška řádku ≥ 44 px i při jednom řádku */
.file-list a:first-child { flex: 1; min-width: 0; display: flex; align-items: center; min-height: var(--tap); padding: 0.35rem 0;
  line-height: 1.35; overflow-wrap: anywhere; }
.file-list .icon-btn { color: var(--text-dim); }

/* ---------- Tlačítka, formuláře ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: var(--tap); padding: 0 1.05rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-hi); background: var(--surface); color: var(--text);
  font: 500 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.btn:hover { border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--link); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--icon { padding: 0; width: var(--tap); }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

label { font-weight: 500; }
input[type="text"], input[type="search"], input[type="url"], input[type="password"], input[type="date"], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-hi); border-radius: var(--radius-sm);
  min-height: var(--tap); padding: 0.5rem 0.7rem; width: 100%; max-width: 100%;
}
textarea { min-height: 5rem; }
input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 0.45rem; min-height: var(--tap); font-weight: 400; }
.form-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 9rem minmax(0, 1fr); align-items: center; } }
.filter { display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .filter { grid-template-columns: auto minmax(10rem, 14rem) minmax(12rem, 1fr) auto auto; align-items: center; } }

/* ---------- Štítky a upozornění ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--neutral-bg); color: var(--neutral-fg); white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge--warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge--fail { background: var(--fail-bg); color: var(--fail-fg); }
.badge--info { background: var(--info-bg); color: var(--info-fg); }
.notice { border-left: 4px solid var(--warn-fg); background: var(--warn-bg); color: var(--text); padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
.notice--error { border-left-color: var(--fail-fg); background: var(--fail-bg); }

/* ---------- Tabulky ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.tbl th, .tbl td { padding: var(--cell-py) var(--cell-px); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.tbl th { background: var(--surface-2); font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .nowrap { white-space: nowrap; }

/* Tabulka → karty na mobilu (bez změny dat: buňky nesou data-label s názvem sloupce) */
@media (max-width: 639.98px) {
  .tbl--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl--cards, .tbl--cards tbody, .tbl--cards tr, .tbl--cards td { display: block; width: 100%; }
  .tbl--cards tr { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); }
  .tbl--cards td { border: 0; padding: 0.15rem 0; }
  .tbl--cards td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
  .tbl--cards td.card-title { font-size: 1.05rem; font-weight: 600; }
  .tbl--cards td.card-title::before { display: none; }
  .tbl--cards tbody tr:hover td { background: transparent; }
}

/* Stavová tabulka Vacátka: řádky = typ výsledku, sloupce = revize; 1. sloupec ukotvený */
.status-table { border-collapse: separate; border-spacing: 0; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.status-table th, .status-table td { padding: 0.3rem 0.55rem; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.status-table th:first-child, .status-table td:first-child { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 600; background: var(--surface-2); border-right: 1px solid var(--border-hi); }
.status-table thead th { background: var(--surface-2); color: var(--text-dim); font-weight: 600; }
.status-table tr.o td { background: var(--st-o); } .status-table tr.w td { background: var(--st-w); }
.status-table tr.u td { background: var(--st-u); } .status-table tr.f td { background: var(--st-f); }
.status-table tr.m td { background: var(--st-m); } .status-table tr.e td { background: var(--st-e); }
.status-table tr.t td { background: var(--st-t); }
.status-table tr.c td { background: var(--st-c); color: var(--st-c-fg); }
.status-table tr.o td:first-child, .status-table tr.w td:first-child, .status-table tr.u td:first-child, .status-table tr.f td:first-child,
.status-table tr.m td:first-child, .status-table tr.e td:first-child, .status-table tr.t td:first-child { box-shadow: inset 4px 0 0 var(--border-hi); }
.status-table tr.all td { font-weight: 700; border-top: 2px solid var(--border-hi); }
.status-table--linux { border-left: 4px solid var(--linux); }

/* ---------- Kopírování do schránky ---------- */
.copy-btn[data-state="ok"] { border-color: var(--ok-fg); color: var(--ok-fg); }
.copy-btn[data-state="manual"] { border-color: var(--warn-fg); color: var(--warn-fg); }
.copy-fallback { width: 100%; font: 0.85rem var(--font-mono); margin-top: 0.35rem; }

/* ---------- Přihlášení ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--gap); }
.login__card { width: min(100%, 420px); }
.login__card .btn { width: 100%; }

/* ---------- Pomocné pro stránky v iframe ---------- */
.page { padding: var(--gap); max-width: var(--maxw); margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: var(--gap); }
.page-head h1 { margin: 0 auto 0 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.kpi { display: flex; flex-direction: column; gap: 0.1rem; }
.kpi__value { font: 600 1.6rem/1.1 var(--font-head); }
.kpi__label { color: var(--text-dim); font-size: 0.85rem; }
.mt { margin-top: 1rem; }
.login__card .toolbar .brand { margin-right: auto; }
.login__card .theme-toggle { width: auto; color: var(--text-dim); }
.fold__body .file-list li:first-child { border-top: 0; }
.btn--ghost { padding: 0 0.6rem; }
@media (min-width: 640px) { .tbl .toolbar { flex-wrap: nowrap; gap: 0.25rem; } }

/* ==================== 4) Doplňky stránek ==================== */
/* Stránky si třídu nastaví na <body> (vacatko, jenkins, doc-view, video, artefakty); PHP generuje stejné třídy jako dřív. */

/* --- 4a) staré třídy, které dál generuje PHP/JS --- */
.zahlavi { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: var(--gap); }
.zahlavi h1 { margin: 0 auto 0 0; }
button.black, a.black { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border-hi); background: var(--surface); color: var(--text);
  font: 500 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
button.black:hover, a.black:hover { border-color: var(--accent); }
p.info, p.normal, .normal { font-size: 0.95rem; }
.small, a.small { font-size: 0.85rem; }
.nounderline { text-decoration: none; }
code.date { color: var(--text-faint); font-size: 0.8em; }
.error-text { color: var(--fail-fg); }

/* --- 4b) Vacátko (vacatko/index.php, statusTable.php, statusTableU.php; řádky z render.php) --- */
.vacatko h1 { font-size: var(--h1); }
.vacatko h3.nadpis_3 { font-size: 1rem; margin: 0 0 0.5rem; }
.vacatko h4.nadpis_4 { font-size: 0.85rem; color: var(--text-dim); margin: 0.9rem 0 0.4rem; }
.vacatko h4.nadpis_linux { border-top: 3px solid var(--linux); padding-top: 0.35rem; }
.vacatko h3.nadpis_hist, .vacatko h3.nadpis_hist a { color: var(--text-dim); }
.vacatko span.lastupd { color: var(--text-faint); font-size: 0.8rem; font-weight: 400; }
/* karty větví (div.row z render.php) v mřížce; nadpisy a ostatní obsah sekce přes celou šířku */
.vacatko div.center { margin-bottom: var(--gap); display: grid; gap: var(--gap); align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr)); }
.vacatko div.center > :not(.row) { grid-column: 1 / -1; }
.vacatko div.row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 0.9rem;
  margin: 0; overflow-x: auto; min-width: 0; }
.vacatko details.history div.row { margin-top: var(--gap); }
.vacatko table.status { border-collapse: separate; border-spacing: 0; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.vacatko table.status td { padding: 0.25rem 0.45rem; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; color: var(--text); }
.vacatko table.status td.status { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--surface-2); border-right: 1px solid var(--border-hi); }
.vacatko table.status td.revision { color: var(--text-dim); font-size: 0.75rem; background: var(--surface-2); }
.vacatko table.status tr.o td { background: var(--st-o); } .vacatko table.status tr.w td { background: var(--st-w); }
.vacatko table.status tr.u td { background: var(--st-u); } .vacatko table.status tr.f td { background: var(--st-f); }
.vacatko table.status tr.m td { background: var(--st-m); } .vacatko table.status tr.e td { background: var(--st-e); }
.vacatko table.status tr.t td { background: var(--st-t); }
.vacatko table.status tr.c td { background: var(--st-c); color: var(--st-c-fg); }
.vacatko table.status tr:last-child td { border-bottom: 0; }
/* K10: revize na 2 řádky (číslo / odkaz autor (#build)) → užší sloupce. Obsah buňky je HTML z XML ("&nbsp6.1.10.x <a>…</a>&nbsp"),
   proto zlom přes ::before (display:block u <a> by z koncového &nbsp udělal 3. řádek) */
.vacatko table.status td.revision { text-align: center; line-height: 1.35; }
.vacatko table.status td.revision a::before { content: "\A"; white-space: pre; }
/* K10: svislé čáry mezi sloupci výsledků (první sloupec odděluje border-right buňky td.status). Barva = text buňky s průhledností
   → viditelná na každé barvě řádku v obou režimech (CRASH má světlý text); fallback pro prohlížeče bez color-mix() */
.vacatko table.status td + td + td { border-left: 1px solid var(--border-hi);
  border-left-color: color-mix(in srgb, currentColor 30%, transparent); }
/* K10: řádek ALL = poslední řádek bez třídy (přísná tabulka končí CRASH = tr.c → zůstane netučný); bez barvy, s čarami */
.vacatko table.status tr:not([class]):last-child td { font-weight: 700; border-top: 2px solid var(--border-hi); border-bottom: 2px solid var(--border-hi);
  border-top-color: color-mix(in srgb, currentColor 55%, transparent); border-bottom-color: color-mix(in srgb, currentColor 55%, transparent); }
/* bez dvojčáry: řádek nad ALL nemá vlastní spodní čáru (prohlížeč bez :has() jen ponechá 1 px navíc) */
.vacatko table.status tr:has(+ tr:not([class]):last-child) td { border-bottom: 0; }
.vacatko table.status.linux { border-left: 4px solid var(--linux); }
.vacatko details.history { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0 0.9rem; }
.vacatko details.history > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 600; color: var(--text-dim); }
.vacatko details.history[open] { padding-bottom: 0.9rem; }
.vacatko details.history div.row { background: var(--bg); }
/* archiv souborů: tabulka sloupců se seznamy odkazů */
.vacatko .archive { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.vacatko .archive > table { border-collapse: collapse; }
.vacatko .archive td { vertical-align: top; padding: 0.5rem 0.75rem; border-right: 1px solid var(--border); min-width: 14rem; }
.vacatko .archive tr:first-child td { font-weight: 600; background: var(--surface-2); }
.vacatko div.scrollable { max-height: 28rem; overflow: auto; }
.vacatko div.scrollable a.small { display: inline-block; padding: 0.2rem 0; }
.vacatko .status-controls { margin-bottom: 0.75rem; }
/* tlačítko „Vše“ (statusTable.php) přidá třídu branches-full přímo na <body class="vacatko"> → karty větví přes celou šířku */
.vacatko.branches-full div.center > .branch-row { grid-column: 1 / -1; }

/* --- 4c) Jenkins (jenkins.php + scripts/jenkins-dashboard.js) --- */
.jenkins #jobGrid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); margin-top: var(--gap); }
.jenkins .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; box-shadow: var(--shadow); min-width: 0; }
.jenkins .panel > h2 { font-size: 1.05rem; }
.jenkins button.accordion { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; width: 100%; min-height: var(--tap);
  padding: 0.4rem 0.75rem; margin-top: 0.4rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font: 500 0.95rem/1.3 var(--font-body); text-align: left; cursor: pointer; }
.jenkins button.accordion:hover, .jenkins button.accordion.active { border-color: var(--accent); }
.jenkins .acc-icon { font-size: 1.3em; }
.jenkins .accpanel { display: none; padding: 0.5rem 0.25rem 0.25rem; }
.jenkins .section h3 { font-size: 0.95rem; margin: 0.75rem 0 0.25rem; }
.jenkins .field p.info { margin: 0.15rem 0; font-size: 0.9rem; }
.jenkins .toggleMore { display: flex; align-items: center; justify-content: center; min-height: var(--tap); color: var(--link); cursor: pointer; }
.jenkins .legend { color: var(--text-dim); font-size: 0.9rem; }

/* --- 4d) Prohlížeč dokumentů demo.php (Markdown/TXT) a video.php --- */
.doc-view { padding: var(--gap); max-width: 1000px; margin: 0 auto; overflow-wrap: break-word; }
.doc-view pre { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem; overflow-x: auto; }
.doc-view code { background: var(--surface-2); border-radius: 4px; padding: 0.05em 0.3em; }
.doc-view pre code { background: none; padding: 0; }
.doc-view table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.doc-view th, .doc-view td { border: 1px solid var(--border); padding: var(--cell-py) var(--cell-px); text-align: left; }
.doc-view th { background: var(--surface-2); }
.doc-view img { max-width: 100%; height: auto; }
.doc-view blockquote { margin: 0 0 1em; padding: 0.25rem 1rem; border-left: 4px solid var(--border-hi); color: var(--text-dim); }
.doc-view .katex-display { overflow-x: auto; overflow-y: hidden; }
.video video { display: block; width: 100%; max-width: 960px; height: auto; border-radius: var(--radius); background: #000; }
.video h1 { font-size: 1.1rem; overflow-wrap: anywhere; }

/* --- 4e) Artefakty (artefakty.php) --- */
.artefakty .msg { padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--text); }
.artefakty .msg.ok { background: var(--ok-bg); }
.artefakty .msg.err { background: var(--fail-bg); }
.artefakty .chyba { display: block; color: var(--fail-fg); font-size: 0.85rem; margin-top: 0.2rem; }
.artefakty .token { font-family: var(--font-mono); font-size: 0.9rem; background: var(--surface); border: 1px dashed var(--warn-fg);
  border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; word-break: break-all; margin: 0.5rem 0; }
.artefakty td.pozn { white-space: pre-line; color: var(--text-dim); }
.artefakty .tbl td form { display: inline; margin: 0; }
.artefakty .tbl th a { color: inherit; text-decoration: none; }
@media (min-width: 640px) { .artefakty td.pozn { max-width: 28rem; } }
.toolbar .grow { flex: 1 1 16rem; width: auto; }

/* --- 4f) Reporty slučování generované Jenkinsem (svn_mergeinfo_report.html, core_branches_report.html;
       generátory ^/_femenv/scripts/Web/Get_SVN_logs.ps1, Get_Core_Branches_Logs.ps1; <body class="report">) --- */
.report { padding: var(--gap); max-width: var(--maxw); margin: 0 auto; }
.report > h2 { font-size: 1rem; margin: 0.75rem 0 0.25rem; }
.report p.info { color: var(--text-dim); margin: 0.2rem 0; }
.report #jobGrid { display: grid; gap: var(--gap); margin: var(--gap) 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr)); }
.report .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 0.9rem; box-shadow: var(--shadow); min-width: 0; }
.report .panel > h2 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.report .panel > p { font-size: 0.85rem; color: var(--text-dim); }
.report .table-container { max-height: 18rem; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.report .table-container table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.report th, .report td { padding: 0.3rem 0.45rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.report th { background: var(--surface-2); color: var(--text-dim); font-weight: 600; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.report td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.report td.date { color: var(--text-faint); font-size: 0.75rem; white-space: nowrap; }
.report td.st { text-align: center; }
.report td details > summary { cursor: pointer; }
.report td details > summary::marker { color: var(--link); }
.report td details[open] > summary { color: var(--text-dim); }
.report td details > p { margin: 0.3rem 0 0; white-space: normal; overflow-wrap: anywhere; }

/* --- 4g) Veřejný pohled index.php z internetu (K8): karty veřejné dokumentace místo iframe --- */
.doc-cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.doc-card h2 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.doc-card h2 a { color: inherit; text-decoration: none; }
.doc-card h2 a:hover { text-decoration: underline; }
.doc-card .small { overflow-wrap: anywhere; }
.doc-card .toolbar { margin-top: 0.75rem; }
@media (max-width: 1023.98px) { .layout--public > .main { order: -1; } }   /* zvenku na mobilu dokumentace nahoře */
