/* ============================================================================
   MailServer Pro — kompletní stylesheet administrace.
   Bez externích zdrojů (žádné CDN, fonty ani obrázky) — ikony jsou inline SVG,
   grafy generuje server jako inline SVG a tento soubor je jen obarvuje.

   Obsah:
     1. Návrhové tokeny (světlý + tmavý motiv)
     2. Reset a typografie
     3. Utility
     4. Kostra aplikace: sidebar, topbar, hledání, patička, demo pruh
     5. Hlavička stránky
     6. Karty a mřížky
     7. Dlaždice statistik
     8. Vizualizace: grafy, sparkline, gauge, ukazatele, žebříčky, timeline
     9. Tabulky
    10. Formuláře
    11. Tlačítka
    12. Odznaky a štítky
    13. Alerty
    14. Záložky
    15. DNS průvodce, detailní výpisy, API klíč, inline potvrzení
    16. Prázdné stavy a skeletony
    17. Přihlašovací stránka
    18. Systémové prvky Blazoru
    19. Responzivita a přístupnost
   ========================================================================= */

/* ---------------------------------------------------------------------------
   1. Návrhové tokeny
   ------------------------------------------------------------------------ */

:root {
    color-scheme: light;

    /* Plátno a povrchy */
    --bg: #f6f8fb;
    --bg-accent: #eef2f9;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eef2f7;
    --sidebar-bg: #ffffff;
    --overlay: rgba(15, 23, 42, 0.45);

    /* Linky a oddělovače */
    --border: #e6eaf1;
    --border-strong: #d3dae6;
    --track: #e8edf5;

    /* Text */
    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;

    /* Akcent */
    --accent: #2563eb;
    --accent-2: #4f46e5;
    --accent-strong: #1d4ed8;
    --accent-soft: #eaf1ff;
    --accent-contrast: #ffffff;

    /* Stavy */
    --ok: #16a34a;
    --ok-bg: #e7f8ee;
    --ok-border: #b7ecc9;
    --err: #dc2626;
    --err-bg: #fdeaea;
    --err-border: #f6bfbf;
    --warn: #b45309;
    --warn-bg: #fdf3e3;
    --warn-border: #f2d9a8;
    --info: #0891b2;
    --info-bg: #e4f6fa;
    --info-border: #b3e4ef;

    /* Barvy datových řad grafů */
    --chart-1: #2563eb;
    --chart-2: #7c3aed;
    --chart-3: #dc2626;
    --chart-4: #f59e0b;
    --chart-5: #0d9488;
    --chart-6: #db2777;

    /* Tvarosloví */
    --radius: 12px;
    --radius-sm: 10px;
    --radius-xs: 7px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 16px -8px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 12px 34px -12px rgba(15, 23, 42, 0.28), 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-pop: 0 18px 46px -16px rgba(15, 23, 42, 0.35);

    /* Skeletony */
    --skeleton-a: #e9eef5;
    --skeleton-b: #f4f7fb;

    /* Rozměry kostry */
    --sidebar-w: 248px;
    --sidebar-w-collapsed: 76px;
    --topbar-h: 64px;
    --content-max: 1560px;

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: "Cascadia Mono", Consolas, "SFMono-Regular", "Liberation Mono", "Courier New", monospace;
}

/* Tmavý motiv — výchozí podle systému (pokud uživatel nezvolil světlý) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --bg: #0a1120;
        --bg-accent: #0d1626;
        --surface: #111a2c;
        --surface-2: #162034;
        --surface-3: #1b2740;
        --sidebar-bg: #0e1729;
        --overlay: rgba(2, 6, 16, 0.65);

        --border: #1f2b41;
        --border-strong: #2c3a55;
        --track: #1d2941;

        --text: #e8eefb;
        --text-muted: #98a8c2;
        --text-soft: #6f8099;

        --accent: #5d8bff;
        --accent-2: #8b7bff;
        --accent-strong: #7ea5ff;
        --accent-soft: #17253f;
        --accent-contrast: #06122a;

        --ok: #4ade80;
        --ok-bg: #10291d;
        --ok-border: #1e4b33;
        --err: #f87171;
        --err-bg: #2a1518;
        --err-border: #5a2529;
        --warn: #fbbf24;
        --warn-bg: #2a2010;
        --warn-border: #55401a;
        --info: #38bdf8;
        --info-bg: #102634;
        --info-border: #1d4257;

        --chart-1: #5d8bff;
        --chart-2: #a78bfa;
        --chart-3: #f87171;
        --chart-4: #fbbf24;
        --chart-5: #2dd4bf;
        --chart-6: #f472b6;

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
        --shadow-lg: 0 16px 40px -14px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.45);
        --shadow-pop: 0 20px 50px -18px rgba(0, 0, 0, 0.8);

        --skeleton-a: #182338;
        --skeleton-b: #1f2c45;
    }
}

/* Tmavý motiv — výslovná volba uživatele (přebíjí systém) */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0a1120;
    --bg-accent: #0d1626;
    --surface: #111a2c;
    --surface-2: #162034;
    --surface-3: #1b2740;
    --sidebar-bg: #0e1729;
    --overlay: rgba(2, 6, 16, 0.65);

    --border: #1f2b41;
    --border-strong: #2c3a55;
    --track: #1d2941;

    --text: #e8eefb;
    --text-muted: #98a8c2;
    --text-soft: #6f8099;

    --accent: #5d8bff;
    --accent-2: #8b7bff;
    --accent-strong: #7ea5ff;
    --accent-soft: #17253f;
    --accent-contrast: #06122a;

    --ok: #4ade80;
    --ok-bg: #10291d;
    --ok-border: #1e4b33;
    --err: #f87171;
    --err-bg: #2a1518;
    --err-border: #5a2529;
    --warn: #fbbf24;
    --warn-bg: #2a2010;
    --warn-border: #55401a;
    --info: #38bdf8;
    --info-bg: #102634;
    --info-border: #1d4257;

    --chart-1: #5d8bff;
    --chart-2: #a78bfa;
    --chart-3: #f87171;
    --chart-4: #fbbf24;
    --chart-5: #2dd4bf;
    --chart-6: #f472b6;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 40px -14px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.45);
    --shadow-pop: 0 20px 50px -18px rgba(0, 0, 0, 0.8);

    --skeleton-a: #182338;
    --skeleton-b: #1f2c45;
}

