/* CzysteSuplementy.pl — v2. Jasny, nowoczesny wygląd porównywarki: biel, szmaragdowa zieleń zaufania, miękkie karty. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --surface: #ffffff;
  --text: #0f1d19;
  --text-2: #33433e;
  --muted: #5f6f6a;
  --line: #e3e9e7;
  --line-2: #d3dcd9;
  --brand: #0b7a57;
  --brand-600: #086347;
  --brand-soft: #e7f5ef;
  --brand-tint: #f1faf6;
  --accent: #b45309;
  --accent-soft: #fdf3e6;
  --best: #e6f6ee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 25, .06);
  --shadow: 0 1px 2px rgba(15, 29, 25, .05), 0 8px 24px -8px rgba(15, 29, 25, .10);
  --shadow-lg: 0 2px 4px rgba(15, 29, 25, .04), 0 24px 48px -16px rgba(15, 29, 25, .18);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-600); text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin: .35em 0 .3em; font-weight: 700; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 1.6em 0 .6em; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 0 0 .3em; font-weight: 650; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted, .sub { color: var(--muted); }
.sub { font-size: .85em; }
small { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 68ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* --- nagłówek --- */
.banner { background: #fff7d6; color: #6b5300; text-align: center; font-size: .9rem; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.08rem;
  letter-spacing: -.01em; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-text b { color: var(--brand); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: var(--bg-soft); color: var(--text); }
.main-nav a.cta { background: var(--brand); color: #fff; padding: 8px 16px; display: inline-flex; gap: 8px; align-items: center; }
.main-nav a.cta:hover { background: var(--brand-600); }
.cmp-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--brand); font-size: .78rem; font-weight: 700; }
.cmp-count:empty { display: none; }
.nav-toggle { display: none; }

