:root { color-scheme: dark; --bg:#0e141b; --card:#17202a; --line:#2a3848; --text:#e8eef4; --muted:#93a4b5; --accent:#7eb6ff; }
html[data-theme="light"] { color-scheme: light; --bg:#f4f7fb; --card:#ffffff; --line:#d5deea; --text:#152033; --muted:#5c6b7d; --accent:#1d4f91; }
html[data-text-scale="0"] { font-size: 14px; }
html[data-text-scale="1"] { font-size: 16px; }
html[data-text-scale="2"] { font-size: 18px; }
html[data-text-scale="3"] { font-size: 20px; }
html[data-text-scale="4"] { font-size: 22px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Calibri, Segoe UI, sans-serif; line-height: 1.5; background: var(--bg); color: var(--text); }
header { width: 100%; max-width: none; margin: 0; padding: 14px 24px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); background: var(--bg); }
.controls, main { max-width: 980px; margin: 0 auto; padding: 16px 20px; }
h1 { margin: 0; font-size: 1.75rem; }
.kicker, .fresh, .meta { color: var(--muted); }
.fresh { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-line, .a11y { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.a11y-group { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.a11y-btn, .read-btn, .filters-toggle, .pill { background: transparent; color: var(--text); border: 0; min-height: 40px; padding: 6px 12px; cursor: pointer; font: inherit; }
.a11y-btn[aria-pressed="true"], .pill.on, .read-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.read-btn, .filters-toggle { border: 1px solid var(--line); border-radius: 999px; }
.filters { display: grid; gap: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); border-radius: 999px; }
select, .search-wrap input { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; font: inherit; padding: 0 12px; }
.search-wrap input { width: 100%; }
.filters-toggle { display: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.card a { color: var(--accent); }
.empty { color: var(--muted); }
html[data-reading="1"] .controls { display: none; }
@media (max-width: 720px) {
  header { position: sticky; top: 0; z-index: 2; flex-direction: column; align-items: stretch; }
  .header-line { flex-wrap: wrap; }
  .filters-toggle { display: flex; width: 100%; justify-content: center; }
  .filters { display: none; }
  .filters.open { display: grid; }
  .a11y { width: 100%; }
  .a11y-group { flex: 1; }
  .a11y-btn { flex: 1; }
}