/* ---------------------------------------------------------------------------
   2. Reset a typografie
   ------------------------------------------------------------------------ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 650;
    letter-spacing: -0.011em;
    color: var(--text);
}

h1 {
    font-size: 1.5rem;
    line-height: 1.25;
}

h1:focus,
h1:focus-visible {
    outline: none;
}

h2 {
    font-size: 1.02rem;
}

h3 {
    font-size: 0.95rem;
}

h3.section-sub {
    margin: 1.35rem 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-soft);
}

p {
    margin: 0 0 0.75rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.1rem 0;
}

code, kbd, samp, pre {
    font-family: var(--font-mono);
}

code {
    font-size: 0.85em;
    background: var(--surface-3);
    border-radius: 5px;
    padding: 0.1em 0.36em;
}

pre {
    margin: 0;
    overflow-x: auto;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
}

kbd {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 0.22rem 0.4rem;
    white-space: nowrap;
}

svg {
    display: block;
}

::selection {
    background: var(--accent);
    color: var(--accent-contrast);
}

/* Jednotný stav klávesového fokusu */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------------------
   3. Utility
   ------------------------------------------------------------------------ */

.muted {
    color: var(--text-muted);
}

.soft {
    color: var(--text-soft);
}

.hint,
.form-hint,
.field-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hint {
    margin: 0.35rem 0 0;
}

.form-hint {
    margin: 0.6rem 0 0;
}

.field-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.nowrap {
    white-space: nowrap;
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.actions-end {
    justify-content: flex-end;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.spacer {
    flex: 1 1 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------------------
   4. Kostra aplikace
   ------------------------------------------------------------------------ */

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
    background: var(--bg);
}

html[data-sidebar="collapsed"] .app-shell {
    --sidebar-w: var(--sidebar-w-collapsed);
}

.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -3rem;
    z-index: 100;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-xs);
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 0.5rem;
    text-decoration: none;
}

/* ---------- Sidebar ---------- */

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    z-index: 20;
}

.sidebar-head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1.05rem 1rem 0.9rem;
    min-height: var(--topbar-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.75);
}

.brand-mark svg {
    width: 21px;
    height: 21px;
}

.brand-mark-lg {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.brand-mark-lg svg {
    width: 29px;
    height: 29px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.brand-name {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.status-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-soft);
    box-shadow: 0 0 0 3px var(--surface-3);
}

.status-dot.is-ok {
    background: var(--ok);
    box-shadow: 0 0 0 3px var(--ok-bg);
}

.status-dot.is-warn {
    background: var(--warn);
    box-shadow: 0 0 0 3px var(--warn-bg);
}

.status-dot.is-err {
    background: var(--err);
    box-shadow: 0 0 0 3px var(--err-bg);
}

.status-dot.is-unknown {
    background: var(--text-soft);
}

/* Pulzující tečka jen u zdravého stavu, vypnutá při omezení pohybu */
.status-dot.is-ok::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--ok);
    opacity: 0.6;
    animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 0.55; }
    70% { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.25rem 0.6rem 1rem;
    scrollbar-width: thin;
}

.nav-section + .nav-section {
    margin-top: 0.9rem;
}

.nav-section-title {
    padding: 0 0.65rem;
    margin: 0 0 0.35rem;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 2px;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 0.885rem;
    font-weight: 550;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.nav-item:hover {
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}

.nav-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: var(--text-soft);
}

.nav-icon svg {
    width: 19px;
    height: 19px;
}

.nav-item:hover .nav-icon {
    color: var(--accent);
}

.nav-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Aktivní položka — vyplněná modrá (dle mockupu) */
.nav-item.active {
    background: var(--accent);
    color: #fff;
    font-weight: 650;
    box-shadow: 0 6px 14px -8px rgba(37, 99, 235, 0.9);
}

