/* Bezpiecznik — design system
   Kierunek: „Jasny panel dowodzenia" — jasne, chłodne tło, granatowe karty
   dowodzenia, stalowy niebieski jako kolor akcji. Statusy semantyczne:
   zielony (OK) / bursztyn (uwaga) / czerwony (brak).
   Typografia: Space Grotesk (nagłówki, liczby) + DM Sans (tekst). */

:root {
  color-scheme: light;

  /* Granatowy system tokenów */
  --navy-950: #0f1830;
  --navy-900: #152238;
  --navy-800: #1e3050;
  --navy-100: #dce3ef;

  --ink: #16223c;
  --muted: #5d6a85;
  --bg: #e8ecf3;
  --surface: #ffffff;
  --line: #dbe1eb;

  --steel: #4a7ca8;
  --steel-deep: #3a6790;
  --steel-tint: #e3ecf5;

  --ok: #2e9e5b;
  --ok-bg: #e2f2e8;
  --warn: #dd8d1c;
  --warn-deep: #9a6410;
  --warn-bg: #fbeeda;
  --bad: #d64545;
  --bad-bg: #fbe7e7;

  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 24, 48, 0.05), 0 6px 20px rgba(15, 24, 48, 0.06);
  --shadow-lift: 0 2px 4px rgba(15, 24, 48, 0.07), 0 14px 34px rgba(15, 24, 48, 0.1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.app-main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a {
  color: var(--steel-deep);
}
a:hover {
  color: var(--navy-900);
}

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

/* Mikroetykiety — wersaliki z rozstrzelonym światłem (nagłówki tabel,
   sekcje kart, eyebrow) */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

/* Focus ring — widoczny, stalowy, spójny w całej aplikacji */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--steel-deep);
  outline-offset: 2px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 0.2rem rgba(74, 124, 168, 0.2);
}

/* ---------- Formularze ---------- */
/* Pola formularzy — także tam, gdzie {{ form.as_p }} renderuje surowe
   inputy bez klasy .form-control. Wyłączone typy natywne
   (checkbox/radio/range/file/color) oraz przyciski/hidden. */
.form-control,
.form-select,
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="hidden"])),
select,
textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  padding: 0.6rem 0.85rem;
  width: 100%;
  max-width: 32rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"])):hover,
select:hover,
textarea:hover {
  border-color: #b9c4d6;
}
.panel-dark input:hover,
.panel-dark textarea:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Układ pól przy {{ form.as_p }} — etykieta nad polem, odstępy. */
form p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}
form p label,
.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
form p .helptext,
.field .helptext {
  font-size: 0.85rem;
  color: var(--muted);
}
form ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  color: var(--bad);
  font-size: 0.85rem;
}

/* Pola renderowane ręcznie w siatkach */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field input,
.field select,
.field textarea {
  max-width: 100%;
}

/* ---------- Nagłówek aplikacji ---------- */
.navbar.app-header {
  background: var(--navy-900) !important;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.app-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1.02rem;
  color: #fff;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--navy-800);
  color: #fff;
  flex-shrink: 0;
}
.brand-badge svg {
  width: 19px;
  height: 19px;
}
.app-header .nav-link {
  color: #aab6cc !important;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  padding: 0.45rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}
.app-header .nav-link:hover,
.app-header .nav-link:focus {
  color: #fff !important;
}
.app-header .nav-link.active {
  color: #fff !important;
  box-shadow: inset 0 -2px 0 #fff;
  border-radius: 0;
}
.app-header .dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  border-radius: var(--radius);
  overflow: hidden;
}
.app-header .dropdown-item {
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 1rem;
}
.app-header .dropdown-item:hover,
.app-header .dropdown-item:focus,
.app-header .dropdown-item.active {
  background: var(--steel-tint);
  color: var(--navy-900);
}
.app-header .btn-logout {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.45rem 1.1rem;
}
.app-header .btn-logout:hover {
  background: #fff;
  color: var(--navy-900);
  border-color: #fff;
}
.app-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---------- Stopka ---------- */
.app-footer {
  background: var(--navy-900);
  color: #aab6cc;
  padding: 1.6rem 0;
  flex-shrink: 0;
}
.app-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-footer .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: #fff;
}
.app-footer nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.app-footer nav a {
  color: #aab6cc;
  text-decoration: none;
  font-weight: 500;
}
.app-footer nav a:hover {
  color: #fff;
}

