/* pTrax 2 web – wygląd jak w aplikacji (Resources/Styles/Colors.xaml i Styles.xaml). */

@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(../fonts/Manrope-Regular.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(../fonts/Manrope-Medium.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(../fonts/Manrope-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(../fonts/Manrope-Bold.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(../fonts/Manrope-ExtraBold.ttf) format("truetype"); }

/* ---------- Tokeny kolorów: jasny ---------- */
:root {
  color-scheme: light;
  --accent: #F15322; --accent-light: #FF7A3D; --on-accent: #160D08;
  --accent-gradient: linear-gradient(135deg, #FF7A3D, #F15322);
  --bg: #F4F3F0; --surface: #FFFFFF; --sunken: #E9E6E0; --seg-active: #FFFFFF;
  --line: #E6E3DD; --line2: #D9D5CE; --nav: #FFFFFF;
  --text: #14161B; --text2: #3A3F47; --muted: #5F6672; --accent-text: #C2410C;
  --chip: rgba(241, 83, 34, .12); --chip-icon: #D9481A;
  --green: #22C55E; --green-text: #15803D; --green-bg: #DCFCE7;
  --amber: #F59E0B; --amber-text: #B45309; --amber-bg: #FEF3C7;
  --red: #DC2626; --red-text: #B91C1C; --red-bg: #FEE2E2;
  --shadow: 0 8px 30px rgba(0, 0, 0, .12);
  --hero-bg: #14161B; --hero-border: #14161B; --hero-text: #F2F3F5; --hero-muted: #98A0AD; --hero-green: #3DDC84;
  --alert-bg: #FFF4EF; --alert-border: #FBD5C5;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Ciemny: motyw systemu (gdy użytkownik nie wybrał jasnego) albo wybrany ciemny ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0D11; --surface: #11141A; --sunken: #07080B; --seg-active: #1F242E;
    --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14); --nav: #07080B;
    --text: #F2F3F5; --text2: #D5D9E0; --muted: #98A0AD; --accent-text: #FF7A3D;
    --chip: rgba(241, 83, 34, .12); --chip-icon: #F15322;
    --green: #3DDC84; --green-text: #3DDC84; --green-bg: rgba(61, 220, 132, .12);
    --amber: #FFB547; --amber-text: #FFB547; --amber-bg: rgba(255, 181, 71, .12);
    --red: #FF5A4E; --red-text: #FF8A7F; --red-bg: rgba(255, 90, 78, .14);
    --shadow: 0 8px 30px rgba(0, 0, 0, .45);
    --hero-bg: rgba(241, 83, 34, .10); --hero-border: rgba(241, 83, 34, .45); --alert-bg: rgba(241, 83, 34, .08); --alert-border: rgba(241, 83, 34, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0D11; --surface: #11141A; --sunken: #07080B; --seg-active: #1F242E;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14); --nav: #07080B;
  --text: #F2F3F5; --text2: #D5D9E0; --muted: #98A0AD; --accent-text: #FF7A3D;
  --chip: rgba(241, 83, 34, .12); --chip-icon: #F15322;
  --green: #3DDC84; --green-text: #3DDC84; --green-bg: rgba(61, 220, 132, .12);
  --amber: #FFB547; --amber-text: #FFB547; --amber-bg: rgba(255, 181, 71, .12);
  --red: #FF5A4E; --red-text: #FF8A7F; --red-bg: rgba(255, 90, 78, .14);
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);
  --hero-bg: rgba(241, 83, 34, .10); --hero-border: rgba(241, 83, 34, .45); --alert-bg: rgba(241, 83, 34, .08); --alert-border: rgba(241, 83, 34, .35);
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 500 15px/1.4 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
#app { height: 100%; }
a { color: var(--accent-text); font-weight: 800; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, p { margin: 0; }
.icon { flex: none; display: block; }

.muted { color: var(--muted); font-size: 13px; font-weight: 600; }
.small { color: var(--muted); font-size: 12px; font-weight: 600; }
.body2 { color: var(--text2); font-size: 14px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.h1 { font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.section-title { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 8px 2px 0; }

.link { background: none; border: 0; padding: 6px 0; color: var(--accent-text); font-weight: 800; font-size: 13.5px; }

/* ---------- Przyciski ---------- */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; position: relative;
  height: 52px; width: 100%; border: 0; border-radius: 14px;
  background: var(--accent-gradient); color: var(--on-accent); font-size: 15px; font-weight: 800;
}
.btn-lg { height: 54px; font-size: 16px; }
.btn-outline {
  height: 52px; width: 100%; border-radius: 14px; border: 1px solid var(--line2);
  background: var(--surface); font-weight: 800;
}
.btn-outline.danger { color: var(--red-text); }
.icon-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--surface); border: 1px solid var(--line2); color: var(--text2); box-shadow: var(--shadow);
}
.spinner {
  position: absolute; right: 18px; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(22, 13, 8, .25); border-top-color: var(--on-accent); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pola tekstowe ---------- */
.field {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 14px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line2);
}
.field:focus-within { border-color: var(--accent); }
.field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  color: var(--text); font: 500 16px Manrope, system-ui, sans-serif; /* 16 px – iPhone nie przybliża strony przy wpisywaniu */
}
.field input::placeholder { color: var(--muted); }
.field input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1); }
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 8px 2px -6px; }
.field-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); }