.nav-item.active .nav-icon,
.nav-item.active:hover .nav-icon {
    color: #fff;
}

.nav-item.active:hover {
    background: var(--accent-strong);
    color: #fff;
}

/* Sbalený sidebar */
html[data-sidebar="collapsed"] .nav-text,
html[data-sidebar="collapsed"] .nav-section-title,
html[data-sidebar="collapsed"] .brand-text,
html[data-sidebar="collapsed"] .sidebar-foot {
    display: none;
}

html[data-sidebar="collapsed"] .nav-item {
    justify-content: center;
    padding: 0.55rem;
}

html[data-sidebar="collapsed"] .nav-section + .nav-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

html[data-sidebar="collapsed"] .sidebar-head {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.sidebar-foot {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.74rem;
    color: var(--text-soft);
}

/* ---------- Hlavní sloupec ---------- */

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

/* ---------- Topbar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--topbar-h);
    padding: 0.6rem 1.35rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(8px)) {
    .topbar {
        background: color-mix(in srgb, var(--surface) 82%, transparent);
        backdrop-filter: saturate(160%) blur(10px);
    }
}

.icon-btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.icon-btn svg {
    width: 19px;
    height: 19px;
}

.icon-btn:hover {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
    text-decoration: none;
}

.icon-btn:active {
    transform: translateY(1px);
}

/* Zvonek s počítadlem */
.bell-count {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--err);
    color: #fff;
    font-size: 0.63rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
}

/* Přepínač motivu — ikona podle aktuálního motivu */
.theme-icon-dark {
    display: none;
}

:root[data-theme="dark"] .theme-icon-light {
    display: none;
}

:root[data-theme="dark"] .theme-icon-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon-light {
        display: none;
    }

    :root:not([data-theme="light"]) .theme-icon-dark {
        display: block;
    }
}

/* ---------- Globální hledání ---------- */

.search {
    position: relative;
    flex: 1 1 520px;
    max-width: 640px;
    min-width: 0;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    height: 40px;
    padding: 0 0.6rem 0 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: border-color 0.12s ease, background-color 0.12s ease;
}

.search-field:focus-within {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-field svg {
    flex: none;
    width: 17px;
    height: 17px;
    color: var(--text-soft);
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    color: var(--text);
    padding: 0;
}

.search-input::placeholder {
    color: var(--text-soft);
}

.search-kbd {
    flex: none;
}

/* Výsledky (rychlá navigace v sekcích administrace) */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-pop);
}

.search-results[hidden] {
    display: none;
}

.search-results-head {
    padding: 0.35rem 0.6rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.search-result {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-xs);
    color: var(--text);
    font-size: 0.88rem;
    text-decoration: none;
}

.search-result:hover,
.search-result.is-active {
    background: var(--accent-soft);
    color: var(--accent-strong);
    text-decoration: none;
}

.search-result-section {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-soft);
}

.search-note {
    padding: 0.5rem 0.6rem 0.35rem;
    margin: 0.3rem 0 0;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- Uživatel v topbaru ---------- */

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.5rem 0.25rem 0.3rem;
    border-radius: var(--radius-pill);
    color: var(--text);
    text-decoration: none;
    min-width: 0;
}

.user-chip:hover {
    background: var(--surface-2);
    text-decoration: none;
}

.avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.topbar-divider {
    width: 1px;
    height: 26px;
    background: var(--border);
    flex: none;
}

.logout-form {
    margin: 0;
    display: flex;
}

/* ---------- Demo pruh ---------- */

.demo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: var(--warn-bg);
    border-bottom: 1px solid var(--warn-border);
    color: var(--warn);
    font-size: 0.78rem;
    font-weight: 600;
}

.demo-bar svg {
    width: 15px;
    height: 15px;
}

/* ---------- Obsah ---------- */

.content {
    flex: 1;
    width: 100%;
    max-width: var(--content-max);
    padding: 1.5rem 1.5rem 2rem;
}

/* ---------- Patička ---------- */

.app-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex-wrap: wrap;
    margin: 0 auto;
}

.footer-meta span strong,
.footer-meta b {
    color: var(--text);
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links .is-disabled {
    color: var(--text-soft);
    cursor: default;
}

/* ---------------------------------------------------------------------------
   5. Hlavička stránky
   ------------------------------------------------------------------------ */

.page-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.page-head h1 {
    margin: 0;
}

.page-head-text {
    min-width: 0;
}

.page-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.breadcrumb a {
    color: var(--text-muted);
}

/* Přepínač období (segmentované tlačítko) */
.segmented {
    display: inline-flex;
    padding: 3px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.segmented button,
.segmented .seg {
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
}

.segmented button:hover,
.segmented .seg:hover {
    color: var(--text);
}

.segmented button.active,
.segmented .seg.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--shadow-xs);
}

/* ---------------------------------------------------------------------------
   6. Karty a mřížky
   ------------------------------------------------------------------------ */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.15rem;
    min-width: 0;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 0.95rem;
}

