@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-ext.woff2') format('woff2-variations'); font-weight: 300 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin.woff2') format('woff2-variations'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1b2636; --ink-2: #3a4658; --muted: #6b7380; --line: #e2ddd3; --line-2: #d3ccbf;
  --paper: #f5f1ea; --card: #fffdf9; --tint: #efe9df;
  --accent: #b5652b; --accent-2: #d98a4b; --accent-soft: #f6e6d7;
  --teal: #2c6b66; --teal-soft: #dcebe8;
  --s0: #2f7a5f; --s0-soft: #e0f0e8; --s1: #b7862a; --s1-soft: #f7edd4; --s2: #b14a36; --s2-soft: #f6e0da; --s9: #6f6a78; --s9-soft: #eceaf0;
  --danger: #a33a2a; --radius: 14px; --shadow: 0 1px 2px rgba(27,38,54,.05), 0 6px 24px -10px rgba(27,38,54,.18);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 .5em; font-variation-settings: 'SOFT' 50, 'opsz' 48; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; }
a { color: var(--teal); }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .hidden { display: none !important; } .grow { flex: 1; }
.mt { margin-top: 1rem; }
kbd { font: 600 .75rem var(--sans); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; background: #fff; }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 .95rem var(--sans); padding: .62em 1.1em; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; min-height: 44px; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--ink-2); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); } .btn.primary:hover { background: #2a3950; }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: transparent; } .btn.sm { min-height: 36px; padding: .4em .8em; font-size: .86rem; } .btn.lg { padding: .85em 1.4em; font-size: 1.02rem; }
.btn.block { width: 100%; } .danger-t { color: var(--danger) !important; }
.link { background: none; border: 0; color: var(--teal); font: inherit; cursor: pointer; padding: .5em 0; text-decoration: underline; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* pola */
label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-bottom: .9rem; }
input, textarea, select { display: block; width: 100%; margin-top: .35rem; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: .65em .8em; min-height: 46px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--teal); outline: 3px solid var(--teal-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; } legend { font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-bottom: .35rem; }
.seg { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.seg legend { width: 100%; }
.seg label { margin: 0; } .seg input { display: none; }
.seg span { display: inline-flex; min-width: 90px; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; text-transform: capitalize; font-weight: 600; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }

/* górny pasek */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 1rem; padding: 0 1rem; background: rgba(245,241,234,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--serif); font-size: 1.15rem; display: block; line-height: 1; } .brand small { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.brand img { border-radius: 9px; }
.topbar-mid { flex: 1; min-width: 0; } .topbar-right { display: flex; align-items: center; gap: .6rem; }
.iv-head { display: flex; align-items: center; gap: .8rem; justify-content: center; } .iv-head b { font-family: var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.sync { font: 600 .78rem var(--sans); color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; padding: .4em; }
.sync.ok { color: var(--s0); } .sync.busy { color: var(--s1); } .sync.err { color: var(--danger); } .sync.off { color: var(--s9); }
@media (max-width: 720px) { .brand span { display: none; } .sync { font-size: 0; } .sync::first-letter { font-size: 1rem; } .iv-head .bar { display: none; } }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: 52px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 260px; padding: .4rem; z-index: 40; }
.menu-pop a, .menu-pop button, .menu-pop .as-btn { display: block; width: 100%; text-align: left; padding: .7em .8em; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: 500 .95rem var(--sans); cursor: pointer; margin: 0; }
.menu-pop a:hover, .menu-pop button:hover, .menu-pop .as-btn:hover { background: var(--tint); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; } .menu-user { padding: .3em .8em; font-size: .8rem; color: var(--muted); }

.bar { height: 6px; background: var(--tint); border-radius: 99px; overflow: hidden; } .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--accent-2)); border-radius: 99px; transition: width .3s; }
.bar.slim { width: 160px; }

