/* ============================================================
   Quantacqua – design system (tokeny + komponenty + layout)
   Jediný stylopis celé aplikace.
   ============================================================ */

/* ---------- 1. TOKENY ---------- */
:root {
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --c-primary: #1E90E6;
    --c-primary-hover: #1A80CF;
    --c-primary-soft: #E6F2FC;
    --c-cta: #2563EB;
    --c-cta-hover: #1D4ED8;
    --c-disabled: #93C5FD;
    --c-link: #2563EB;

    --c-topbar: #222B3D;
    --c-bg: #F8FAFC;
    --c-sidebar-top: #E9EEF6;
    --c-sidebar-bottom: #DCE5F1;
    --c-card: #FFFFFF;
    --c-border: #E5E7EB;
    --c-border-strong: #D1D5DB;
    --c-panel: #F8FAFC;
    --c-panel-2: #F3F4F6;

    --c-text: #111827;
    --c-text-2: #6B7280;
    --c-muted: #9CA3AF;

    --c-danger: #B91C1C;
    --c-danger-bg: #FEF2F2;
    --c-danger-border: #FCA5A5;
    --c-success: #16A34A;
    --c-success-text: #15803D;
    --c-error: #DC2626;
    --c-warning: #B45309;
    --c-warning-bg: #FFFBEB;

    --c-water-top: #9FCDF3;
    --c-water-bottom: #5FAEEB;
    --c-water-low-top: #FBC4C4;
    --c-water-low-bottom: #F48C8C;

    --r-card: 10px;
    --r-panel: 8px;
    --r-control: 6px;
    --r-pop: 12px;

    --sh-card: 0 1px 3px rgba(0, 0, 0, .08);
    --sh-pop: 0 10px 30px rgba(17, 24, 39, .14), 0 2px 6px rgba(17, 24, 39, .06);
    --sh-active: 0 0 12px rgba(30, 144, 230, .35);
    --sh-nav: 0 4px 10px rgba(30, 144, 230, .3);

    --t: 180ms ease;
    --sidebar-w: 208px;
    --topbar-h: 64px;
}

/* ---------- 2. ZÁKLAD ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.muted { color: var(--c-text-2); }
.text-success { color: var(--c-success-text); }
.text-error { color: var(--c-error); }

.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 40px; height: 40px; }

/* ---------- 3. LAYOUT APLIKACE ---------- */
.app { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--c-sidebar-top), var(--c-sidebar-bottom));
    border-right: 1px solid #D5DEEA;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform var(--t);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--topbar-h);
    padding: 0 16px;
    color: var(--c-text);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }

.side-nav { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    margin: 0 8px;
    padding: 0 12px;
    border-radius: var(--r-control);
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--t), color var(--t), box-shadow var(--t);
}
.nav-item:hover { background: rgba(255, 255, 255, .5); text-decoration: none; }
.nav-item[aria-current="page"] {
    background: var(--c-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--sh-nav);
}
.nav-sep { height: 1px; background: rgba(34, 43, 61, .1); margin: 4px 16px; }

.main-col { margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--topbar-h);
    background: var(--c-topbar);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}