.card-header h2,
.card-header h3 {
    margin: 0;
}

.card-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.card-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-flush {
    padding: 0;
}

.card-flush .card-header {
    padding: 1.1rem 1.25rem 0;
}

.card-flush .table-wrap {
    padding: 0 0 0.25rem;
}

/* Mřížka dashboardu — 12 sloupců, na mobilu vše přes celou šířku */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: start;
}

.dash-grid > * {
    grid-column: span 12;
}

.dash-grid > .card,
.card-grid > .card {
    margin-bottom: 0;
    height: 100%;
}

/* Automatická mřížka karet (když stránka nechce řešit sloupce) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.15rem;
    align-items: start;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 1.15rem;
    align-items: start;
}

.grid-2 > .card,
.grid-3 > .card,
.grid-4 > .card {
    margin-bottom: 0;
    height: 100%;
}

@media (min-width: 760px) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .col-3 { grid-column: span 3; }
    .col-4 { grid-column: span 4; }
    .col-5 { grid-column: span 5; }
    .col-6 { grid-column: span 6; }
    .col-7 { grid-column: span 7; }
    .col-8 { grid-column: span 8; }
    .col-9 { grid-column: span 9; }
    .col-12 { grid-column: span 12; }
}

@media (min-width: 900px) and (max-width: 1179px) {
    .col-3, .col-4, .col-5, .col-6 { grid-column: span 6; }
    .col-7, .col-8, .col-9 { grid-column: span 12; }
}

/* ---------------------------------------------------------------------------
   7. Dlaždice statistik
   ------------------------------------------------------------------------ */

.stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-tile {
    --tile: var(--accent);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.15rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.05rem 1.15rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

a.stat-tile:hover,
a.stat-card:hover {
    text-decoration: none;
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.stat-tile.is-ok { --tile: var(--ok); }
.stat-tile.is-danger { --tile: var(--err); }
.stat-tile.is-warn { --tile: var(--warn); }
.stat-tile.is-info { --tile: var(--info); }
.stat-tile.is-violet { --tile: var(--chart-2); }

.stat-tile-icon {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--surface-2);
    color: var(--tile);
    border: 1px solid var(--border);
}

.stat-tile-icon svg {
    width: 21px;
    height: 21px;
}

.stat-tile-label {
    grid-column: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-tile-value {
    grid-column: 1;
    font-size: 1.72rem;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.stat-tile-value small,
.stat-value-sub {
    font-size: 0.62em;
    font-weight: 550;
    color: var(--text-muted);
}

.stat-tile-foot {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
}

.stat-change svg {
    width: 13px;
    height: 13px;
}

.stat-change.is-up { color: var(--ok); }
.stat-change.is-down { color: var(--err); }
.stat-change.is-flat { color: var(--text-muted); }

/* Když růst není dobrá zpráva (zablokované e-maily) */
.stat-change.is-up.is-inverse { color: var(--err); }
.stat-change.is-down.is-inverse { color: var(--ok); }

/* Starší dlaždice (.stat-grid/.stat-card) — ponecháno kvůli stávajícím stránkám */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.05rem 1.15rem;
    color: inherit;
    text-decoration: none;
}

.stat-value {
    font-size: 1.72rem;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.stat-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.stat-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   8. Vizualizace
   ------------------------------------------------------------------------ */

/* Obecné inline SVG grafy */
.chart {
    position: relative;
    width: 100%;
    min-width: 0;
}

.chart svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart-grid line,
.chart-grid path {
    stroke: var(--border);
    stroke-width: 1;
    shape-rendering: crispEdges;
}

.chart-axis text,
.chart text.axis-label {
    fill: var(--text-soft);
    font-family: var(--font);
    font-size: 10px;
}

.chart-line {
    fill: none;
    stroke: var(--series, var(--chart-1));
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.chart-area {
    stroke: none;
    fill: var(--series, var(--chart-1));
    opacity: 0.13;
}

.chart-dot {
    fill: var(--series, var(--chart-1));
    stroke: var(--surface);
    stroke-width: 2;
}

.chart-bar {
    fill: var(--series, var(--chart-1));
}

.series-1 { --series: var(--chart-1); }
.series-2 { --series: var(--chart-2); }
.series-3 { --series: var(--chart-3); }
.series-4 { --series: var(--chart-4); }
.series-5 { --series: var(--chart-5); }
.series-6 { --series: var(--chart-6); }

.series-delivered { --series: var(--chart-1); }
.series-sent { --series: var(--chart-2); }
.series-blocked { --series: var(--chart-3); }

.legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--series, var(--chart-1));
    flex: none;
}

/* Sparkline (malý graf v kartě výkonu) */
.sparkline {
    display: block;
    width: 100%;
    height: 38px;
    overflow: visible;
}

.sparkline-line {
    fill: none;
    stroke: var(--series, var(--accent));
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.sparkline-area {
    stroke: none;
    fill: var(--series, var(--accent));
    opacity: 0.15;
}

/* Kruhový gauge (doručitelnost) */
.gauge {
    position: relative;
    width: 168px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

/* Funguje jak pro obal <div class="gauge"><svg>…, tak pro <svg class="gauge">. */
.gauge svg {
    width: 100%;
    height: 100%;
}

.gauge-track {
    fill: none;
    stroke: var(--track);
}

.gauge-fill {
    fill: none;
    stroke: var(--gauge-color, var(--ok));
    stroke-linecap: round;
    transition: stroke-dashoffset 0.7s ease;
}

.gauge.is-warn { --gauge-color: var(--warn); }
.gauge.is-danger { --gauge-color: var(--err); }

.gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    text-align: center;
}

/* Používá se i jako třída SVG textu uvnitř gauge — proto color i fill. */
.gauge-value {
    font-size: 1.7rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    fill: var(--text);
}

.gauge-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    fill: var(--text-muted);
}

/* Lineární ukazatel (CPU, RAM, disk, kvóta) */
.meter {
    display: grid;
    gap: 0.35rem;
}

.meter + .meter {
    margin-top: 0.85rem;
}

.meter-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
}

.meter-name {
    font-weight: 600;
}

.meter-value {
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    font-weight: 600;
}

.meter-track {
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--track);
    overflow: hidden;
}