/* ---------- Logowanie ---------- */
.login {
  position: relative; min-height: 100%; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 24px calc(28px + var(--safe-bottom));
}
.login-glow {
  position: absolute; top: -180px; right: -200px; width: 520px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, #F15322, transparent); opacity: .22; pointer-events: none;
}
.login-body { position: relative; width: 100%; max-width: 480px; margin: auto; display: flex; flex-direction: column; gap: 28px; padding: 24px 0; }
.login-brand { display: flex; flex-direction: column; gap: 14px; }
.brand-badge {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  background: var(--accent-gradient); color: var(--on-accent); box-shadow: 0 12px 30px rgba(241, 83, 34, .4);
}
/* Numer wersji obok nazwy – jak na ekranie logowania aplikacji */
.brand-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand-version { font-size: 14px; color: var(--text2); }
.brand-title { font-size: 36px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.1; }
.login-brand .muted { font-size: 15px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.forgot { align-self: flex-end; margin-top: -4px; }
.note { font-size: 13.5px; color: var(--text2); background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; }
.error { color: var(--red-text); font-size: 14px; font-weight: 600; }
.login-footer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.login-footer .link { font-size: 15px; }

/* ---------- Układ z dolnym menu ---------- */
.shell { height: 100%; display: flex; flex-direction: column; }
.shell-page { flex: 1; min-height: 0; position: relative; overflow: auto; }
.tabbar {
  display: flex; justify-content: space-around; flex: none;
  padding: 6px 8px calc(6px + var(--safe-bottom)); background: var(--nav); border-top: 1px solid var(--line);
}
.tab {
  flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0;
  color: var(--muted); font-size: 11.5px; font-weight: 700;
}
.tab.active { color: var(--accent); }

/* ---------- Mapa ---------- */
.map-page { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-frame.static { pointer-events: none; }
.map-top {
  position: absolute; top: 0; left: 0; right: 0; margin: 0 auto; max-width: 720px;
  padding: 12px 16px 0; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.map-top > * { pointer-events: auto; }
.map-search-row { display: flex; gap: 10px; }
.field.search { flex: 1; height: 48px; box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line2); color: var(--text2); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.map-layers { align-self: flex-end; display: flex; gap: 8px; }
.toggle {
  height: 36px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line2); color: var(--text);
}
.toggle.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.zoom { position: absolute; right: 16px; bottom: 48px; display: flex; flex-direction: column; gap: 8px; transition: bottom .2s; }
.zoom .icon-btn { width: 44px; height: 44px; border-radius: 12px; }
.zoom.above-sheet { bottom: 260px; }
.map-message {
  position: absolute; left: 50%; top: 170px; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 700;
}
.map-message.error { color: var(--red-text); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.moving { background: var(--green); }
.dot.stopped { background: var(--amber); }
.dot.alarm { background: var(--red); }

/* Panel wybranego pojazdu: telefon – od dołu, szeroki ekran – z lewej */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px 18px;
  background: var(--surface); border: 1px solid var(--line2); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
}
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line2); margin: 0 auto 12px; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; }
.icon-chip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--chip); color: var(--chip-icon); flex: none; }
.sheet-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sheet-main .body2 { margin-top: 4px; }
.sheet-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 28px; }
.sheet-title h2 { font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--sunken); color: var(--muted); }
.badge.moving { background: var(--green-bg); color: var(--green-text); }
.badge.stopped { background: var(--amber-bg); color: var(--amber-text); }
.badge.alarm { background: var(--red-bg); color: var(--red-text); }
.badge .dot { width: 6px; height: 6px; }
.sheet-speed { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-top: 22px; }
.sheet-speed strong { font-size: 26px; font-weight: 800; line-height: 1; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.sheet-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: var(--sunken); color: var(--muted); }
@media (min-width: 800px) {
  .sheet { left: 16px; right: auto; bottom: 16px; width: 400px; border: 1px solid var(--line2); border-radius: 22px; }
  .sheet-grip { display: none; }
  .zoom.above-sheet { bottom: 48px; }
}

/* Lista pojazdów z grupy "N szt." */
.dialog-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100% - 32px)); max-height: 70%;
  overflow: auto; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--shadow);
}
.dialog h2 { font-size: 15px; font-weight: 800; padding: 10px 12px 6px; }
.dialog-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: none; text-align: left; font-weight: 700; }
.dialog-item:hover { background: var(--sunken); }
.dialog-item.strong { color: var(--accent-text); font-weight: 800; }

/* ---------- Wspólne elementy ekranów (odpowiedniki stylów Styles.xaml) ----------
   Ekrany dodają własne style w Nazwa.razor.css (izolacja CSS Blazor). */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.h3 { font-size: 15px; font-weight: 800; }
