/* Czcionki marki, lokalnie (bez CDN). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../vendor/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../vendor/fonts/fraunces-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('../vendor/fonts/fraunces-latin-ext-wght-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('../vendor/fonts/fraunces-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../vendor/fonts/outfit-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../vendor/fonts/outfit-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Kolory marki Red Sofa (z makiety) + statusy */
  --bg: #141212;
  --surface: #1c1918;
  --surface-2: #262221;
  --line: #3a3532;
  --line-strong: #5a534d;
  --text: #f2ede6;
  --muted: #b9b2ab;
  --red: #d41f17;
  --red-hover: #e8372f;
  --coral: #ff5a4f;
  --ok: #7fd49a;
  --warn: #f2c14e;
  --bad: #ff7a70;
  --on-red: #ffffff;
  --focus: #ff8b82;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --measure: 66ch;
  --touch: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(100% - 2 * var(--s4), 62rem); margin-inline: auto; }
main { flex: 1; padding-block: var(--s6) var(--s8); outline: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; color: var(--coral); }
p { margin: 0; max-width: var(--measure); }
a { color: var(--coral); text-underline-offset: .2em; }
a:hover { color: var(--text); }
[tabindex='-1']:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::placeholder { color: var(--muted); opacity: 1; } /* domyślny #757575 miał 3,8:1 na ciemnej powierzchni */
::selection { background: var(--red); color: var(--on-red); }
input, textarea { caret-color: var(--coral); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--text); color: var(--bg); padding: var(--s3) var(--s4); font-weight: 600; }
.skip-link:focus { top: var(--s3); }
.skip-link:hover { color: var(--bg); } /* a:hover ustawiał kolor tekstu równy tłu linku */

/* Nagłówek i stopka */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 72px; }
.logo { display: inline-flex; align-items: flex-start; gap: 4px; color: #fff; text-decoration: none; min-height: 44px; align-items: center; }
.logo__word { font-size: 32px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.logo__red { color: var(--red); }
.logo svg { margin-top: -12px; }
.site-header__tag { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; }
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s5); color: var(--muted); font-size: .9rem; }
.site-footer__inner { display: grid; gap: var(--s2); }

/* Elementy wspólne */
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); font-weight: 500; margin-bottom: var(--s4); }
.lead { font-size: 1.2rem; color: var(--muted); margin-top: var(--s4); }
.stack > * + * { margin-top: var(--s5); }
.lead + .helper { margin-top: var(--s3); }
.row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: var(--s5); }
.panel--quiet { background: transparent; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--touch); padding: 0 var(--s5); border: 1px solid transparent; border-radius: 0;
  font: 500 1rem/1 var(--font-ui); cursor: pointer; text-decoration: none; touch-action: manipulation;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn--primary { background: var(--red); color: var(--on-red); }
.btn--primary:hover { background: var(--red-hover); color: var(--on-red); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--text); color: var(--text); }
.btn--ghost { background: transparent; color: var(--muted); padding-inline: var(--s3); }
.btn--ghost:hover { color: var(--text); }
.btn[aria-disabled='true'], .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg, .icon { width: 1.15em; height: 1.15em; flex: none; }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; color: var(--coral); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.notice { display: flex; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line-strong); background: var(--surface); }
.notice--warn { border-color: var(--warn); }
.notice--bad { border-color: var(--bad); }
.notice--ok { border-color: var(--ok); }
.notice .icon { margin-top: .15em; }
.notice--warn .icon { color: var(--warn); } .notice--bad .icon { color: var(--bad); } .notice--ok .icon { color: var(--ok); }
details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--text); }
details > summary:hover { color: var(--coral); }

/* Ekran startowy */
.hero { display: grid; gap: var(--s6); padding-block: var(--s5) var(--s6); }
.dropzone {
  position: relative; display: grid; justify-items: center; text-align: center; gap: var(--s3);
  padding: var(--s7) var(--s5); border: 2px dashed var(--line-strong); background: var(--surface);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--coral); background: var(--surface-2); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone .icon { width: 2.4rem; height: 2.4rem; color: var(--coral); }
