/* IURA × WPiA UW — Teksty jednolite — v1 (wrzesień 2026)
 *
 * Kierunek (makieta zaakceptowana 3.09.2026):
 *   - ciemny motyw domyślnie (uwaga dziekana 11.09.2026); papier jako opcja
 *     („Motyw”), wybór zapamiętany w przeglądarce — bez zależności od motywu
 *     systemowego,
 *   - granat UW (#012169) = kolor główny (nagłówki, linki, aktywny spis),
 *   - zieleń IURA (#50977e) = JEDYNY akcent, wyłącznie dla „obowiązuje / obecny stan”,
 *   - Gilda Display (tytuły) + Inter (tekst); brak gradientów, cieni, emoji,
 *   - WCAG 2.1 AA: kontrasty ≥ 4.5:1, focus-visible, cele dotykowe ≥ 44 px na mobile.
 */

@import url("https://fonts.googleapis.com/css2?family=Gilda+Display&family=Inter:wght@300;400;500;600&display=swap");

:root {
  color-scheme: dark;
  --paper:       #161513;
  --paper-soft:  #1f1e1b;
  --card:        #1b1a18;
  --ink:         #ece9e3;
  --ink-soft:    #b3aea6;
  --ink-faint:   #85807a;
  --rule:        #2c2a27;
  --rule-strong: #3a3733;
  --navy:        #9fb3e0;
  --navy-deep:   #c3d0ee;
  --navy-tint:   #1d2333;
  --green:       #7fbfa5;
  --green-tint:  #1c2a25;
  --red:         #ff9d94;
  --red-tint:    #3a1f1d;
  --amber:       #d8ac4c;
  --amber-tint:  #33290f;
  --focus:       #ff6b81;
  /* kolory „na granacie” (przyciski, paski) — w ciemnym motywie granat jest
     jasny, więc tekst na nim ciemny */
  --on-navy:     #0f1626;
  --bar:         #0b1a3d;
  --serif: "Gilda Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  /* aliasy zgodności dla starszych reguł renderera */
  --accent: var(--navy);
  --accent-2: var(--navy-deep);
  --band: var(--navy-tint);
  --band-rule: var(--rule-strong);
  --quote: var(--paper-soft);
  --quote-bar: var(--rule-strong);
}

/* motyw jasny („papier”) — tylko po wyborze użytkownika (localStorage
   iura-theme=light). Stare, już zbudowane strony aktów ustawiają data-theme
   tym samym skryptem inline, więc przełącznik działa wszędzie bez przebudowy. */
