/* =========================================================
   maxedu — system projektowy „Ciepła czytelnia"
   Tokeny, baza, wspólne komponenty.
   ========================================================= */

/* ---------- Tokeny ---------- */
:root {
  /* kolor tożsamości: ciepła terakota; ciepło niesie kolor, nie tło */
  --brand: oklch(0.56 0.14 40);
  --brand-strong: oklch(0.46 0.13 40);   /* hover, linki na jasnym tle */
  --brand-soft: oklch(0.94 0.03 45);     /* delikatne wypełnienia chipów */
  --brand-deep: oklch(0.34 0.09 38);     /* głębokie powierzchnie marki */

  /* akcent drugoplanowy: głęboki teal (kalendarz, statusy) */
  --accent: oklch(0.42 0.09 180);
  --accent-soft: oklch(0.93 0.035 180);

  --bg: oklch(1 0 0);                    /* czysta biel — zgodnie z DESIGN.md */
  --surface: oklch(0.972 0.005 40);      /* panele, filtry, pola formularzy */
  --ink: oklch(0.24 0.015 40);
  --muted: oklch(0.46 0.02 40);
  --line: oklch(0.895 0.012 40);
  --line-strong: oklch(0.78 0.02 40);

  /* ciemne sekcje (landing, stopka) */
  --dark: oklch(0.235 0.022 38);
  --dark-soft: oklch(0.30 0.025 38);
  --dark-ink: oklch(0.965 0.006 45);
  --dark-muted: oklch(0.79 0.02 45);

  /* semantyczne */
  --ok: oklch(0.50 0.11 155);
  --ok-soft: oklch(0.94 0.045 155);
  --err: oklch(0.50 0.17 27);
  --err-soft: oklch(0.94 0.035 27);
  --warn: oklch(0.51 0.12 74);   /* przyciemniony amber: ≥4.5:1 na warn-soft (plakietki 13px bold) */
  --warn-soft: oklch(0.95 0.055 85);
  --info: var(--accent);
  --info-soft: var(--accent-soft);

  --f-serif: 'Literata', Georgia, 'Times New Roman', serif;
  --f-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-s: 8px; --r-m: 12px; --r-l: 20px; --r-pill: 999px;

  --shadow-1: 0 1px 2px oklch(0.25 0.02 40 / 0.05), 0 6px 20px oklch(0.25 0.02 40 / 0.07);
  --shadow-2: 0 2px 4px oklch(0.25 0.02 40 / 0.07), 0 14px 34px oklch(0.25 0.02 40 / 0.12);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med: 240ms;

  /* semantyczna skala z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;

  --maxw: 1140px;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* atrybut hidden musi wygrywać z każdym display: */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1.0625rem; /* 17px — szeroki wiek odbiorców */
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: var(--f-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h4, h5 { font-family: var(--f-sans); font-weight: 700; margin: 0 0 0.4em; }
p { margin: 0 0 1em; max-width: 70ch; text-wrap: pretty; }

a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

img { max-width: 100%; display: block; }

button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  background: var(--brand); color: oklch(0.99 0.004 45);
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.btn:hover { background: var(--brand-strong); color: oklch(0.99 0.004 45); box-shadow: var(--shadow-1); }
.btn:active { box-shadow: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }

.btn-danger { background: var(--err); }
.btn-danger:hover { background: oklch(0.42 0.16 27); }

.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 0.9375rem; }

/* przycisk na ciemnym / terakotowym tle */
.btn-inverse { background: oklch(0.99 0.004 45); color: var(--brand-deep); }
.btn-inverse:hover { background: oklch(0.94 0.015 45); color: var(--brand-deep); }
.btn-outline-inverse {
  background: transparent; color: oklch(0.99 0.004 45);
  border-color: oklch(0.99 0.004 45 / 0.55);
}
.btn-outline-inverse:hover { background: oklch(0.99 0.004 45 / 0.12); color: oklch(0.99 0.004 45); border-color: oklch(0.99 0.004 45); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header-in {
  display: flex; align-items: center; gap: clamp(12px, 3vw, 28px);
  min-height: 64px;
}
.logo {
  font-family: var(--f-serif); font-weight: 700; font-size: 1.5rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  margin-right: auto;
}
.logo b { color: var(--brand); font-weight: 700; }
.site-nav { display: flex; gap: clamp(8px, 2vw, 20px); align-items: center; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 8px 10px; border-radius: var(--r-s);
  transition: background var(--t-fast) var(--ease-out);
}
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--brand-strong); }

