/* ==========================================================================
   RegistrarHub — enterprise UI
   Gęste tabele, dużo danych, zero ozdobników. Ciemny sidebar, jasny obszar
   roboczy — układ znany z systemów bankowych i ERP.
   ========================================================================== */

:root {
    --nav:        #16243a;
    --nav-hover:  #1f3252;
    --nav-active: #2563eb;
    --brand:      #1e3a5f;
    --brand-600:  #2563eb;
    --brand-700:  #1d4ed8;

    /* Nazwy używane w arkuszu stron publicznych. Bez nich reguły z var(--primary)
       i var(--text-1) były NIEPRAWIDŁOWE, a przeglądarka odrzucała całą
       deklarację — przez co napis wyróżniony gradientem („w jednym miejscu”
       w nagłówku strony głównej) miał kolor przezroczysty i po prostu znikał,
       a burger i menu języka traciły kolor tekstu. */
    --primary:    var(--brand-600);
    --text-1:     var(--text);

    --bg:         #f1f4f8;
    --surface:    #ffffff;
    --surface-2:  #f8fafc;
    --border:     #dde3ec;
    --border-2:   #eaeef4;

    --text:       #16202e;
    --text-2:     #55637a;
    --text-3:     #8b97a8;

    --ok:         #047857;
    --ok-bg:      #ecfdf5;
    --warn:       #b45309;
    --warn-bg:    #fffbeb;
    --err:        #b91c1c;
    --err-bg:     #fef2f2;
    --info:       #1d4ed8;
    --info-bg:    #eff6ff;

    --radius:     6px;
    --radius-sm:  4px;
    --shadow:     0 1px 2px rgba(16, 32, 56, .06), 0 1px 3px rgba(16, 32, 56, .04);
    --shadow-lg:  0 4px 16px rgba(16, 32, 56, .10);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --sidebar-w: 244px;
    --topbar-h: 52px;
}

@media (prefers-color-scheme: dark) {
    :root.auto-dark {
        --bg: #0e1621; --surface: #151f2e; --surface-2: #1b2738;
        --border: #24334a; --border-2: #1e2b3e;
        --text: #e6ecf5; --text-2: #a3b1c6; --text-3: #6f8098;
    }
}