[data-theme="light"] {
  color-scheme: light;
  --paper: #fbfaf7; --paper-soft: #f3f1ec; --card: #ffffff;
  --ink: #1c1917; --ink-soft: #57534e; --ink-faint: #8a8580;
  --rule: #e7e5e4; --rule-strong: #d6d3d1;
  --navy: #012169; --navy-deep: #001443; --navy-tint: #eef1f8;
  --green: #50977e; --green-tint: #eaf3ef;
  --red: #b3261e; --red-tint: #fde8e8; --amber: #b8860b; --amber-tint: #fff7e6;
  --focus: #c8102e;
  --on-navy: #fbfaf7;
  --bar: var(--navy);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* paski przewijania w kolorach motywu (domyślny jasny pasek raził na ciemnym) */
html, .toc-col, .rail, .toc-list, .doc pre { scrollbar-width: thin; scrollbar-color: var(--rule-strong) var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 6px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
/* strzałka „na górę” (app.js dokleja na każdej stronie po przewinięciu) */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--navy); color: var(--navy); }
.site-version { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); white-space: nowrap; }
.site-version a { color: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 1rem/1.55 var(--sans);
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-deep); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; color: var(--ink); text-wrap: balance; }
button { font: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ─── pasek beta + nagłówek z co-brandingiem ───────────────────────────── */
.beta-bar {
  background: var(--bar); color: #fbfaf7; font-size: .8rem;
  padding: 6px 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.beta-bar a { color: inherit; opacity: .9; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 14px 48px; border-bottom: 1px solid var(--rule); background: var(--paper);
}
.brand-row, .brand-row a { display: flex; align-items: center; gap: 18px; height: 40px; }
.brand-row a:hover { text-decoration: none; }
.brand-row img { display: block; width: auto; }
.brand-row .logo-wpia { height: 40px; }
.brand-row .logo-iura { height: 24px; }
.brand-row .logo-iura-light, .brand-row .logo-wpia-light { display: none; }
[data-theme="light"] .brand-row .logo-iura-dark, [data-theme="light"] .brand-row .logo-wpia-dark { display: none; }
[data-theme="light"] .brand-row .logo-iura-light, [data-theme="light"] .brand-row .logo-wpia-light { display: block; }
.brand-row .vdiv { width: 1px; height: 26px; background: var(--rule-strong); }
.topsearch {
  flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--rule-strong); background: var(--card); padding: 0 14px;
}
.topsearch input { flex: 1; border: 0; outline: 0; font: inherit; font-weight: 300; font-size: .95rem; padding: 9px 0; background: transparent; color: var(--ink); min-width: 0; }
.topsearch input::placeholder { color: var(--ink-faint); }
.topsearch button { border: 0; background: transparent; color: var(--navy); cursor: pointer; padding: 6px 0; display: flex; }
.topnav { display: flex; align-items: center; gap: 26px; font-size: .9rem; font-weight: 400; }
.topnav a { color: var(--ink); }
.topnav a:hover { color: var(--navy); }
.theme-toggle {
  background: transparent; border: 1px solid var(--rule-strong); color: var(--ink-soft);
  font-size: .8rem; padding: 6px 10px; cursor: pointer; min-height: 32px;
}
.theme-toggle:hover { border-color: var(--navy); color: var(--navy); }

/* ─── stopka zawsze przy dolnej krawędzi (strony z base.html; stare strony
   dostają klasę site-body z app.js) ─────────────────────────────────────── */
.site-body { min-height: 100vh; display: flex; flex-direction: column; }
.site-body > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.site-body > .site-footer { margin-top: 48px; }
/* ─── stopka ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule); padding: 22px 48px 36px; margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: .8rem; color: var(--ink-soft);
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--ink-soft); }

/* ─── strona główna ─────────────────────────────────────────────────────── */
.page { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 80px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.hero h1 { font-size: 3.1rem; max-width: 900px; }
.hero .lead { margin: 0; max-width: 640px; color: var(--ink-soft); font-size: 1.08rem; }
.hero-search {
  width: 100%; max-width: 820px; display: flex; align-items: stretch;
  border: 1.5px solid var(--navy); background: var(--card); margin-top: 6px;
}
.hero-search .ic { display: flex; align-items: center; padding: 0 18px; color: var(--navy); }
.hero-search input { flex: 1; border: 0; outline: 0; font: inherit; font-weight: 300; font-size: 1.1rem; padding: 17px 0; background: transparent; color: var(--ink); min-width: 0; }
.hero-search input::placeholder { color: var(--ink-faint); }
.hero-search button { border: 0; background: var(--navy); color: var(--on-navy); font-weight: 500; padding: 0 26px; cursor: pointer; min-height: 44px; }
.hero-search button:hover { background: var(--navy-deep); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 900px; }
.chip { border: 1px solid var(--rule-strong); background: var(--card); padding: 9px 14px; font-size: .86rem; color: var(--ink); min-height: 40px; display: inline-flex; align-items: center; }
.chip:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }

.home-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding: 24px 0 48px; }
.home-col h2 { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.row-link { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.row-link:hover { text-decoration: none; color: var(--navy); }
.row-link .when { color: var(--ink-soft); font-size: .82rem; white-space: nowrap; }
.row-link.stack { flex-direction: column; gap: 3px; }
.inforce { font-size: .8rem; color: var(--green); font-weight: 500; }
.notyet { font-size: .8rem; color: var(--ink-soft); font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 24px; }
.card { border: 1px solid var(--rule); background: var(--card); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.card a.more { font-weight: 400; margin-top: 4px; }

/* ─── katalog / listy (strony pomocnicze) ───────────────────────────────── */
.crumbs, .bcrumb { font-size: .82rem; color: var(--ink-soft); margin: 18px 0 12px; }
.catalog-hero { padding: 32px 0 16px; }
.catalog-hero h1 { font-size: 2.2rem; }
.catalog-hero .lead { color: var(--ink-soft); max-width: 56rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 24px; margin-bottom: 32px; }
.catalog-card { border: 1px solid var(--rule); background: var(--card); padding: 18px 20px; }
.catalog-card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.catalog-list, .acts-list, .act-list, .year-grid, .type-list { list-style: none; margin: 0; padding: 0; }
.catalog-list a, .year-grid a, .type-list a { display: flex; justify-content: space-between; align-items: center; padding: 7px 4px; color: var(--ink); border-bottom: 1px solid var(--rule); }
.catalog-list a:hover, .year-grid a:hover, .type-list a:hover { color: var(--navy); text-decoration: none; }
.count, .cnt { font-size: .78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.year-list { columns: 4; column-gap: 12px; }
@media (max-width: 800px) { .year-list { columns: 3; } }
.acts-list li, .act-list li { border-bottom: 1px solid var(--rule); }
.act-link, .act-list a { display: block; padding: 12px 4px; color: inherit; }
.act-link:hover, .act-list a:hover { text-decoration: none; color: var(--navy); }
.act-link .act-title, .act-list .al-title { display: block; font-size: .98rem; line-height: 1.4; color: var(--ink); }
.act-link .act-meta, .act-list .poz, .act-list .al-type { display: block; font-size: .8rem; color: var(--ink-soft); }
.amend-count { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 20px; }
.search-form input, .search-form select { font: inherit; font-weight: 300; padding: 10px 12px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); min-height: 44px; }
.search-form input { flex: 1; min-width: 14rem; }
.search-form button { border: 0; background: var(--navy); color: #fbfaf7; padding: 0 20px; min-height: 44px; cursor: pointer; }
.results-pager { display: flex; gap: 16px; align-items: center; margin: 16px 0; font-size: .9rem; }
.search-head { padding: 12px 0 8px; max-width: 900px; }
.search-head h1 { font-size: 2rem; margin-bottom: 8px; }
.search-head .muted { max-width: 760px; }
.search-hint { font-size: .85rem; }
.results { max-width: 900px; }
.hit-act { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.hit-title { font-size: 1.15rem; margin-bottom: 8px; }
.hit-title a { color: var(--ink); }
.hit-title a:hover { color: var(--navy); }
.hit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hit-list a { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; color: var(--ink); padding: 6px 8px; margin: 0 -8px; }
.hit-list a:hover { background: var(--paper-soft); text-decoration: none; }
.hit-unit { font-family: var(--serif); color: var(--navy); }
.hit-snip { color: var(--ink-soft); font-size: .92rem; }
.hit-snip mark { background: var(--green-tint); color: var(--ink); padding: 0 2px; }
.hit-more { margin: 6px 0 0; font-size: .85rem; }
.hit-meta { margin: -4px 0 8px; font-size: .82rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hit-meta .tag { border: 1px solid var(--rule-strong); padding: 0 6px; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.hit-sub { font: 500 .78rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 28px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--rule-strong); }
.hit-sub:first-child { margin-top: 8px; }
@media (max-width: 640px) { .hit-list a { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.tj-global-date { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; margin: 12px 0 24px; border: 1px solid var(--rule); background: var(--card); }
.tj-global-date-label { font-weight: 500; flex: 0 0 100%; font-size: .9rem; }
.tj-search-eli { flex: 1; min-width: 14rem; font-family: var(--mono); font-size: .9rem; }
.tj-date-input { font: inherit; padding: 8px 10px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ─── strona aktu: nagłówek ─────────────────────────────────────────────── */
.act-page { padding: 0 48px 64px; }
.act-head { padding: 22px 0 0; display: flex; flex-direction: column; gap: 8px; }
.act-crumbs { font-size: .8rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act-crumbs a { color: var(--ink-soft); }
.act-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
h1.act-title { font-size: 1.9rem; }
.act-meta { font-size: .8rem; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.act-meta .sep { color: var(--ink-faint); }
.badge-warn { display: inline-block; padding: 2px 8px; font-size: .75rem; font-weight: 500; color: var(--red); background: var(--red-tint); }
.notice { margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--rule); border-left: 3px solid var(--red); background: var(--card); font-size: .9rem; }
.notice p { margin: 4px 0; }
.notice.done { border-left-color: var(--green); }

/* ─── strona aktu: trzy kolumny ─────────────────────────────────────────── */
.layout3 {
  display: grid; grid-template-columns: 260px minmax(0, 1fr) 320px; gap: 48px;
  padding: 26px 0 0; align-items: start;
}
main.act { min-width: 0; max-width: 760px; }

/* spis treści */
.toc-col { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; border-right: 1px solid var(--rule); padding-right: 20px; }
.toc summary { list-style: none; cursor: pointer; font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft); padding: 4px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc-filter { width: 100%; font: inherit; font-weight: 300; font-size: .85rem; padding: 8px 10px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); margin-bottom: 8px; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0; }
.toc-list a { display: block; padding: 5px 8px 5px calc(8px + var(--lvl, 0) * 14px); color: var(--ink-soft); font-size: .86rem; line-height: 1.35; border-left: 2px solid transparent; }
.toc-list a:hover { color: var(--navy); text-decoration: none; background: var(--paper-soft); }
.toc-struct > a { color: var(--ink); font-weight: 500; }
.toc-struct > a .toc-num { color: var(--navy); }
.toc-unit > a .toc-text { display: none; }
.toc-list a.active { color: var(--navy); font-weight: 500; background: var(--navy-tint); border-left-color: var(--navy); }
.toc-list li[hidden] { display: none; }

/* treść aktu — jednostki */
.act-body { font-weight: 400; font-size: 1.03rem; line-height: 1.65; }
.div-h { margin: 2.2rem 0 1rem; padding: 0 0 .5rem; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; font-family: var(--serif); font-weight: 400; }
h2.div-h { font-size: 1.45rem; } h3.div-h { font-size: 1.3rem; } h4.div-h, h5.div-h, h6.div-h { font-size: 1.15rem; }
.div-h .num { color: var(--navy); }
.div-h .div-title { color: var(--ink); }
.unit { margin: 1.6rem 0; scroll-margin-top: 16px; }
.unit-h { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 .45rem; line-height: 1.2; display: flex; align-items: baseline; gap: .4rem; }
.unit-h .num { color: var(--ink); }
.unit.focus > .unit-h { border-bottom: 1px solid var(--rule); padding-bottom: .4rem; }
.item { margin: .35rem 0; }
.item-ust { margin-left: 0; } .item-pkt { margin-left: 1.6rem; } .item-lit { margin-left: 3rem; } .item-tiret { margin-left: 4.2rem; }
.item .num { font-weight: 500; color: var(--ink-soft); }
.unit-par > .unit-h, .item-ust > p.t > .num:first-child { font-family: var(--serif); }
.unit-par > .unit-h { font-size: 1.05rem; }
.unit-par > .unit-h .num { color: var(--navy); }
/* § wewnątrz artykułu: oznaczenie w linii z pierwszym zdaniem (jak w Dz.U.) */
.unit-art .unit-par { margin: .7rem 0; }
.unit-art .unit-par > .unit-h { float: left; margin: 0 .5rem 0 0; font-size: 1.05rem; line-height: inherit; }
.unit-art .unit-par > .unit-h a.anchor { display: none; }
.unit-art .unit-par > .item, .unit-art .unit-par > blockquote, .unit-art .unit-par > p.note { clear: left; }
.unit-art .unit-par::after { content: ""; display: block; clear: both; }
/* metryka artykułu: od kiedy obowiązuje bieżące brzmienie i skąd pochodzi */
.unit-meta { font-family: var(--sans); font-weight: 300; font-size: .8rem; color: var(--ink-soft); margin: -.2rem 0 .7rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unit-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.unit-meta a { color: var(--ink-soft); }
p.t { margin: .35rem 0; hyphens: auto; -webkit-hyphens: auto; }
.unit > p.t:first-of-type { margin-top: 0; }
a.anchor { color: var(--ink-faint); opacity: 0; margin-left: .15rem; font-weight: 400; font-family: var(--sans); font-size: .9rem; padding: 0 .25rem; min-width: 24px; display: inline-block; }
.div-h:hover a.anchor, .unit-h:hover a.anchor, a.anchor:focus { opacity: 1; color: var(--navy); text-decoration: none; }
:target > .unit-h, :target > .div-h, .item:target { background: var(--navy-tint); }
a.ref { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule-strong); }
a.ref:hover { text-decoration-color: var(--navy); }
blockquote.cytat { margin: .6rem 0 .6rem .5rem; padding: .5rem .9rem; background: var(--paper-soft); border-left: 3px solid var(--rule-strong); }
blockquote.cytat .unit, blockquote.cytat .item { margin: .3rem 0; }
p.note { font-size: .88rem; color: var(--ink-soft); background: var(--paper-soft); border-left: 3px solid var(--rule); padding: .4rem .8rem; margin: .5rem 0; }
.stub-repeal { font-style: italic; color: var(--ink-faint); }
.stub-uchylony { color: var(--ink-faint); }
.stub-utrata-mocy { color: var(--red); }
.tk-annotation { margin: .6rem 0 1rem; padding: .45rem .9rem; background: var(--amber-tint); border-left: 3px solid var(--amber); font-size: .9rem; }
.tk-annotation summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tk-annotation summary::-webkit-details-marker { display: none; }
.tk-annotation .tk-sum { font-weight: 500; }
.tk-annotation .tk-toggle { font-size: .78rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; margin-left: auto; white-space: nowrap; }
.tk-annotation[open] .tk-toggle { display: none; }
.tk-annotation-text { margin: .5rem 0 .2rem; }
.act-footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--ink-soft); }
.act-footer p { margin: .4rem 0; }
.provenance code { font-family: var(--mono); font-size: .78rem; }

/* prawa szyna */
.rail { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; }
.rail-box { border: 1px solid var(--rule-strong); background: var(--card); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.rail-label { font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft); }
.state-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.state-date { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 400; }
.state-date input { font: inherit; font-size: 1rem; border: 0; background: transparent; color: var(--ink); padding: 0; font-variant-numeric: tabular-nums; max-width: 11rem; }
.state-note { font-size: .8rem; color: var(--green); font-weight: 500; }
.state-note.past { color: var(--ink-soft); }
.state-note.future { color: var(--amber); }
.state-note.future a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
/* strona aktu w ramce widoku /obok: sama treść + panel */
.in-frame .topbar, .in-frame .top-promo, .in-frame .site-footer, .in-frame .to-top { display: none !important; }
.in-frame .rail { top: 8px; }
/* „+” na pasku strony aktu: kilka aktów obok siebie (workspace w app.js, stan w #obok=…)
   duży ekran (≥1200px) → panele obok siebie (do 3); mniejszy → karty w obrębie strony */
.ws-plus { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--rule-strong); color: var(--ink-soft); font: inherit; font-size: .8rem; padding: 6px 10px; min-height: 32px; cursor: pointer; white-space: nowrap; }
.ws-plus:hover { border-color: var(--navy); color: var(--navy); }
.ws-on { overflow: hidden; }
.ws-on .page, .ws-on .act-page, .ws-on main, .ws-on .site-footer, .ws-on .top-promo, .ws-on .to-top, .ws-on .mobile-bar { display: none !important; }
.ws { display: flex; flex-direction: column; height: calc(100vh - var(--ws-top, 72px)); }
.ws-tabs { display: none; gap: 4px; padding: 6px 12px 0; border-bottom: 1px solid var(--rule); background: var(--paper); overflow-x: auto; }
.ws-tabs button { font: inherit; font-size: .84rem; border: 1px solid var(--rule-strong); border-bottom: 0; background: var(--paper-soft); color: var(--ink-soft); padding: 8px 12px; cursor: pointer; white-space: nowrap; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; min-height: 40px; }
.ws-tabs button.active { background: var(--card); color: var(--ink); border-color: var(--navy); font-weight: 500; }
.ws-panes { flex: 1; min-height: 0; display: grid; gap: 10px; padding: 10px 12px; grid-template-columns: repeat(var(--ws-n, 2), minmax(0, 1fr)); }
.ws-pane { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--rule-strong); background: var(--card); }
.ws-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.ws-bar input { flex: 1; min-width: 0; font: inherit; font-weight: 300; font-size: .88rem; padding: 6px 10px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); }
.ws-bar button { border: 1px solid var(--rule-strong); background: transparent; color: var(--navy); cursor: pointer; min-width: 32px; min-height: 32px; font: inherit; }
.ws-bar .ws-close { color: var(--ink-soft); }
.ws-pane iframe { flex: 1; width: 100%; border: 0; background: var(--paper); }
.ws-pane iframe[hidden] { display: none; }
.ws-empty { margin: 0; padding: 22px 12px; text-align: center; font-size: .9rem; color: var(--ink-soft); }
.ws[data-mode="tabs"] .ws-tabs { display: flex; }
.ws[data-mode="tabs"] .ws-panes { grid-template-columns: minmax(0, 1fr); padding: 8px; }
.ws[data-mode="tabs"] .ws-pane[hidden] { display: none; }
.state-row a { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.hist-head { display: flex; justify-content: space-between; align-items: baseline; }
.hist-head .rail-label { flex: 1; }
.hist-count { font-size: .78rem; color: var(--ink-soft); }
.hist-unit { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin: 2px 0 6px; }
.hist-empty { font-size: .85rem; color: var(--ink-soft); }
.timeline { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0 12px; }
.tl-mark { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--navy); background: var(--paper); margin-top: 7px; flex: none; }
.tl-dot.now { width: 10px; height: 10px; border: 0; background: var(--green); margin-top: 6px; }
.tl-line { flex: 1; width: 1px; background: var(--rule-strong); }
.tl-body { padding-bottom: 16px; font-size: .92rem; }
.tl-body:last-child { padding-bottom: 0; }
.tl-body a.tl-date { color: var(--ink); }
.tl-body .now-tag { color: var(--green); font-weight: 500; }
.tl-body.current .tl-date { font-weight: 500; }
.tl-src { font-size: .8rem; color: var(--ink-soft); }
.tl-src a { color: var(--ink-soft); }
.rail-actions { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 9px; font-size: .86rem; }
.rail-actions a, .rail-actions button { display: flex; align-items: center; gap: 8px; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.rail-actions svg { flex: none; }
.rail-ai { border-top: 1px solid var(--rule); padding-top: 14px; font-size: .8rem; color: var(--ink-soft); }
.copied { color: var(--green) !important; }

/* panel różnic (word-diff z API historii) */
.diff-panel { margin: .8rem 0 1.2rem; border: 1px solid var(--rule-strong); background: var(--card); padding: 14px 16px; font-size: .95rem; line-height: 1.6; }
.diff-panel h4 { font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .04em; color: var(--ink-soft); margin: 0 0 8px; }
.diff-panel del { background: var(--red-tint); color: var(--red); text-decoration: line-through; padding: 0 2px; }
.diff-panel ins { background: var(--green-tint); color: var(--green); text-decoration: none; padding: 0 2px; }
.diff-panel .close { float: right; font-size: .8rem; color: var(--ink-soft); background: none; border: 0; cursor: pointer; }

/* dolny pasek (mobile) */
.mobile-bar { display: none; }

/* ─── responsywność ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .layout3 { grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 32px; }
  .act-page, .topbar, .beta-bar, .site-footer { padding-left: 24px; padding-right: 24px; }
}
/* ─── układ kompaktowy strony aktu (<960px: małe okno albo panel „obok”) ───
   spis treści i panel „stan prawny / historia” jako wysuwane szuflady,
   przyklejony pasek narzędzi na górze (act.js przenosi .mobile-bar na początek
   .act-page i obsługuje szuflady). Media query liczy się od viewportu, więc w
   ramce panelu działa per panel. */
.drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 65; }
.drawer-close { display: none; }
@media (max-width: 960px) {
  .topsearch { display: none; }
  .layout3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc-col, .rail { position: fixed; top: 0; bottom: 0; width: min(86vw, 380px); max-height: none; z-index: 70; background: var(--card); overflow: auto; padding: 12px 16px 24px; margin: 0; border: 0; transition: transform .2s ease; box-shadow: 0 0 24px rgba(0, 0, 0, .25); }
  .toc-col { left: 0; border-right: 1px solid var(--rule-strong); transform: translateX(-100%); }
  .rail { right: 0; border-left: 1px solid var(--rule-strong); transform: translateX(100%); gap: 16px; }
  .drawer-toc .toc-col, .drawer-rail .rail { transform: none; }
  .drawer-toc .drawer-backdrop, .drawer-rail .drawer-backdrop { display: block; }
  .drawer-close { display: flex; align-items: center; justify-content: center; margin: 0 0 6px auto; width: 36px; height: 36px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-soft); font-size: 1.2rem; cursor: pointer; }
  .toc[open] .toc-list { max-height: none; }
  .mobile-bar { position: sticky; top: 0; z-index: 55; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 0; margin-bottom: 6px; }
  .mobile-bar a, .mobile-bar button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: none; }
  .mobile-bar .primary { color: var(--navy); border-color: var(--navy); }
  .mobile-bar #mb-copy { margin-left: auto; }
  .home-cols, .cards { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) { .toc-col, .rail { transition: none; } }
@media (max-width: 640px) {
  .beta-bar { font-size: .72rem; padding: 6px 16px; }
  .beta-bar a { display: none; }
  .topbar { padding: 10px 16px; gap: 12px; }
  .brand-row, .brand-row a { gap: 10px; height: 30px; }
  .brand-row .logo-wpia { height: 30px; }
  .brand-row .logo-iura { height: 17px; }
  .brand-row .vdiv { height: 20px; }
  .topnav { gap: 14px; font-size: .82rem; }
  .theme-toggle { display: none; }
  .page { padding: 0 16px; }
  .hero { padding: 44px 0 24px; gap: 18px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-search input { font-size: 1rem; padding: 13px 0; }
  .act-page { padding: 0 16px 48px; }
  h1.act-title { font-size: 1.35rem; }
  .act-body { font-size: 1rem; }
  .unit-h { font-size: 1.3rem; }
  .item-pkt { margin-left: 1rem; } .item-lit { margin-left: 1.9rem; } .item-tiret { margin-left: 2.7rem; }
  .site-footer { padding: 20px 16px 36px; }
  .mobile-bar a, .mobile-bar button { padding: 0 9px; font-size: .78rem; }
  .mobile-bar #mb-copy span { display: none; }
}

/* katalog ustaw */
.act-filter { max-width: 520px; margin-top: 10px; }
.year-group { border-bottom: 1px solid var(--rule); }
.year-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; }
.year-group > summary::-webkit-details-marker { display: none; }
.year-group .year-h { font-family: var(--serif); font-size: 1.35rem; }
.year-group .acts-list { padding-bottom: 8px; }
.year-group[hidden] { display: none; }

/* callout: asystent AI */
.ai-callout { margin: 8px 0 32px; padding: 26px 28px; background: var(--navy-tint); border: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.ai-callout h2 { font-size: 1.5rem; margin-bottom: 6px; }
.ai-callout p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.ai-callout-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--navy); color: var(--on-navy); font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--navy-deep); color: var(--on-navy); text-decoration: none; }
.small { font-size: .8rem; }
@media (max-width: 800px) { .ai-callout { grid-template-columns: minmax(0, 1fr); } .ai-callout-cta { align-items: flex-start; } }
/* strona: asystent AI, licencja */
.prose { max-width: 760px; padding: 24px 0 48px; }
.prose h1 { font-size: 2.2rem; margin-bottom: 12px; }
.prose h2 { font-size: 1.4rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }
.doc { max-width: 760px; padding: 24px 0 48px; }
.doc h1 { font-size: 2.2rem; margin-bottom: 12px; }
.doc h2 { font-size: 1.4rem; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc ol { padding-left: 22px; }
.doc code { font-family: var(--mono); font-size: .9em; background: var(--paper-soft); padding: 1px 6px; }
.doc pre { background: var(--paper-soft); border: 1px solid var(--rule); padding: 12px 14px; overflow-x: auto; font-size: .85rem; }
.changelog h3 { font: 500 .78rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 4px; }
.changelog ul { padding-left: 20px; margin: 4px 0 10px; }
.changelog li { margin: 3px 0; }
.beta-bar a { white-space: nowrap; }
/* pasek AI (górny, ukrywalny) + pigułka beta */
.top-promo { background: var(--bar); color: #fbfaf7; font-size: .82rem; padding: 7px 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
/* `display:flex` wygrywał z atrybutem hidden → „X” nie działał (uwaga dziekana 11.09) */
.top-promo[hidden] { display: none; }
.top-promo a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.promo-close { background: transparent; border: 0; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 6px; min-width: 32px; min-height: 28px; opacity: .85; }
.promo-close:hover { opacity: 1; }
.beta-pill { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--rule-strong); padding: 2px 7px; margin-left: 4px; cursor: help; line-height: 1.3; }
@media (max-width: 640px) { .top-promo { padding: 6px 16px; font-size: .74rem; } .top-promo a { white-space: normal; } }

/* załączniki rozporządzeń jako wycinki PDF (pilotaż geodezyjny, poziom 0) */
.zalacznik-local a{font-weight:600;color:var(--navy)}
.zal-notes{margin:.6rem 0 0;padding:.7rem .9rem;border-left:3px solid var(--red, #b3261e);background:var(--paper-soft, #f3f1ec);font-size:.92rem}
.zal-notes h4{margin:0 0 .4rem;font:600 .8rem/1.3 var(--sans);letter-spacing:.04em;text-transform:uppercase;color:var(--red, #b3261e)}
.zal-notes ol{margin:0;padding-left:1.2rem}
.zal-notes li{margin:.3rem 0}
.zal-notes .zal-from{color:var(--ink-soft);font-size:.85rem}
.zal-notes blockquote{margin:.25rem 0 0;padding:.3rem .6rem;border-left:2px solid var(--rule-strong);font-style:normal;white-space:pre-line}

.chk-rozp{display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;color:var(--ink-soft);white-space:nowrap}
.chk-rozp input{accent-color:var(--navy)}

/* orzecznictwo SN przy przepisach (flaga `orzecznictwo`; serve/orzecznictwo.py, act.js, search.html) */
.pill { display: inline-block; font: 500 .7rem/1.5 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 0 6px; border: 1px solid var(--rule-strong); color: var(--ink-soft); white-space: nowrap; vertical-align: middle; }
.pill-primary { border-color: var(--navy); color: var(--navy); background: var(--navy-tint); }
.pill-secondary { border-color: var(--rule-strong); color: var(--ink-soft); }
.pill-mentioned { opacity: .7; }
.toc-orz { float: right; font: 500 .68rem/1.6 var(--sans); color: var(--ink-soft); border: 1px solid var(--rule); padding: 0 5px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.toc-list a:hover .toc-orz, .toc-list a.active .toc-orz { color: var(--navy); border-color: var(--navy); }
#orz { display: flex; flex-direction: column; gap: 6px; }
.orz-act-tot { font-size: .8rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.orz-list { display: flex; flex-direction: column; gap: 12px; }
.orz-item { border-top: 1px solid var(--rule); padding-top: 10px; font-size: .88rem; }
.orz-item:first-child { border-top: 0; padding-top: 0; }
.orz-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.orz-sygn { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.orz-sygn:hover { color: var(--navy); }
.orz-form { font-size: .78rem; color: var(--ink-soft); }
.orz-problem { font-size: .74rem; color: var(--ink-soft); border-left: 2px solid var(--rule-strong); padding-left: 6px; }
.orz-teza { margin: 4px 0 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.orz-item.open .orz-teza { display: block; -webkit-line-clamp: unset; }
.orz-more { font-size: .78rem; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; }
.orz-badge { margin-top: 4px; font-size: .76rem; padding: 2px 7px; border-left: 3px solid var(--rule-strong); background: var(--paper-soft); color: var(--ink-soft); }
.orz-badge.st-current { border-left-color: var(--green); color: var(--green); }
.orz-badge.st-changed { border-left-color: var(--amber); background: var(--amber-tint); color: var(--ink); }
.orz-badge.st-added_later, .orz-badge.st-repealed { border-left-color: var(--red); background: var(--red-tint); color: var(--ink); }
.orz-badge.st-review { border-left-style: dashed; }
.orz-badge a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.orz-foot { font-size: .8rem; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.orz-foot a { color: var(--navy); }
.orz-filters { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.orz-filters button { font: inherit; font-size: .72rem; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-soft); padding: 2px 8px; cursor: pointer; }
.orz-filters button.active { border-color: var(--navy); color: var(--navy); }
.orz-help-note { font-size: .74rem; color: var(--ink-soft); margin: 4px 0 0; }
.orz-ai { font: 500 .62rem/1.4 var(--sans); border: 1px solid var(--rule-strong); padding: 0 4px; margin-left: 6px; vertical-align: middle; }
/* strona orzeczenia */
.orz-page { max-width: 1100px; }
.orz-title { font-size: 2rem; margin: 6px 0 4px; }
.orz-meta { color: var(--ink-soft); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; }
.orz-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.orz-main { min-width: 0; max-width: 760px; }
.orz-side { position: sticky; top: 16px; }
.orz-teza-block { border-left: 3px solid var(--navy); padding: 6px 16px; margin: 0 0 24px; background: var(--card); }
.orz-teza-full { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; margin: 6px 0 4px; }
.orz-text p { white-space: pre-wrap; line-height: 1.65; margin: 0 0 1em; font-size: .95rem; }
.orz-act { border-top: 1px solid var(--rule); padding-top: 8px; }
.orz-act:first-of-type { border-top: 0; padding-top: 0; }
.orz-act-title { font-weight: 500; font-size: .92rem; }
.orz-act-title .muted { font-weight: 400; font-size: .8rem; }
.orz-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; }
.orz-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.orz-links .orz-badge { flex: 0 0 100%; }
.orz-art { font-family: var(--serif); color: var(--ink); }
.orz-mentioned summary { font-size: .78rem; color: var(--ink-soft); cursor: pointer; }
/* zakładki na /szukaj */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule-strong); margin: 6px 0 14px; }
.tabs button { font: inherit; font-size: .88rem; padding: 8px 14px; border: 1px solid transparent; border-bottom: 0; background: transparent; color: var(--ink-soft); cursor: pointer; margin-bottom: -1px; }
.tabs button.active { border-color: var(--rule-strong); border-bottom: 1px solid var(--paper); background: var(--paper); color: var(--ink); font-weight: 500; }
.hit-orz .hit-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hit-orz .hit-snip { display: block; margin: 4px 0 6px; }
.hit-orz .orz-links { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
.hit-orz .orz-links li { gap: 4px; }
.orz-pager { display: flex; gap: 12px; margin: 16px 0; font-size: .88rem; }
@media (max-width: 960px) { .orz-cols { grid-template-columns: minmax(0, 1fr); } .orz-side { position: static; } }

/* ─── konto (plan/KONTO.md): przycisk motywu jako ikona, „Zaloguj”, strony /konto ─── */
.theme-toggle.is-icon { width: 34px; height: 34px; min-height: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.theme-toggle.is-icon svg { width: 17px; height: 17px; }
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }
.topnav a.konto-nav, .konto-nav { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 1px solid var(--navy); color: var(--navy); background: transparent; font-size: .84rem; font-weight: 500; text-decoration: none; border-radius: 17px; white-space: nowrap; }
.topnav a.konto-nav:hover, .konto-nav:hover { background: var(--navy); color: var(--on-navy); text-decoration: none; }
.konto-nav svg { width: 15px; height: 15px; }
.topnav a.konto-nav.is-user, .konto-nav.is-user { border-color: var(--rule-strong); color: var(--ink); padding-left: 4px; }
.topnav a.konto-nav.is-user:hover, .konto-nav.is-user:hover { border-color: var(--navy); background: transparent; color: var(--navy); }
.konto-nav .konto-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--on-navy); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 600; letter-spacing: 0; }
@media (max-width: 1100px) { .konto-nav span.konto-label { display: none; } .konto-nav { padding: 0 8px; } .konto-nav.is-user { padding-left: 3px; } }

.konto-wrap { display: flex; justify-content: center; padding: 40px 0 56px; }
.konto-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--rule); padding: 36px 36px 28px; }
.konto-card-wide { max-width: 760px; }
.konto-kicker { margin: 0 0 6px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.konto-card h1 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; margin: 0 0 12px; }
.konto-card h2 { font-size: 1rem; font-weight: 600; margin: 0 0 10px; }
.konto-lead { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; margin: 0 0 22px; }
.konto-idps { display: grid; gap: 10px; }
.konto-idp { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 0; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: none; padding: 0 14px; }
.konto-idp:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.konto-idps-grid { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.konto-idp-mark { width: 18px; height: 18px; border-radius: 4px; display: block; }
@media (max-width: 420px) { .konto-idps-grid { grid-template-columns: minmax(0, 1fr); } }
.konto-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--ink-faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.konto-or::before, .konto-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.konto-form { display: grid; gap: 8px; }
.konto-form[hidden], .konto-alert[hidden], .konto-info[hidden] { display: none; }
.konto-form label { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.konto-form input:not([type=checkbox]) { font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); outline: 0; }
.konto-form input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.konto-btn-primary { margin-top: 10px; min-height: 46px; border: 0; background: var(--navy); color: var(--on-navy); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.konto-btn-primary:hover { background: var(--navy-deep); }
.konto-btn-primary:disabled { opacity: .6; cursor: default; }
.konto-btn { min-height: 38px; padding: 0 14px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); font: inherit; font-size: .86rem; cursor: pointer; justify-self: start; }
.konto-btn:hover { border-color: var(--navy); color: var(--navy); }
.konto-btn-danger { border-color: var(--red); color: var(--red); }
.konto-btn-danger:hover { background: var(--red-tint); border-color: var(--red); color: var(--red); }
.konto-link { background: none; border: 0; padding: 4px 0; color: var(--navy); font: inherit; font-size: .84rem; cursor: pointer; text-align: left; justify-self: start; }
.konto-link:hover { text-decoration: underline; }
.konto-alert { background: var(--red-tint); color: var(--red); border-left: 3px solid var(--red); padding: 10px 12px; font-size: .88rem; margin: 0 0 12px; }
.konto-info { background: var(--green-tint); color: var(--green); border-left: 3px solid var(--green); padding: 10px 12px; font-size: .88rem; margin: 0 0 12px; }
.konto-warn { color: var(--amber); }
.konto-small { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; margin: 0 0 8px; }
.konto-foot { margin: 22px 0 0; font-size: .8rem; color: var(--ink-faint); line-height: 1.55; }
.konto-terms { padding-left: 1.2rem; line-height: 1.6; font-size: .93rem; }
.konto-terms li { margin-bottom: 10px; }
.konto-consent { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.konto-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: var(--ink); margin-top: 4px; }
.konto-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.konto-check i { color: var(--ink-faint); font-style: normal; }
.konto-dl dt { font-weight: 600; margin-top: 14px; }
.konto-dl dd { margin: 4px 0 0; color: var(--ink-soft); line-height: 1.55; font-size: .93rem; }
.konto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; }
.konto-box { border: 1px solid var(--rule); padding: 18px; background: var(--paper); }
.konto-box-danger { border-color: var(--red-tint); }
.konto-sessions { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.konto-sessions li { display: grid; font-size: .86rem; padding: 8px 10px; border: 1px solid var(--rule); }
.konto-sessions li.current { border-color: var(--green); }
.konto-sessions small { color: var(--ink-faint); }
.konto-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hist-login { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--navy); color: var(--navy); font-size: .85rem; text-decoration: none; }
.hist-login:hover { background: var(--navy); color: var(--on-navy); text-decoration: none; }
@media (max-width: 640px) { .konto-card { padding: 26px 18px 22px; border-left: 0; border-right: 0; } .konto-wrap { padding: 12px 0 40px; } .konto-card h1 { font-size: 1.7rem; } }
.konto-terms-short { padding-left: 1.1rem; margin: 0 0 14px; font-size: .95rem; }
.konto-terms-short li { margin-bottom: 6px; }
.konto-row-consent { margin-top: 6px; }
.konto-row-consent .konto-btn-primary { margin-top: 0; padding: 0 22px; }
.konto-row-consent .konto-btn { min-height: 46px; }
.hist-teaser { font-size: .88rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 4px; }
.hist-teaser b { color: var(--ink); font-weight: 600; }
.hist-login small { font-size: .78rem; opacity: .8; font-weight: 400; }
.snap-banner { border-left: 3px solid var(--amber); }
.snap-banner p { margin: 0 0 6px; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.snap-banner b { color: var(--ink); font-weight: 600; }
.konto-rail { border-left: 3px solid var(--navy); }
.konto-rail ul { margin: 6px 0 10px; padding-left: 1.1rem; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); }
.konto-rail .hist-login { margin-top: 2px; }
.lock-hint { margin-left: auto; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }

/* zaległa zmiana przy artykule (kolejka fabryki): mówimy „tu jeszcze pracujemy" zamiast udawać kompletność */
.pending-note{margin:-.3rem 0 .8rem;padding:.55rem .8rem;border-left:3px solid var(--red,#b3261e);background:var(--red-tint,#fbeae8);font:300 .85rem/1.45 var(--sans);color:var(--ink)}
.pending-note strong{font-weight:600;color:var(--red,#b3261e)}
.pending-note ul{margin:.3rem 0 0;padding-left:1.1rem}
.pending-note li{margin:.15rem 0}
.pending-note q{font-style:italic;quotes:"„" "”"}