.auth-area { display: flex; align-items: center; gap: 10px; }
.header-user {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600;
  padding: 4px 10px 4px 4px; border-radius: var(--r-pill);
  transition: background var(--t-fast) var(--ease-out);
}
.header-user:hover { background: var(--surface); color: var(--ink); }
.guest-badge {
  font-size: 0.8125rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: var(--r-pill);
}

@media (max-width: 720px) {
  .site-header-in { flex-wrap: wrap; padding-block: 8px; }
  .auth-area { margin-left: auto; }
  .header-user-name { display: none; }
}

/* ---------- Awatar ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
/* Podwójna klasa (.avatar.avatar-gen) celowo — wygrywa z regułami typu
   „.panel-user span { color: … }", które w innym wypadku przemalowałyby
   inicjały na szaro i psuły kontrast. */
.avatar.avatar-gen {
  --av-size: 40px; --av-h: 40;
  width: var(--av-size); height: var(--av-size);
  display: inline-flex; align-items: center; justify-content: center;
  /* ciemne, nasycone tło + czysta biel — czytelne inicjały dla każdego hue (≥4.5:1) */
  background: oklch(0.43 0.12 var(--av-h));
  color: oklch(1 0 0);
  font-weight: 700; font-size: calc(var(--av-size) * 0.38);
  letter-spacing: 0.02em; user-select: none;
}
img.avatar { width: var(--av-size, 40px); height: var(--av-size, 40px); }

/* Hue / rozmiar przez data-* (CSP bez style=) */
.avatar.avatar-gen[data-av-h="0"] { --av-h: 0; }
.avatar.avatar-gen[data-av-h="10"] { --av-h: 10; }
.avatar.avatar-gen[data-av-h="20"] { --av-h: 20; }
.avatar.avatar-gen[data-av-h="30"] { --av-h: 30; }
.avatar.avatar-gen[data-av-h="40"] { --av-h: 40; }
.avatar.avatar-gen[data-av-h="50"] { --av-h: 50; }
.avatar.avatar-gen[data-av-h="60"] { --av-h: 60; }
.avatar.avatar-gen[data-av-h="70"] { --av-h: 70; }
.avatar.avatar-gen[data-av-h="80"] { --av-h: 80; }
.avatar.avatar-gen[data-av-h="90"] { --av-h: 90; }
.avatar.avatar-gen[data-av-h="100"] { --av-h: 100; }
.avatar.avatar-gen[data-av-h="110"] { --av-h: 110; }
.avatar.avatar-gen[data-av-h="120"] { --av-h: 120; }
.avatar.avatar-gen[data-av-h="130"] { --av-h: 130; }
.avatar.avatar-gen[data-av-h="140"] { --av-h: 140; }
.avatar.avatar-gen[data-av-h="150"] { --av-h: 150; }
.avatar.avatar-gen[data-av-h="160"] { --av-h: 160; }
.avatar.avatar-gen[data-av-h="170"] { --av-h: 170; }
.avatar.avatar-gen[data-av-h="180"] { --av-h: 180; }
.avatar.avatar-gen[data-av-h="190"] { --av-h: 190; }
.avatar.avatar-gen[data-av-h="200"] { --av-h: 200; }
.avatar.avatar-gen[data-av-h="210"] { --av-h: 210; }
.avatar.avatar-gen[data-av-h="220"] { --av-h: 220; }
.avatar.avatar-gen[data-av-h="230"] { --av-h: 230; }
.avatar.avatar-gen[data-av-h="240"] { --av-h: 240; }
.avatar.avatar-gen[data-av-h="250"] { --av-h: 250; }
.avatar.avatar-gen[data-av-h="260"] { --av-h: 260; }
.avatar.avatar-gen[data-av-h="270"] { --av-h: 270; }
.avatar.avatar-gen[data-av-h="280"] { --av-h: 280; }
.avatar.avatar-gen[data-av-h="290"] { --av-h: 290; }
.avatar.avatar-gen[data-av-h="300"] { --av-h: 300; }
.avatar.avatar-gen[data-av-h="310"] { --av-h: 310; }
.avatar.avatar-gen[data-av-h="320"] { --av-h: 320; }
.avatar.avatar-gen[data-av-h="330"] { --av-h: 330; }
.avatar.avatar-gen[data-av-h="340"] { --av-h: 340; }
.avatar.avatar-gen[data-av-h="350"] { --av-h: 350; }

