
:root {
  --red: #e8202a;
  --red-hot: #e84010;
  --red-dark: #b4161e;
  --black: #0c0c0c;
  --charcoal: #161616;
  --ink: #1c1c1c;
  --muted: #5a5a5a;
  --line: #e4e2df;
  --paper: #f4f2ef;
  --white: #fff;
  --warn: #7a4e00;
  --warn-bg: #fbf4e6;
  --warn-line: #e0c57a;
  --max: 1140px;
  --header-h: 72px;
  --font-h: "Oswald", "Arial Narrow", sans-serif;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: 8px 12px; z-index: 1000;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { width: min(1240px, calc(100% - 24px)); }
.header-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--header-h);
}
.logo { flex: 0 0 auto; }
.logo img { height: 42px; width: auto; max-width: none; }
.logo:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
#nav { margin-left: auto; }
#nav ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
#nav a {
  display: block;
  padding: 8px 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
}
#nav a:hover, #nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-h);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
  white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--black);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  font-family: var(--font-h);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.flag {
  height: 6px;
  background: repeating-linear-gradient(90deg, #111 0 9px, var(--red) 9px 18px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--charcoal) center/cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.88) 100%);
  z-index: -1;
}
.hero-inner { padding: 48px 0 64px; max-width: 760px; }
.eyebrow, .kicker {
  display: inline-block;
  font-family: var(--font-h);
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero .lead { font-size: 1.15rem; color: #ececec; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-logo { height: 86px; width: auto; margin-bottom: 18px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4)); }
.meta-line { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: #ddd; }
.meta-line li { border-left: 3px solid var(--red); padding-left: 10px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--charcoal); color: #eee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.kicker { display: block; margin-bottom: 6px; }
.lead { font-size: 1.08rem; color: var(--muted); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.photo { overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.caption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 100%;
}
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card time, .date { font-family: var(--font-h); letter-spacing: 0.1em; font-size: 0.78rem; color: var(--red); text-transform: uppercase; }
.card h3 { font-size: 1.15rem; margin: 8px 0 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--red); text-decoration: none; }
.card:hover { border-color: #ccc; }

/* Facts / fees */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.fact { background: #fff; border-top: 4px solid var(--red); padding: 18px 20px; }
.fact strong { display: block; font-family: var(--font-h); font-size: 1.7rem; letter-spacing: 0.04em; }
.fact span { color: var(--muted); font-size: 0.92rem; }

/* Placeholders */
.note, .todo {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  color: var(--warn);
  padding: 12px 14px;
  font-size: 0.95rem;
  margin: 0 0 1.2em;
}
.tag {
  display: inline-block;
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid var(--warn-line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  vertical-align: middle;
}

/* Page header */
.page-hero {
  background: var(--charcoal);
  color: #fff;
  padding: 42px 0 36px;
  position: relative;
}
.page-hero::after {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(90deg, #111 0 9px, var(--red) 9px 18px);
  position: absolute; left: 0; right: 0; bottom: 0;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cfcfcf; margin: 8px 0 0; max-width: 40rem; }

/* Board tables */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 28px; }
.person { background: #fff; border: 1px solid var(--line); padding: 16px 18px; }
.person .role { font-family: var(--font-h); color: var(--red); letter-spacing: 0.08em; font-size: 0.78rem; text-transform: uppercase; margin: 0 0 4px; }
.person .name { font-family: var(--font-h); font-size: 1.25rem; margin: 0; text-transform: none; }

.goals { columns: 2; column-gap: 32px; margin: 0 0 1em; }
.goals li { break-inside: avoid; margin-bottom: 8px; }

/* Docs list */
.doc-list { list-style: none; padding: 0; margin: 0 0 2em; }
.doc-list li { border-top: 1px solid var(--line); }
.doc-list a {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 14px 0; text-decoration: none; color: var(--ink); font-weight: 600;
}
.doc-list a:hover { color: var(--red); }
.doc-list small { color: var(--muted); font-weight: 400; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card { background: #fff; border: 1px solid var(--line); padding: 22px; }
.contact-card h3 { margin-top: 0; }
.contact-card dt { font-size: 0.78rem; font-family: var(--font-h); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.contact-card dd { margin: 0; }
.form { display: grid; gap: 12px; }
.form label { font-weight: 600; font-size: 0.92rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; font: inherit; background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.form .hint { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.steps { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 16px 16px 16px 70px;
  border: 1px solid var(--line);
  position: relative;
  background: #fff;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 14px; top: 16px;
  font-family: var(--font-h); color: var(--red); font-size: 1.3rem;
}

/* Calendar placeholder */
.calendar-empty {
  border: 2px dashed var(--line);
  padding: 40px 24px;
  text-align: center;
  background: #fff;
}

/* Footer */
.site-footer { background: var(--black); color: #c9c9c9; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-logo { height: 84px; width: auto; margin-bottom: 14px; }
.legal {
  border-top: 1px solid #2a2a2a;
  padding: 14px 0 18px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9a9a9a;
}

@media (max-width: 980px) {
  .cards, .facts, .split, .people, .contact-grid, .footer-grid, .goals { grid-template-columns: 1fr; columns: 1; }
  .nav-toggle { display: inline-flex; }
  .header-inner .btn-red { display: none; }
  #nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  #nav.is-open { display: block; }
  #nav ul { flex-direction: column; align-items: stretch; }
  #nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .logo img { height: 36px; }
  .hero { min-height: 86vh; }
  .hero-logo { height: 72px; }
}

/* Social icons */
.socials { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 12px 0 0; padding: 0; list-style: none; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600;
}
.socials svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
.header-socials { display: flex; gap: 8px; margin-left: 4px; }
.header-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; color: var(--ink); border: 1px solid var(--line); border-radius: 50%;
  text-decoration: none;
}
.header-socials a:hover { color: var(--red); border-color: var(--red); }
.header-socials svg { width: 16px; height: 16px; fill: currentColor; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-login {
  background: transparent; color: var(--black); border-color: var(--black);
  padding: 8px 14px;
}
.btn-login:hover { background: var(--black); color: #fff; }
.nav-account { display: none; }
.header-inner { min-width: 0; }
@media (max-width: 1240px) and (min-width: 1121px) { .header-inner .header-socials { display: none; } }

/* Sample-data callout */
.sample-flag {
  background: #f3eee6;
  border: 1px dashed #c4a574;
  color: #6a4a16;
  padding: 10px 14px;
  font-size: 0.92rem;
  margin: 0 0 1.2em;
}
.sample-flag strong { text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }

/* App shell (login / panel / konto) */
.app-shell { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.app-nav { background: #fff; border: 1px solid var(--line); position: sticky; top: 92px; }
.app-nav button, .app-nav a {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 12px 16px;
  font: 600 0.92rem var(--font); color: var(--ink); cursor: pointer; text-decoration: none;
}
.app-nav button:hover, .app-nav a:hover, .app-nav button[aria-current="true"], .app-nav a[aria-current="page"] {
  color: var(--red); background: #fff5f5;
}
.app-panel { display: none; }
.app-panel.is-on { display: block; }
.app-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.data-table th { background: var(--paper); font-family: var(--font-h); letter-spacing: 0.06em; font-size: 0.78rem; text-transform: uppercase; }
.data-table tr:hover td { background: #fafafa; }
.btn-sm { padding: 6px 10px; font-size: 0.78rem; }
.btn-ok { background: #1b6b3a; border-color: #1b6b3a; color: #fff; }
.btn-ok:hover { background: #14522c; color: #fff; }
.btn-warn { background: transparent; color: var(--red); border-color: var(--red); }

/* Status chips */
.st { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 8px; }
.st-ok { background: #e5f6ea; color: #14522c; }
.st-wait { background: #fff4d6; color: #7a4e00; }
.st-late { background: #fde8e8; color: #8a1212; }

/* Login */
.login-box { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line); padding: 28px; }
.login-roles { display: grid; gap: 10px; margin-top: 16px; }
.login-roles .btn { width: 100%; }

/* Messages */
.msg-list { display: grid; gap: 10px; margin: 0 0 20px; }
.msg { background: #fff; border: 1px solid var(--line); padding: 14px 16px; }
.msg .from { font-weight: 700; }
.msg time { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }

/* Events calendar */
.cal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { font-family: var(--font-h); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 6px 0; }
.cal-day {
  min-height: 88px; background: #fff; border: 1px solid var(--line); padding: 6px;
  font-size: 0.82rem;
}
.cal-day .n { font-weight: 700; display: block; margin-bottom: 4px; }
.cal-day.is-muted { background: #f7f7f6; color: #bbb; }
.cal-day a { display: block; font-size: 0.75rem; line-height: 1.3; text-decoration: none; color: var(--red-dark); }
.event-card { background: #fff; border: 1px solid var(--line); padding: 16px 18px; margin: 0 0 12px; }
.event-card h3 { text-transform: none; margin-bottom: 6px; }
.event-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (max-width: 1120px) {
  .header-inner .header-socials { display: none; }
  .header-actions .btn-red, .header-actions .btn-login { display: none; }
  .nav-account { display: list-item; }
  .nav-toggle { display: inline-flex; }
  #nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  #nav.is-open { display: block; }
  #nav ul { flex-direction: column; align-items: stretch; }
  #nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .app-shell, .cal-layout { grid-template-columns: 1fr; }
  .app-nav { position: static; display: flex; flex-wrap: wrap; }
  .app-nav button, .app-nav a { width: auto; border-right: 1px solid var(--line); }
  .cal-day { min-height: 64px; }
}

/* ===================== Wersja produkcyjna — dodatki ===================== */
[hidden], .hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.stack > * + * { margin-top: 12px; }
.narrow { max-width: 820px; margin-inline: auto; }

/* Komunikaty (nie mylić z .todo z makiety) */
.notice {
  background: #fff; border: 2px dashed var(--red); padding: 16px 18px; margin: 0 0 1.2em;
}
.notice strong { font-family: var(--font-h); letter-spacing: 0.04em; text-transform: uppercase; }
.alert { padding: 12px 14px; margin: 0 0 1em; font-size: 0.95rem; border-left: 4px solid; }
.alert-ok { background: #e5f6ea; color: #14522c; border-color: #1b6b3a; }
.alert-err { background: #fde8e8; color: #8a1212; border-color: var(--red); }
.alert-info { background: var(--paper); color: var(--ink); border-color: var(--black); }

/* Formularze w aplikacji */
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.form .check input { width: auto; }
.form button[disabled], .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.form fieldset { border: 1px solid var(--line); padding: 14px; margin: 0; }
.form legend { font-family: var(--font-h); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; padding: 0 6px; }
.btn-link { background: none; border: 0; color: var(--red-dark); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.login-tabs { display: flex; gap: 0; margin: 0 0 18px; border-bottom: 2px solid var(--black); }
.login-tabs button {
  flex: 1; background: #fff; border: 0; padding: 10px 8px; cursor: pointer;
  font-family: var(--font-h); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--muted);
}
.login-tabs button[aria-selected="true"] { background: var(--black); color: #fff; }

/* Aktualności */
.post { margin: 0 0 56px; scroll-margin-top: 90px; }
.post h2 { margin-top: 6px; }
.post-cover { margin: 16px 0; max-height: 520px; width: auto; }
.post-body { font-size: 1.02rem; }
.post-body img { margin: 12px 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.gallery img { width: 100%; height: 260px; object-fit: cover; }
.card-empty { min-height: 0; justify-content: center; }
.card .ph { height: 190px; background: var(--charcoal) url("../img/logo/znak-bialy.svg") center/45% no-repeat; }

/* Archiwum */
.archive-year { border-top: 1px solid var(--line); }
.archive-year summary {
  cursor: pointer; padding: 14px 0; font-family: var(--font-h); font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.archive-year summary span { color: var(--muted); font-size: 0.9rem; margin-left: 8px; }
.archive-list { list-style: none; padding: 0 0 16px; margin: 0; }
.archive-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 14px; }
.archive-list time { font-family: var(--font-h); color: var(--red); font-size: 0.8rem; letter-spacing: 0.08em; min-width: 88px; padding-top: 3px; }
.archive-body table { border-collapse: collapse; margin: 12px 0; font-size: 0.92rem; }
.archive-body td, .archive-body th { border: 1px solid var(--line); padding: 4px 8px; }
.archive-body img { margin: 10px 0; }
.archive-body figure { margin: 0; }

/* Kalendarz */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; gap: 6px; }
.cal-day.is-today { outline: 2px solid var(--red); outline-offset: -2px; }
.cal-day.has-ev { background: #fff5f5; }
.cal-day a { margin-top: 2px; }
.event-card .count { font-family: var(--font-h); font-size: 1.1rem; }
.event-card.is-past { opacity: 0.7; }
.event-card .kind { color: var(--muted); }
.signup-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.signup-box select { padding: 8px 10px; border: 1px solid #ccc; font: inherit; }
.video-wrap { background: var(--black); }
.video-wrap video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; background: #000; }

/* Wiadomości */
.thread { display: grid; gap: 10px; margin: 0 0 16px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.msg.mine { background: #fff5f5; border-color: #f3c9cb; margin-left: 40px; }
.msg.theirs { margin-right: 40px; }
.msg p { margin: 6px 0 0; white-space: pre-wrap; }
.thread-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); background: #fff; }
.thread-list button {
  display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 12px 14px; cursor: pointer; font: inherit;
}
.thread-list button:hover, .thread-list button[aria-current="true"] { background: #fff5f5; color: var(--red); }
.pill { display: inline-block; min-width: 22px; padding: 1px 7px; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 700; text-align: center; border-radius: 11px; }
.inbox { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }

/* Panel */
.table-wrap { overflow-x: auto; }
.data-table td .btn + .btn { margin-left: 6px; }
.data-table .actions { white-space: nowrap; }
.thumb { width: 72px; height: 48px; object-fit: cover; }
.toolbar-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0 0 14px; }
.toolbar-gap label { font-weight: 600; font-size: 0.85rem; }
.toolbar-gap select, .toolbar-gap input { padding: 8px 10px; border: 1px solid #ccc; font: inherit; }
.st-rej { background: #eee; color: #444; }
.loading { color: var(--muted); font-style: italic; }
.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 200; max-width: 360px;
  background: var(--black); color: #fff; padding: 12px 16px; border-left: 4px solid var(--red); box-shadow: var(--shadow);
}
.todo-list li { margin-bottom: 8px; }

@media (max-width: 980px) {
  .form .row, .inbox, .gallery { grid-template-columns: 1fr; }
  .msg.mine { margin-left: 16px; } .msg.theirs { margin-right: 16px; }
}
@media (max-width: 600px) {
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 8px; }
  .archive-list li { flex-direction: column; gap: 2px; }
  .cal-day { min-height: 52px; padding: 4px; }
  .cal-day a { font-size: 0.65rem; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* elementy siatki nie mogą rozpychać strony (szerokie tabele przewijają się w .table-wrap) */
.app-shell > *, .app-panel, .grid-2 > *, .grid-3 > * { min-width: 0; }
.data-table td .btn-row, .data-table td:last-child { white-space: nowrap; }
.app-toolbar { margin-top: 18px; }
