:root {
    /* značka */
    --brand-blue: #124a7c;
    --brand-blue-dark: #0d3a62;
    --brand-green: #2e9e43;
    --brand-green-dark: #248036;
    /* neutrály (svetlá téma) */
    --ink: #1f2933;
    --muted: #5b6b7b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f5f8fb;
    --surface: #ffffff;
    --tag-muted-bg: #eef2f6;
    --logo-pad: 0;
    --logo-bg: transparent;
    --shadow: 0 10px 30px rgba(18, 74, 124, 0.10);
    /* rozmery */
    --radius: 12px;
    --maxw: 1080px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color-scheme: light;
}

/* tmavá téma – automaticky podľa systému (ak si používateľ nezvolil svetlú) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand-blue: #4a93d1;
        --brand-blue-dark: #6aa8dc;
        --brand-green: #37b24d;
        --brand-green-dark: #2e9e43;
        --ink: #e6edf3;
        --muted: #9fb0c0;
        --line: #24303c;
        --bg: #0f1720;
        --bg-soft: #131e29;
        --surface: #16212d;
        --tag-muted-bg: #22303c;
        --logo-pad: 8px 12px;
        --logo-bg: rgba(255, 255, 255, 0.94);
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
        color-scheme: dark;
    }
}

/* tmavá téma – manuálna voľba (má prednosť pred systémom) */
:root[data-theme="dark"] {
    --brand-blue: #4a93d1;
    --brand-blue-dark: #6aa8dc;
    --brand-green: #37b24d;
    --brand-green-dark: #2e9e43;
    --ink: #e6edf3;
    --muted: #9fb0c0;
    --line: #24303c;
    --bg: #0f1720;
    --bg-soft: #131e29;
    --surface: #16212d;
    --tag-muted-bg: #22303c;
    --logo-pad: 8px 12px;
    --logo-bg: rgba(255, 255, 255, 0.94);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .2s ease, color .2s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); }

