/* =========================================================================
   Monitor zmian w planie USOS — motyw: monochrom + neonowy róż.
   hue = typ zajęć, saturacja = świeżość (nigdy do szarości).
   Dark-only, mobile-first. Zero zależności.
   ========================================================================= */

/* ── Fonty (self-host, z fallbackiem systemowym) ─────────────────────── */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

/* ── Tokeny ──────────────────────────────────────────────────────────── */
:root {
  --bg:        #050506;
  --bg-1:      #0a0b0d;
  --bg-2:      #101216;
  --bg-3:      #171a1f;
  --line:      rgba(255, 255, 255, 0.075);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #e8ebed;
  --text-dim:  #9aa1a8;
  --text-faint:#61686f;

  --accent:      #ff1e8a;                    /* neonowy róż */
  --accent-ink:  #2b0016;                    /* tekst na akcencie */
  --accent-soft: rgba(255, 30, 138, 0.17);
  --accent-glow: rgba(255, 30, 138, 0.46);

  --ok:  #86f2b0;
  --err: #ff7a7a;

  --font-sans: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;

  --r:   14px;      /* promień paneli */
  --r-s: 9px;       /* promień elementów */
  --pad: clamp(14px, 2.4vw, 26px);

  --shadow: 0 18px 46px -22px rgba(0, 0, 0, 0.9);
  --ring:   0 0 0 2px var(--accent), 0 0 0 5px var(--accent-soft);

  /* Ruch — spójny „smooth vibe" */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.3, .5, 1);
  --dur-1: .16s;    /* mikro (hover, kolor) */
  --dur-2: .26s;    /* standard (popover, karty) */
  --dur-3: .42s;    /* większe ruchy (składanie) */

  --gutter: 50px;   /* szerokość kolumny godzin */
  color-scheme: dark;
}

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

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

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.1px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-s); }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Cienki, ciemny pasek przewijania */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; }

/* ── Tło: głęboka czerń + subtelny grid + delikatne poświaty ─────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 12% -8%, rgba(212, 255, 0, 0.05), transparent 46%),
    radial-gradient(90% 70% at 108% 6%, rgba(120, 180, 255, 0.04), transparent 50%),
    linear-gradient(180deg, #070709, #030304 70%);
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(130% 120% at 50% 0%, #000 30%, transparent 92%);
}

/* ── Pasek statusu ───────────────────────────────────────────────────── */
.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  padding: clamp(16px, 2.6vw, 26px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.status__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 22px var(--accent-glow);
  flex: none;
}
.status__title {
  font-size: clamp(17px, 2.4vw, 23px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: min(58vw, 640px);
}
.status__sub { color: var(--text-faint); font-size: 11.5px; letter-spacing: 0.02em; margin-top: 2px; }

.status__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease-out);
}
.chip__k { color: var(--text-faint); }
.chip__v { color: var(--text); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.chip__dot.is-ok  { background: var(--ok);  box-shadow: 0 0 10px rgba(134, 242, 176, 0.5); }
.chip__dot.is-err { background: var(--err); box-shadow: 0 0 10px rgba(255, 122, 122, 0.5); }
.chip--link { color: var(--text-dim); }
.chip--link:hover { color: var(--accent); border-color: var(--accent-soft); transform: translateY(-1px); }

.btn-check {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), filter var(--dur-1) var(--ease);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-check:hover { filter: brightness(1.06); box-shadow: 0 0 26px -2px var(--accent-glow); transform: translateY(-1px); }
.btn-check:active { transform: translateY(1px); }
.btn-check__spin {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(43, 0, 22, 0.35);
  border-top-color: var(--accent-ink);
  display: none;
  animation: spin .7s linear infinite;
}
.btn-check.is-loading { pointer-events: none; opacity: 0.85; }
.btn-check.is-loading .btn-check__spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Układ: dwie kolumny → stos ──────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--pad);
  align-items: start;
  padding: var(--pad);
  max-width: 1500px;
  margin: 0 auto;
}