/* logowanie */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(1200px 600px at 20% -10%, #e9dccb 0%, transparent 60%), radial-gradient(900px 600px at 110% 110%, #d9e6e2 0%, transparent 55%), var(--paper); align-content: center; gap: 1rem; }
.auth-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.auth-card form { text-align: left; margin-top: 1rem; } .auth-logo { border-radius: 18px; margin-bottom: .6rem; box-shadow: 0 8px 24px -10px rgba(27,38,54,.5); }
.auth-msg { min-height: 1.4em; margin-top: .8rem; font-size: .9rem; color: var(--accent); } .auth-foot { text-align: center; max-width: 420px; }
.tabs { display: flex; background: var(--tint); border-radius: 10px; padding: 4px; margin-top: 1rem; } .tabs button { flex: 1; border: 0; background: none; padding: .55em; border-radius: 8px; font: 600 .9rem var(--sans); cursor: pointer; color: var(--muted); min-height: 40px; } .tabs .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ekran główny */
.home, .page, .report { max-width: 1100px; margin: 0 auto; padding: 1.8rem 1.2rem 4rem; }
.hero { display: flex; gap: 1.5rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.6rem; flex-wrap: wrap; } .hero p { max-width: 640px; }
.iv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.iv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.iv-main { padding: 1.1rem 1.2rem .8rem; text-decoration: none; color: inherit; flex: 1; } .iv-main:hover { background: #fffaf2; }
.iv-code { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; } .iv-meta { color: var(--muted); font-size: .88rem; margin-bottom: .8rem; }
.iv-foot { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .82rem; margin-top: .6rem; } .iv-foot .muted { margin-left: auto; }
.iv-actions { display: flex; gap: .2rem; padding: .4rem .6rem; border-top: 1px solid var(--line); background: #fbf8f2; flex-wrap: wrap; }
.pill { background: var(--accent-soft); color: var(--accent); padding: .15em .6em; border-radius: 99px; font-weight: 700; font-size: .78rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; border: 2px dashed var(--line-2); border-radius: 20px; }

/* wywiad */
.iv-layout { display: grid; grid-template-columns: 300px 1fr; min-height: calc(100vh - var(--top)); }
.sidenav { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; border-right: 1px solid var(--line); background: #f0ebe2; padding: .8rem .5rem 3rem; font-size: .86rem; overscroll-behavior: contain; }
.nav-group { margin-bottom: .8rem; } .nav-h { font: 700 .7rem var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--accent); padding: .6rem .6rem .3rem; }
.nav-sub { font-size: .74rem; color: var(--muted); padding: .35rem .6rem .1rem 2.4rem; font-style: italic; }
.sidenav a { display: flex; align-items: center; gap: .5rem; padding: .38rem .6rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; min-height: 34px; }
.sidenav a:hover { background: rgba(255,255,255,.6); } .sidenav a.cur { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(27,38,54,.1); font-weight: 600; }
.sidenav .num { width: 1.6rem; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; } .sidenav .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidenav .dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-left: .3rem; } .sidenav a.done .dot { background: var(--teal); border-color: var(--teal); }
.sidenav a.clin .num { color: var(--accent); }
.sc { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .78rem; color: #fff; }
.sc.s0 { background: var(--s0); } .sc.s1 { background: var(--s1); } .sc.s2 { background: var(--s2); } .sc.s9 { background: var(--s9); } .sc.cl { background: var(--ink); }
.flag { color: var(--accent); }
.stage { padding: 1.4rem clamp(1rem, 3vw, 2.6rem) 2rem; max-width: 980px; width: 100%; }
.nav-toggle { display: none; margin-bottom: .8rem; }
@media (max-width: 960px) {
  .iv-layout { grid-template-columns: 1fr; }
  .sidenav { position: fixed; left: 0; top: var(--top); z-index: 25; width: min(340px, 88vw); transform: translateX(-102%); transition: transform .22s; box-shadow: var(--shadow); }
  .sidenav.open { transform: none; } .nav-toggle { display: inline-flex; }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.1rem, 2.6vw, 2rem); box-shadow: var(--shadow); }
.eyebrow { font: 700 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.item-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; flex-wrap: wrap; }
.item-head h2 { margin: 0; flex: 1; min-width: 200px; }
.item-n { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.badge { font: 700 .72rem var(--sans); padding: .3em .7em; border-radius: 99px; letter-spacing: .03em; }
.badge.narc { background: #ece4f3; color: #5d3c80; }
.flag-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--line-2); font-size: 1.2rem; cursor: pointer; }
.flag-btn.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.intro { background: var(--tint); border-radius: 12px; padding: 1rem 1.1rem .3rem; margin-bottom: 1rem; }
.intro p.probe { font-size: .92rem; color: var(--ink-2); }
.say { font-family: var(--serif); font-size: 1.07rem; background: var(--tint); border-left: 4px solid var(--accent-2); padding: .9rem 1.1rem; border-radius: 0 12px 12px 0; margin: 1rem 0; }
.qs { margin-bottom: 1.2rem; }
.q { font-size: 1.06rem; margin: 0 0 .7rem; } .q strong { font-weight: 650; color: var(--ink); }
.q.l1 { margin-left: 1.6rem; } .q.l2 { margin-left: 3.2rem; }
.q.cond { font-size: .95rem; color: var(--teal); margin-bottom: .35rem; } .q.cond strong { color: var(--teal); }
.q.probe { font-size: .92rem; color: var(--ink-2); background: #f7f3ec; border-radius: 8px; padding: .45rem .7rem; }
.blank { display: inline-block; width: 4.5em; border-bottom: 1.5px solid var(--ink-2); vertical-align: -2px; }
.callout { border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; background: var(--teal-soft); font-size: .93rem; }
.callout.warn { background: #fbefd8; } .callout.danger { background: var(--s2-soft); color: #6d2318; } .callout.hint { background: #e8eef6; }

.scale { display: grid; gap: .6rem; margin: 1.2rem 0; }
.opt { display: grid; grid-template-columns: 52px 1fr; align-items: stretch; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 0; cursor: pointer; font: inherit; color: var(--ink); overflow: hidden; transition: border-color .15s, box-shadow .15s, background .15s; min-height: 56px; }
.opt:hover { border-color: var(--line-2); box-shadow: 0 2px 10px -4px rgba(27,38,54,.2); }
.opt-k { display: grid; place-items: center; font: 600 1.4rem var(--serif); background: var(--tint); color: var(--ink-2); }
.opt-t { padding: .75rem 1rem; font-size: .96rem; line-height: 1.5; }
.opt.k0 .opt-k { color: var(--s0); } .opt.k1 .opt-k { color: var(--s1); } .opt.k2 .opt-k { color: var(--s2); } .opt.k9 .opt-k { color: var(--s9); }
.opt.on.k0 { border-color: var(--s0); background: var(--s0-soft); } .opt.on.k0 .opt-k { background: var(--s0); color: #fff; }
.opt.on.k1 { border-color: var(--s1); background: var(--s1-soft); } .opt.on.k1 .opt-k { background: var(--s1); color: #fff; }
.opt.on.k2 { border-color: var(--s2); background: var(--s2-soft); } .opt.on.k2 .opt-k { background: var(--s2); color: #fff; }
.opt.on.k9 { border-color: var(--s9); background: var(--s9-soft); } .opt.on.k9 .opt-k { background: var(--s9); color: #fff; }
.scale.clin .opt.on { border-color: var(--ink); background: #eef1f5; } .scale.clin .opt.on .opt-k { background: var(--ink); color: #fff; }
.notes textarea { font-weight: 400; }
details.guide { border: 1px solid var(--line); border-radius: 12px; margin: 1rem 0; background: #fcfaf6; }
details.guide summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; color: var(--teal); list-style: none; }
details.guide summary::before { content: '▸ '; } details.guide[open] summary::before { content: '▾ '; }
details.guide p { padding: 0 1rem; font-size: .93rem; } details.guide p.gh { font-weight: 700; color: var(--ink-2); }
.kbd-hint { margin-top: 1rem; } @media (hover: none) { .kbd-hint { display: none; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; position: sticky; bottom: 0; padding: .8rem 0; background: linear-gradient(transparent, var(--paper) 30%); }
.pager .btn { min-width: 130px; }
.role-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.role { text-align: left; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 1rem 1.1rem; cursor: pointer; font: inherit; color: var(--ink); min-height: 90px; }
.role b { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: .25rem; } .role small { color: var(--muted); }
.role.on { border-color: var(--ink); background: #eef1f5; box-shadow: inset 0 0 0 1px var(--ink); }
.arith { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; background: var(--tint); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.arith > div { display: flex; flex-direction: column; } .arith .big { font: 600 1.6rem var(--serif); } .arith small { color: var(--muted); font-size: .78rem; }
table.mini { font-size: .85rem; border-collapse: collapse; margin-left: auto; } table.mini td { padding: .15rem .6rem; border-bottom: 1px solid var(--line-2); }
.row-end { display: flex; justify-content: flex-end; margin-top: 1rem; }

/* poziom */
.suggest { display: flex; flex-direction: column; gap: .2rem; background: var(--ink); color: #fff; border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.suggest b { font: 600 1.3rem var(--serif); } .suggest .muted { color: #aeb7c4; } .warn-t { color: #f3c88f; font-size: .9rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.fit { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .88rem; }
table.fit th { font-weight: 600; text-align: left; padding: .4rem .5rem; vertical-align: bottom; } table.fit thead th { font-size: .78rem; color: var(--ink-2); }
table.fit td { text-align: center; padding: .45rem .3rem; border-radius: 6px; background: var(--tint); }
table.fit td.ok { background: var(--s0-soft); color: var(--s0); font-weight: 700; } table.fit td.no { color: var(--muted); }
table.fit tr.best th { color: var(--accent); }
.levels { display: grid; gap: .5rem; margin-top: 1.2rem; }
.lvl { display: flex; align-items: center; gap: .7rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin: 0; cursor: pointer; background: #fff; font-weight: 500; font-size: .96rem; color: var(--ink); }
.lvl input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--ink); flex: none; } .lvl.on { border-color: var(--ink); background: #eef1f5; }

/* raport */
.report-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.chk { display: flex; align-items: center; gap: .35rem; margin: 0; font-weight: 500; } .chk input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: .8rem; margin-bottom: 1rem; } .sheet-h img { border-radius: 12px; }
.sheet h2 { margin-top: 1.8rem; font-size: 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
dl.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem 1.2rem; margin: 0; } dl.meta dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } dl.meta dd { margin: 0; font-weight: 600; }
.lvl-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .lvl-sum > div { background: var(--tint); border-radius: 12px; padding: .8rem 1rem; display: flex; flex-direction: column; } .lvl-sum b { font: 600 1.1rem var(--serif); }
@media (max-width: 640px) { .lvl-sum { grid-template-columns: 1fr; } }
.comment { white-space: pre-wrap; border-left: 3px solid var(--line-2); padding-left: .8rem; margin-top: 1rem; }
.chart { width: 100%; max-width: 720px; display: block; margin: 1rem auto 0; }
.chart .grid { stroke: var(--line); } .chart .ax { font: 11px var(--sans); fill: var(--muted); } .chart .lab { font: 600 12px var(--sans); fill: var(--ink-2); }
.chart .band { fill: var(--s0-soft); stroke: #b9dccb; } .chart .pl { fill: none; stroke: var(--ink); stroke-width: 2.5; } .chart .pt { fill: var(--ink); } .chart .val { font: 700 12px var(--sans); fill: var(--ink); }
.chart .pl2 { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 5 4; } .chart .pt2 { fill: var(--accent-2); }
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; color: var(--ink-2); margin-top: .4rem; } .legend i { display: inline-block; width: 12px; height: 12px; margin-right: .35rem; vertical-align: -1px; }
.lg-pt { background: var(--ink); border-radius: 50%; } .lg-pt2 { background: var(--accent-2); transform: rotate(45deg) scale(.8); } .lg-band { background: var(--s0-soft); border: 1px solid #b9dccb; border-radius: 3px; }
table.res { width: 100%; border-collapse: collapse; font-size: .92rem; } table.res th, table.res td { padding: .5rem .5rem; border-bottom: 1px solid var(--line); text-align: left; } table.res thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.res tr.dom th, table.res tr.dom td { font-weight: 700; background: #faf7f1; } table.res tr.sub td:first-child { padding-left: 1.6rem; } table.res td.cl { font: 700 1.1rem var(--serif); text-align: center; }
.pbar { display: inline-block; width: 60px; height: 6px; background: var(--tint); border-radius: 9px; margin-right: .5rem; vertical-align: middle; overflow: hidden; } .pbar span { display: block; height: 100%; background: var(--accent-2); }
.items-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem 1.5rem; } .ig h4 { margin: .6rem 0 .3rem; font-size: 1rem; }
table.it { width: 100%; border-collapse: collapse; font-size: .85rem; } table.it td { padding: .25rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; } table.it td.n { color: var(--muted); width: 2rem; text-align: right; }
table.it td.v { width: 2rem; text-align: center; font-weight: 700; } td.v.s0 { color: var(--s0); } td.v.s1 { color: var(--s1); } td.v.s2 { color: var(--s2); } td.v.s9 { color: var(--s9); } td.v.empty { color: var(--line-2); }
.narc-t { color: #5d3c80; font-weight: 700; } .inote { display: none; color: var(--ink-2); font-size: .8rem; font-style: italic; white-space: pre-wrap; } .with-notes .inote { display: block; }
dl.cnotes dt { font-weight: 700; margin-top: .5rem; } dl.cnotes dd { margin: 0; white-space: pre-wrap; }
.sheet-f { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: .6rem; }

/* strona opisowa */
.prose { max-width: 860px; } .prose h2 { margin-top: 2rem; } .prose li { margin-bottom: .4rem; } .lead { font-size: 1.1rem; } .refs li { font-size: .92rem; }

/* samouczek */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(20,28,40,.55); transition: all .25s; pointer-events: none; outline: 2px solid var(--accent-2); }
.tour.centered { background: rgba(20,28,40,.55); display: grid; place-items: center; } .tour.centered .tour-card { position: relative; width: min(480px, calc(100vw - 24px)); }
.tour-card { position: fixed; background: var(--card); border-radius: 16px; padding: 1.2rem 1.3rem 1rem; box-shadow: 0 20px 50px -12px rgba(0,0,0,.45); transition: top .25s, left .25s; }
.tour-step { font: 700 .7rem var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.tour-body { font-size: .94rem; color: var(--ink-2); } .tour-actions { display: flex; gap: .4rem; align-items: center; margin-top: .8rem; }

/* modal, toast */
.modal-wrap { position: fixed; inset: 0; background: rgba(20,28,40,.5); display: grid; place-items: center; z-index: 90; padding: 1rem; }
.modal { background: var(--card); border-radius: 18px; padding: 1.4rem; width: min(440px, 100%); box-shadow: var(--shadow); } .modal-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; z-index: 120; transition: all .25s; font-size: .92rem; } .toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.err { background: var(--danger); }

/* druk */
@media print {
  @page { size: A4; margin: 14mm 13mm; }
  body { background: #fff; font-size: 10.5pt; }
  .topbar, .no-print, .report-actions, .pager, .sidenav, .nav-toggle { display: none !important; }
  .report { padding: 0; max-width: none; } .sheet { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .no-print-hide { display: none; } .callout { break-inside: avoid; } table.res, .chart, .lvl-sum { break-inside: avoid; }
  .ig { break-inside: avoid; } h2 { break-after: avoid; } a { color: inherit; text-decoration: none; }
  .items-grid { grid-template-columns: 1fr 1fr; }
}