*, *::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(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

code, kbd, pre { font-family: var(--mono); font-size: 12.5px; }
pre {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 14px; overflow-x: auto;
}

/* ---------------------------------------------------------------- layout */
.app { display: flex; min-height: 100vh; }

/* ------------------------------------------------------------------ menu boczne
   Menu ma dwadzieścia kilka pozycji, więc najważniejsza jest hierarchia:
   nagłówek grupy ma być cichy, pozycja czytelna, a aktywna — natychmiast
   rozpoznawalna. Ikony rysowane obrysem, jedna rodzina, kolor dziedziczony
   po tekście, żeby stan najechania i aktywności działał sam z siebie. */
.sidebar {
    width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
    background: var(--nav); color: #b9c6d8;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    border-right: 1px solid rgba(255,255,255,.06);
}

/* Znak firmowy zostaje w miejscu, przewija się wyłącznie lista pozycji —
   przy tylu wpisach powrót na górę po logo byłby ciągłym przewijaniem. */
.sidebar__brand {
    height: var(--topbar-h); display: flex; align-items: center; gap: 10px;
    padding: 0 16px; font-weight: 620; font-size: 15px; color: #fff;
    text-decoration: none; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar__mark {
    width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 13px; color: #fff;
    background: linear-gradient(140deg, var(--brand-600), #4f8ef7);
    box-shadow: 0 2px 8px rgba(37,99,235,.45);
}
.sidebar__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar__scroll {
    flex: 1; overflow-y: auto; padding: 6px 0 14px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
}
.sidebar__scroll::-webkit-scrollbar { width: 6px; }
.sidebar__scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.16); border-radius: 3px;
}
.sidebar__scroll::-webkit-scrollbar-track { background: transparent; }

.sidebar__group { padding: 10px 0 2px; }
.sidebar__group + .sidebar__group { border-top: 1px solid rgba(255,255,255,.05); }
.sidebar__label {
    padding: 0 18px 7px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .09em; color: #64758c;
}

.sidebar a {
    position: relative;
    display: flex; align-items: center; gap: 11px;
    padding: 8px 18px; margin: 1px 8px; border-radius: 7px;
    color: #b9c6d8; font-size: 13.5px; text-decoration: none;
    transition: background .14s ease, color .14s ease;
}
.sidebar a .ico { flex-shrink: 0; opacity: .72; transition: opacity .14s ease; }
.sidebar__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar a:hover .ico { opacity: 1; }

/* Stan aktywny: wypełnienie w kolorze marki plus pasek przy krawędzi.
   Sam kolor tła bywa niewidoczny dla osób z zaburzeniami widzenia barw,
   więc dokładamy drugi, niezależny sygnał. */
.sidebar a.active {
    background: linear-gradient(90deg, rgba(37,99,235,.30), rgba(37,99,235,.12));
    color: #fff; font-weight: 550;
}
.sidebar a.active .ico { opacity: 1; color: #7fb0ff; }
.sidebar a.active::before {
    content: ''; position: absolute; left: -8px; top: 6px; bottom: 6px;
    width: 3px; border-radius: 0 3px 3px 0; background: #4f8ef7;
}
.sidebar a:focus-visible { outline: 2px solid #7fb0ff; outline-offset: -2px; }

.sidebar .badge-count {
    margin-left: auto; background: rgba(255,255,255,.16);
    padding: 1px 6px; border-radius: 10px; font-size: 11px; font-weight: 600;
}

.sidebar__foot {
    border-top: 1px solid rgba(255,255,255,.07); padding: 8px 0; flex-shrink: 0;
}

/* Na wąskim ekranie menu zwija się do samych ikon — treść jest ważniejsza
   niż etykiety, a panel i tak bywa otwierany na tablecie w terenie. */
@media (max-width: 1100px) {
    :root { --sidebar-w: 62px; }
    .sidebar__text, .sidebar__label, .sidebar__name { display: none; }
    .sidebar a { justify-content: center; padding: 10px 0; margin: 2px 8px; }
    .sidebar__brand { justify-content: center; padding: 0; }
    .sidebar a.active::before { left: -8px; }
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: var(--topbar-h); background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px; padding: 0 20px;
    position: sticky; top: 0; z-index: 30;
}
.topbar__search { flex: 1; max-width: 460px; position: relative; }
.topbar__search input {
    width: 100%; height: 32px; padding: 0 12px 0 32px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-2); font-size: 13px;
}
.topbar__search input:focus { outline: 2px solid var(--brand-600); outline-offset: -1px; background: #fff; }
.topbar__search::before {
    content: "⌕"; position: absolute; left: 11px; top: 50%;
    transform: translateY(-50%); color: var(--text-3); font-size: 15px;
}
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.wallet-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 20px; font-size: 12.5px;
}
.wallet-chip strong { font-variant-numeric: tabular-nums; }
.wallet-chip.is-negative { background: var(--err-bg); border-color: #fca5a5; color: var(--err); }

.content { padding: 20px; flex: 1; }
.content--wide { max-width: none; }

.page-head {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 18px; flex-wrap: wrap;
}
.page-head__title { flex: 1; min-width: 240px; }
.page-head__title p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.breadcrumbs { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs span::after { content: "/"; margin: 0 6px; color: var(--text-3); }
.breadcrumbs span:last-child::after { content: ""; }

/* ------------------------------------------------------------- karty/panele */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px;
}
.card__head {
    padding: 12px 16px; border-bottom: 1px solid var(--border-2);
    display: flex; align-items: center; gap: 12px;
}
.card__head h2, .card__head h3 { margin: 0; }
.card__head .spacer { margin-left: auto; }
.card__body { padding: 16px; }
.card__body--flush { padding: 0; }
.card__foot {
    padding: 10px 16px; border-top: 1px solid var(--border-2);
    background: var(--surface-2); display: flex; align-items: center; gap: 10px;
    border-radius: 0 0 var(--radius) var(--radius);
}

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* KPI — kafelki liczbowe */
.stat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.stat__label {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-3); font-weight: 600; margin-bottom: 6px;
}
.stat__value {
    font-size: 24px; font-weight: 650; line-height: 1.1;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.stat__meta { font-size: 12px; color: var(--text-2); margin-top: 5px; }
.stat__delta { font-weight: 600; }
.stat__delta.up { color: var(--ok); }
.stat__delta.down { color: var(--err); }

/* ------------------------------------------------------------------ tabele */
.table-wrap { overflow-x: auto; }
table.data {
    width: 100%; border-collapse: collapse; font-size: 13px;
    font-variant-numeric: tabular-nums;
}
/* Nagłówek przykleja się do GÓRY SWOJEGO KONTENERA, nie do okna.
   `.table-wrap` ma `overflow-x: auto`, co czyni z niego kontener przewijania —
   a wtedy `top: 52px` nie odmierza wysokości paska narzędzi, tylko spycha
   nagłówek 52 piksele w głąb tabeli, gdzie na stałe zasłaniał pierwsze
   wiersze. Stąd `top: 0`: nagłówek stoi na swoim miejscu, a gdy kontener
   faktycznie się przewija w pionie, przykleja się do jego krawędzi. */
table.data thead th {
    position: sticky; top: 0; z-index: 5;
    background: var(--surface-2); text-align: left; white-space: nowrap;
    padding: 8px 12px; font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--text-2);
    border-bottom: 1px solid var(--border); border-top: 1px solid var(--border-2);
}
table.data thead th a { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
table.data tbody td {
    padding: 7px 12px; border-bottom: 1px solid var(--border-2); vertical-align: middle;
}
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr.is-selected { background: var(--info-bg); }
table.data .num { text-align: right; }
table.data .nowrap { white-space: nowrap; }
table.data .mono { font-family: var(--mono); font-size: 12px; }
table.data .muted { color: var(--text-3); }
table.data--compact tbody td { padding: 4px 10px; font-size: 12.5px; }

.sort-icon { opacity: .35; font-size: 10px; }
.sort-icon.active { opacity: 1; color: var(--brand-600); }

.empty-state { padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty-state__icon { font-size: 32px; opacity: .35; margin-bottom: 10px; }

/* --------------------------------------------------------------- filtrowanie */
.filters {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end;
    padding: 12px 16px; background: var(--surface-2);
    border-bottom: 1px solid var(--border-2);
}
.filters .field { margin: 0; }
.filters label { font-size: 11px; }

/* ------------------------------------------------------------------ badge */
.badge {
    display: inline-block; padding: 2px 8px; border-radius: 20px;
    font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.badge--ok   { background: var(--ok-bg);   color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--err  { background: var(--err-bg);  color: var(--err); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--muted{ background: #f1f5f9;        color: var(--text-2); }

.score {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; padding: 2px 6px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 12px;
}
.score--high { background: #dcfce7; color: #15803d; }
.score--mid  { background: #fef3c7; color: #a16207; }
.score--low  { background: #f1f5f9; color: var(--text-2); }

/* ---------------------------------------------------------------- przyciski */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 32px; padding: 0 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
    text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 1px; }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; }

.btn--primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.btn--danger  { background: var(--err); border-color: var(--err); color: #fff; }
.btn--danger:hover { background: #991b1b; }
.btn--ghost   { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { height: 26px; padding: 0 10px; font-size: 12px; }
.btn--lg { height: 40px; padding: 0 22px; font-size: 14.5px; }
.btn--block { width: 100%; }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; }
.btn-group .btn:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* -------------------------------------------------------------- formularze */
.field { margin-bottom: 14px; }
.field label {
    display: block; margin-bottom: 4px; font-size: 12.5px;
    font-weight: 600; color: var(--text-2);
}
.field label .req { color: var(--err); }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.field .error { font-size: 12px; color: var(--err); margin-top: 4px; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=url], input[type=search],
input[type=tel], select, textarea {
    width: 100%; min-height: 34px; padding: 6px 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    font-family: inherit; font-size: 13.5px;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
input[aria-invalid=true], .field.has-error input, .field.has-error select {
    border-color: var(--err); box-shadow: 0 0 0 3px rgba(185, 28, 28, .10);
}
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--text-3); }
textarea { min-height: 90px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%2355637a' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

.field--inline { display: flex; align-items: center; gap: 8px; }
.field--inline label { margin: 0; }
.input-group { display: flex; }
.input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -1px; height: auto; }
.input-suffix {
    display: flex; align-items: center; padding: 0 10px;
    background: var(--surface-2); border: 1px solid var(--border); border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); font-size: 13px;
}

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* Przełącznik stoi zwykle wewnątrz `.field`, a tamtejsza reguła `.field label`
   ma wyższą swoistość i ustawia `display: block`. Skutek był taki, że etykieta
   przestawała być kontenerem elastycznym, suwak (span o zadanej szerokości)
   stawał się elementem liniowym i tracił wymiary — zostawała z niego biała
   kropka nachodząca na tekst, a samego przełącznika nie było widać.
   Dlatego podbijamy swoistość zamiast sięgać po !important. */
.field label.switch,
.filters label.switch,
label.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.switch input { position: absolute; opacity: 0; }
.switch__track {
    /* `inline-block` jest zabezpieczeniem: nawet gdyby rodzic nie był
       kontenerem elastycznym, suwak zachowa zadane wymiary. */
    display: inline-block;
    width: 36px; height: 20px; background: #cbd5e1; border-radius: 20px;
    position: relative; transition: background .15s; flex-shrink: 0;
}
.switch__track::after {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; background: #fff; border-radius: 50%;
    transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + .switch__track { background: var(--brand-600); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }

/* --------------------------------------------------------------- komunikaty */
.notice {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 14px; border-radius: var(--radius);
    border: 1px solid; margin-bottom: 14px; font-size: 13px;
}
.notice--success { background: var(--ok-bg);   border-color: #a7f3d0; color: var(--ok); }
.notice--error   { background: var(--err-bg);  border-color: #fecaca; color: var(--err); }
.notice--warning { background: var(--warn-bg); border-color: #fde68a; color: var(--warn); }
.notice--info    { background: var(--info-bg); border-color: #bfdbfe; color: var(--info); }
.notice strong { font-weight: 650; }

/* ------------------------------------------------------------------ zakładki */
/* Zakładki. Przy kilkunastu pozycjach nie mieszczą się w jednej linii, więc
   przewijamy je w poziomie zamiast łamać — złamana etykieta („Firma\ni marka”)
   przestaje wyglądać jak jedna zakładka i utrudnia trafienie w nią kursorem.
   Pasek przewijania chowamy: prowadzi tu przeciąganie i klawiatura. */
.tabs {
    display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    padding: 8px 14px; font-size: 13px; color: var(--text-2);
    border-bottom: 2px solid transparent; text-decoration: none;
    white-space: nowrap; flex-shrink: 0;
}
.tabs a:hover { color: var(--text); background: var(--surface-2); }
.tabs a.active { color: var(--brand-600); border-bottom-color: var(--brand-600); font-weight: 600; }

/* ---------------------------------------------------------------- paginacja */
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 30px; height: 28px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); font-size: 12.5px; color: var(--text-2); text-decoration: none;
}
.pagination a:hover { background: var(--surface-2); }
.pagination .current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600; }
.pagination .gap { border: none; background: none; }
.pagination__info { color: var(--text-2); font-size: 12.5px; margin-right: auto; }

/* ------------------------------------------------------------------- inne */
.hr { height: 1px; background: var(--border-2); border: 0; margin: 16px 0; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.mono  { font-family: var(--mono); }
.tabnum { font-variant-numeric: tabular-nums; }
.text-right { text-align: right; }
.flex { display: flex; gap: 8px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spacer { flex: 1; }
.hide { display: none !important; }
@media (max-width: 860px) { .hide-sm { display: none !important; } }

.progress { height: 6px; background: var(--border-2); border-radius: 3px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--brand-600); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    position: relative; padding: 0 0 14px 20px;
    border-left: 2px solid var(--border-2); font-size: 13px;
}
.timeline li::before {
    content: ""; position: absolute; left: -5px; top: 4px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-600); border: 2px solid var(--surface);
}
.timeline li:last-child { border-left-color: transparent; }
.timeline time { display: block; font-size: 11.5px; color: var(--text-3); }

/* strony logowania / instalatora */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #16243a 0%, #1e3a5f 100%); padding: 24px;
}
.auth-box {
    width: 100%; max-width: 400px; background: var(--surface);
    border-radius: 10px; box-shadow: var(--shadow-lg); padding: 30px;
}
.auth-box__brand { text-align: center; margin-bottom: 22px; }
.auth-box__brand h1 { font-size: 20px; margin: 0 0 4px; }
.auth-box__brand p { margin: 0; color: var(--text-2); font-size: 13px; }

.install-page { max-width: 780px; margin: 40px auto; padding: 0 20px; }
.steps { display: flex; gap: 0; margin-bottom: 24px; }
.steps li {
    flex: 1; list-style: none; text-align: center; font-size: 12px;
    color: var(--text-3); padding: 8px 4px; border-bottom: 3px solid var(--border);
}
.steps li.active { color: var(--brand-600); border-bottom-color: var(--brand-600); font-weight: 600; }
.steps li.done { color: var(--ok); border-bottom-color: var(--ok); }

/* wydruk */
@media print {
    .sidebar, .topbar, .page-head__actions, .filters, .pagination { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #ccc; }
}

/* ---- Logowanie przez dostawcę tożsamości ------------------------------ */
.oauth{margin-top:18px}
.oauth__sep{position:relative;text-align:center;margin:0 0 14px}
.oauth__sep::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--border)}
.oauth__sep span{position:relative;background:var(--surface,#fff);padding:0 12px;font-size:12px;color:var(--text-2)}
.oauth__btn{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:8px;
            border:1px solid var(--border);background:#fff;color:#1f2937;font-weight:600}
.oauth__btn:hover{background:#f9fafb}
.oauth__btn--github{background:#24292f;border-color:#24292f;color:#fff}
.oauth__btn--github:hover{background:#32383f}