.caption { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.kpi { font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; }
.value { font-size: 21px; font-weight: 800; }
.card.list { padding: 0 14px; }
.card.hero { background: var(--hero-bg); border-color: var(--hero-border); color: var(--hero-text); }
.card.hero .muted, .card.hero .small { color: var(--hero-muted); }
.card.alert { background: var(--alert-bg); border-color: var(--alert-border); }
.card.tap, .tap { cursor: pointer; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.grow, .row .grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; width: 100%; background: none; border: 0; text-align: left; color: var(--text); }
.list-row + .list-row, .list-row + .divider { border-top: 1px solid var(--line); }
.icon-chip.sm { width: 36px; height: 36px; border-radius: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px;
       background: var(--surface); border: 1px solid var(--line2); color: var(--text2); font-weight: 700; font-size: 14px; }
.btn-primary.sm { height: 44px; font-size: 14px; }
.green-text { color: var(--green-text); } .amber-text { color: var(--amber-text); } .red-text { color: var(--red-text); } .accent-text { color: var(--accent-text); }
.empty { text-align: center; color: var(--muted); font-weight: 600; font-size: 13px; padding: 24px 0; }
.loading { text-align: center; color: var(--muted); font-weight: 600; font-size: 13px; padding: 24px 0; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.progress { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line2); position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
select.field-select { height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font: 600 14px Manrope, system-ui, sans-serif; padding: 0 10px; }
input[type="date"].field-select, input[type="month"].field-select { padding: 0 10px; }

/* Nagłówek ekranu podrzędnego (PageHeader) */
.page-header { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.page-header .back { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
                     background: var(--surface); border: 1px solid var(--line2); color: var(--text); }
.page-header .titles { flex: 1; min-width: 0; }
.page-header .titles h1 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Uchwyt zmiany wysokości mapy (MapResizeHandle) – jak w aplikacji: pasek 44×5 pod mapą */
.map-handle { height: 22px; margin: -6px 0; display: grid; place-items: center; cursor: row-resize; touch-action: none; user-select: none; }
.map-handle span { width: 44px; height: 5px; border-radius: 3px; background: var(--line2); }

/* Wiersz pojazdu (VehicleListItem) */
.vehicle-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; border: 0; background: var(--surface); text-align: left; color: var(--text); border-bottom: 1px solid var(--line); }
.vehicle-row .halo { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sunken); }
.vehicle-row .halo.moving { background: var(--green-bg); } .vehicle-row .halo.stopped { background: var(--amber-bg); } .vehicle-row .halo.alarm { background: var(--red-bg); }
.vehicle-row .halo .dot { width: 10px; height: 10px; }
.vehicle-row .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vehicle-row .plate { font-size: 15px; font-weight: 800; }
.vehicle-row .driver { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.vehicle-row .addr { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vehicle-row .line3 { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 12.5px; font-weight: 700; }
.vehicle-row .line3 .tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--muted); }
.vehicle-row .right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; }
.vehicle-row .right strong { font-size: 14.5px; font-weight: 800; }

/* Okna dialogowe (UiService) i komunikat "wkrótce" */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 900; display: grid; place-items: center; padding: 16px; }
.modal { width: min(380px, 100%); max-height: 80vh; overflow: auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal h2 { font-size: 17px; font-weight: 800; }
.modal p { color: var(--text2); font-size: 14px; white-space: pre-line; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.modal .actions button { min-width: 90px; }
.modal .option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: none; text-align: left; font-weight: 700; color: var(--text); }
.modal .option:hover { background: var(--sunken); }
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-bottom)); transform: translateX(-50%); z-index: 950; max-width: calc(100% - 32px);
         padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--surface); font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); }

/* Licznik na zakładce (Alarmy) */
.tab { position: relative; }
.tab .badge-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
                    background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Menu ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.account { display: flex; align-items: center; gap: 14px; }
.account strong { font-size: 16px; font-weight: 800; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-gradient); color: var(--on-accent); font-weight: 800; flex: none; }
.links { padding: 4px 0; }
.links a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); font-weight: 700; }
.links a + a { border-top: 1px solid var(--line); }
.links .end { margin-left: auto; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sunken); }
.segmented button { flex: 1; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 700; }
.segmented button.active { background: var(--seg-active); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---------- Wczytywanie (przed startem Blazor) ---------- */
.boot { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.boot-title { font-size: 34px; font-weight: 800; letter-spacing: -1.4px; }
.boot-bar { width: 160px; height: 4px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.boot-bar::after { content: ""; display: block; height: 100%; width: var(--blazor-load-percentage, 0%); background: var(--accent); transition: width .2s; }

#blazor-error-ui {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 12px 16px calc(12px + var(--safe-bottom)); background: var(--red-bg); color: var(--red-text); font-weight: 700;
}
#blazor-error-ui .reload { margin-left: 8px; }
#blazor-error-ui .dismiss { position: absolute; right: 16px; cursor: pointer; }