.avatar[data-av-size="26"], img.avatar[data-av-size="26"] { --av-size: 26px; width: 26px; height: 26px; }
.avatar[data-av-size="30"], img.avatar[data-av-size="30"] { --av-size: 30px; width: 30px; height: 30px; }
.avatar[data-av-size="34"], img.avatar[data-av-size="34"] { --av-size: 34px; width: 34px; height: 34px; }
.avatar[data-av-size="36"], img.avatar[data-av-size="36"] { --av-size: 36px; width: 36px; height: 36px; }
.avatar[data-av-size="40"], img.avatar[data-av-size="40"] { --av-size: 40px; width: 40px; height: 40px; }
.avatar[data-av-size="44"], img.avatar[data-av-size="44"] { --av-size: 44px; width: 44px; height: 44px; }
.avatar[data-av-size="46"], img.avatar[data-av-size="46"] { --av-size: 46px; width: 46px; height: 46px; }
.avatar[data-av-size="52"], img.avatar[data-av-size="52"] { --av-size: 52px; width: 52px; height: 52px; }
.avatar[data-av-size="64"], img.avatar[data-av-size="64"] { --av-size: 64px; width: 64px; height: 64px; }
.avatar[data-av-size="84"], img.avatar[data-av-size="84"] { --av-size: 84px; width: 84px; height: 84px; }
.avatar[data-av-size="96"], img.avatar[data-av-size="96"] { --av-size: 96px; width: 96px; height: 96px; }

/* ---------- Chipy / odznaki ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 600; line-height: 1.4;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
}
.chip-brand { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.chip-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* Ikona przedmiotu — subtelna, obok nazwy w chipie / filtrze / liście */
.subject-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.72;
  margin-top: -0.05em;
}
.subject-icon-lg {
  width: 22px;
  height: 22px;
}
.subject-icon-lang {
  width: 21px;
  height: 21px;
}
.chip .subject-icon { opacity: 0.78; }
.check-row .subject-icon { opacity: 0.65; }