/* ---------- Przyciski ---------- */
.btn {
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active {
    transform: none;
  }
}
.btn-primary {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
  box-shadow: 0 1px 2px rgba(58, 103, 144, 0.35);
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
  background: var(--steel-deep) !important;
  border-color: var(--steel-deep) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(58, 103, 144, 0.35);
}
.btn-outline-primary {
  color: var(--steel-deep);
  border-color: var(--steel);
}
.btn-outline-primary:hover {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
}
.btn-outline-secondary {
  color: var(--navy-900);
  border-color: var(--line);
  background: var(--surface);
}
.btn-outline-secondary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
/* Przycisk na granatowych panelach */
.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Karty ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
a.card:hover, .card:has(a.stretched-link):hover {
  box-shadow: var(--shadow-lift);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-900);
}

/* Panel granatowy (karty dowodzenia) */
.panel-dark {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-900);
  box-shadow: var(--shadow);
}
.panel-dark h1, .panel-dark h2, .panel-dark h3, .panel-dark h4 {
  color: #fff;
}
.panel-dark .eyebrow {
  color: #93a3c0;
}
.panel-dark p {
  color: #c4cede;
}
.panel-dark .inset {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: #dde4f0;
  padding: 0.9rem 1.1rem;
}
.panel-dark input,
.panel-dark textarea,
.panel-dark select {
  background: var(--navy-800);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.panel-dark input::placeholder,
.panel-dark textarea::placeholder {
  color: #8fa0bd;
}
.panel-dark .helptext {
  color: #93a3c0;
}
.panel-dark label {
  color: #dde4f0;
}

/* ---------- Tabele ---------- */
.table {
  --bs-table-bg: transparent;
  color: var(--ink);
  margin-bottom: 0;
}
.table thead th {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #aab6cc;
  background: var(--navy-900);
  border: none;
  padding: 0.85rem 1.1rem;
}
.table td {
  border-color: var(--line);
  vertical-align: middle;
  padding: 0.95rem 1.1rem;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tbody tr {
  transition: background-color 0.12s ease;
}
.table tbody tr:hover {
  background-color: rgba(21, 34, 56, 0.03);
}
/* Zaokrąglona powłoka tabeli, przewijana w poziomie na małych ekranach */
.table-shell {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow-x: auto;
}

/* ---------- Magazyn: filtry i akcje wierszy ---------- */
.filter-bar {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar input[type="search"] {
  flex: 1 1 220px;
  max-width: 340px;
}
.filter-bar select {
  width: auto;
  max-width: 240px;
}
.btn-clear-filters {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}
.btn-clear-filters:hover {
  color: var(--ink);
  text-decoration: underline;
}

.qty-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.qty-cell form {
  display: inline-flex;
  margin: 0;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.qty-btn:hover:not(:disabled) {
  background: var(--steel-tint);
  border-color: var(--steel);
}
.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.qty-value {
  min-width: 5.5ch;
  text-align: center;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.row-actions form {
  display: inline-flex;
  margin: 0;
}
.row-action {
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--steel-deep);
  text-decoration: none;
  cursor: pointer;
}
.row-action:hover {
  text-decoration: underline;
  color: var(--navy-900);
}
.row-action--danger {
  color: var(--bad);
}
.row-action--danger:hover {
  color: var(--bad);
}

/* Skaner kodów kreskowych (formularz przedmiotu) */
.scan-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
#scan-reader {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-950);
}
#scan-reader video {
  display: block;
  width: 100%;
}
.scan-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  min-height: 1.3em;
}

/* Historia zmian pozycji (strona edycji) */
.history-log {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-log li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.history-log li:last-child {
  border-bottom: none;
}
.history-delta {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ok);
  margin-left: auto;
}
.history-delta--minus {
  color: var(--bad);
}
.history-date {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 11ch;
  text-align: right;
}

/* ---------- Statusy ---------- */
.status-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill--ok { background: var(--ok-bg); color: var(--ok); }
.status-pill--warn { background: var(--warn-bg); color: var(--warn-deep); }
.status-pill--bad { background: var(--bad-bg); color: var(--bad); }

.badge {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bg-success { background-color: var(--ok) !important; }
.bg-warning { background-color: var(--warn) !important; color: #fff !important; }
.bg-danger { background-color: var(--bad) !important; }
.text-bg-warning { color: #fff !important; }
.table-danger, .table-danger > * { --bs-table-bg: var(--bad-bg) !important; }
.table-warning, .table-warning > * { --bs-table-bg: var(--warn-bg) !important; }

/* Komunikaty Django messages + banery alertów */
.alert {
  border-radius: var(--radius);
  border: none;
  font-weight: 500;
}
.alert-success { background: var(--ok-bg); color: #1d6b3d; }
.alert-info { background: var(--steel-tint); color: var(--steel-deep); }
.alert-warning { background: var(--warn-bg); color: var(--warn-deep); }
.alert-danger, .alert-error { background: var(--bad-bg); color: var(--bad); }

.alert-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--warn-bg);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--ink);
  font-weight: 500;
}
.alert-banner--bad {
  background: var(--bad-bg);
  border-left-color: var(--bad);
}
.alert-banner .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
  flex-shrink: 0;
}
.alert-banner--bad .dot {
  background: var(--bad);
}

/* ---------- Pulpit: mierniki gotowości ---------- */
.meter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}
.meter-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem 1.25rem;
}
.meter-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  white-space: nowrap;
}
.meter-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.meter-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--navy-900);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.meter-fill--ok { background: var(--ok); }
.meter-fill--warn { background: var(--warn); }
.meter-fill--bad { background: var(--bad); }