.dropzone__title { font: 400 1.5rem/1.2 var(--font-display); }
.dropzone__hint { color: var(--muted); font-size: .95rem; }
.privacy { display: flex; gap: var(--s3); align-items: flex-start; color: var(--muted); font-size: .98rem; }
.privacy .icon { color: var(--ok); margin-top: .2em; }
.privacy strong { color: var(--text); font-weight: 500; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.timeline > div { background: var(--bg); padding: var(--s4) var(--s5); }
.timeline__date { font: 400 1.7rem/1.1 var(--font-display); }
.timeline__date--red { color: var(--coral); }
.timeline__label { color: var(--muted); font-size: .95rem; margin-top: var(--s1); }
.steps-list { margin: var(--s3) 0 0; padding-left: 1.25em; color: var(--muted); display: grid; gap: var(--s2); max-width: var(--measure); }

/* Formularze */
label.field { display: grid; gap: var(--s2); font-weight: 500; }
textarea, input[type=search], input[type=text] {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 0; padding: var(--s3) var(--s4); font: 400 1.05rem/1.5 var(--font-ui); min-height: var(--touch);
}
textarea { min-height: 11rem; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; }
.helper { color: var(--muted); font-size: .95rem; font-weight: 400; }
.error-text:empty { display: none; }
.error-text { color: var(--bad); font-size: .98rem; display: flex; gap: var(--s2); align-items: center; }

/* Lista kodów */
.code-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.code-list li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3) var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.code { font: 600 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; white-space: nowrap; }
.code-name { color: var(--muted); font-size: .98rem; min-width: 0; overflow-wrap: anywhere; }
.main-radio { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding-inline: var(--s2); font-size: .9rem; color: var(--muted); cursor: pointer; }
.main-radio input { width: 1.2rem; height: 1.2rem; accent-color: var(--red); }

/* Strona informacyjna */
.prose h2 { margin-top: var(--s2); }
.prose h3 { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 600; margin-top: var(--s5); }
.prose h3 + p { margin-top: var(--s2); }
.prose p, .prose li { max-width: var(--measure); }
.plain-list { margin: 0; padding-left: 1.25em; display: grid; gap: var(--s3); }

/* Wyniki wyszukiwania */
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.result { display: grid; gap: var(--s2); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); }
.result__head { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.result__head .code { font-size: 1.15rem; color: var(--coral); }
.result__name { max-width: none; overflow-wrap: anywhere; }
.result__map { color: var(--muted); font-size: .98rem; max-width: none; }
.result__map summary { color: var(--text); }
.result__arrow { color: var(--muted); }
.result__targets { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); }
.result__targets li { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: baseline; padding-top: var(--s2); border-top: 1px solid var(--line); }
.result .btn { justify-self: start; margin-top: var(--s2); }

/* Statusy */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; letter-spacing: .04em; padding: 3px 10px; border: 1px solid currentColor; white-space: nowrap; }
.badge .icon { width: 1em; height: 1em; }
.badge--ok { color: var(--ok); } .badge--warn { color: var(--warn); } .badge--bad { color: var(--bad); } .badge--info { color: var(--muted); } .badge--accent { color: var(--coral); }

/* Podsumowanie */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s4); }
.stat { background: var(--surface); border: 1px solid var(--line); border-top-width: 4px; padding: var(--s5); display: grid; gap: var(--s2); align-content: start; }
.stat--ok { border-top-color: var(--ok); } .stat--warn { border-top-color: var(--warn); } .stat--bad { border-top-color: var(--bad); }
.stat__num { font: 400 3.4rem/1 var(--font-display); }
.stat__title { font-weight: 600; display: flex; gap: var(--s2); align-items: center; }
.stat__text { color: var(--muted); font-size: .98rem; }

/* Kreator */
.progress { display: grid; gap: var(--s2); }
.progress__label { font-size: .9rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.progress__bar { height: 4px; background: var(--line); }
.progress__bar > span { display: block; height: 100%; background: var(--coral); width: calc(var(--p, 0) * 1%); transition: width .3s var(--ease); }
.q-title { font-size: clamp(1.5rem, 3.4vw, 2.3rem); max-width: 28ch; }
.q-title .q-code { display: block; font: 600 1.15rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--coral); margin-bottom: var(--s3); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 500; margin-bottom: var(--s3); }
.mode-list { display: grid; gap: var(--s2); }
.mode { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border: 1px solid var(--line); background: var(--surface); cursor: pointer; min-height: var(--touch); }
.mode:has(input:checked) { border-color: var(--text); }
.mode input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; accent-color: var(--red); flex: none; }
.options { display: grid; gap: var(--s2); margin-top: var(--s3); }
.option { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; padding: var(--s3) var(--s4); border: 1px solid var(--line); background: var(--surface); cursor: pointer; min-height: var(--touch); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.option:hover { border-color: var(--line-strong); }
.option:has(input:checked) { border-color: var(--coral); background: var(--surface-2); }
.option input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; accent-color: var(--red); }
.option__body { display: grid; gap: 6px; min-width: 0; }
.option__head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
.option__name { color: var(--text); overflow-wrap: anywhere; }
.options--disabled { opacity: .4; pointer-events: none; }
/* Opcja kreatora: karta z polem wyboru + przycisk "Co obejmuje?" jako jej dolna część */
.option-item { display: grid; }
.option-item > .option { border-bottom-color: transparent; }
.option-item > .option:has(input:checked) { border-bottom-color: var(--coral); }
.option-item > .explain { border: 1px solid var(--line); border-top: 0; background: var(--surface); }