/* Ikony języków — obrys dymka + widoczny kod (PL, EN, DE, ES) */
.subject-lang-bubble {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linejoin: round;
}
.subject-lang-code {
  fill: currentColor;
  font-family: var(--f-sans);
  font-size: 7.25px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Ukryty licznik odbytych spotkań korepetytora (dane pod przyszły rozwój) */
.tutor-session-count { display: none !important; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px; border-radius: var(--r-pill);
  font-size: 0.8125rem; font-weight: 700;
}
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-err { background: var(--err-soft); color: var(--err); }
.status-warn { background: var(--warn-soft); color: var(--warn); }
.status-info { background: var(--info-soft); color: var(--info); }
.status-muted { background: var(--surface); color: var(--muted); }

/* ---------- Formularze ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.field .hint { font-size: 0.875rem; color: var(--muted); margin-top: 5px; }
.req { color: var(--brand-strong); }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"], input[type="url"],
select, textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit; color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-m);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input::placeholder, textarea::placeholder { color: oklch(0.50 0.02 40); }

input[type="checkbox"], input[type="radio"] {
  accent-color: var(--brand);
  width: 19px; height: 19px;
}

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: 0.875rem; font-weight: 600; margin-top: 5px; }

.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9375rem; margin-bottom: 12px;
}
.check-row input { margin-top: 2px; flex: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Karty / panele ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(18px, 3vw, 28px);
}
.card-soft { background: var(--surface); border-color: transparent; }

/* ---------- Puste stany ---------- */
.empty {
  text-align: center;
  padding: clamp(32px, 6vw, 56px) 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-l);
  color: var(--muted);
}
.empty h3 { font-family: var(--f-sans); font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.empty p { margin-inline: auto; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; bottom: 20px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; gap: 8px;
  z-index: var(--z-toast); width: min(92vw, 420px);
}
.toast {
  padding: 13px 18px; border-radius: var(--r-m);
  background: var(--dark); color: var(--dark-ink);
  font-weight: 600; font-size: 0.9375rem;
  box-shadow: var(--shadow-2);
  opacity: 0; translate: 0 8px;
  transition: opacity var(--t-med) var(--ease-out), translate var(--t-med) var(--ease-out);
}
.toast.in { opacity: 1; translate: 0 0; }
.toast-err { background: var(--err); color: oklch(0.98 0.01 27); }

/* ---------- Dialogi ---------- */
.dlg {
  border: none; border-radius: var(--r-l);
  padding: 0; max-width: min(92vw, 440px);
  box-shadow: var(--shadow-2);
}
.dlg-wide { max-width: min(92vw, 620px); }
.dlg::backdrop { background: oklch(0.2 0.02 40 / 0.45); }
.dlg-body { padding: 26px 28px; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dlg-title { font-size: 1.375rem; margin-bottom: 10px; }
.dlg-text { color: var(--muted); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.dlg-x {
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: var(--r-s);
}
.dlg-x:hover { color: var(--ink); background: var(--surface); }
.dlg-scroll { max-height: min(55vh, 420px); overflow-y: auto; padding-right: 6px; }
.dlg-scroll h3 { font-family: var(--f-sans); font-size: 1.05rem; font-weight: 700; margin-top: 1.2em; }
.dlg-scroll p { font-size: 0.9375rem; color: var(--ink); }

/* ---------- Stopka ---------- */
.site-footer {
  background: var(--dark); color: var(--dark-muted);
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(36px, 6vw, 64px) 0 28px;
  font-size: 0.9375rem;
}
.site-footer .logo { color: var(--dark-ink); font-size: 1.35rem; }
.site-footer .logo b { color: oklch(0.72 0.13 45); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
  padding-bottom: 28px; border-bottom: 1px solid oklch(0.35 0.02 38);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--dark-ink); font-size: 0.9375rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--dark-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--dark-ink); text-decoration: underline; }
.footer-note {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; font-size: 0.875rem;
}
.footer-note a { color: var(--dark-muted); }

/* ---------- Układ strony aplikacyjnej ---------- */
.page-head { padding: clamp(28px, 5vw, 48px) 0 clamp(16px, 3vw, 26px); }
.page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 6px; }
.page-head .lead { color: var(--muted); font-size: 1.0625rem; margin: 0; }

main { min-height: 55vh; }

/* ---------- Weryfikacja / oceny ---------- */
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-size: 0.8125rem; font-weight: 700;
  vertical-align: middle;
}
.verified-badge svg { color: var(--accent); flex: none; }

.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars svg { fill: var(--line-strong); }
.stars svg.on { fill: oklch(0.72 0.15 75); }

.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.rating-line a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.rating-line a:hover { color: var(--ink); }
.rating-none { color: var(--muted); }

.header-pending {
  background: var(--brand); color: oklch(0.99 0.004 45);
  border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700;
  min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* pole tekstowe w oknie dialogowym */
.dlg-input {
  width: 100%; margin-top: 4px;
  padding: 11px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--r-m);
  resize: vertical;
}
.dlg-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dlg-input.invalid-input { border-color: var(--err); }