/* ---------- Pulpit: siatka bento ---------- */
.bento {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  grid-auto-rows: minmax(170px, auto);
  gap: 1.1rem;
}
.bento-hero {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  overflow: hidden;
  padding: 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}
.bento-hero h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.bento-hero p {
  max-width: 38ch;
  margin: 0;
}
/* Sygnatura: wielki pierścień radaru na granatowej karcie */
.bento-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 40px rgba(255, 255, 255, 0.025),
    inset 0 0 0 90px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}
.bento-hero .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.bento-tile {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.bento-tile:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .bento-tile:hover {
    transform: none;
  }
}
.bento-tile h3 {
  font-size: 1.15rem;
  margin: 0;
}
.bento-tile p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}
.bento-tile .tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
}
.bento-tile .tile-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--navy-900);
}
.bento-tile h3 a {
  color: inherit;
  text-decoration: none;
}
.bento-tile--dark {
  background: var(--navy-900);
}
.bento-tile--dark h3 {
  color: #fff;
}
.bento-tile--dark p {
  color: #c4cede;
}
.bento-tile--dark .tile-icon {
  background: var(--navy-800);
}
.bento-tile--dark .tile-icon::before {
  border-color: #fff;
}
.bento-tile .chip-quote {
  background: var(--navy-800);
  border-radius: 999px;
  color: #dde4f0;
  font-size: 0.83rem;
  font-style: italic;
  padding: 0.5rem 1rem;
  margin-top: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 991.98px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento-hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 260px;
  }
}
@media (max-width: 575.98px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

/* Pigułki skrótów do pozostałych sekcji */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.pill-link {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.pill-link:hover {
  color: var(--navy-900);
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

/* ---------- Nagłówek strony ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.page-head h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.25rem;
}
.page-head .lead-sub {
  color: var(--muted);
  margin: 0;
}

/* ---------- Checklisty ---------- */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}
.checklist-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checklist-card h3 {
  font-size: 1.15rem;
  margin: 0;
}
.checklist-meter {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.checklist-meter .meter-track {
  flex: 1;
}
.checklist-meter .pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 3ch;
  text-align: right;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.check-item:last-child {
  border-bottom: none;
}
.check-item input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--steel);
  flex-shrink: 0;
}
.check-item label {
  font-weight: 500;
  cursor: pointer;
}
.check-item input:checked + label {
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- Plan rodziny ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 767.98px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}
.plan-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.9rem;
}
.plan-section .eyebrow {
  margin-bottom: 1.1rem;
  display: block;
}
.plan-section.panel-dark {
  background: var(--navy-900);
  padding: 1.8rem 1.9rem;
}
.plan-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}
@media (max-width: 575.98px) {
  .plan-fields {
    grid-template-columns: 1fr;
  }
}
.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Asystent (czat) ---------- */
.chat-shell {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  max-width: 860px;
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 55vh;
  overflow-y: auto;
  margin-bottom: 1.4rem;
}
.chat-bubble {
  max-width: 78%;
  padding: 0.85rem 1.2rem;
  border-radius: 20px;
  white-space: pre-line;
  line-height: 1.5;
}
.chat-bubble--assistant {
  background: var(--bg);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 8px;
}
.chat-bubble--user {
  background: var(--steel);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 8px;
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.chat-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.chat-chip:hover {
  border-color: var(--steel);
  background: var(--steel-tint);
}
.chat-input-row {
  display: flex;
  gap: 0.7rem;
}
.chat-input-row input {
  flex: 1;
  max-width: none;
  background: var(--bg);
  border-color: var(--bg);
  border-radius: var(--radius-sm);
}
.chat-input-row input:focus {
  background: var(--surface);
}

/* ---------- Karta formularza ---------- */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 2.1rem;
  max-width: 620px;
}
.form-card h1 {
  font-size: 1.6rem;
}
.form-card input,
.form-card select,
.form-card textarea {
  max-width: 100%;
}