/* Nota wyjaśniająca GUS ("Co obejmuje?") */
.explain > summary { list-style: none; cursor: pointer; min-height: var(--touch); display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s4); color: var(--coral); font-size: .95rem; }
.explain > summary::-webkit-details-marker { display: none; }
.explain > summary::before { content: ''; flex: none; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .18s var(--ease); }
.explain[open] > summary::before { transform: rotate(45deg); }
.explain > summary:hover { color: var(--text); }
.explain__body { display: grid; gap: var(--s2); padding: var(--s1) var(--s4) var(--s4); max-width: var(--measure); }
.explain__head { margin: var(--s2) 0 0; font-weight: 600; }
.explain__p { margin: 0; color: var(--muted); font-size: .98rem; }
.explain__list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--muted); font-size: .98rem; }
.explain__list .explain__list { margin-top: 4px; }
.explain__source { margin: var(--s2) 0 0; font-size: .85rem; color: var(--muted); }
.result .explain { border: 1px solid var(--line); background: var(--surface-2); }
.result__targets li .explain { flex: 1 1 100%; }

.options-label { margin: var(--s3) 0 0; font-weight: 600; }
.option-list, .option-groups { display: grid; gap: var(--s2); }
.option-group { border: 1px solid var(--line); background: var(--surface); }
.option-group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--touch); padding: var(--s3) var(--s4); cursor: pointer; }
.option-group > summary::-webkit-details-marker { display: none; }
.option-group > summary::after { content: ''; flex: none; width: .55rem; height: .55rem; margin-left: var(--s2); border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s var(--ease); }
.option-group[open] > summary::after { transform: rotate(-135deg); }
.option-group__title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.option-group__title .code { color: var(--coral); margin-right: var(--s2); }
.option-group__count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.option-group .option-list { padding: 0 var(--s3) var(--s3); }
.wide-tools { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: end; margin-top: var(--s3); }
.wide-tools label { flex: 1 1 16rem; }
.selected-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.deadline { max-width: none; padding: var(--s3) var(--s4); border: 1px solid var(--line-strong); background: var(--surface); }
.deadline strong { font-weight: 600; }
.nav-row--sticky { position: sticky; bottom: 0; z-index: 5; margin-top: var(--s6); padding: var(--s3) 0 max(var(--s3), env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.nav-row { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; margin-top: var(--s6); }

/* Karta wyniku (kartka A4 na ekranie) */
.result-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.paper-wrap { overflow-x: auto; padding-block: var(--s2); }
.sheet {
  background: #fff; color: #141212; width: min(100%, 210mm); margin-inline: auto; padding: 14mm 14mm 12mm;
  font: 400 10pt/1.45 var(--font-ui); box-shadow: 0 0 0 1px var(--line);
}
.sheet h2, .sheet h3 { font-family: var(--font-display); color: #141212; letter-spacing: -.01em; text-wrap: balance; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid #141212; padding-bottom: 10px; }
.sheet__logo { display: inline-flex; align-items: flex-start; gap: 3px; }
.sheet__logo .logo__word { font-size: 24px; color: #141212; }
.sheet__logo .logo__red { color: #d41f17; }
.sheet__meta { text-align: right; font-size: 8.5pt; color: #4a4441; line-height: 1.35; }
.sheet h2 { font-size: 19pt; font-weight: 400; margin-top: 14px; }
.sheet h2 em { color: #c8102e; }
.sheet h3 { font-size: 12.5pt; font-weight: 600; margin: 16px 0 6px; }
.sheet p { max-width: none; }
.sheet__summary { margin-top: 6px; color: #3a3532; }
.sheet__box { border: 1.5px solid #141212; padding: 10px 12px; margin-top: 14px; break-inside: avoid; }
.sheet__box--review { border-style: dashed; border-color: #8a6d00; }
.sheet__box > h3 { margin-top: 0; }
.sheet__box--deadline { border-color: #c8102e; }
.sheet__box--deadline p { margin-top: 4px; font-size: 9.5pt; color: #3a3532; }
.sheet__list { list-style: none; margin: 6px 0 0; padding: 0; }
.sheet__list li { display: grid; grid-template-columns: 4.6em 1fr auto; gap: 8px; padding: 3px 0; border-bottom: 1px solid #e3ded8; align-items: baseline; }
.sheet__list li:last-child { border-bottom: 0; }
.sheet .code { font-size: 9.5pt; }
.sheet__tag { font-size: 7.5pt; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border: 1px solid #c8102e; color: #c8102e; padding: 1px 6px; white-space: nowrap; }
.sheet__note { font-size: 9pt; color: #3a3532; margin-top: 6px; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9pt; margin-top: 6px; }
.sheet th:nth-child(1) { width: 37%; } .sheet th:nth-child(2) { width: 40%; } .sheet th:nth-child(3) { width: 23%; }
.sheet td { overflow-wrap: anywhere; }
.sheet td .out + .out { margin-top: 4px; }
.sheet th { text-align: left; font-size: 7.5pt; letter-spacing: .08em; text-transform: uppercase; color: #4a4441; border-bottom: 1.5px solid #141212; padding: 4px 6px 4px 0; }
.sheet td { vertical-align: top; padding: 4px 6px 4px 0; border-bottom: 1px solid #e3ded8; }
.sheet__pagebreak { break-before: page; }
@media screen { .sheet__pagebreak { margin-top: 24px; padding-top: 8px; border-top: 1px dashed #b9b2ab; } }
.sheet tr { break-inside: avoid; }
.sheet td .code, .sheet td .sub { display: block; }
.sheet td .code { font-size: 9pt; }
.sheet td .sub { color: #4a4441; font-size: 8pt; line-height: 1.3; }
.sheet td { padding-block: 2px; }
.sheet .st { font-weight: 600; }
.sheet .st--ok::before { content: '✓ '; } .sheet .st--chosen::before { content: '● '; } .sheet .st--review::before { content: '? '; } .sheet .st--removed::before { content: '– '; }
.sheet ol { margin: 6px 0 0; padding-left: 1.3em; }
.sheet ol li { margin-bottom: 2px; }
.sheet__foot { margin-top: 16px; padding-top: 8px; border-top: 1.5px solid #141212; display: flex; justify-content: space-between; gap: 16px; font-size: 8.5pt; color: #3a3532; break-inside: avoid; }
.sheet__foot strong { color: #141212; }
.sheet__disclaimer { font-size: 7.5pt; color: #5a534d; margin-top: 8px; }

@media (max-width: 40rem) {
  main { padding-block: var(--s5) var(--s7); }
  .site-header__tag { display: none; }
  .panel { padding: var(--s4); }
  .code-list li { grid-template-columns: 1fr auto; }
  .code-list li .code-name { grid-column: 1 / -1; order: 3; }
  .sheet { padding: 8mm 6mm; }
  .btn { width: 100%; }
  .nav-row .btn, .result-actions .btn, .row .btn { flex: 1 1 100%; }
  /* lista kodów: akcje w wierszu nie rozciągają się na całą szerokość (poprzednio kosz miał 195 px, wiersz do 191 px) */
  .code-list .row { flex-wrap: nowrap; gap: var(--s1); }
  .code-list .btn { width: auto; flex: none; padding-inline: var(--s3); }
  /* kreator: "Wstecz" i "Dalej" w jednym przyklejonym rzędzie, "Dalej" zajmuje resztę */
  .nav-row--sticky { flex-wrap: nowrap; gap: var(--s2); }
  .nav-row--sticky .btn { flex: 1 1 auto; width: auto; }
  .nav-row--sticky .btn--ghost { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .btn--primary, .badge, .notice, .option, .mode { border: 1px solid CanvasText; }
}

/* Druk: tylko kartka, na białym papierze */
@page { size: A4; margin: 12mm; }
@media print {
  html, body { background: #fff !important; color: #141212 !important; min-height: 0; display: block; }
  .site-header, .site-footer, .skip-link, .no-print, #live { display: none !important; }
  .wrap, main { width: auto; margin: 0; padding: 0; }
  .paper-wrap { overflow: visible; padding: 0; }
  .sheet { width: auto; padding: 0; box-shadow: none; margin: 0; }
  .sheet a { color: inherit; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