/* --- okruszki, układ --- */
main { padding-bottom: 64px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 20px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* --- hero strony głównej --- */
.hero { position: relative; overflow: hidden; padding: 56px 0 48px;
  background: radial-gradient(900px 420px at 85% -10%, #d9f2e6 0%, transparent 60%),
              radial-gradient(700px 380px at -10% 110%, #eef7f3 0%, transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; margin: 14px 0 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 1.15rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 550; color: var(--text-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #18b277; box-shadow: 0 0 0 4px #d6f3e5; }
.search-box { position: relative; max-width: 620px; margin-top: 26px; }
.search-box form { display: flex; gap: 8px; padding: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow); }
.search-box svg { flex: none; align-self: center; margin-left: 10px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; font: inherit; font-size: 1.02rem; border: 0; outline: 0; padding: 10px 6px; background: transparent; color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: .98rem;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent; background: var(--brand); color: #fff; text-decoration: none;
  cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--brand-600); color: #fff; }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.small { padding: 7px 12px; font-size: .88rem; border-radius: 9px; }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.results { list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; left: 0; right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 60vh; overflow: auto; z-index: 30; }
.results li a { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); }
.results li a:hover, .results li a:focus { background: var(--brand-tint); }
.results img { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.results .ph { width: 40px; height: 40px; border-radius: 8px; background: var(--bg-soft); flex: none; }
.results small { display: block; }
.results .kind { margin-left: auto; font-size: .75rem; color: var(--muted); }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* podgląd porównania w hero */
.cmp-preview { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; }
.cmp-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cmp-preview-head strong { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table thead th { vertical-align: bottom; border-bottom: 1px solid var(--line-2); }
.cmp-table tbody th { font-weight: 550; color: var(--muted); width: 32%; font-size: .85rem; }
.cmp-table tr:last-child > * { border-bottom: 0; }
.cmp-table .best { background: var(--best); font-weight: 650; color: var(--brand-600); }
.cmp-prod { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .82rem; line-height: 1.25; }
.cmp-prod img, .cmp-prod .ph { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.cmp-prod .ph { background: var(--bg-soft); }
.cmp-prod a { color: var(--text); text-decoration: none; }
.cmp-prod a:hover { color: var(--brand); }
.cmp-prod small { font-weight: 500; }
.cmp-note { margin: 10px 2px 0; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cmp-note i { width: 12px; height: 12px; border-radius: 3px; background: var(--best); border: 1px solid #bfe6d2; display: inline-block; }

/* --- kafle kategorii --- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat:hover { border-color: #b8dccb; box-shadow: var(--shadow); transform: translateY(-1px); color: var(--text); }
.cat .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.cat .ico svg { width: 22px; height: 22px; }
.cat b { display: block; font-weight: 650; font-size: .95rem; line-height: 1.25; }
.cat span { font-size: .82rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--text-2); text-decoration: none; font-size: .9rem; transition: border-color .15s, color .15s; }
.chip span { color: var(--muted); font-size: .78rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.az { columns: 4 220px; column-gap: 24px; }
.az-group { break-inside: avoid; margin-bottom: 20px; }
.az-group h3 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.az-group a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.az-group a:hover { color: var(--brand); }
.az-group a span { color: var(--muted); font-size: .82rem; }

/* --- jak to działa / zaufanie --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; color: var(--brand); margin-top: 2px; }
.trust p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* --- karty produktów --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s; }
.card:hover { border-color: #c4e2d4; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); padding: 8px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-img .ph, .ph-big { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 12px; color: #9fb3ac;
  background: linear-gradient(135deg, var(--bg-soft), #eef4f1); font-size: .8rem; text-align: center; padding: 12px; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.card-brand { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.card-name { font-weight: 620; line-height: 1.3; color: var(--text); text-decoration: none; font-size: .95rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-name::after { content: ""; position: absolute; inset: 0; }
.card-name:hover { color: var(--brand); }
.card-sub { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-dose { font-size: .82rem; color: var(--brand-600); font-weight: 600; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 10px; gap: 8px; }
.price { font-weight: 700; white-space: nowrap; font-size: 1.05rem; }
.per-day { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; }
.add-cmp { position: relative; z-index: 2; font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #fff; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.add-cmp:hover { border-color: var(--brand); color: var(--brand); }
.add-cmp[aria-pressed=true] { background: var(--brand-soft); border-color: #a9d8c2; color: var(--brand-600); }
.btn.add-cmp { font-size: .98rem; padding: 11px 20px; border-radius: 11px; background: var(--brand); border-color: transparent; color: #fff; }
.btn.add-cmp:hover { background: var(--brand-600); color: #fff; }
.btn.add-cmp[aria-pressed=true] { background: var(--brand-soft); border-color: #a9d8c2; color: var(--brand-600); }

/* --- listy z filtrami --- */
.list-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 18px 0 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar input[type=search], .toolbar select { font: inherit; font-size: .92rem; padding: 9px 12px; border: 1px solid var(--line-2);
  border-radius: 10px; background: #fff; color: var(--text); }
.toolbar input[type=search] { min-width: 240px; }
.count { color: var(--muted); font-size: .92rem; }
.page-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.facts-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.fact { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: .9rem; }
.fact b { display: block; font-size: 1.05rem; }

/* --- tabele --- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th, table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; background: var(--bg-soft); }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--brand-tint); }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data td a { font-weight: 550; }
table.sortable th { cursor: pointer; user-select: none; }
table.sortable th:hover { color: var(--brand); }
.footnote { font-size: .85rem; color: var(--muted); margin-top: 10px; max-width: 85ch; }

/* --- badge --- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--brand-soft); color: var(--brand-600); }
.badge.note { background: var(--accent-soft); color: var(--accent); }
.badge.food { background: #eef2f7; color: #3f4f63; }
.badge svg { width: 12px; height: 12px; }

/* --- strona produktu --- */
.product-top { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px; margin-top: 18px; align-items: start; }
.product-media { position: sticky; top: 84px; }
.product-media .frame { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.product-media .frame img { width: 100%; height: 100%; object-fit: contain; }
.credit { font-size: .76rem; color: var(--muted); margin-top: 8px; }
.product-head .brand-link { font-weight: 650; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; text-decoration: none; }
.product-head h1 { margin-top: 6px; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .92rem; }
.meta .sep { color: var(--line-2); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.kpi { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpi dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kpi dd { margin: 4px 0 0; font-weight: 650; font-size: 1.05rem; line-height: 1.3; }
.kpi dd small { display: block; font-weight: 500; font-size: .8rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.method-note { margin-top: 36px; padding: 18px 22px; border: 1px solid #cfe7db; background: var(--brand-tint); border-radius: var(--radius); }
.method-note h2 { margin-top: 0; font-size: 1.1rem; }
.method-note p { margin-bottom: 0; color: var(--text-2); }

/* --- porównywarka --- */
.cmp-page { margin-top: 18px; }
.cmp-empty { padding: 40px 24px; text-align: center; background: var(--bg-soft); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.cmp-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-full { border-collapse: separate; border-spacing: 0; min-width: 640px; width: 100%; font-size: .92rem; }
.cmp-full th, .cmp-full td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-full thead th { position: sticky; top: 0; background: #fff; }
.cmp-full tbody th { color: var(--muted); font-weight: 550; background: var(--bg-soft); position: sticky; left: 0; min-width: 170px; }
.cmp-full .best { background: var(--best); color: var(--brand-600); font-weight: 650; }
.cmp-full .grp th { background: #fff; color: var(--text); font-weight: 700; padding-top: 18px; }
.cmp-remove { font: inherit; font-size: .78rem; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; }
.cmp-picker { position: relative; max-width: 520px; margin: 16px 0; }
.cmp-picker input { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; }

/* --- pływający pasek porównania --- */
.cmp-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; gap: 12px; align-items: center;
  padding: 10px 10px 10px 18px; background: #0f1d19; color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .92rem; }
.cmp-bar[hidden] { display: none; }
.cmp-bar .btn { padding: 8px 14px; }
.cmp-bar button.clear { font: inherit; background: none; border: 0; color: #b9c7c2; cursor: pointer; text-decoration: underline; }

/* --- FAQ, stopka --- */
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--text-2); }
.prose { max-width: 75ch; }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0 28px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { margin: 0 0 10px; color: var(--text); font-size: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }

@media (max-width: 960px) {
  .hero-grid, .product-top { grid-template-columns: 1fr; }
  .product-media { position: static; max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav a:not(.cta):not(.fav-link) { display: none; }
  .main-nav a.cta .lbl { display: none; }
  .main-nav a.cta { padding: 8px 12px; }
  .logo-text { font-size: .92rem; }
  .logo-mark { width: 28px; height: 28px; }
  .main-nav.open { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .main-nav.open a:not(.cta) { display: block; }
  .nav-toggle { display: inline-flex; font: inherit; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 7px 10px; cursor: pointer; }
  .header-inner { gap: 8px; }
  .logo { font-size: 1rem; }
  .hero { padding: 32px 0; }
  .hero-stats { gap: 18px; }
  .section { padding: 40px 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
  .add-cmp { font-size: .74rem; padding: 5px 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .toolbar input[type=search] { min-width: 0; width: 100%; }
  .toolbar { width: 100%; }
  table.data th, table.data td { padding: 9px 10px; }
  .cmp-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .page-intro { grid-template-columns: 1fr; }
}

/* stronicowanie listy produktów */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 32px 0 8px; }
.pager a, .pager .cur, .pager .gap { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .gap { border: 0; background: none; min-width: 0; padding: 0 2px; color: var(--muted); }

/* strona główna: poradnik etykiety, koszty dzienne, tekst o porównywarce */
.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.guide > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.guide h3 { margin: 0 0 8px; font-size: 1.02rem; }
.guide p { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.6; }
.cost-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cost-table th, .cost-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cost-table th { font-size: .82rem; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.cost-table .num { text-align: right; white-space: nowrap; }
.cost-table tr:last-child td { border-bottom: 0; }
.cost-table a { font-weight: 600; }
.about-home { max-width: 820px; }
.about-home p { color: var(--text-2); line-height: 1.7; }
.small { font-size: .85rem; margin-top: 10px; }
@media (max-width: 560px) { .cost-table th, .cost-table td { padding: 8px 6px; font-size: .86rem; } .cost-table th.num { white-space: normal; } }

/* znacznik badań laboratoryjnych na kartach, koszt dawki, raport */
.lab-tag { display: inline-flex; align-self: flex-start; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: .72rem;
  font-weight: 600; color: var(--brand-600); background: var(--brand-soft); }
.card-dose small { color: var(--muted); font-weight: 500; }
.report { max-width: 860px; }
.report h2 { margin-top: 36px; }

/* raport: kafelki, spis treści, wnioski */
.report { max-width: 980px; }
.report > .lead { max-width: 780px; }
.report h2 { margin-top: 48px; }
.report section { scroll-margin-top: 90px; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.btn.ghost { background: var(--surface); color: var(--brand); border: 1px solid var(--line-2); box-shadow: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 20px 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tile b { display: block; font-family: var(--font-display); font-size: 1.65rem; line-height: 1.15; letter-spacing: -.02em; }
.tile span { display: block; color: var(--muted); font-size: .86rem; margin-top: 4px; line-height: 1.4; }
.r-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 8px 0; }
.r-toc ol { columns: 2; column-gap: 32px; margin: 8px 0 0; padding-left: 20px; font-size: .94rem; }
.findings { list-style: none; padding: 0; margin: 12px 0 0; }
.findings li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.findings li::before { content: ""; position: absolute; left: 6px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* wykresy raportu (HTML/CSS) — jedna seria w kolorze marki, wartości także w tabeli pod wykresem */
.chart { margin: 22px 0; padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chart figcaption b { display: block; font-size: 1rem; }
.chart figcaption span { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 0; font-size: .82rem; color: var(--text-2); }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.lg-dot.lo { background: #62b393; }
.lg-band { display: inline-block; width: 22px; height: 10px; border-radius: 3px; background: rgba(11, 122, 87, .18); }
.ch-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.cc { outline: none; border-radius: 6px; }
.cc-plot { position: relative; height: 170px; border-bottom: 1px solid var(--line-2); }
.cc-bar { position: absolute; bottom: 0; left: 50%; width: 24px; transform: translateX(-50%); background: var(--brand); border-radius: 4px 4px 0 0; min-height: 1px; }
.cc-val { position: absolute; left: 0; right: 0; padding-bottom: 4px; text-align: center; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-lab { display: block; margin-top: 6px; text-align: center; font-size: .76rem; line-height: 1.25; color: var(--muted); }
.cc:hover .cc-bar, .cc:focus-visible .cc-bar { background: var(--brand-600); }
.ch-hb { margin-top: 12px; }
.hb-row { display: grid; grid-template-columns: minmax(110px, 32%) 1fr; gap: 12px; align-items: center; padding: 5px 4px; border-radius: 6px; outline: none; }
.hb-row:hover, .hb-row:focus-visible, .rg-row:hover, .rg-row:focus-visible { background: var(--brand-tint); }
.hb-lab { font-size: .88rem; line-height: 1.3; }
.hb-lab small { color: var(--muted); }
.hb-track { display: flex; align-items: center; gap: 8px; }
.hb-bar { flex: none; height: 14px; min-width: 2px; background: var(--brand); border-radius: 0 4px 4px 0; }
.hb-val { font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
.ch-rg { margin-top: 12px; }
.rg-row, .ax-row { display: grid; grid-template-columns: minmax(110px, 28%) 1fr 92px; gap: 12px; align-items: center; }
.ch-rg.wide-val .rg-row, .ch-rg.wide-val .ax-row { grid-template-columns: minmax(110px, 26%) 1fr 150px; }
.rg-row { padding: 6px 4px; border-radius: 6px; outline: none; }
.rg-lab { font-size: .88rem; line-height: 1.3; }
.rg-val { font-size: .84rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
.rg-track { position: relative; height: 18px; }
.rg-track .gl { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.rg-band { position: absolute; top: 3px; height: 12px; background: rgba(11, 122, 87, .18); border-radius: 4px; }
.rg-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
.rg-dot.lo { background: #62b393; }
.db-line { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--line-2); }
.ax { position: relative; height: 18px; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ax span { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; }
.ax span:first-child { transform: none; }
.ax span:last-child { transform: translateX(-100%); }
.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; font-size: .84rem; color: var(--brand); font-weight: 600; }
.chart-table .table-wrap { margin-top: 8px; }
.ch-tip { position: fixed; z-index: 60; max-width: 280px; padding: 7px 10px; border-radius: 8px; background: #0f1d19; color: #fff;
  font-size: .8rem; line-height: 1.35; pointer-events: none; box-shadow: var(--shadow); }
.quad { display: grid; grid-template-columns: minmax(120px, 26%) 1fr 1fr; gap: 6px; margin: 16px 0 6px; }
.qh { padding: 4px 8px; font-size: .8rem; font-weight: 600; color: var(--muted); align-self: end; }
.qh.row { align-self: center; }
.qc { padding: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.qc b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.qc span { font-size: .84rem; color: var(--text-2); }
.qc.hl { background: var(--brand-soft); border-color: #bfe3d3; }
@media (max-width: 640px) {
  .r-toc ol { columns: 1; }
  .rg-row, .ax-row, .ch-rg.wide-val .rg-row, .ch-rg.wide-val .ax-row { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .rg-lab { grid-column: 1 / -1; }
  .ax-row > span:first-child { display: none; }
  .hb-row { grid-template-columns: 1fr; gap: 4px; }
  .cc-bar { width: 16px; }
  .cc-lab { font-size: .68rem; }
  .quad { grid-template-columns: 1fr 1fr; }
  .quad > div:first-child { display: none; }
  .qh.row { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; gap: 8px; } .tile { padding: 12px 14px; } .tile b { font-size: 1.35rem; } }

/* kalkulatory i poradniki */
.tool { max-width: 880px; }
.calc { margin: 22px 0; padding: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.calc-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.calc-row label { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 600; color: var(--text-2); flex: 1 1 160px; }
.calc-row input, .calc-row select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--text); min-width: 0; }
.calc-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.calc-res div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.calc-res b { display: block; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; word-break: break-word; }
.calc-res span { font-size: .84rem; color: var(--muted); }
.calc-note { margin: 12px 0 0; font-size: .9rem; color: var(--text-2); }
.dose-manual { margin: 14px 0 0; }
.dose-manual summary { cursor: pointer; font-size: .9rem; color: var(--brand); font-weight: 600; }
.dose-manual .calc-row { margin-top: 10px; }
.dose-items { list-style: none; padding: 0; margin: 14px 0; }
.dose-items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dose-items .cmp-remove { margin-left: auto; }
.st { display: inline-block; font-size: .8rem; margin-right: 2px; }
.st-over { color: #d03b3b; }
.st-at { color: var(--accent); }
td .sub { font-size: .8rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.tool-card { display: block; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.tool-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.tool-card b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.tool-card span { color: var(--text-2); font-size: .92rem; }
.tool .btn { white-space: normal; text-align: center; max-width: 100%; height: auto; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }

/* kalkulatory v2 — większe i czytelniejsze */
.calc.big { padding: 24px; font-size: 1.02rem; background: #fff; box-shadow: var(--shadow); }
.calc-label { margin: 18px 0 8px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.calc-label:first-child { margin-top: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { font: inherit; font-size: .95rem; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); cursor: pointer; }
.seg button:hover { border-color: var(--brand); color: var(--brand); }
.seg button[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.conv-in { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.big-in { font: 600 1.9rem/1.2 var(--font-display); width: 220px; max-width: 100%; padding: 12px 16px; border: 2px solid var(--line-2); border-radius: 14px; color: var(--text); }
.big-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.quick button { font: inherit; font-size: .86rem; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--line-2); background: var(--bg-soft); color: var(--text-2); cursor: pointer; }
.quick button:hover { border-color: var(--brand); color: var(--brand); }
.conv-out { padding: 18px 20px; border-radius: 14px; background: var(--brand-tint); border: 1px solid #cfe9dc; }
.conv-sentence { margin: 0; font-size: 1.25rem; line-height: 1.5; }
.conv-sentence b { font-family: var(--font-display); }
.lim { margin-top: 16px; }
.lim-head { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--text-2); margin-bottom: 6px; }
.lim-head b { font-size: 1.05rem; color: var(--text); }
.lim-foot { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.meter { position: relative; height: 12px; border-radius: 999px; background: var(--brand-soft); }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--brand); }
.meter .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); border-radius: 1px; }
.over .meter .fill { background: #d03b3b; }
.at .meter .fill { background: var(--accent); }
.step-h { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 10px; }
.step-h:first-child { margin-top: 0; }
.step-h b { display: block; font-size: 1.05rem; }
.step-h span:not(.step-n) { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; }
.big-picker input { font-size: 1.1rem; padding: 14px 16px; border-radius: 14px; border-width: 2px; }
.dose-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-start; margin-top: 10px; }
.link-btn { font: inherit; font-size: .92rem; font-weight: 600; color: var(--brand); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dose-tools .dose-manual { margin: 4px 0 0; flex: 1 1 260px; }
.dose-items li { justify-content: space-between; gap: 12px; flex-wrap: nowrap; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.dose-items li > div { min-width: 0; }
.dose-items li small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.dose-items .cmp-remove { margin-left: 0; flex: none; }
.dose-sum { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 14px; font-size: .98rem; line-height: 1.45; }
.dose-sum .ic { flex: none; font-size: 1rem; line-height: 1.45; }
.dose-sum.ok { background: var(--brand-tint); border: 1px solid #cfe9dc; }
.dose-sum.ok .ic { color: var(--brand); }
.dose-sum.at { background: var(--accent-soft); border: 1px solid #f2d3a8; }
.dose-sum.at .ic { color: var(--accent); }
.dose-sum.over { background: #fdecec; border: 1px solid #f3c3c3; }
.dose-sum.over .ic { color: #d03b3b; }
.ing-cards { display: grid; gap: 10px; }
.ing-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ing-card.over { border-color: #f3c3c3; background: #fffafa; }
.ing-card.at { border-color: #f2d3a8; }
.ing-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.ing-head b { font-size: 1.02rem; }
.ing-head span { font-weight: 600; font-variant-numeric: tabular-nums; }
.ing-meta { margin-top: 8px; font-size: .88rem; color: var(--text-2); }
.ing-meta .ic { font-size: .8rem; }
.ing-card.over .ing-meta .ic { color: #d03b3b; }
.ing-card.at .ing-meta .ic { color: var(--accent); }
.ing-src, .ing-note { margin-top: 6px; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.ing-rest { margin-top: 12px; font-size: .92rem; }
.ing-rest summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.ing-rest ul { margin: 8px 0 0; padding-left: 18px; }
.ing-rest li { margin: 4px 0; }
@media (max-width: 560px) { .calc.big { padding: 16px; } .big-in { width: 100%; font-size: 1.6rem; } .conv-sentence { font-size: 1.1rem; } .seg button { padding: 9px 12px; font-size: .9rem; } }
.nt { text-transform: none; letter-spacing: 0; }  /* jednostki w nagłówkach tabel: wersalik zmienia „µg” w „MG” */

/* --- aplikacja: ulubione, skaner EAN, dolne zakładki (tylko w trybie aplikacji: PWA / Android) --- */
.main-nav a.fav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; }
.fav-count:empty { display: none; }
.fav-count { font-size: .8rem; font-weight: 650; color: var(--brand); }
.btn.fav-btn svg { flex: none; }
.btn.fav-btn[aria-pressed=true] { color: var(--brand-600); border-color: #a9d8c2; background: var(--brand-soft); }
.btn.fav-btn[aria-pressed=true] svg { fill: currentColor; }
.fav-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.fav-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fav-list li > a { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-decoration: none; color: var(--text); }
.fav-list img, .fav-list .ph { width: 56px; height: 56px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.fav-list .ph { background: var(--bg-soft); }
.fav-list b { display: block; font-weight: 600; line-height: 1.3; }
.fav-list small { display: block; }
.fav-list .add-cmp, .fav-list .cmp-remove { flex: none; }
.fav-list .add-cmp { font: inherit; font-size: .8rem; border: 1px solid var(--line-2); background: #fff; color: var(--brand); border-radius: 8px; padding: 5px 9px; cursor: pointer; }
@media (max-width: 560px) { .fav-list .add-cmp { display: none; } }
.scan { margin: 20px 0; }
.scan-view { position: relative; max-width: 480px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #0f1d19; }
.scan-view[hidden] { display: none; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; left: 12%; right: 12%; top: 30%; bottom: 30%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.scan-status { min-height: 1.6em; color: var(--text-2); }
.scan-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.scan-actions [hidden] { display: none; }  /* .btn ma display: inline-flex, który nadpisałby atrybut hidden */
.scan-manual { margin-top: 20px; }
.scan-manual label { display: block; font-weight: 600; margin-bottom: 6px; }
.scan-row { display: flex; gap: 8px; max-width: 480px; }
.scan-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; letter-spacing: .04em; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.offline { margin: 48px 0; }
.offline h1 { font-size: 1.6rem; }
.app-tabs { display: none; }
@media (display-mode: standalone) {
  .app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .app-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; font-size: .72rem; font-weight: 600;
    color: var(--muted); text-decoration: none; }
  .app-tabs a[aria-current=page] { color: var(--brand); }
  .app-tabs a[aria-current=page] svg { stroke-width: 2.3; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .cmp-bar { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Monografie składników (opis badań, bez linków zakupowych) */
.chip-strong { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-600); font-weight: 600; }
.mono-head { max-width: 860px; }
.mono-head h1 { margin: 8px 0 10px; }
.mono-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.mono-tile { display: flex; flex-direction: column; gap: 4px; min-width: 120px; padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; }
.mono-tile b { font-size: 1.5rem; line-height: 1; font-family: var(--font-display); }
.mono-tile span:not(.ev) { font-size: .82rem; color: var(--muted); }
.mono-info { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: .92rem; color: var(--text-2); }
.mono-info p { margin: 0; }
.research-lead { max-width: 820px; color: var(--text-2); line-height: 1.65; margin: 0 0 22px; }
.mono-info p + p { margin-top: 6px; }
.mono-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; margin-top: 28px; align-items: start; }
.mono-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.mono-toc b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.mono-toc a { color: var(--text-2); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--line); }
.mono-toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.mono-main { max-width: 820px; }
.mono-main h2 { scroll-margin-top: 84px; margin-top: 36px; }
.mono-main > h2:first-child { margin-top: 0; }
.mono-legend { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.mono-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); }
.mono-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; text-decoration: none;
  color: var(--text); border-top: 1px solid var(--line); }
.mono-row:first-child { border-top: 0; }
.mono-row:hover { background: var(--brand-tint); }
.mono-row-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mono-row-t span { font-size: .85rem; color: var(--muted); }
.mono-row-r { display: grid; grid-template-columns: 170px 190px; align-items: center; gap: 12px; flex-shrink: 0; }
.mono-row-t .mono-n { margin-top: 2px; }
.mono-group { padding: 10px 18px; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: .8rem; font-weight: 650;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mono-n { font-size: .8rem; color: var(--muted); }
.ev { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  white-space: nowrap; border: 1px solid var(--line-2); background: #fff; color: var(--text-2); width: max-content; }
.ev-pos { border-color: var(--brand); color: var(--brand-600); background: var(--brand-tint); }
.ev-pos::before { content: "▲"; font-size: .7em; }
.ev-neu::before { content: "●"; font-size: .7em; }
.ev-mix { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ev-mix::before { content: "◆"; font-size: .7em; }
.ev-neg { border-color: #b42318; color: #b42318; background: #fdecea; }
.ev-neg::before { content: "▼"; font-size: .7em; }
.mono-strength { display: inline-flex; align-items: center; gap: 8px; }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 14px; height: 8px; border-radius: 4px; background: var(--line); }
.meter i.on { background: var(--brand); }
.meter-l { font-size: .82rem; color: var(--text-2); }
.mono-w { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 14px 0; scroll-margin-top: 84px; }
.mono-w-pos { border-left-color: var(--brand); }
.mono-w-mix { border-left-color: var(--accent); }
.mono-w-neg { border-left-color: #b42318; }
.mono-w h3 { margin: 0 0 8px; font-size: 1.08rem; }
.mono-w p { margin: 8px 0 0; line-height: 1.65; }
.mono-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .86rem; color: var(--muted); }
.mono-w sup a { text-decoration: none; font-weight: 600; }
sup.cites { margin-left: 2px; white-space: normal; }
sup.cites a { text-decoration: none; font-weight: 600; }
.mono-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mono-cards > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.mono-cards h3 { margin: 0 0 6px; font-size: 1rem; }
.mono-cards p { margin: 6px 0 0; font-size: .93rem; color: var(--text-2); line-height: 1.6; }
.mono-src { font-size: .9rem; padding-left: 1.6em; display: flex; flex-direction: column; gap: 8px; }
.mono-src li { scroll-margin-top: 84px; line-height: 1.5; }
.mono-src li:target { background: var(--accent-soft); border-radius: 6px; }
.src-type { display: inline-block; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand-600); background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
@media (max-width: 960px) {
  .mono-layout { grid-template-columns: 1fr; gap: 0; }
  .mono-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .mono-toc b { display: none; }
  .mono-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
  .mono-row { flex-direction: column; align-items: flex-start; }
  .mono-row-r { grid-template-columns: auto auto; justify-items: start; }
}