.meter-fill {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.5s ease;
}

.meter.is-warn .meter-fill {
    background: var(--warn);
}

.meter.is-danger .meter-fill {
    background: var(--err);
}

.meter.is-ok .meter-fill {
    background: var(--ok);
}

/* Žebříčky s vodorovnými pruhy (top domény, odesílatelé, země) */
.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.rank-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.75rem;
    min-width: 0;
}

.rank-label {
    font-size: 0.87rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-value {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rank-bar {
    grid-column: 1 / -1;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--track);
    overflow: hidden;
}

.rank-bar-fill {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--series, var(--accent)), var(--accent-2));
    transition: width 0.5s ease;
}

.rank-detail {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: var(--text-soft);
}

/* Časová osa událostí */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.15rem 0.7rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-dot {
    width: 9px;
    height: 9px;
    margin-top: 0.42rem;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

.timeline-dot.is-ok { background: var(--ok); }
.timeline-dot.is-warn { background: var(--warn); }
.timeline-dot.is-err { background: var(--err); }
.timeline-dot.is-info { background: var(--info); }

.timeline-text {
    font-size: 0.87rem;
    min-width: 0;
}

.timeline-sub {
    grid-column: 2;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--text-soft);
    white-space: nowrap;
}

/* Rychlé akce */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 0.75rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.quick-action:hover {
    text-decoration: none;
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.quick-action svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Seznam stavů služeb / bezpečnostní přehled */
.status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 0;
}

.status-row svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--text-muted);
}

.status-row-name {
    font-weight: 600;
    font-size: 0.88rem;
}

.status-row-detail {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.status-row .badge {
    margin-left: auto;
}

/* Informace o zdroji dat pod kartou */
.source-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.74rem;
    color: var(--text-soft);
}

/* ---------------------------------------------------------------------------
   9. Tabulky
   ------------------------------------------------------------------------ */

.table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.885rem;
}

.table th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}

.table th:first-child {
    border-top-left-radius: var(--radius-xs);
    border-bottom-left-radius: var(--radius-xs);
}

.table th:last-child {
    border-top-right-radius: var(--radius-xs);
    border-bottom-right-radius: var(--radius-xs);
}

.table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--surface-2);
}

.table th.num,
.table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table th.actions,
.table td.actions {
    text-align: right;
    white-space: nowrap;
}

.table td.actions {
    display: table-cell;
}

.table tr.inline-form-row td {
    background: var(--surface-2);
    padding: 0.85rem 0.75rem;
}

.table tr.inline-form-row:hover td {
    background: var(--surface-2);
}

.row-link {
    font-weight: 650;
}

