/* Ewidencja — „księga”: ciepły papier i atrament (jasny), głęboka zieleń z limonką (ciemny).
   Instrument Serif na kwotach i tytułach, Hanken Grotesk w interfejsie, IBM Plex Mono w liczbach. */
:root {
  --bg: #f1ede2;
  --glow-a: rgba(12, 92, 70, .10);
  --glow-b: rgba(196, 242, 78, .20);
  --card: #fbf9f3;
  --card-2: #f4f0e5;
  --text: #16130e;
  --muted: #7a7264;
  --line: #e2dbc9;
  --line-strong: #cdc4ab;
  --primary: #16130e;
  --on-primary: #f6f2e8;
  --accent: #0c5c46;
  --accent-soft: #dcebe1;
  --lime: #c4f24e;
  --ok: #0e7a55;
  --ok-soft: #d6ede2;
  --warn: #9a5a06;
  --warn-soft: #f6e4bf;
  --bad: #b3261e;
  --bad-soft: #f8dcd7;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -26px rgba(70, 48, 10, .35);
  --grain: .07;
  --radius: 20px;
  --c1: #0c5c46; --c2: #c2410c; --c3: #6d28d9; --c4: #b08900; --c5: #0e7490; --c6: #be185d; --c7: #1d4ed8; --c8: #78716c;
  --dock-h: 68px;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d0b;
    --glow-a: rgba(31, 122, 90, .22);
    --glow-b: rgba(196, 242, 78, .08);
    --card: #101914;
    --card-2: #15211b;
    --text: #e8eee2;
    --muted: #84908a;
    --line: #1e2b25;
    --line-strong: #2c3e35;
    --primary: #c4f24e;
    --on-primary: #0b1209;
    --accent: #c4f24e;
    --accent-soft: #1a2812;
    --ok: #5fdc9c;
    --ok-soft: #0f2a1f;
    --warn: #f0b84a;
    --warn-soft: #2e2208;
    --bad: #ff8d80;
    --bad-soft: #341512;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 22px 48px -28px rgba(0, 0, 0, .8);
    --grain: .10;
    --c1: #c4f24e; --c2: #ff9a5c; --c3: #b69cff; --c4: #f5d061; --c5: #5fd4e8; --c6: #ff7eb3; --c7: #7aa2ff; --c8: #d6d3d1;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 8% -8%, var(--glow-a), transparent 60%),
    radial-gradient(760px 480px at 105% 4%, var(--glow-b), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--sans);
  padding-bottom: calc(var(--dock-h) + 28px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
/* ziarno papieru */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-underline-offset: 3px; }
::selection { background: var(--lime); color: #16130e; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: 34px; line-height: 1.05; margin: 0; }
h2 { font-size: 24px; line-height: 1.15; margin: 0 0 10px; }
h3 { font-size: 11px; margin: 0 0 6px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; letter-spacing: -.02em; }

/* nagłówek: marka + tytuł strony */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 6px;
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(var(--bg) 40%, transparent);
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-style: italic; font-size: 21px; letter-spacing: -.01em; }
.brand i { width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 28%, transparent), 0 0 18px var(--lime); }
main { max-width: 1040px; margin: 0 auto; padding: 4px 20px 24px; outline: none; }
.page-head { max-width: 1040px; margin: 0 auto; padding: 8px 20px 6px; }
.page-head h1 { font-size: clamp(38px, 9vw, 56px); }

/* dok z zakładkami */
.tabs {
  position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  height: var(--dock-h); display: grid; grid-template-columns: repeat(7, auto); justify-content: space-between; gap: 0; padding: 6px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow), 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 18px; font-size: 9.5px; font-weight: 700; padding: 0 4px; white-space: nowrap; letter-spacing: .01em; color: var(--muted); text-decoration: none;
  transition: background .25s, color .25s, transform .15s;
}
.tabs a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.tabs a:active { transform: scale(.94); }
.tabs a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.tabs a[aria-current="page"] svg { transform: translateY(-1px) scale(1.08); }

@media (min-width: 900px) {
  body { padding-bottom: 40px; }
  .top { position: fixed; left: 0; top: 0; width: 248px; padding: 28px 28px 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand { font-size: 28px; }
  .tabs {
    left: 16px; top: 92px; bottom: auto; right: auto; width: 216px; height: auto;
    grid-template-columns: 1fr; grid-auto-rows: 48px; align-content: start; gap: 4px; padding: 12px; border-radius: 24px;
  }
  .tabs a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 16px; font-size: 14px; border-radius: 14px; }
  .tabs a:hover:not([aria-current="page"]) { background: var(--card-2); color: var(--text); }
  main, .page-head { margin-left: 264px; max-width: none; padding-right: 36px; }
  .page-head { padding-top: 28px; }
  main > * { max-width: 980px; }
  #toast { bottom: 28px !important; }
}

/* karty */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 14px; }
.grid > .card { margin-bottom: 0; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }

/* Pulpit: karta osoby */
.hero { overflow: hidden; }
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lime) 34%, transparent), transparent 68%); pointer-events: none;
}
.hero h2 { font-size: 28px; margin: 0; }
.big { font-family: var(--serif); font-size: clamp(46px, 13vw, 68px); line-height: .95; letter-spacing: -.03em; margin: 14px 0 2px; font-variant-numeric: lining-nums; }
.big small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); margin-left: 6px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

/* wskaźnik limitu */
.bar { position: relative; height: 16px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; margin-top: 12px; }
.bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(80% - 1px), color-mix(in srgb, var(--text) 30%, transparent) 80%, transparent calc(80% + 1px)); pointer-events: none; }
.bar > span {
  display: block; height: 100%; border-radius: 999px; transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--lime)); box-shadow: 0 0 18px -2px color-mix(in srgb, var(--lime) 70%, transparent);
  animation: fill 1s cubic-bezier(.2, .8, .2, 1) .15s both;
}
.bar.warn > span { background: linear-gradient(90deg, #d98b1b, #f6c44f); }
.bar.bad > span { background: linear-gradient(90deg, #b3261e, #ff7a5c); box-shadow: 0 0 18px -2px #ff5a3c88; }
@keyframes fill { from { transform: scaleX(0); } }

.kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.kpi div { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpi b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.kpi span { font-size: 12px; color: var(--muted); }

/* przyciski i pola */
button, .btn {
  font: inherit; font-weight: 700; font-size: 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--text); padding: 9px 16px; min-height: 42px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .15s, background .2s, box-shadow .2s, border-color .2s;
}
button:hover, .btn:hover { border-color: var(--text); }
button:active, .btn:active { transform: scale(.97); }
button.primary, .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
button.primary:hover, .btn.primary:hover { filter: brightness(1.08); }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: default; transform: none; }

label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 12px; min-height: 44px;
  border: 1px solid var(--line-strong); background: var(--card-2); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields .full { grid-column: 1 / -1; }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* listy */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); content-visibility: auto; contain-intrinsic-size: auto 92px; }
.list li:last-child { border-bottom: 0; }
.list a.item, .list .item {
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 14px 8px; margin: 0 -8px;
  color: inherit; text-decoration: none; border-radius: 14px; transition: background .2s;
}
.list a.item:hover { background: var(--card-2); }
.item > div:first-child { min-width: 0; flex: 1; }
.item .title { font-weight: 700; overflow-wrap: anywhere; }
.item .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.item .num b { font-size: 15px; font-weight: 500; }
.lead { display: flex; gap: 12px; align-items: flex-start; }
.lead > div { min-width: 0; }
.thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: var(--card-2); }
.thumb.big { width: 96px; height: 128px; border-radius: 14px; }
.sale-head { display: flex; gap: 16px; align-items: flex-start; }
.sale-head > div { min-width: 0; flex: 1; }

/* tabela jak w arkuszu */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 8px 8px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
th, td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; position: sticky; top: 0; background: var(--card); }
td.num { font-size: 12.5px; }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: var(--card-2); }
td.wide { min-width: 170px; }
tfoot td { font-weight: 700; border-top: 2px solid var(--text); border-bottom: 0; background: var(--card-2); }

.empty { text-align: center; color: var(--muted); padding: 32px 12px; }
.card.empty { border-style: dashed; box-shadow: none; background: transparent; }
.err { color: var(--bad); }
.notice {
  position: relative; display: flex; gap: 10px; background: var(--warn-soft); color: var(--text);
  padding: 12px 14px 12px 36px; border-radius: 14px; margin-bottom: 10px; font-size: 14px; border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
}
.notice::before { content: ''; position: absolute; left: 14px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 25%, transparent); }
details summary { cursor: pointer; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 36px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); z-index: 40;
  background: var(--primary); color: var(--on-primary); padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1); max-width: calc(100% - 32px);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#offline { margin-left: auto; }