/* ---------- Dzwoneczek powiadomień ---------- */
.bell { position: relative; }
.bell-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: transparent; border: none; cursor: pointer; color: var(--ink);
  transition: background var(--t-fast) var(--ease-out);
}
.bell-btn:hover { background: var(--surface); }
.bell-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--brand); color: oklch(0.99 0.004 45);
  border-radius: var(--r-pill); border: 2px solid var(--bg);
  font-size: 0.65rem; font-weight: 700; line-height: 13px; text-align: center;
}
.bell-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-dropdown);
  width: min(360px, 90vw); max-height: 460px; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
}
.bell-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); }
.bell-head b { font-size: 1rem; }
.bell-readall { background: none; border: none; cursor: pointer; color: var(--brand-strong); font-weight: 700; font-size: 0.8125rem; }
.bell-readall:hover { text-decoration: underline; }
.bell-list { padding: 6px; }
.bell-item {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; border-radius: var(--r-m);
  padding: 11px 12px; font: inherit; color: var(--ink);
}
.bell-item:hover { background: var(--surface); }
.bell-item.unread { background: var(--brand-soft); }
.bell-item.unread:hover { background: oklch(0.92 0.04 45); }
.bell-ico { flex: none; display: inline-flex; margin-top: 1px; color: var(--brand-strong); }
.bell-ico-akceptacja { color: var(--ok); }
.bell-ico-admin { color: var(--accent); }
.bell-ico-wiadomosc { color: var(--accent); }
.bell-ico-opinia { color: oklch(0.62 0.13 75); }
.bell-text { font-size: 0.9rem; line-height: 1.4; min-width: 0; }
.bell-time { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.bell-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Pod-zakładki ---------- */
.subtabs { display: inline-flex; gap: 4px; background: var(--surface); border-radius: var(--r-pill); padding: 5px; margin-bottom: 20px; }
.subtab {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 18px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.9375rem; color: var(--muted);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.subtab[aria-selected="true"] { background: var(--ink); color: var(--dark-ink); }
.subtab:hover:not([aria-selected="true"]) { color: var(--ink); }

/* ---------- Ruch ograniczony ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utility (zamiast inline style= — CSP bez unsafe-inline) ---------- */
.u-w-full { width: 100%; }
.u-m-0 { margin: 0; }
.u-mt-5 { margin-top: 5px; }
.u-mt-6 { margin-top: 6px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-10 { margin-top: 10px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-18 { margin-top: 18px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-28 { margin-top: 28px; }
.u-mb-10 { margin-bottom: 10px; }
.u-ml-14 { margin-left: 14px; }
.u-ml-auto { margin-left: auto; }
.u-my-6 { margin: 6px 0; }
.u-row { display: flex; gap: 10px; flex-wrap: wrap; }
.u-row-lg { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hint-inline { display: inline; }
.hint-pad { padding: 2px 0 8px; }
.hint-tight { margin: -4px 0 12px; }
.hint-stack { margin: 0 0 12px; }
.hint-stack-14 { margin: 0 0 14px; }
.hint-after { margin: 4px 0 10px; }
.hint-demo-gap { margin: 10px 0 6px; }
.field-label-block { display: block; font-size: 0.9375rem; font-weight: 600; margin: 10px 0 5px; }
.btn-confirm-ok { color: var(--ok); border-color: oklch(0.82 0.07 155); }
.text-muted { color: var(--muted); }
.fw-700 { font-weight: 700; }
.fw-700-mb { font-weight: 700; margin-bottom: 10px; }
.footer-brand-lead { margin-top: 12px; max-width: 34ch; }
.page-head-tight { padding-bottom: 8px; }
.footer-note-flush { border: none; padding-top: 0; }
.section-flush-top { padding-top: 0; }
.field-narrow-mt { max-width: 420px; margin-top: 28px; }
.h3-flush { margin: 0; }
.role-picker-label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; }
.field-zgody { margin-top: 20px; }
.confirm-block { margin-top: 14px; }