.audit-data {
    display: inline-block;
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   10. Formuláře
   ------------------------------------------------------------------------ */

label {
    display: block;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    font-family: inherit;
    font-size: 0.89rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    padding: 0.5rem 0.65rem;
    width: 100%;
    max-width: 100%;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-soft);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

input:disabled,
textarea:disabled,
select:disabled {
    background: var(--surface-3);
    color: var(--text-muted);
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
}

select {
    appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 15px 15px;
}

.form-field {
    min-width: 0;
}

.form-inline {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-inline .form-field {
    min-width: 220px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem 1rem;
    align-items: end;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field-submit {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.form-field-check {
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.input-suffix {
    display: flex;
    align-items: stretch;
}

.input-suffix input {
    border-radius: var(--radius-xs) 0 0 var(--radius-xs);
    border-right: none;
}

.input-suffix .suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.7rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    white-space: nowrap;
}

.filter-input {
    max-width: 320px;
}

/* Validace (Blazor) */
.valid.modified:not([type="checkbox"]) {
    border-color: var(--ok);
}

.invalid {
    border-color: var(--err);
}

.validation-message {
    color: var(--err);
    font-size: 0.78rem;
}

/* ---------------------------------------------------------------------------
   11. Tlačítka
   ------------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    padding: 0.48rem 0.9rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn:hover {
    text-decoration: none;
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 14px -8px rgba(37, 99, 235, 0.9);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-strong);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--surface-3);
}

.btn-danger {
    background: var(--err);
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    filter: brightness(0.92);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--border-strong);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.btn-danger-ghost {
    background: transparent;
    color: var(--err);
    border-color: var(--border-strong);
}

.btn-danger-ghost:hover:not(:disabled) {
    background: var(--err-bg);
    border-color: var(--err);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--accent);
    padding: 0.2rem 0.3rem;
}

.btn-link:hover:not(:disabled) {
    text-decoration: underline;
}

.btn-sm {
    font-size: 0.78rem;
    padding: 0.32rem 0.62rem;
    gap: 0.3rem;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

.btn-block {
    width: 100%;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    padding: 0.16rem 0.45rem;
    margin-left: 0.35rem;
    cursor: pointer;
    vertical-align: middle;
}

.btn-copy:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   12. Odznaky a štítky
   ------------------------------------------------------------------------ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--radius-pill);
    padding: 0.16rem 0.6rem;
    white-space: nowrap;
    background: var(--surface-3);
    color: var(--text-muted);
    border: 1px solid transparent;
}

.badge svg {
    width: 12px;
    height: 12px;
}

.badge-ok,
.badge-success {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: var(--ok-border);
}

.badge-err,
.badge-danger {
    background: var(--err-bg);
    color: var(--err);
    border-color: var(--err-border);
}

.badge-warn {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: var(--warn-border);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border-color: var(--info-border);
}

.badge-off,
.badge-neutral {
    background: var(--surface-3);
    color: var(--text-muted);
    border-color: var(--border);
}

.badge-neutral {
    margin-right: 0.25rem;
}

/* Odznaky auditních akcí podle prefixu */
.badge-domain {
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-color: transparent;
}

.badge-mailbox {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: transparent;
}

.badge-alias {
    background: var(--info-bg);
    color: var(--info);
    border-color: transparent;
}

.badge-dkim {
    background: var(--surface-3);
    color: var(--chart-2);
    border-color: transparent;
}

.badge-apikey {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: transparent;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.22rem 0.65rem;
}

/* ---------------------------------------------------------------------------
   13. Alerty
   ------------------------------------------------------------------------ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    border: 1px solid transparent;
}

.alert svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 0.1rem;
}

.alert-error {
    background: var(--err-bg);
    color: var(--err);
    border-color: var(--err-border);
}

.alert-success {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: var(--ok-border);
}

.alert-warning {
    background: var(--warn-bg);
    color: var(--warn);
    border-color: var(--warn-border);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border-color: var(--info-border);
}

/* ---------------------------------------------------------------------------
   14. Záložky
   ------------------------------------------------------------------------ */

.tabs {
    display: flex;
    gap: 0.15rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.tab {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------------------------------------------------------------------------
   15. DNS průvodce, detailní výpisy, API klíč, inline potvrzení
   ------------------------------------------------------------------------ */

.dns-table td {
    vertical-align: top;
}

.dns-name {
    word-break: break-all;
}

.dns-value {
    display: inline-block;
    max-width: 420px;
    word-break: break-all;
    white-space: pre-wrap;
}

.dns-actual {
    display: block;
    margin-bottom: 0.3rem;
    background: var(--surface-2);
}

.dns-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.check-ok {
    color: var(--ok);
    font-weight: 700;
    font-size: 1.05rem;
}

.check-fail {
    color: var(--err);
    font-weight: 700;
    font-size: 1.05rem;
}

.detail-list {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.55rem 1.25rem;
    margin: 0;
}

.detail-list dt {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-top: 0.15rem;
}

.detail-list dd {
    margin: 0;
    min-width: 0;
    word-break: break-word;
}

.key-reveal {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.key-reveal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.key-reveal-head h2 {
    color: var(--warn);
}

.key-reveal p {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.87rem;
    color: var(--text);
}

.key-reveal-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.key-reveal-value code {
    font-size: 0.92rem;
    background: var(--surface);
    border: 1px dashed var(--warn);
    padding: 0.45rem 0.7rem;
    word-break: break-all;
}

.confirm-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--err);
    font-weight: 650;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------------------
   16. Prázdné stavy a skeletony
   ------------------------------------------------------------------------ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.45rem;
    min-height: 170px;
    padding: 1.75rem 1.25rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-muted);
}

.empty-state-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface-3);
    color: var(--text-soft);
    margin-bottom: 0.15rem;
}

.empty-state-icon svg {
    width: 21px;
    height: 21px;
}

.empty-state-title {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text);
}

.empty-state-text {
    font-size: 0.84rem;
    max-width: 46ch;
    margin: 0;
}

.empty-state-actions {
    margin-top: 0.5rem;
}

.empty-state-sm {
    min-height: 108px;
    padding: 1.1rem;
}

.empty-state-inline {
    min-height: 0;
    padding: 0.9rem 1rem;
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
}

/* Skeleton při načítání */
.skeleton {
    background: linear-gradient(90deg, var(--skeleton-a) 25%, var(--skeleton-b) 37%, var(--skeleton-a) 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.skeleton-line {
    height: 0.8rem;
    margin-bottom: 0.6rem;
}

.skeleton-line:last-child {
    width: 62%;
    margin-bottom: 0;
}

.skeleton-title {
    height: 1.1rem;
    width: 40%;
    margin-bottom: 1rem;
}

.skeleton-block {
    height: 190px;
    border-radius: var(--radius-sm);
}

.skeleton-tile {
    height: 104px;
    border-radius: var(--radius);
}

.skeleton-circle {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    margin: 0 auto;
}

/* Nenápadný text „Načítám…“ */
.loading-text {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ---------------------------------------------------------------------------
   17. Přihlašovací stránka
   ------------------------------------------------------------------------ */

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    background: #0b1220;
    color: #e8eefb;
}

/* Mesh pozadí — jen CSS gradienty, žádné obrázky */
.login-bg {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background:
        radial-gradient(38% 42% at 18% 22%, rgba(37, 99, 235, 0.55) 0%, rgba(37, 99, 235, 0) 70%),
        radial-gradient(34% 40% at 82% 18%, rgba(79, 70, 229, 0.5) 0%, rgba(79, 70, 229, 0) 72%),
        radial-gradient(45% 48% at 70% 82%, rgba(14, 165, 233, 0.35) 0%, rgba(14, 165, 233, 0) 70%),
        radial-gradient(40% 44% at 25% 88%, rgba(124, 58, 237, 0.32) 0%, rgba(124, 58, 237, 0) 72%);
    filter: blur(8px);
}

.login-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 100%);
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 30px 70px -25px rgba(2, 6, 23, 0.75), 0 2px 8px rgba(2, 6, 23, 0.25);
    padding: 2rem 1.9rem 1.9rem;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.4rem;
}

.login-brand .brand-mark-lg {
    margin-bottom: 0.85rem;
}

.login-brand h1 {
    font-size: 1.28rem;
    margin: 0 0 0.2rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.login-form .form-field {
    margin-bottom: 0.9rem;
}

.login-form input {
    padding: 0.62rem 0.75rem;
}

.login-form .btn {
    margin-top: 0.35rem;
    padding: 0.62rem 0.9rem;
}

.login-foot {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.76rem;
    color: var(--text-soft);
}

.login-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
    color: var(--text-soft);
    font-size: 0.74rem;
}

.login-feature span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.login-feature svg {
    width: 13px;
    height: 13px;
    color: var(--ok);
}

/* ---------------------------------------------------------------------------
   18. Systémové prvky Blazoru
   ------------------------------------------------------------------------ */

#blazor-error-ui {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
    max-width: min(560px, calc(100vw - 2rem));
    padding: 0.8rem 2.4rem 0.8rem 1.1rem;
    background: var(--warn-bg);
    color: var(--warn);
    border: 1px solid var(--warn-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.86rem;
}

#blazor-error-ui .reload {
    color: var(--warn);
    font-weight: 700;
    text-decoration: underline;
    margin-left: 0.35rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.7rem;
    top: 0.55rem;
    font-size: 0.9rem;
    line-height: 1;
}