/* ---------- Pozostałe komponenty Bootstrap ---------- */
.list-group-item {
  border-color: var(--line);
}
.progress {
  background-color: var(--bg);
  border-radius: 999px;
}
.display-6, .fw-bold {
  font-family: var(--font-display);
}

/* ---------- Strona startowa (landing) ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero-copy .eyebrow {
  color: #8fa0bd;
  display: block;
  margin-bottom: 1.1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero-sub {
  color: #c4cede;
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.hero-note {
  color: #8fa0bd;
  font-size: 0.88rem;
  margin: 1.1rem 0 0;
}

/* Szybkie wejścia bez konta — wyraźne kafelki pod CTA */
.hero-quicklinks {
  margin-top: 1.6rem;
}
.quicklinks-label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 600;
  color: #8fa0bd;
  margin-bottom: 0.6rem;
}
.quicklinks-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.quicklink {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 0.65rem 1.05rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.quicklink:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}
.quicklink-title {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.quicklink-sub {
  color: #8fa0bd;
  font-size: 0.78rem;
}
@media (prefers-reduced-motion: reduce) {
  .quicklink:hover {
    transform: none;
  }
}

/* Sekwencja wejścia hero */
.hero-load {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-load-1 { animation-delay: 0.05s; }
.hero-load-2 { animation-delay: 0.15s; }
.hero-load-3 { animation-delay: 0.28s; }
.hero-load-4 { animation-delay: 0.42s; }
@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* Radar — sygnatura marki w wersji animowanej */
.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
}
.radar svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.radar-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
}
.radar-sweep {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(116, 164, 208, 0.4), rgba(116, 164, 208, 0.06) 70deg, transparent 90deg);
  animation: radar-spin 6s linear infinite;
}
@keyframes radar-spin {
  to { transform: rotate(360deg); }
}
.radar-blip {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: blip-pulse 2.4s ease-out infinite;
}
.radar-blip--ok { background: #57c785; box-shadow: 0 0 0 0 rgba(87, 199, 133, 0.5); }
.radar-blip--warn { background: var(--warn); box-shadow: 0 0 0 0 rgba(221, 141, 28, 0.5); animation-delay: 1.1s; }
@keyframes blip-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Miękka poświata za zestawem */
.hero-visual::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 164, 208, 0.16), transparent 68%);
  pointer-events: none;
}