.topbar-title { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar .icon-btn { color: #fff; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.hamburger { display: none; }

.user-box { position: relative; display: flex; align-items: center; gap: 12px; }
.user-name { font-weight: 600; font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #D1D5DB;
    color: #1F2937;
    font-weight: 600;
    font-size: 14px;
    display: grid;
    place-items: center;
    transition: box-shadow var(--t);
}
.avatar:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.user-pop { position: absolute; top: calc(100% + 10px); right: 0; width: 260px; }
.user-pop-email { color: var(--c-text-2); font-size: 13px; word-break: break-all; margin: 2px 0 14px; }
.user-pop-name { font-weight: 600; }

.content { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.content-narrow { max-width: 900px; width: 100%; }

.scrim { display: none; }

@media (max-width: 899px) {
    .sidebar { transform: translateX(-100%); box-shadow: none; }
    .app.drawer-open .sidebar { transform: none; box-shadow: var(--sh-pop); }
    .app.drawer-open .scrim { display: block; position: fixed; inset: 0; background: rgba(17, 24, 39, .4); z-index: 45; }
    .main-col { margin-left: 0; }
    .hamburger { display: inline-grid; }
    .user-name { display: none; }
}

/* ---------- 4. KOMPONENTY ---------- */

/* tlačítka */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--r-control);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-cta); color: #fff; }
.btn-primary:hover { background: var(--c-cta-hover); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--c-disabled); cursor: not-allowed; }
.btn-secondary { background: #fff; border-color: var(--c-border-strong); color: var(--c-text); }
.btn-secondary:hover { background: var(--c-panel-2); }
.btn-secondary.is-active { border-color: var(--c-primary); background: var(--c-primary-soft); color: #0C5A96; }
.btn-slate { background: #64748B; color: #fff; }
.btn-slate:hover { background: #556378; }
.btn-danger-outline { background: #fff; border-color: var(--c-danger-border); color: var(--c-danger); }
.btn-danger-outline:hover { background: var(--c-danger-bg); border-color: var(--c-danger); }
.btn-gray { background: var(--c-panel-2); color: var(--c-muted); border-color: var(--c-border); cursor: not-allowed; }
.btn:disabled:not(.btn-primary) { opacity: .55; cursor: not-allowed; }
.btn-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--c-link); font-weight: 500; font-size: 14px;
    padding: 2px 0; border-radius: 4px;
}
.btn-link:hover { text-decoration: underline; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-control);
    color: var(--c-text-2);
    transition: background var(--t), color var(--t);
}
.icon-btn:hover { background: var(--c-panel-2); color: var(--c-text); }
.icon-btn.is-danger:hover { background: var(--c-danger-bg); color: var(--c-danger); }
.round-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--c-cta); color: #fff;
    display: inline-grid; place-items: center; flex: none;
    transition: background var(--t);
}
.round-btn:hover { background: var(--c-cta-hover); text-decoration: none; }

.spin .ic, .ic.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* formuláře */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 500; color: #374151; }
.field-hint { font-size: 12px; color: var(--c-text-2); }
.input, .select, .textarea {
    height: 40px;
    width: 100%;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-control);
    font-size: 14px;
    transition: border-color var(--t), box-shadow var(--t);
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--c-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: #B6BCC6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30, 144, 230, .18); }
.select {
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}
.input-w { width: 160px; }
.input-suffix { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text-2); }
.input-suffix .input { width: 100px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--c-cta); }
.check input.switch { width: 40px; height: 22px; }

/* plovoucí štítek (select / dropdown) */
.float-field { position: relative; width: 230px; flex: none; }
.float-field > label, .float-field > .float-label {
    position: absolute;
    top: 6px;
    left: 13px;
    font-size: 11px;
    line-height: 14px;
    color: var(--c-text-2);
    pointer-events: none;
    z-index: 1;
}
.float-field .select, .dd-trigger { height: 48px; font-size: 14px; padding-top: 16px; }
.float-field .select { background-position: right 12px center; }
.dd-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 10px 0 12px;
    background: #fff;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-control);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color var(--t);
}
.dd-trigger:hover { border-color: #B6BCC6; }
.dd-trigger .ic { width: 16px; height: 16px; color: var(--c-text-2); transition: transform var(--t); margin-top: -16px; }
.dd-trigger[aria-expanded="true"] .ic { transform: rotate(180deg); }

/* popover / dropdown menu */
.popover {
    background: #fff;
    border-radius: var(--r-pop);
    box-shadow: var(--sh-pop);
    border: 1px solid var(--c-border);
    padding: 16px;
    color: var(--c-text);
    z-index: 60;
    animation: pop-in 150ms ease;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
.menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 100%; width: 240px; padding: 8px; border-radius: var(--r-panel); }
.menu-title { font-weight: 600; font-size: 13px; padding: 6px 8px 8px; }
.menu-item {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; height: 36px; padding: 0 8px;
    border-radius: var(--r-control); font-size: 14px; text-align: left;
}
.menu-item:hover { background: var(--c-panel-2); }
.menu-item .ic { width: 16px; height: 16px; color: var(--c-primary); visibility: hidden; }
.menu-item[aria-checked="true"] { font-weight: 500; }
.menu-item[aria-checked="true"] .ic { visibility: visible; }
.menu-note { font-size: 12px; color: var(--c-text-2); padding: 8px 8px 4px; border-top: 1px solid var(--c-border); margin-top: 6px; }

/* přepínač */
.switch {
    appearance: none;
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #CBD5E1;
    cursor: pointer;
    flex: none;
    transition: background var(--t);
}
.switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: transform var(--t);
}
.switch:checked { background: var(--c-cta); }
.switch:checked::after { transform: translateX(18px); }