.blazor-error-boundary {
    background: var(--err-bg);
    color: var(--err);
    border: 1px solid var(--err-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "Došlo k chybě při vykreslení této části stránky.";
}

/* Modál pro obnovu spojení — přebarvení do motivu.
   Vyšší specifita (html …) kvůli scoped CSS komponenty. */
html #components-reconnect-modal {
    background-color: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-pop);
    font-family: var(--font);
}

html #components-reconnect-modal::backdrop {
    background-color: var(--overlay);
}

html #components-reconnect-modal button {
    background-color: var(--accent);
    color: #fff;
    font-family: inherit;
    font-weight: 650;
    font-size: 0.86rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-xs);
    cursor: pointer;
}

html #components-reconnect-modal button:hover {
    background-color: var(--accent-strong);
}

html .components-rejoining-animation div {
    border-color: var(--accent);
}

/* ---------------------------------------------------------------------------
   19. Responzivita a přístupnost
   ------------------------------------------------------------------------ */

@media (max-width: 1280px) {
    .search {
        flex-basis: 320px;
    }
}

@media (max-width: 1023px) {
    .app-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Sidebar se pod 1024 px vysouvá přes obsah */
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(280px, 84vw);
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: var(--shadow-pop);
    }

    html[data-sidebar="open"] .sidebar {
        transform: translateX(0);
    }

    /* Na malých displejích znamená přepínač „otevřít“, ne „sbalit“ */
    html[data-sidebar="collapsed"] .app-shell {
        --sidebar-w: 0;
    }

    html[data-sidebar="collapsed"] .nav-text,
    html[data-sidebar="collapsed"] .nav-section-title,
    html[data-sidebar="collapsed"] .brand-text,
    html[data-sidebar="collapsed"] .sidebar-foot {
        display: revert;
    }

    html[data-sidebar="collapsed"] .nav-item {
        justify-content: flex-start;
        padding: 0.5rem 0.65rem;
    }

    .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 19;
        background: var(--overlay);
        border: none;
        display: none;
    }

    html[data-sidebar="open"] .sidebar-scrim {
        display: block;
    }

    .search-kbd {
        display: none;
    }

    .user-meta {
        display: none;
    }

    .content {
        padding: 1.1rem 1rem 1.75rem;
    }

    .app-footer {
        padding: 0.85rem 1rem;
        font-size: 0.75rem;
    }

    .footer-meta {
        margin: 0;
        gap: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .sidebar-scrim {
        display: none;
    }
}