/* Zestaw kryzysowy — ilustracja SVG na pierwszym planie */
.kit {
  position: relative;
  z-index: 1;
  width: min(440px, 86vw);
  height: auto;
}
.kit-item {
  transform-box: fill-box;
  transform-origin: center;
  animation: kit-bob 6s ease-in-out infinite;
}
.kit-bottle { animation-delay: 1.2s; }
.kit-firstaid { animation-delay: 2.4s; }
.kit-torch { animation-delay: 3.1s; }
@keyframes kit-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.kit-beam {
  animation: beam-pulse 3.2s ease-in-out infinite;
}
@keyframes beam-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .kit-item, .kit-beam {
    animation: none;
  }
}

/* Pływające karty UI nad radarem */
.hero-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 0.9rem 1.1rem;
  animation: card-float 5.5s ease-in-out infinite;
}
.hero-card--meter {
  top: 6%;
  left: -4%;
  width: 180px;
}
.hero-card--alert {
  bottom: -3%;
  right: -2%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--warn-bg);
  border-left: 4px solid var(--warn);
  animation-delay: 1.6s;
  max-width: 250px;
}
.hero-card--alert .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  flex-shrink: 0;
}
.hero-card--pill {
  top: 58%;
  left: -9%;
  padding: 0.55rem 0.7rem;
  animation-delay: 2.8s;
}
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Pasek scenariuszy (marquee) */
.scenario-band {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.05rem 0;
  overflow: hidden;
}
.scenario-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.scenario-track span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fa0bd;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Sekcje landingu */
.land-section {
  padding: 5rem 0;
}
.land-section--tint {
  background: linear-gradient(180deg, rgba(21, 34, 56, 0.045), transparent 70%);
}
.land-head {
  max-width: 60ch;
  margin-bottom: 2.75rem;
}
.land-head .eyebrow {
  display: block;
  margin-bottom: 0.8rem;
}
.land-section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
}
.land-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
}
.land-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.land-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.9rem;
  font-weight: 500;
}
.land-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok-bg);
  box-shadow: inset 0 0 0 2px var(--ok);
}
.land-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.05rem;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* Demo wskaźnika gotowości */
.score-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.score-demo {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.score-gauge {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}
.score-gauge svg {
  width: 100%;
  height: 100%;
}
.score-gauge .gauge-track {
  fill: none;
  stroke: var(--bg);
  stroke-width: 13;
}
.score-gauge .gauge-value {
  fill: none;
  stroke: var(--steel);
  stroke-width: 13;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 90px 90px;
  stroke-dasharray: 464.96;
  stroke-dashoffset: 464.96;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.score-readout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
}
.score-number {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
}
.score-pct {
  font-size: 1.2rem;
  color: var(--muted);
  align-self: flex-start;
  margin-top: 0.9rem;
}
.score-caption {
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.score-meters {
  flex: 1;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.score-meters .meter-track {
  margin-bottom: 0.8rem;
}
.score-meters .meter-fill {
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Karty funkcji */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.9rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}
.feature-card h3 {
  font-size: 1.12rem;
  margin: 1.1rem 0 0.45rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--steel-tint);
  color: var(--steel-deep);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-card--dark {
  background: var(--navy-900);
}
.feature-card--dark h3 {
  color: #fff;
}
.feature-card--dark p {
  color: #c4cede;
}
.feature-card--dark .feature-icon {
  background: var(--navy-800);
  color: #fff;
}
.feature-card--dark .chip-quote {
  display: inline-block;
  background: var(--navy-800);
  border-radius: 999px;
  color: #dde4f0;
  font-size: 0.82rem;
  font-style: italic;
  padding: 0.45rem 0.95rem;
  margin-top: 1rem;
}

/* Kroki startu — numeracja odpowiada realnej kolejności w aplikacji */
.steps {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.steps li {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.9rem;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}
.steps h3 {
  font-size: 1.1rem;
  margin: 1.1rem 0 0.4rem;
}
.steps p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Finałowe CTA */
.cta-band {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 60px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}
.cta-band p {
  color: #c4cede;
  margin: 0.7rem 0 1.8rem;
}

/* Narzędzia „wypróbuj bez konta" */
.tools-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 991.98px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
.tool-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}
.tool-card h3 {
  font-size: 1.15rem;
  margin: 0;
}
.tool-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}
.tool-card .btn {
  margin-top: auto;
}
.tool-card--dark {
  background: var(--navy-900);
}
.tool-card--dark h3 {
  color: #fff;
}
.tool-card--dark p {
  color: #c4cede;
}
.calc-form {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.calc-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.calc-form input {
  width: 74px;
}
.calc-result {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  margin-top: 0.5rem;
  width: 100%;
}
.calc-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy-900);
  margin-right: 0.3rem;
}
.calc-result--fresh .calc-number {
  color: var(--steel-deep);
}
.tool-link {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  margin-top: 0.5rem;
}

/* W quizie zaznaczenie to odpowiedź „tak", nie wykonane zadanie —
   bez przekreślenia z checklist. */
#quiz-form .check-item input:checked + label {
  text-decoration: none;
  color: var(--ink);
}