/* záložky (segmentové) */
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--c-panel-2); border-radius: var(--r-panel); max-width: 100%; overflow-x: auto; }
.segmented > button {
    height: 32px; padding: 0 16px; border-radius: var(--r-control);
    color: var(--c-text-2); font-weight: 500; white-space: nowrap;
    transition: background var(--t), color var(--t), box-shadow var(--t);
}
.segmented > button:hover { color: var(--c-text); }
.segmented > button[aria-selected="true"] { background: #fff; color: var(--c-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* karta a panel */
.card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-panel);
    box-shadow: var(--sh-card);
    min-width: 0;
}
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card-title { font-size: 20px; font-weight: 600; }
.card-sub { color: var(--c-text-2); margin-top: 4px; }
.card-title-sm { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-end { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.panel { background: var(--c-panel); border: 1px solid #EEF1F5; border-radius: var(--r-panel); padding: 24px; }
.panel-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.panel-note { color: var(--c-text-2); font-size: 13px; margin-bottom: 16px; }
.panel > .panel-note:last-child { margin-bottom: 0; }

/* klíč–hodnota řádky */
.kv { display: flex; flex-direction: column; }
.kv-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 35px; padding: 6px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row dt, .kv-label { color: #374151; }
.kv-row dd, .kv-value { margin: 0; text-align: right; font-weight: 500; }
.kv-lg .kv-row { min-height: 56px; font-size: 14px; padding: 10px 0; }
.kv-lg .kv-label { font-weight: 500; color: var(--c-text); }
.kv-lg .kv-value { flex: 1; font-weight: 400; color: #374151; overflow-wrap: anywhere; }
.kv-action { flex: none; min-width: 56px; text-align: right; }
.kv-sub { display: block; font-size: 12px; color: var(--c-text-2); font-weight: 400; }

/* stat box */
.stat-box {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-control);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-num { font-size: 24px; font-weight: 400; line-height: 1; }
.stat-label { font-size: 12px; color: var(--c-text-2); line-height: 1.3; }
.stat-val { font-size: 14px; font-weight: 500; line-height: 1.2; }

/* odznaky */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    height: 22px; padding: 0 8px; border-radius: 999px;
    font-size: 12px; font-weight: 500; white-space: nowrap;
    background: var(--c-panel-2); color: #374151;
}
.badge-blue { background: var(--c-primary-soft); color: #0C5A96; }
.badge-green { background: #DCFCE7; color: #166534; }
.badge-red { background: var(--c-danger-bg); color: var(--c-danger); }
.badge-amber { background: #FEF3C7; color: #92400E; }

/* tečka stavu */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); flex: none; }
.dot.is-stale, .dot.is-err { background: var(--c-error); }
.dot.is-wait { background: #F59E0B; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* modal */
.modal {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(17, 24, 39, .45);
    display: grid; place-items: center;
    padding: 16px;
    animation: fade-in 150ms ease;
}
@keyframes fade-in { from { opacity: 0; } }
.modal-card {
    background: #fff;
    border-radius: var(--r-panel);
    box-shadow: var(--sh-pop);
    padding: 24px;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    animation: pop-in 180ms ease;
}
.modal-card.is-wide { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-text { color: var(--c-text-2); margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

/* prázdný stav */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 6px;
    padding: 40px 16px;
    color: var(--c-text-2);
}
.empty-state .ic-lg { color: var(--c-muted); margin-bottom: 6px; }
.empty-title { font-size: 18px; color: var(--c-text); font-weight: 500; }
.empty-text { font-size: 14px; max-width: 380px; }
.empty-state .btn { margin-top: 12px; }

/* danger zone */
.danger-zone { background: var(--c-danger-bg); border: 1px solid var(--c-danger-border); border-radius: var(--r-panel); padding: 24px; }
.danger-head { display: flex; align-items: center; gap: 8px; color: var(--c-danger); font-weight: 600; font-size: 15px; }
.danger-note { color: #7F1D1D; font-size: 13px; margin: 4px 0 8px; }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; margin-top: 10px; border-top: 1px solid rgba(185, 28, 28, .15); flex-wrap: wrap; }
.danger-title { font-weight: 600; color: var(--c-danger); }
.danger-desc { font-size: 13px; color: #7F1D1D; }

/* tooltip (tečkované podtržení) */
.tip { position: relative; border-bottom: 1px dotted currentColor; cursor: help; }
.tip::after {
    content: attr(data-tip);
    position: absolute; left: 50%; bottom: calc(100% + 8px);
    transform: translate(-50%, 4px);
    width: max-content; max-width: 240px;
    padding: 6px 10px; border-radius: var(--r-control);
    background: var(--c-topbar); color: #fff;
    font-size: 12px; font-weight: 400; line-height: 1.4; text-align: center;
    opacity: 0; pointer-events: none;
    transition: opacity var(--t), transform var(--t);
    z-index: 70;
}
.tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* toast */
.toast-host { position: fixed; bottom: 16px; right: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast {
    display: flex; align-items: center; gap: 10px;
    background: #fff; color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: var(--r-panel); box-shadow: var(--sh-pop);
    padding: 10px 16px 10px 10px; font-size: 14px;
    animation: toast-in 200ms ease;
}
.toast .ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; color: var(--c-success-text); background: #DCFCE7; }
.toast.is-error .ic { color: var(--c-error); background: var(--c-danger-bg); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* skeleton */
.skel { background: linear-gradient(90deg, #EEF1F5 25%, #F6F8FA 50%, #EEF1F5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-control); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-line { height: 12px; margin: 8px 0; }

/* stavová hláška */
.status-line { font-size: 13px; min-height: 0; margin-top: 8px; }
.status-line:empty { display: none; }
.form-error { color: var(--c-error); font-size: 13px; margin-top: 10px; }
.form-error:empty { display: none; }

/* progress */
.progress { height: 8px; border-radius: 999px; background: var(--c-panel-2); overflow: hidden; margin: 16px 0 8px; }
.progress-fill { height: 100%; width: 0; background: var(--c-cta); border-radius: inherit; transition: width .4s ease; }
.progress-fill.is-error { background: var(--c-error); }
.progress-fill.is-indeterminate { width: 40%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.progress-label { font-size: 13px; color: var(--c-text-2); }

/* tabulka */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--c-text-2); text-transform: uppercase; letter-spacing: .03em; padding: 10px 16px; background: var(--c-panel); border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFBFC; }
.table .select { height: 34px; min-width: 150px; }
.thumb-sm { width: 44px; height: 34px; object-fit: cover; border-radius: var(--r-control); background: var(--c-panel-2); }

/* akordeon */
.accordion { border: 1px solid var(--c-border); border-radius: var(--r-panel); overflow: hidden; background: #fff; }
.accordion details + details { border-top: 1px solid var(--c-border); }
.accordion summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; font-weight: 500;
    transition: background var(--t);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--c-panel); }
.accordion summary .ic { width: 16px; height: 16px; color: var(--c-text-2); transition: transform var(--t); }
.accordion details[open] > summary .ic { transform: rotate(180deg); }
.accordion-body { padding: 0 16px 16px; color: #374151; font-size: 14px; }
.accordion-body ul, .accordion-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- 5. DASHBOARD ---------- */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.summary-cell { padding: 14px 16px; }
.summary-label { font-size: 12px; color: var(--c-text-2); font-weight: 500; }
.summary-value { font-size: 28px; font-weight: 300; line-height: 1.2; margin-top: 2px; }
.summary-value.is-low { color: var(--c-error); }

.dash { display: grid; grid-template-columns: 355px minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-left, .dash-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.search { position: relative; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--c-text-2); }
.search .input { padding-left: 36px; }

.sensor-card {
    background: #fff;
    border: 2px solid transparent;
    outline: 1px solid var(--c-border);
    outline-offset: -2px;
    border-radius: var(--r-card);
    box-shadow: var(--sh-card);
    padding: 12px;
    cursor: pointer;
    transition: border-color var(--t), box-shadow var(--t), outline-color var(--t);
}
.sensor-card:hover { outline-color: #C9D3DF; }
.sensor-card.is-active { border-color: var(--c-primary); outline-color: transparent; box-shadow: var(--sh-active); }
.sc-head { display: flex; align-items: center; gap: 2px; }
.sc-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left; border-radius: var(--r-control); padding: 2px 0; }
.sc-grip {
    display: inline-grid; place-items: center; flex: none;
    width: 22px; height: 36px; margin-left: -6px;
    border-radius: var(--r-control);
    color: var(--c-muted);
    cursor: grab;
    touch-action: none;
    transition: color var(--t), background var(--t);
}
.sc-grip:hover { color: var(--c-text-2); background: var(--c-panel-2); }
.sc-grip .ic { width: 18px; height: 18px; }
#sensor-list.is-filtered .sc-grip { visibility: hidden; width: 6px; }
.sc-star { color: var(--c-muted); }
.sc-star:hover { color: #D97706; background: #FFFBEB; }
.sc-star.is-on { color: #F59E0B; }
.sc-star.is-on .ic { fill: currentColor; }
.sc-chev-btn { flex: none; }
.sensor-card.is-dragging {
    position: fixed;
    z-index: 70;
    margin: 0;
    pointer-events: none;
    transform: rotate(-1deg) scale(1.02);
    box-shadow: 0 18px 40px rgba(17, 24, 39, .22);
    transition: none;
}
.sc-placeholder { border: 2px dashed #B9D7F2; border-radius: var(--r-card); background: rgba(30, 144, 230, .05); flex: none; }
body.is-sorting, body.is-sorting * { cursor: grabbing !important; user-select: none; }
.list-tools { display: flex; gap: 8px; }
.list-tools .search { flex: 1; min-width: 0; }
.fav-filter .ic { color: var(--c-muted); }
.fav-filter[aria-pressed="true"] { border-color: #F59E0B; background: #FFFBEB; color: #92400E; }
.fav-filter[aria-pressed="true"] .ic { color: #F59E0B; fill: currentColor; }
.drop-status { position: relative; width: 26px; height: 26px; flex: none; color: #4D8A3A; }
.drop-status svg { width: 26px; height: 26px; }
.drop-status.is-alert { color: var(--c-error); }
.drop-status.is-wait { color: var(--c-muted); }
.sc-name { flex: 1; min-width: 0; font-size: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-chev { color: var(--c-text-2); transition: transform var(--t); }
.sensor-card.is-open .sc-chev { transform: rotate(180deg); }

.sc-body { display: flex; gap: 12px; margin-top: 12px; }
.gauge {
    position: relative;
    width: 128px;
    height: 175px;
    flex: none;
    border-radius: 10px;
    background: #EEF2F7;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}
.gauge-fill {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, var(--c-water-bottom), var(--c-water-top));
    transition: height .6s ease;
}
.gauge-fill::before {
    content: '';
    position: absolute; left: 0; right: 0; top: -7px; height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q8 0 16 4 T32 4 T48 4 T64 4 V8 H0Z' fill='%235FAEEB'/%3E%3C/svg%3E") repeat-x;
    background-size: 64px 8px;
}
.gauge.is-low .gauge-fill { background: linear-gradient(180deg, var(--c-water-low-bottom), var(--c-water-low-top)); }
.gauge.is-low .gauge-fill::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q8 0 16 4 T32 4 T48 4 T64 4 V8 H0Z' fill='%23F48C8C'/%3E%3C/svg%3E"); }
.gauge.is-empty .gauge-fill::before { display: none; }
.gauge-reserve { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(17, 24, 39, .35); }
.gauge-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #12304A; }
.gauge-num { font-size: 32px; font-weight: 300; line-height: 1.05; }
.gauge-unit { font-size: 12px; color: #374151; margin-bottom: 10px; }
.gauge-pct { font-size: 32px; font-weight: 300; line-height: 1.05; }
.gauge-wait { font-size: 12px; color: var(--c-text-2); padding: 0 10px; }

.sc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-id { font-size: 14px; overflow-wrap: anywhere; }
.sc-label { font-size: 12px; font-weight: 600; }
.sc-time { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--c-success-text); }
.sc-time .dot { transform: translateY(-1px); }
.sc-time.is-stale { color: var(--c-error); }
.sc-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #374151; flex-wrap: wrap; }
.sc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sc-meta .ic { width: 18px; height: 18px; }
.ic-wifi { color: #38BDF8; }
.ic-wifi.is-weak { color: var(--c-warning); }
.sc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-stats { display: flex; gap: 8px; margin-top: 12px; }
.sc-stats .ic { color: var(--c-success); }
.sc-stats .ic.is-down { color: var(--c-error); }

.sc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms ease; }
.sensor-card.is-open .sc-more { grid-template-rows: 1fr; }
.sc-more-inner { overflow: hidden; }
.sc-section { margin-top: 16px; }
.sc-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.sc-actions { display: flex; gap: 8px; margin-top: 14px; }
.sc-actions .btn { flex: 1; }
.val-ok { color: var(--c-success-text) !important; }
.val-bad { color: var(--c-error) !important; }

.chart-card { position: relative; padding: 16px 16px 20px; display: flex; flex-direction: column; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-controls { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.chart-box { position: relative; flex: none; height: 300px; }
.chart-box .empty-state { position: absolute; inset: 0; }
.chart-box > .skel { z-index: 1; }
.chart-hint { font-size: 13px; color: var(--c-text-2); margin-top: 10px; text-align: center; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.chart-foot .stat-box { flex: none; padding: 8px 14px; }
.chart-foot .stat-box small { font-size: 12px; font-weight: 500; color: var(--c-text-2); }
.segmented.seg-sm { padding: 2px; margin-left: 8px; vertical-align: middle; }
.segmented.seg-sm > button { height: 24px; padding: 0 10px; font-size: 12px; }
#level-title { display: flex; align-items: center; gap: 4px; }
.chart-foot .stat-box .ic { color: var(--c-success); }
.chart-foot .stat-box .ic.is-down { color: var(--c-error); }
.resize-handle {
    position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
    width: 48px; height: 3px; border-radius: 3px;
    background: var(--c-border-strong);
    cursor: ns-resize;
    touch-action: none;
}
.resize-handle::before { content: ''; position: absolute; inset: -8px -6px; }
.resize-handle:hover, .resize-handle.is-dragging { background: var(--c-text-2); }

.history-toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.history-toolbar .input { width: 170px; }
.day-group { border: 1px solid var(--c-border); border-radius: var(--r-panel); background: #fff; overflow: hidden; }
.day-group + .day-group { margin-top: 8px; }
.day-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; transition: background var(--t); }
.day-group > summary::-webkit-details-marker { display: none; }
.day-group > summary:hover { background: var(--c-panel); }
.day-name { font-weight: 600; text-transform: capitalize; }
.day-date { color: var(--c-text-2); }
.day-count { margin-left: auto; }
.day-group > summary .ic { width: 16px; height: 16px; color: var(--c-text-2); transition: transform var(--t); }
.day-group[open] > summary .ic { transform: rotate(180deg); }
.reading-list { list-style: none; margin: 0; padding: 0 14px 10px; }
.reading > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-top: 1px solid var(--c-border); font-size: 13px; }
.reading > summary::-webkit-details-marker { display: none; }
.reading > summary:hover { color: var(--c-link); }
.reading-time { font-family: var(--font-mono); }
.reading-l { margin-left: auto; font-weight: 500; }
.reading .kv { padding: 0 4px 8px; }
.delta-up { color: var(--c-success-text); }
.delta-down { color: var(--c-error); }

@media (max-width: 1100px) {
    .dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .summary { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .summary-cell { padding: 10px 12px; }
    .summary-value { font-size: 22px; }
    .chart-controls, .float-field { width: 100%; }
    .chart-controls .float-field { flex: 1; min-width: 140px; }
}
@media (max-width: 400px) {
    .sc-body { flex-direction: column; }
    .gauge { width: 100%; height: 150px; }
}

/* ---------- 6. NASTAVENÍ ---------- */
.settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.settings-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.device-id { font-weight: 600; margin-top: 6px; font-size: 13px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { width: 160px; }
.form-row .field-wide { width: 220px; }
.tank-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.tank-diagram { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-panel); padding: 12px; }
.tank-diagram svg { width: 100%; height: auto; display: block; }
.tank-diagram figcaption { font-size: 12px; color: var(--c-text-2); margin-top: 8px; }
.volume-line { margin-top: 20px; font-size: 14px; }
.volume-line strong { font-size: 16px; }
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.time-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.time-chip { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 4px 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--c-border-strong); font-family: var(--font-mono); font-size: 13px; }
.time-chip .icon-btn { width: 26px; height: 26px; border-radius: 50%; }
.time-chip .ic { width: 14px; height: 14px; }
.fw-list { display: grid; gap: 8px; }
.fw-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 12px 14px; text-align: left;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-control);
    transition: border-color var(--t), box-shadow var(--t);
}
.fw-item:hover { border-color: #B6BCC6; }
.fw-item[aria-pressed="true"] { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30, 144, 230, .15); }
.fw-name { font-weight: 500; }
.fw-detail { margin-top: 12px; padding: 14px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-control); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.alert-row:last-child { border-bottom: 0; padding-bottom: 0; }
.alert-row:first-of-type { padding-top: 0; }
.alert-title { font-weight: 500; }
.alert-desc { font-size: 13px; color: var(--c-text-2); margin-top: 2px; }
.alert-side { display: flex; align-items: center; gap: 16px; flex: none; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type="range"] { flex: 1; max-width: 360px; accent-color: var(--c-cta); }
.range-value { font-size: 20px; font-weight: 400; min-width: 56px; }
.recipient { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-control); }
.recipient .ic { color: var(--c-text-2); }
.calib-step { display: none; }
.calib-step.is-active { display: block; }
.calib-illust { display: grid; place-items: center; padding: 16px; margin: 12px 0; background: var(--c-panel); border-radius: var(--r-panel); color: var(--c-primary); }
.calib-illust svg { width: 160px; height: 120px; }
.steps-dots { display: flex; gap: 6px; margin-bottom: 10px; }
.steps-dots span { width: 24px; height: 4px; border-radius: 4px; background: var(--c-border); }
.steps-dots span.is-on { background: var(--c-cta); }

@media (max-width: 900px) {
    .tank-layout { grid-template-columns: 1fr; }
    .tank-diagram { max-width: 320px; }
}
@media (max-width: 600px) {
    .card-pad { padding: 16px; }
    .panel, .danger-zone { padding: 16px; }
    .form-row .field, .form-row .field-wide { width: calc(50% - 8px); }
    .alert-row { flex-direction: column; align-items: flex-start; }
    .settings-head-actions { width: 100%; }
    .settings-head-actions .float-field { flex: 1; width: auto; }
}

/* ---------- 7. ÚČET / PODPORA / OBECNÉ STRÁNKY ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inline-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; width: 100%; padding-bottom: 6px; }
.inline-edit .input { max-width: 280px; }
.pw-form { display: grid; gap: 12px; max-width: 360px; padding-top: 12px; }
.copy-row { display: inline-flex; align-items: center; gap: 4px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; flex: none; }
.contact-label { font-size: 12px; color: var(--c-text-2); font-weight: 500; }
.contact-value { font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 8. OBCHOD ---------- */
.hero { padding: 28px 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.hero h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.hero p { color: var(--c-text-2); margin-top: 6px; max-width: 520px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; transition: box-shadow var(--t), transform var(--t); }
.product-card:hover { box-shadow: 0 6px 18px rgba(17, 24, 39, .1); }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-panel-2); }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 600; font-size: 15px; }
.product-desc { color: var(--c-text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 20px; font-weight: 500; margin-top: auto; padding-top: 8px; }
.product-card .btn { margin: 0 16px 16px; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 85;
    width: 380px; max-width: 100%;
    background: #fff; box-shadow: var(--sh-pop);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform var(--t);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--c-border); display: grid; gap: 12px; }
.overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, .4); z-index: 84; opacity: 0; pointer-events: none; transition: opacity var(--t); }
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-control); background: var(--c-panel-2); }
.cart-item-name { font-weight: 500; }
.cart-item-price { font-size: 13px; color: var(--c-text-2); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 1px solid var(--c-border-strong); border-radius: var(--r-control); }
.qty button { width: 28px; height: 28px; border-radius: var(--r-control); }
.qty button:hover { background: var(--c-panel-2); }
.qty span { min-width: 20px; text-align: center; font-size: 13px; }
.total-row { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; }
.carrier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-border-strong); border-radius: var(--r-control); cursor: pointer; transition: border-color var(--t), box-shadow var(--t); }
.carrier + .carrier { margin-top: 8px; }
.carrier input { accent-color: var(--c-cta); }
.carrier.is-selected { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30, 144, 230, .15); }
.carrier-text { flex: 1; display: flex; flex-direction: column; }
.carrier-name { font-weight: 500; }
.carrier-desc { font-size: 13px; color: var(--c-text-2); }
.carrier-price { font-weight: 500; }
.pickup { margin: 16px 0 10px; padding: 12px 14px; background: var(--c-panel); border: 1px dashed var(--c-border-strong); border-radius: var(--r-control); font-size: 14px; }
.pickup.is-set { border-style: solid; border-color: var(--c-primary); background: var(--c-primary-soft); }
.pickup-name { font-weight: 600; }
.pickup-addr { color: var(--c-text-2); font-size: 13px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-detail .main-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-panel); background: var(--c-panel-2); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs img { width: 56px; height: 44px; object-fit: cover; border-radius: var(--r-control); cursor: pointer; border: 2px solid transparent; }
.thumbs img.active { border-color: var(--c-primary); }
.steps-pills { display: flex; gap: 8px; margin-bottom: 12px; }
@media (max-width: 600px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- 9. PŘIDÁNÍ ČIDLA ---------- */
.wizard { max-width: 720px; width: 100%; }
.wizard-steps { display: flex; gap: 8px; margin: 16px 0 24px; }
.wizard-step { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--c-text-2); font-weight: 500; }
.wizard-step::before { content: ''; height: 4px; border-radius: 4px; background: var(--c-border); transition: background var(--t); }
.wizard-step.is-done::before, .wizard-step.is-current::before { background: var(--c-cta); }
.wizard-step.is-current { color: var(--c-text); }
.step { display: none; }
.step.active { display: flex; flex-direction: column; gap: 16px; }
.code-display { font-family: var(--font-mono); font-size: 40px; letter-spacing: .3em; font-weight: 500; text-align: center; padding: 20px; background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--r-panel); }
.guide-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: #374151; }
.wait-row { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.shape-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 8px; border: 1px solid var(--c-border-strong); border-radius: var(--r-panel);
    background: #fff; color: var(--c-primary); font-size: 13px;
    transition: border-color var(--t), box-shadow var(--t);
}
.shape-card span { color: var(--c-text); font-weight: 500; }
.shape-card svg { width: 56px; height: 48px; }
.shape-card:hover { border-color: #93C5FD; }
.shape-card[aria-pressed="true"] { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30, 144, 230, .15); }
.success-note { display: flex; align-items: center; gap: 8px; color: var(--c-success-text); font-weight: 500; }

/* ---------- 10. PŘIHLÁŠENÍ ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--c-sidebar-top), var(--c-bg) 60%); }
.auth-top { height: var(--topbar-h); background: var(--c-topbar); display: flex; align-items: center; padding: 0 16px; }
.auth-top .brand { color: #fff; padding: 0; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card-title { margin-bottom: 4px; }
.auth-form { display: grid; gap: 14px; margin-top: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--c-text-2); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.auth-links { display: grid; gap: 6px; margin-top: 18px; font-size: 14px; color: var(--c-text-2); text-align: center; }
.google-slot { display: flex; justify-content: center; min-height: 44px; }
.site-foot { padding: 16px; text-align: center; font-size: 13px; color: var(--c-text-2); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