/* wejście widoku: kolejne elementy wsuwają się */
/* Tylko pierwsze wiersze listy: animacja kazdego z setek wierszy to osobna warstwa GPU (telefon nie wyrabial). */
main > *, .list li:nth-child(-n+8) { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
main > *:nth-child(2) { animation-delay: .05s; } main > *:nth-child(3) { animation-delay: .1s; }
main > *:nth-child(4) { animation-delay: .15s; } main > *:nth-child(n+5) { animation-delay: .2s; }
.list li:nth-child(2) { animation-delay: .04s; } .list li:nth-child(3) { animation-delay: .08s; }
.list li:nth-child(4) { animation-delay: .12s; } .list li:nth-child(5) { animation-delay: .16s; }
.list li:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.page-head h1 { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* statystyki */
.st-top-bar { margin-bottom: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px; }
.st-top-bar::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.seg label { position: relative; margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: inherit; color: inherit; display: block; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--primary); color: var(--on-primary); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.small-seg { box-shadow: none; background: var(--card-2); }
.small-seg span { padding: 5px 11px; font-size: 12px; }
.kpi.four, .kpi.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .kpi.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kpi b { overflow-wrap: anywhere; }
.st-spark, .st-spark-wide { display: block; width: 100%; height: 48px; margin-top: 10px; }
.st-spark-wide { height: 64px; }
.st-spark polyline, .st-spark-wide polyline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-pair { align-items: start; }
.st-rank { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.st-rank-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: 'pos name val' '. track track';
  gap: 4px 10px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-radius: 14px; color: inherit; text-decoration: none; transition: background .2s;
}
.st-rank-row:hover { background: var(--card-2); }
.st-pos { grid-area: pos; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.st-name { grid-area: name; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-name .pill { margin-left: 4px; font-size: 9.5px; padding: 2px 7px; }
.st-val { grid-area: val; font-family: var(--serif); font-size: 22px; line-height: 1; text-align: right; white-space: nowrap; }
.st-val small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.st-track { grid-area: track; height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.st-track span {
  display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 99px; transform-origin: left;
  animation: st-grow .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms);
}
@keyframes st-grow { from { transform: scaleX(0); } }
.st-chart-head { gap: 10px; flex-wrap: wrap; }
.st-chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px -4px 0; padding: 0 4px; }
.st-chart { display: block; width: 100%; min-width: 600px; height: auto; overflow: visible; }
.st-grid { stroke: var(--line); stroke-dasharray: 2 4; }
.st-base { stroke: var(--line-strong); }
.st-axis { fill: var(--muted); font: 600 11px var(--mono); }
.st-hit { fill: transparent; }
.st-col:hover .st-hit { fill: var(--card-2); }
.st-col rect:not(.st-hit) {
  transform-box: fill-box; transform-origin: bottom; animation: st-rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 30ms);
}
@keyframes st-rise { from { transform: scaleY(0); } }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.st-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.st-table th { white-space: nowrap; }
.st-sort { all: unset; cursor: pointer; font-weight: 700; color: inherit; }
.st-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.st-table tfoot td { font-weight: 700; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.st-section { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.02em; margin: 30px 0 12px; }
.st-person { border-top: 4px solid var(--c); scroll-margin-top: 90px; }
.st-person h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.st-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }
.st-person-big { font-family: var(--serif); font-size: clamp(38px, 9vw, 52px); line-height: 1; letter-spacing: -.03em; margin: 14px 0 0; }
.st-person-big small { display: block; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.st-person .st-spark polyline { stroke-width: 2.4; }
.st-note { margin: 10px 0 0; }
.st-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 2px; }
.st-top .item { padding: 10px 8px; }
.st-top .item .num b { color: var(--ok); font-family: var(--mono); font-size: 13.5px; }
.st-links { margin-top: 14px; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .st-track span, .st-col rect { animation: none !important; } }

/* pulpit */
.dash-hero .big { margin-top: 10px; }
.share-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-top: 16px; background: var(--card-2); border: 1px solid var(--line); gap: 2px; }
.share-bar span { width: var(--w); background: var(--c); min-width: 3px; transform-origin: left; animation: st-grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.share-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.share-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.share-legend b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.dash-kpi { margin-top: 18px; }
.dash-kpi b { font-size: clamp(22px, 5.5vw, 30px); }
.dash-cols { display: grid; gap: 14px; align-items: start; margin-bottom: 14px; }
.dash-cols > .card, .dash-people > .card { margin-bottom: 0; }
.dash-people { display: grid; gap: 14px; }
.dash-cols h3 { margin: 0; }
.person-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.person-line b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.person-card .bar { height: 12px; margin-top: 10px; }
.dash-cols .st-rank-row .st-name { white-space: normal; }
.dash-cols .st-dot { display: block; }
@media (min-width: 900px) { .dash-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.st-val-label { fill: var(--text); font: 600 10px var(--mono); }
.st-chart-sum { margin: 8px 0 0; }
.st-chart-sum b { color: var(--text); font-family: var(--serif); font-weight: 400; font-size: 20px; }
.limit-block { margin-top: 18px; }
.limit-block .bar { margin-top: 8px; }
.limit-block b { font-family: var(--mono); font-size: 13px; }
.dash-cols.single { grid-template-columns: 1fr; }

/* Podatek */
.tax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.tax-grid > div, .tax-due > div { display: flex; flex-direction: column; gap: 2px; }
.tax-grid span, .tax-due span { font-size: 12px; color: var(--muted); }
.tax-grid b { font-size: 17px; }
.tax-grid small { font-size: 11px; color: var(--muted); }
.tax-due { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tax-due b { font-size: 20px; }
@media (max-width: 560px) { .tax-grid { grid-template-columns: 1fr 1fr; } .tax-due { grid-template-columns: 1fr; } }