/* Wynik quizu */
.quiz-score {
  font-family: var(--font-display);
  margin-top: 1.6rem;
}
.quiz-score-number {
  font-size: 3.2rem;
  font-weight: 700;
}
.quiz-score-pct {
  font-size: 1.4rem;
  color: var(--muted);
}
#quiz-result .meter-fill {
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Separator „albo e-mailem" na ekranach logowania */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Panel szybkiego startu na pulpicie */
.quickstart {
  background: var(--surface);
  border-left: 4px solid var(--steel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
}
.quickstart h2 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.quickstart p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.quickstart .actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* Odsłanianie przy przewijaniu */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.feature-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.feature-grid .reveal:nth-child(4) { transition-delay: 0.05s; }
.feature-grid .reveal:nth-child(5) { transition-delay: 0.15s; }
.feature-grid .reveal:nth-child(6) { transition-delay: 0.25s; }

/* Responsywność landingu */
@media (max-width: 991.98px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .hero-visual {
    order: -1;
    min-height: 0;
  }
  .hero-card--meter { left: 0; }
  .hero-card--alert { right: 0; }
  .hero-card--pill { left: 0; }
  .score-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-grid, .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575.98px) {
  .feature-grid, .steps {
    grid-template-columns: 1fr;
  }
  .land-section {
    padding: 3.5rem 0;
  }
}

/* Ograniczony ruch: bez animacji dekoracyjnych, treść od razu widoczna */
@media (prefers-reduced-motion: reduce) {
  .hero-load,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .radar-sweep,
  .radar-blip,
  .hero-card,
  .scenario-track {
    animation: none;
  }
  .scenario-band {
    overflow-x: auto;
  }
  .score-gauge .gauge-value,
  .score-meters .meter-fill {
    transition: none;
  }
}

/* Dokumenty prawne */
.legal-doc h2 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
}
.legal-doc p {
  color: var(--muted);
  line-height: 1.65;
}
.legal-doc p strong {
  color: var(--ink);
}

/* ---------- Ekrany logowania / rejestracji ---------- */
.auth-shell {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .auth-shell {
    grid-template-columns: 1.1fr 1fr;
  }
}
.auth-brand {
  background: var(--navy-900);
  color: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-brand::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 40px rgba(255, 255, 255, 0.03);
}
.auth-brand-mark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.auth-brand-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 22ch;
}
.auth-brand-sub {
  color: #aab6cc;
  margin-top: 1rem;
  max-width: 34ch;
}
.auth-form-panel {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.auth-form-card {
  width: 100%;
  max-width: 380px;
}