@media (max-width: 720px) {
    .topbar {
        padding: 0.5rem 0.85rem;
        gap: 0.35rem;
    }

    .search-field {
        height: 38px;
    }

    .footer-links {
        margin-left: auto;
    }

    .page-actions {
        margin-left: 0;
        width: 100%;
    }

    .audit-data {
        max-width: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .status-dot.is-ok::after {
        display: none;
    }
}

@media (forced-colors: active) {
    .card,
    .stat-tile,
    .nav-item.active,
    .badge {
        border: 1px solid CanvasText;
    }
}

/* ---------------------------------------------------------------------------
   20. Sdílené názvosloví stránek statistik a bezpečnosti
       (tyto stránky nemají vlastní scoped CSS a spoléhají na tento soubor)
   ------------------------------------------------------------------------ */

/* Hlavička stránky */
.page-sub {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 78ch;
}

.page-head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.range-note {
    margin: -0.5rem 0 1.15rem;
    font-size: 0.82rem;
}

/* Ikona uvnitř tlačítka */
.btn-icon {
    width: 16px;
    height: 16px;
    flex: none;
}

/* Odkaz v hlavičce karty */
.card-link {
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--accent);
    white-space: nowrap;
}

/* Karta přes celou šířku dvousloupcové mřížky */
.card-span-2 {
    grid-column: 1 / -1;
}

/* Tělo starší dlaždice .stat-card */
.stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

/* Souhrnný řádek tabulky */
.table tfoot .table-total td,
.table tr.table-total td {
    border-top: 1px solid var(--border-strong);
    border-bottom: none;
    font-weight: 700;
    background: var(--surface-2);
}

/* Grafy stránek statistik */
.chart-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
}

.line-chart {
    display: block;
    width: 100%;
    min-width: 520px;
    height: auto;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Doručitelnost — gauge s rozpisem */
.gauge-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gauge-wrap > .gauge,
.gauge-wrap > svg.gauge {
    flex: none;
}

.gauge-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    min-width: 200px;
    flex: 1;
}

.gauge-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.86rem;
    min-width: 200px;
    flex: 1;
}

.gauge-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gauge-legend b {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

/* Žebříčky (varianta .ranked-*) */
.ranked-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.ranked-bar {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.ranked-bar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.ranked-bar-label {
    font-size: 0.87rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranked-bar-value {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ranked-bar-track {
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--track);
    overflow: hidden;
}

.ranked-bar-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.5s ease;
}

.ranked-bar-detail {
    font-size: 0.75rem;
    color: var(--text-soft);
}

/* Podíl v tabulce (pruh v buňce) */
.share-col {
    width: 140px;
}

.share-bar {
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--track);
    overflow: hidden;
}

.share-seg {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--accent);
}

/* Škála prahů skóre (antispam) */
.threshold-scale {
    display: grid;
    gap: 0.4rem;
}

.threshold-track {
    display: flex;
    height: 10px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--track);
}

.threshold-zone {
    display: block;
    height: 100%;
}

.zone-ok { background: var(--ok); }
.zone-warn { background: var(--warn); }
.zone-bad { background: var(--err); }

.threshold-marks {
    position: relative;
    height: 1rem;
}

.threshold-mark {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.threshold-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-soft);
}

/* Doporučení / kroky */
.advice-list,
.steps-list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    display: grid;
    gap: 0.65rem;
    font-size: 0.88rem;
}

.advice-list {
    list-style: none;
    padding-left: 0;
}

.advice-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding-left: 1.35rem;
    position: relative;
}

.advice-item::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-soft);
}

.advice-ok::before {
    background: var(--ok);
}

.advice-warn::before {
    background: var(--warn);
}

.steps-list li {
    padding-left: 0.2rem;
}

.steps-list li::marker {
    color: var(--accent);
    font-weight: 700;
}

/* Prázdný stav — varianta s .empty-state-note */
.empty-state-note {
    font-size: 0.84rem;
    color: var(--text-muted);
    max-width: 52ch;
    margin: 0;
}

.empty-state svg {
    width: 34px;
    height: 34px;
    color: var(--text-soft);
}

/* Karta bez dat */
.is-empty {
    color: var(--text-muted);
}

@media (max-width: 760px) {
    .share-col {
        width: 90px;
    }

    .gauge-wrap {
        gap: 1rem;
    }
}