.panel {
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--line);
}
.panel__title { font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.panel__count {
  font-size: 12px; color: var(--accent);
  background: var(--accent-soft); padding: 2px 9px; border-radius: 999px;
}
.panel__meta { color: var(--text-faint); font-size: 12px; }
.panel__head-r { display: flex; align-items: center; gap: 12px; }

/* ── Legenda ─────────────────────────────────────────────────────────── */
.legend-toggle, .list-toggle {
  font-size: 12px; color: var(--text-dim);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  transition: color .15s, border-color .15s;
}
.legend-toggle:hover, .legend-toggle[aria-expanded="true"],
.list-toggle:hover, .list-toggle[aria-expanded="true"] { color: var(--accent); border-color: var(--accent-soft); }

.legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.legend[hidden] { display: none; }
.legend__types { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legend__type { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-dim); }
.swatch {
  width: 12px; height: 12px; border-radius: 4px;
  background: hsl(var(--h), 80%, 52%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.legend__fresh { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.legend__lbl { font-size: 12.5px; color: var(--text-dim); }
.fresh-ramp {
  width: 130px; height: 11px; border-radius: 999px;
  background: linear-gradient(90deg,
    hsl(330, 100%, 66%), hsl(330, 78%, 62%), hsl(330, 60%, 60%), hsl(330, 44%, 58%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.fresh-ramp__ends { display: inline-flex; gap: 10px; font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.fresh-ramp__ends b { font-weight: 500; }

/* ── Przełącznik dni (widoczny na mobile) ────────────────────────────── */
.day-switch { display: none; gap: 7px; padding: 12px var(--pad) 4px; flex-wrap: wrap; }
.day-pill {
  flex: 1 1 auto; min-width: 44px; min-height: 40px;
  padding: 7px 10px; border-radius: var(--r-s);
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 12.5px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; line-height: 1.2;
  transition: color .15s, border-color .15s, background .15s;
}
.day-pill small { font-weight: 400; font-size: 10px; color: var(--text-faint); font-family: var(--font-mono); }
.day-pill.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.day-pill.is-active small { color: rgba(43, 0, 22, 0.6); }
.day-pill.has-events:not(.is-active) { color: var(--text); border-color: var(--line-2); }

/* ── Kalendarz ───────────────────────────────────────────────────────── */
.calendar { padding: 10px var(--pad) var(--pad); }
.calendar__empty { color: var(--text-faint); padding: 40px 0; text-align: center; font-size: 13px; }

.cal { --cal-h: 780px; display: flex; flex-direction: column; }

.cal__head { display: flex; padding-left: var(--gutter); }
.cal__dh {
  flex: 1 1 0; min-width: 0; padding: 0 4px 10px;
  text-align: center; color: var(--text-dim);
}
.cal__dh b { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.cal__dh small { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.cal__dh.is-today b { color: var(--accent); }

.cal__body { display: flex; height: var(--cal-h); position: relative; }

.cal__gutter { width: var(--gutter); flex: none; position: relative; }
.cal__hour {
  position: absolute; right: 8px; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint);
}

.cal__day {
  flex: 1 1 0; min-width: 0; position: relative;
  border-left: 1px solid var(--line);
}
.cal__day:last-child { border-right: 1px solid var(--line); }
.cal__line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); opacity: 0.6; }
.cal__line.is-half { border-top-style: dashed; opacity: 0.32; }

/* Blok zajęć */
.ev {
  position: absolute;
  border-radius: 7px;
  padding: 5px 8px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-left: 3px solid rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease-out), filter var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease);
  min-height: 20px;
}
.ev:hover { filter: brightness(1.08) saturate(1.05); z-index: 5; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.85); }
.ev:focus-visible { z-index: 6; }
.ev__t { font-weight: 600; font-size: 12px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev__m { font-family: var(--font-mono); font-size: 10px; opacity: 0.92; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__tag {
  position: absolute; top: 4px; right: 5px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  padding: 1px 4px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.28); color: rgba(255, 255, 255, 0.92);
}
/* zajęcia niższe niż ~44px: pokaż tylko tytuł */
.ev.is-short { padding: 3px 7px; }
.ev.is-short .ev__m { display: none; }
.ev.is-short .ev__t { -webkit-line-clamp: 1; font-size: 11px; }

/* Znacznik „NOWE" — statyczna limonkowa kropka + pierścień */
.ev.is-new { box-shadow: 0 0 0 1.5px var(--accent), 0 0 16px -2px var(--accent-glow); }
.ev.is-new::after {
  content: ""; position: absolute; top: 5px; left: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.ev.is-new .ev__t { padding-left: 12px; }

/* Puls „settle" po kontroli bez zmian (animation-delay ustawia JS falą) */
@keyframes tile-pulse { 50% { transform: translateY(-2px); filter: brightness(1.14) saturate(1.06); } }
.ev.pulse { animation: tile-pulse .5s var(--ease-out) both; }

/* ── Popover ─────────────────────────────────────────────────────────── */
.popover {
  position: absolute; z-index: 60; width: 260px; max-width: calc(100vw - 24px);
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-s); box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.95);
  padding: 13px 15px; opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.popover.is-open { opacity: 1; transform: none; }
.popover__top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.popover__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.popover__title { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.popover__tag { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; }
.popover__time { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.popover__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 11px;
  font-size: 12px; color: var(--accent); font-weight: 600;
}
.popover__link:hover { text-decoration: underline; }
/* popover bez przycisku zamknięcia — chowa się po zjechaniu kursorem (Esc też) */

/* Wspólne pary klucz–wartość (popover + karty) */
.kv { display: grid; gap: 6px; }
.kv > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: baseline; }
.kv dt { color: var(--text-faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.kv dd { font-size: 12.5px; color: var(--text); }
.tag { font-size: 10px; color: var(--text-dim); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; }

/* ── Kolumna zmian ───────────────────────────────────────────────────── */
.panel--changes {
  position: relative;
  display: flex; flex-direction: column;
  width: clamp(320px, 34vw, 500px);
  transition: width var(--dur-3) var(--ease-out);
  will-change: width;
}
.changes { list-style: none; padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px; align-content: start; align-items: start; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.panel__head, .changes { transition: opacity var(--dur-2) var(--ease); }

/* Zwinięty pionowy pasek „POKAŻ" (od góry do dołu) — crossfade z listą */
.changes-rail {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-weight: 700; font-size: 13px; letter-spacing: 0.28em;
  color: var(--accent); background: linear-gradient(180deg, var(--bg-1), var(--bg));
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out) .04s, background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.changes-rail:hover { background: var(--accent-soft); }

@media (min-width: 901px) {
  .panel--changes.is-collapsed { width: 46px; }
  .panel--changes.is-collapsed .panel__head,
  .panel--changes.is-collapsed .changes { opacity: 0; pointer-events: none; }
  .panel--changes.is-collapsed .changes-rail { opacity: 1; pointer-events: auto; }
}
@media (max-width: 900px) {
  .panel--changes { width: auto; transition: none; }
  .panel--changes.is-collapsed .changes { display: none; }
  .changes-rail { display: none; }
}

.change {
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--bg-1);
  overflow: hidden;
  scroll-margin: 90px;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-3) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.change:hover { border-color: var(--line-2); }
.change__head {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left; padding: 8px 11px;
  min-height: 38px;
}
.change__dot {
  width: 10px; height: 10px; border-radius: 3px; flex: none;
  background: hsl(var(--h), var(--s), 52%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.change__title { font-weight: 600; font-size: 12.5px; flex: 0 1 auto; min-width: 0; max-width: 56%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.change__kind { color: var(--text-dim); font-size: 11.5px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.change__time { color: var(--text-faint); font-size: 10.5px; flex: none; }
.change:not(.open) .change__time { display: none; }   /* zwinięty = tylko nazwa + typ */
.change__chev { color: var(--text-faint); transition: transform var(--dur-2) var(--ease-spring); flex: none; }
.change__head[aria-expanded="true"] .change__chev { transform: rotate(180deg); }

.badge-new {
  flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent-ink); background: var(--accent);
  padding: 2px 6px; border-radius: 5px;
}

/* akcent typu zmiany po lewej krawędzi */
.change--added   { border-left: 2px solid var(--ok); }
.change--removed { border-left: 2px solid var(--err); }
.change--modified{ border-left: 2px solid hsl(var(--h), var(--s), 52%); }

.change.is-new { border-color: var(--accent-soft); }
.change.highlight { box-shadow: 0 0 0 1.5px var(--accent), 0 0 26px -4px var(--accent-glow); border-color: var(--accent); }

.change__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-2) var(--ease); }
.change__body-inner { overflow: hidden; min-height: 0; }
.change__pad { padding: 4px 12px 12px; border-top: 1px solid var(--line); }
.change.open .change__body { grid-template-rows: 1fr; }

/* Tabela diff „było → jest" */
.diff { width: 100%; border-collapse: collapse; margin-top: 8px; table-layout: fixed; }
.diff th, .diff td { text-align: left; padding: 5px 6px; font-size: 12px; vertical-align: top; overflow-wrap: anywhere; }
.diff th { color: var(--text-faint); font-weight: 500; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.05em; width: 74px; }
.diff__arr { width: 16px; }
.diff__was { color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--err); text-decoration-thickness: 1px; }
.diff__arr { color: var(--text-faint); width: 18px; text-align: center; }
.diff__now { color: var(--accent); font-weight: 500; }

.changes__empty {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 40px 20px; color: var(--text-faint); font-size: 13px; text-align: center;
}
.changes__empty-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 12px;
}

/* ── Toasty (flash) ──────────────────────────────────────────────────── */
.toasts {
  position: fixed; z-index: 80; top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 360px);
}
.toast {
  padding: 12px 16px; border-radius: var(--r-s);
  background: var(--bg-2); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: 13px;
  border-left: 3px solid var(--text-faint);
  animation: toast-in .32s var(--ease-out) both;
}
.toast--changed { border-left-color: var(--accent); }
.toast--ok      { border-left-color: var(--ok); }
.toast--error   { border-left-color: var(--err); }
.toast.is-hiding { animation: toast-out .28s var(--ease) both; }
@keyframes toast-in  { from { opacity: 0; transform: translateX(20px); } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(20px); } }

/* ── Responsywność ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* stos: status → plan → zmiany */
  .layout { grid-template-columns: 1fr; }
  .status__title { max-width: 100%; white-space: normal; }
  .day-switch { display: flex; }

  /* plan = jeden dzień na pełną szerokość */
  .cal__head { padding-left: 0; }
  .cal__dh { display: none; }
  .cal__day { display: none; border-left: 0; }
  .cal__day.is-active { display: block; }
  .cal__day.is-active { border-left: 0; }
  .cal__day:last-child { border-right: 0; }
  .ev__t { -webkit-line-clamp: 2; }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .status { gap: 12px; }
  .status__meta { width: 100%; }
  .btn-check { flex: 1 1 auto; justify-content: center; }
  .legend__fresh { margin-left: 0; width: 100%; }
  .change__title { max-width: 36%; }
}

/* ── Ruch / dostępność ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