/* ---- header ---- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px 16px;
}
.brand img {
    height: 44px;
    width: auto;
    background: var(--logo-bg);
    padding: var(--logo-pad);
    border-radius: 10px;
}
.site-nav { display: flex; align-items: center; gap: 10px; }

/* ---- prepínač témy ---- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--brand-blue); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---- buttons ---- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .05s ease, background .15s ease, color .15s ease;
    cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: var(--brand-blue-dark); }
.btn-outline { border-color: var(--brand-blue); color: var(--brand-blue); background: transparent; }
.btn-outline:hover { background: var(--brand-blue); color: #fff; }
.btn-ghost { color: var(--brand-blue); background: transparent; }
.btn-ghost:hover { color: var(--brand-blue-dark); }

/* ---- pruh prostredia (len staging) ---- */
.env-banner { background: #c62828; color: #fff; font-weight: 700; text-align: center; padding: 6px 12px; font-size: .9rem; }

/* ---- prepínač dashboardov (účet s viacerými rolami) ---- */
.dash-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--brand-blue); border-radius: 999px; }
.dash-switch .btn-ghost.is-active { background: var(--brand-blue); color: #fff; }
.join-link { width: 100%; max-width: 560px; font-family: monospace; }
.req-form { display: grid; gap: 10px; max-width: 560px; }
.req-form label { display: grid; gap: 4px; }
.req-form textarea, .req-form input[type="text"] { width: 100%; }
.role-check { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; white-space: nowrap; }

/* ---- hero ---- */
.hero {
    background: linear-gradient(180deg, var(--bg-soft), var(--bg));
    border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 780px; margin: 0 auto; padding: 56px 16px 64px; text-align: center; }
.hero-logo {
    width: min(420px, 82%);
    margin: 0 auto 28px;
    background: var(--logo-bg);
    padding: var(--logo-pad);
    border-radius: 14px;
}
.hero-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; color: var(--brand-blue); }
.hero-lead { font-size: 1.12rem; color: var(--muted); margin: 0 auto 28px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- products ---- */
.products { max-width: var(--maxw); margin: 0 auto; padding: 56px 16px 72px; }
.section-title { font-size: 1.5rem; text-align: center; margin: 0 0 28px; color: var(--ink); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}
/* Elektronický poštár samostatne (#355) */
.products--tight { padding-top: 32px; padding-bottom: 32px; }
.product-grid--3 { max-width: var(--maxw); grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.postar-icon { margin: 0 0 12px; display: flex; justify-content: center; }
.postar-steps { max-width: 620px; margin: 0 auto; padding-left: 1.4em; color: var(--muted); line-height: 1.6; }
.postar-steps li { margin: 0 0 10px; }
.postar-steps strong { color: var(--ink); }
.postar-packages { border: 0; padding: 0; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.postar-packages legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.auth-card .postar-package { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font-weight: 400; }
.auth-card .postar-package input { width: auto; margin: 3px 0 0; flex: none; padding: 0; }
.postar-package small { color: var(--muted); }
.postar-package:has(input:checked) { border-color: var(--brand-blue); box-shadow: 0 0 0 1px var(--brand-blue); }
.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.product-card h3 { margin: 10px 0 8px; color: var(--brand-blue); font-size: 1.2rem; }
.product-card p { margin: 0; color: var(--muted); }
.product-card--available { border-top: 4px solid var(--brand-green); }
.product-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--brand-green-dark);
    background: rgba(46, 158, 67, 0.14);
    padding: 4px 10px;
    border-radius: 999px;
}
.product-tag--muted { color: var(--muted); background: var(--tag-muted-bg); }

/* ---- auth (formuláre) ---- */
.auth { max-width: 460px; margin: 0 auto; padding: 48px 16px 64px; }
.auth-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 28px;
}
.auth-card h1 { margin: 0 0 18px; color: var(--brand-blue); font-size: 1.5rem; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink); }
.auth-card .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.auth-card input {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
}
.auth-card input:focus { outline: 2px solid var(--brand-blue); border-color: var(--brand-blue); }
/* zobraziť / skryť heslo (#140, assets/js/heslo.js): tlačidlo s okom vo vnútri poľa vpravo */
.pw-field { position: relative; display: flex; }
.pw-field input { flex: 1; min-width: 0; padding-right: 46px; }
.pw-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--bg-soft); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 1px; color: var(--ink); }
.pw-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.auth-card .btn { margin-top: 6px; text-align: center; }
.auth-alt { margin: 16px 0 0; color: var(--muted); text-align: center; }
.auth-lead-sm { color: var(--muted); margin: 0 0 16px; }
.checkbox { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; }
.checkbox input { width: auto; }
.nav-user { color: var(--muted); font-size: .9rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-form { display: inline; margin: 0; }
.alert { padding: 10px 12px; border-radius: 8px; margin: 0 0 16px; }
.alert-error { background: rgba(182, 5, 5, 0.10); color: #b60505; border: 1px solid rgba(182, 5, 5, 0.25); }
.alert-success { background: rgba(46, 158, 67, 0.12); color: var(--brand-green-dark); border: 1px solid rgba(46, 158, 67, 0.3); }

/* ---- admin / účet ---- */
.admin { max-width: var(--maxw); margin: 0 auto; padding: 40px 16px 64px; }
.admin h1 { color: var(--brand-blue); margin: 0 0 16px; }
.card-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 20px; color: var(--muted); box-shadow: var(--shadow); }
.stat .num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.tbl { width: 100%; border-collapse: collapse; margin-top: 12px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
.tbl select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 2px 8px 2px 0; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.badge { display: inline-block; font-size: .72rem; background: var(--brand-green); color: #fff; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }

/* ---- účet klienta: platobné údaje ---- */
.pay-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin: 0 0 8px; }
.pay-box { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 14px; margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid #d97706; border-radius: var(--radius); background: var(--surface); }
.pay-box dt { color: var(--muted); font-size: .9rem; }
.pay-box dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay-box .pay-sum { font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.pay-box .pay-strong { font-weight: 700; letter-spacing: .02em; }
.pay-box .pay-qr { display: grid; gap: 6px; justify-items: start; }
.pay-qr-img { display: block; width: 168px; padding: 6px; background: #fff; border-radius: 6px; line-height: 0; }   /* QR vždy tmavé na bielom, aj v tmavom režime */
.pay-qr-img svg { width: 100%; height: auto; }
.pay-qr-img svg path { fill: #000; }
.pay-card { display: grid; gap: 6px; justify-items: start; margin: 0; }

/* ---- účet klienta: stiahnutie programu ---- */
.dl-card { margin: 8px 0 24px; padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--brand-green); border-radius: var(--radius); background: var(--surface); }
.dl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; }
.dl-head h2 { margin: 0 0 2px; color: var(--brand-blue); font-size: 1.25rem; }
.dl-head .auth-lead-sm { margin: 0; }
.dl-meta { color: var(--muted); font-size: .92rem; margin: 10px 0; }
.dl-steps { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 8px; max-width: 72ch; }
.dl-steps code { font-size: .9em; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; }

/* ---- utility ---- */
.mt-24 { margin-top: 24px; }

/* ---- klientsky dashboard ---- */
/* Novinky vo verziách (#225) */
.news-version { margin: 18px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.news-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 8px; font-size: 1.15rem; }
.news-date { margin-left: auto; color: var(--muted); font-size: .9rem; font-weight: 400; }
.news-summary { margin: 0 0 8px; }
.news-details { margin: 0; padding-left: 20px; }
.news-details li { margin: 4px 0; overflow-wrap: anywhere; }
.acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acc-head-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: var(--tag-muted-bg); color: var(--muted); white-space: nowrap; }
.pill-ok { background: rgba(46, 158, 67, 0.15); color: var(--brand-green-dark); }
.pill-off { background: rgba(197, 48, 48, 0.15); color: #c53030; }

/* ---- produkty (admin) ---- */
.prod-title { color: var(--brand-blue); margin: 24px 0 4px; }
.pkg-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin: 12px 0; }
/* kartička balíčka (#138): názov → počet firiem (jediný rozdiel medzi balíčkami) → cena → tlačidlo; rovnaká výška, tlačidlo dole */
.pkg { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; box-shadow: var(--shadow); }
.pkg-name { margin: 0; font-size: .95rem; font-weight: 600; color: var(--muted); }
.pkg-companies { margin: 6px 0 0; font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.pkg-price { margin: 4px 0 20px; font-size: 1.15rem; font-weight: 700; color: var(--brand-green-dark); }
.pkg-price .per { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pkg-note { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.pkg-note strong { color: var(--ink); }
/* testovacie ceny mimo produkcie (#329) – oranžová má kontrast aj v tmavom režime */
.pkg-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pkg-fields label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.pkg-fields input[type="text"], .pkg-fields input[type="number"] { width: 90px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
.pkg .btn { margin-top: auto; align-self: stretch; text-align: center; }


/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 40px 16px 28px; font-size: .92rem; background: var(--bg-soft); }
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 24px;
}
.footer-col strong { color: var(--ink); display: block; margin-bottom: 8px; }
.footer-col p { margin: 0; }
.footer-col a { color: var(--brand-blue); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-note { max-width: var(--maxw); margin: 0 auto 12px; text-align: center; font-size: .84rem; opacity: .85; }
.footer-copy { max-width: var(--maxw); margin: 0 auto; text-align: center; }

@media (max-width: 520px) {
    .hero-inner { padding: 40px 16px 48px; }
    .btn { width: 100%; text-align: center; }
    .hero-actions { flex-direction: column; }
}

/* ---- fakturačná firma (objednávka, účet) ---- */
.ico-preview { margin: -6px 0 4px; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.ico-preview.is-ok { color: var(--brand-green-dark); font-weight: 600; }
.ico-preview.is-warn { color: #b45309; }
.billing-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--bg-soft); }
.billing-box p { margin: 0 0 6px; }
.more-fields { margin: 4px 0; }
.more-fields > summary { cursor: pointer; color: var(--brand-blue); font-size: .92rem; }
.more-fields[open] > summary { margin-bottom: 10px; }
.more-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; margin-bottom: 10px; }
.row2 { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }

/* ---- ročné predplatné pri cenách ---- */
.term-note { max-width: 72ch; margin: 0 0 8px; padding: 10px 14px; border-left: 4px solid var(--brand-blue); background: var(--bg-soft); border-radius: 6px; color: var(--ink); }
.price .per { font-size: .95rem; font-weight: 600; color: var(--muted); }
.pay-box .pay-per { font-size: .95rem; font-weight: 600; color: var(--muted); }
.billing-account { max-width: 640px; margin-bottom: 8px; }
.billing-form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.billing-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.billing-form input, .auth-card .row2 input { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }

/* ---- licencie s firmami (#114) ---- */
.lic-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.lic-card { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lic-card.is-off { opacity: .75; }
.lic-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.lic-head h3 { margin: 0 0 2px; font-size: 1.08rem; color: var(--brand-blue); }
.lic-head .hint, .lic-card p.hint { margin: 0; }
.lic-slots { margin: 12px 0 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.firm-list { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.firm-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.firm-add { margin: 10px 0 12px; padding: 12px 14px; background: var(--bg-soft); border-radius: 8px; }
.alert-info { background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.25); color: var(--ink); }

/* ---- stiahnutie pre Mac (#122) ---- */
.dl-mac { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dl-mac h3 { margin: 0 0 8px; font-size: 1rem; }
.dl-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.dl-size { font-weight: 400; opacity: .7; margin-left: 4px; }

/* ---- kód licencie (#124) ---- */
.lic-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 4px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; background: var(--bg-soft); }
.lic-code code { font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.lic-code-inline { font-family: ui-monospace, monospace; font-weight: 700; white-space: nowrap; }
/* vyskúšať e-mailom (#331): kroky vo formulári a box s kódom po potvrdení */
.trial-steps { margin: 18px 0 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.trial-box { margin: 8px 0 24px; padding: 20px 22px; border: 1px solid var(--brand-green); border-left-width: 4px; border-radius: var(--radius); background: var(--surface); }
.trial-box h2 { margin: 0 0 8px; color: var(--brand-green-dark); font-size: 1.25rem; }
.trial-box .lic-code code { font-size: 1.5rem; }
.trial-box .auth-lead-sm { margin: 10px 0 0; }
.trial-box .btn-sm { margin-left: 6px; vertical-align: middle; }

/* ---- ikona produktu pri názve (#134) ---- */
.product-name { display: flex; align-items: center; gap: 14px; }
.product-icon { flex: none; border-radius: 22%; }

/* Typ kupujúceho (#182) */
.buyer-kind { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.buyer-kind legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.buyer .buyer-kind .radio { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.buyer .buyer-kind .radio input { width: auto; padding: 0; margin: 0; flex: none; }
.buyer .row2.row2-eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.buyer .row2-eq input { min-width: 0; box-sizing: border-box; width: 100%; }
[data-buyer-section][hidden] { display: none; }

/* Nahlásenie zneužitia a vyhlásenie pri pridaní firmy (#184) */
.auth-card-wide { max-width: 560px; }
.auth-card textarea, .auth-card select { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.auth-card textarea { resize: vertical; min-height: 120px; }
.auth-card textarea:focus, .auth-card select:focus { outline: 2px solid var(--brand-blue); border-color: var(--brand-blue); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.billing-form label.declare { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .9rem; cursor: pointer; }
.billing-form label.declare input { width: auto; flex: none; margin-top: 3px; padding: 0; }

/* čitateľná chybová hláška v tmavom režime (#184) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert-error { color: #ff9a9a; } }
:root[data-theme="dark"] .alert-error { color: #ff9a9a; }

/* ---- horná lišta na úzkych obrazovkách (#188): zbaliteľné menu pod 1100 px, bez posunu stránky do strany ---- */
.nav-toggle {
    display: none; align-items: center; gap: 8px; padding: 9px 14px;
    border: 2px solid var(--brand-blue); border-radius: 999px; background: transparent;
    color: var(--brand-blue); font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; display: block; }
@media (max-width: 1100px) {
    .site-header { flex-wrap: wrap; padding: 12px 16px; }
    .nav-toggle { display: inline-flex; }
    .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0 4px; }
    .site-header.nav-js .site-nav { display: none; }
    .site-header.nav-js.nav-open .site-nav { display: flex; }
    .site-nav .btn { width: 100%; text-align: left; }
    .site-nav .btn-outline { text-align: center; }
    .site-nav .theme-toggle { align-self: flex-start; }
    .nav-user { max-width: none; padding: 4px 6px; }
    .logout-form { display: block; }
    .logout-form .btn { text-align: center; }
    .dash-switch { display: flex; flex-direction: column; border-radius: 16px; }
}

/* tabuľky klientskej časti na úzkych obrazovkách (#191): posúvajú sa vo vnútri, stránka nie */
@media (max-width: 760px) {
    .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* nahratie dokladu na overenie firmy (#185) */
.verify-form { margin-top: 10px; max-width: 520px; }
.verify-form input[type=file] { padding: 8px; border: 1px dashed var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }

/* ---- tabuľky ako karty na mobile (#193): popisky z hlavičky dopĺňa assets/js/tabulky.js ---- */
@media (max-width: 760px) {
    .tbl.tbl-cards { display: block; overflow: visible; margin-top: 8px; }
    .tbl-cards thead { display: none; }
    .tbl-cards tbody { display: block; }
    .tbl-cards tr {
        display: block; margin: 0 0 12px; padding: 4px 14px;
        border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm, none);
    }
    .tbl-cards td {
        display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
        padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); text-align: right; overflow-wrap: anywhere;
    }
    .tbl-cards td:last-child { border-bottom: 0; }
    .tbl-cards td:empty { display: none; }
    .tbl-cards td::before {
        content: attr(data-label); flex: none; max-width: 42%; padding-top: 2px; text-align: left;
        color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    }
    .tbl-cards td[data-label=""]::before { display: none; }
    .tbl-cards td[data-label=""] { justify-content: flex-end; }
}

/* ---- päta (#193) ---- */
.footer-col strong { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-col:first-child strong { font-size: 1rem; letter-spacing: 0; text-transform: none; }
.footer-col p + p { margin-top: 4px; }
@media (max-width: 760px) {
    .site-footer { padding: 28px 20px 24px; }
    .footer-inner {
        grid-template-columns: 1fr 1fr; gap: 22px 20px; margin-bottom: 18px; padding-bottom: 22px;
        border-bottom: 1px solid var(--line);
    }
    .footer-col:first-child { grid-column: 1 / -1; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
    .footer-col:first-child p { line-height: 1.7; }
    .footer-col a { display: inline-block; padding: 5px 0; }
    .footer-note { font-size: .78rem; line-height: 1.55; padding: 0 4px; }
    .footer-copy { margin-top: 10px; font-size: .8rem; }
}
@media (max-width: 760px) {
    .tbl-cards .cell-v { min-width: 0; text-align: right; }
    .tbl-cards td.cell-long { flex-direction: column; gap: 4px; text-align: left; }
    .tbl-cards td.cell-long .cell-v { text-align: left; }
    .tbl-cards td.cell-long::before { max-width: none; }
    .tbl-cards td.cell-empty { display: none; }
}

/* ---- poverenia k firme (#202) ---- */
.firm-grants { flex: 1 1 100%; min-width: 0; margin-top: 6px; }
.grant-list { list-style: none; margin: 0 0 6px; padding: 0; }
.firm-list .grant-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 0; }
.grant-list li > span:first-child { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.grant-add { margin: 8px 0 10px; padding: 12px 14px; background: var(--bg-soft); border-radius: 8px; }
.grant-role { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.grant-role legend { font-weight: 600; padding: 0 0 6px; }
.grant-role .grant-issue { margin-left: 28px; }
.billing-form .grant-role input[type="radio"], .billing-form .grant-role input[type="checkbox"], .grant-add input[type="checkbox"] { width: auto; padding: 0; margin-top: 3px; }
.grant-rights { margin: 6px 0 10px; padding-left: 20px; }
.grant-rights li { margin: 2px 0; }
.grant-sub { margin: 14px 0 6px; font-size: .98rem; }
.grant-leave { margin-top: 12px; }

/* register odoslania dokladov (#210) */
.register-company { max-width: 520px; }
.register-card { margin-top: 14px; }
.register-remind { margin-top: 10px; }

/* faktúry firmy na portáli (#300) */
.doc-actions { white-space: nowrap; }
.doc-actions .btn { margin: 2px 4px 2px 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill-warn { background: rgba(217, 119, 6, 0.16); color: #b45309; }

@media (max-width: 760px) { .filter-row .btn { flex: 1 1 calc(50% - 8px); text-align: center; } }
/* na mobile je riadok tabuľky karta – tlačidlá dokladu sa musia zalomiť, inak preteká stránka do strán (#321) */
@media (max-width: 760px) {
    .tbl-cards td.doc-actions { white-space: normal; flex-wrap: wrap; justify-content: flex-end; }
}
/* tlačidlo v riadku, ktoré musí byť POST formulárom (#319) – nech je flex prvkom riadku ako ostatné tlačidlá */
.filter-row form { display: contents; }

/* odoslanie dokladu: Peppol alebo e-mail (#317) */
.send-doc { max-width: 720px; }
.send-recap { margin-top: 16px; }
.doc-err { color: #b42318; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc-err { color: #ff9a9a; } }
:root[data-theme="dark"] .doc-err { color: #ff9a9a; }
.billing-form.send-form { margin-top: 18px; max-width: 720px; }
.send-choice { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; }
.send-choice legend { padding: 0 6px; font-weight: 600; font-size: .95rem; }
.billing-form .send-opt { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-weight: 400; }
.send-opt + .send-opt { border-top: 1px solid var(--line); }
.billing-form .send-opt input { width: auto; flex: none; margin-top: 4px; padding: 0; }
.send-opt > span { display: flex; flex-direction: column; gap: 4px; }
.send-opt strong { font-weight: 600; }
.send-form .hint { font-weight: 400; }
.send-opt.is-off { cursor: default; opacity: 1; }
.send-opt.is-off strong { color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* vystavenie dokladu na portáli (#304): formulár v dvoch stĺpcoch, položky v tabuľke */
.invoice-form, .billing-grid { max-width: 920px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-items: start; }
.invoice-form > p, .billing-grid > p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.billing-grid > p:first-child, .billing-grid > p:last-child { grid-column: 1 / -1; }
.invoice-form > h2 {
    grid-column: 1 / -1; margin: 10px 0 0; padding-top: 14px;
    border-top: 1px solid var(--line); font-size: 1.05rem; color: var(--brand-blue);
}
.invoice-form > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.invoice-form > table, .invoice-form > .form-err, .invoice-form > p.row-full { grid-column: 1 / -1; }
.invoice-form select, .billing-form select {
    padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--bg); color: var(--ink); font: inherit;
}
.invoice-form .lookup-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.invoice-form .lookup-row > label { flex: 1 0 100%; }
.invoice-form .lookup-row > input { flex: 0 1 180px; }
.invoice-form #iv-lines { margin: 0; }
.invoice-form #iv-lines input, .invoice-form #iv-lines select { width: 100%; box-sizing: border-box; }
.invoice-form p.row-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
@media (max-width: 760px) {
    .invoice-form, .billing-grid { grid-template-columns: 1fr; }
    /* položka ako karta: popisok nad poľom, pole na celú šírku */
    .invoice-form #iv-lines td { flex-direction: column; align-items: stretch; gap: 4px; text-align: left; }
    .invoice-form #iv-lines td::before { max-width: none; }
}

/* porovnanie balíkov Aleny (#217) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cmp { min-width: 600px; margin-top: 0; }
.cmp th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 500; color: inherit; position: sticky; left: 0; background: var(--surface); }
.cmp .cmp-col { text-align: center; vertical-align: bottom; text-transform: none; letter-spacing: 0; }
.cmp td { text-align: center; }
.cmp-name { display: block; font-size: 1.05rem; font-weight: 700; color: inherit; }
.cmp-price { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); }
.cmp-soon { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.cmp-yes { color: #15803d; font-weight: 700; }
.cmp-no { color: var(--muted); }
.cmp-note { color: var(--muted); font-size: .8rem; font-style: normal; }
.cmp-foot { margin-top: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmp-yes { color: #4ade80; } }
:root[data-theme="dark"] .cmp-yes { color: #4ade80; }
@media (max-width: 640px) { .cmp th[scope="row"] { position: static; min-width: 170px; } .cmp { min-width: 520px; } }
/* vlastná tabuľka porovnania: bez globálnych pravidiel .tbl (karty na mobile) */
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { color: var(--muted); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
    .cmp { min-width: 400px; }
    .cmp th, .cmp td { padding: 8px 5px; }
    .cmp th[scope="row"] { min-width: 0; max-width: 150px; font-size: .82rem; }
    .cmp-name { font-size: .9rem; }
}
/* fronta formátov (#234) */
.fmt-claude { margin: 6px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-status.is-error { color: #b91c1c; }
:root[data-theme="dark"] .copy-status.is-error { color: #f87171; }

/* Môj účet na záložkách (#312): pás záložiek pod hlavičkou účtu */
.acc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .acc-tabs .btn { flex: 1 1 calc(50% - 8px); text-align: center; } }
/* Poštár z iného programu – API a webhook v časti Služby, dokumentácia /postar/api (#359) */
.api-box { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.api-box h4 { margin: 14px 0 6px; font-size: 1rem; }
.api-box h4:first-child { margin-top: 0; }
.api-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 12px; }
.api-facts dt { color: var(--muted); }
.api-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.api-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.webhook-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 8px 0; }
.webhook-form label { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.webhook-form input { width: 100%; }
.secret-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; letter-spacing: 0; overflow-wrap: anywhere; word-break: break-all; }
.code-sample { margin: 10px 0 16px; padding: 12px 14px; border-radius: var(--radius); background: #0f172a; color: #e2e8f0; font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; max-width: 100%; }
:root[data-theme="dark"] .code-sample { background: #020617; border: 1px solid var(--line); }
.api-doc { max-width: 920px; margin: 0 auto; padding: 32px 16px 48px; }
.api-doc h1 { margin-bottom: 8px; }
.api-doc h2 { margin: 36px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.api-doc h3 { margin: 22px 0 6px; }
.api-doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
.api-doc .api-toc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 8px; padding: 0; list-style: none; }
.api-doc table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .95rem; }
.api-doc th, .api-doc td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.api-doc .table-wrap { overflow-x: auto; }
.api-doc .method { display: inline-block; min-width: 46px; padding: 1px 6px; border-radius: 4px; font: 700 .75rem/1.6 ui-monospace, monospace; text-align: center; background: var(--bg-soft); border: 1px solid var(--line); }
.api-doc td:first-child code { white-space: nowrap; overflow-wrap: normal; }
.api-doc .api-cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 6px; }
.api-doc .api-steps { padding-left: 1.3em; }
.api-doc .api-steps li { margin: 6px 0; }
.api-doc pre.code-sample { min-width: 0; }
.api-doc h2[id], .api-doc h3 { scroll-margin-top: 16px; }

/* Upozornenia poštára v časti Služby (#358) */
.notify-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; margin: 12px 0 4px; }
.notify-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; }
.notify-form legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.notify-form label { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.notify-form label input { width: auto; margin: 0; }
.notify-form .hint { flex-basis: 100%; }

/* Zápis v sieti Peppol cez poverenie v PDS (#357) */
.pds-box h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pds-box .hint { margin: 0; }
.pds-steps { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }

/* ---- review dizajnu verejných stránok (#385) ---- */
/* <button class="btn"> nededí písmo – bez toho boli tlačidlá formulárov menšie ako odkazy-tlačidlá */
.btn { font: inherit; font-weight: 600; line-height: 1.35; }
/* hlavička: v lište len znak SEÚP (podnadpis loga bol pri 40 px nečitateľný), položky v jednom riadku */
.brand img { height: 40px; }
.site-nav .btn { white-space: nowrap; }
@media (min-width: 1101px) {
    .site-nav { gap: 6px; }
    .site-nav .btn { padding: 9px 14px; }
    .site-nav .btn-outline { padding: 8px 18px; }
}
/* úvod: menšie logo, tri karty produktov v jednom rade, akcie karty vždy dole a rovnako zarovnané */
.hero-logo { width: min(340px, 76%); }
.product-grid { max-width: 980px; }
.product-card { display: flex; flex-direction: column; }
.product-card > .product-tag { align-self: flex-start; }
.product-card p { margin-bottom: 18px; }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; }
.product-actions .btn-ghost { padding-left: 12px; padding-right: 12px; }
/* formuláre prihlásenia/registrácie: rovnaký rytmus nadpisu, úvodu a pomocného textu */
.auth-card h1 { line-height: 1.25; }
.auth-card > p { margin: 0 0 14px; }
.auth-card .auth-lead-sm { margin-bottom: 18px; }
.auth-card ol { margin: 18px 0 0; padding-left: 1.3em; color: var(--muted); font-size: .92rem; }
.auth-card ol li { margin: 2px 0; }
.auth-card input:not([type=radio]):not([type=checkbox]) { width: 100%; }
/* porovnanie balíkov na mobile: zmestí sa do šírky bez vodorovného posúvania */
@media (max-width: 440px) {
    .cmp { min-width: 0; table-layout: fixed; }
    .cmp th, .cmp td { padding: 7px 3px; }
    .cmp tr > :first-child { width: 44%; }
    .cmp th[scope="row"] { max-width: none; font-size: .78rem; text-align: left; overflow-wrap: break-word; hyphens: auto; }
    .cmp-name { font-size: .82rem; }
    .cmp td { font-size: .85rem; }
    .cmp-price, .cmp-note, .cmp-soon { font-size: .68rem; }
}

/* ---- #387: pätička verejných stránok vždy na spodku okna (krátke stránky nemajú pod ňou biely pás) ---- */
body:not(.adm) { min-height: 100vh; display: flex; flex-direction: column; }
body:not(.adm) > * { width: 100%; box-sizing: border-box; }
body:not(.adm) > main { flex: 1 0 auto; }

/* ---- #387: karty balíkov – rovnaké poradie (názov, limit, cena, poznámky), tlačidlo vždy dole ---- */
.pkg-companies { font-size: 1.35rem; }
.pkg-price { margin: 6px 0 0; }
.pkg > .btn { margin-top: auto; }
.pkg > .btn + .pkg-note { margin-top: 8px; text-align: center; }
.pkg-name { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pkg-companies { order: 2; margin: 4px 0 0; font-size: .98rem; font-weight: 600; color: var(--muted); }
.pkg-price { order: 1; margin: 10px 0 0; font-size: 1.7rem; line-height: 1.15; }
.pkg-price .per { font-size: .95rem; }
.pkg > .pkg-name { order: 0; }
.pkg > .pkg-note { order: 1; }
.pkg > .btn { order: 4; }
.pkg > .btn + .pkg-note { order: 5; }
.pkg > .pkg-companies { margin: 10px 0 18px; padding-top: 10px; border-top: 1px solid var(--line); }
/* #407: v karte poštára je limit odoslaných dokladov hneď pod názvom, nie až za poznámkami */
.pkg > .pkg-sent { order: 0; margin: 6px 0 0; padding: 0; border-top: 0; font-size: 1.05rem; color: var(--ink); }
/* #387: porovnanie balíkov – názov modulu vľavo, stĺpce balíkov rovnako široké */
.cmp th[scope="row"] { text-align: left; padding-left: 18px; }
.cmp th[scope="row"] { min-width: 200px; }
@media (min-width: 760px) { .cmp .cmp-col, .cmp td { width: 120px; } }

/* ---- #405: balíky online fakturácie – každý vo vlastnom riadku (názov a limit, cena, tlačidlo) ---- */
.pkg-rows { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.pkg-r {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 24px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 20px; box-shadow: var(--shadow);
}
.pkg-r-main { min-width: 0; }
.pkg-r-name { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pkg-r-limit { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
.pkg-r-price { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: var(--brand-green-dark); white-space: nowrap; }
.pkg-r-price .per { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--muted); white-space: normal; }
.pkg-r > .btn { white-space: nowrap; }
/* poznámka o DPH pod zoznamom balíkov – ceny v cenníku sú vždy bez DPH */
.pkg-vat { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 620px) {
    .pkg-r { grid-template-columns: minmax(0, 1fr); }
    .pkg-r-price { white-space: normal; }
    .pkg-r > .btn { justify-self: stretch; text-align: center; }
}

/* #442: údaje firmy z registra sú zamknuté (readonly) – vizuálne odlíšené, prepínač „Upraviť ručne“ */
body input.is-locked[readonly] { background: var(--bg-soft); color: var(--ink); border-style: dashed; cursor: default; }
.reg-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.reg-lock[hidden] { display: none; }

/* Pomoc a návody (#564) */
.help .pkg-list { margin-bottom: 8px; }
.help-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; box-shadow: var(--shadow); }
.help-text { margin: 0; font-size: .92rem; color: var(--muted); }
.help-title { margin: 0; font-size: 1.05rem; color: var(--ink); }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 10px; }
.help-link { white-space: nowrap; font-weight: 600; }
.help-line { margin: 0 0 12px; color: var(--muted); }
.help-bar { max-width: 1120px; margin: 12px auto 8px; padding: 0 16px; line-height: 1.4; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.help-bar .help-link { margin-left: auto; }
.adm-main .help-bar { max-width: none; margin: 0 0 12px; padding: 0; }

/* Video návodu (#568) */
.help-back { margin: 0 0 8px; font-size: .92rem; }
.help-video { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b1b2b; margin: 8px 0 6px; }
.help-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.help-video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #124a7c, #0b1b2b); }
.help-video-play:hover .help-video-icon, .help-video-play:focus-visible .help-video-icon { transform: scale(1.08); }
.help-video-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); position: relative; transition: transform .15s; }
.help-video-icon::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #124a7c; }
.help-video-label { font-weight: 600; font-size: 1.05rem; }
.help-video-note { max-width: 960px; margin: 0 0 12px; font-size: .85rem; color: var(--muted); }
