:root {
  --reading-bg: #0b0d0d;
  --reading-panel: #121615;
  --reading-raised: #181d1b;
  --reading-text: #eef2ec;
  --reading-muted: #b0bcb3;
  --reading-accent: #f2b765;
  --reading-line: #343d37;
  --reading-radius: 14px;
  --reading-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tn-reading, .analytics-card { font-family: var(--reading-font); color: var(--reading-text); }
.tn-reading { --bg: var(--reading-bg); --panel: var(--reading-panel); --panel-strong: var(--reading-raised); --text: var(--reading-text); --muted: var(--reading-muted); --accent: var(--reading-accent); }
.tn-reading .site-header { background: #0e1211; border-bottom: 1px solid var(--reading-line); }
.tn-reading .site-header .frame { width: min(100%,1080px); margin: auto; box-sizing: border-box; padding-inline: clamp(16px,4vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.tn-reading .site-header .brand { display: grid; align-content: center; min-height: 44px; color: var(--reading-text); text-decoration: none; line-height: 1.15; }
.tn-reading .brand span { font-size: 20px; font-weight: 700; letter-spacing: -.035em; }
.tn-reading .brand small { color: var(--reading-muted); font-size: 12px; margin-top: 3px; }
.tn-reading .site-header .crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 14px; color: var(--reading-muted); }
.tn-reading .site-header .crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--reading-text); font: inherit; text-decoration: underline; text-underline-offset: .2em; }
.tn-reading .crumbs > :not(:last-child)::after { content: ""; width: 1px; height: 11px; margin-left: 8px; background: var(--reading-line); transform: skew(-18deg); }
.tn-reading .site-header .crumbs span { padding: 0; }
.tn-reading .reading-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tn-reading .reading-related { display: inline-flex; align-items: center; min-height: 44px; color: var(--reading-text); text-decoration: underline; text-underline-offset: .2em; font-size: 14px; }
.app-shell .summary-tabs, .tn-tabs { padding: 4px; background: var(--reading-panel); border-radius: 10px; }
.app-shell .summary-tabs button { flex: 1; min-width: 0; min-height: 44px; border: 0; color: var(--reading-muted); }
.app-shell .summary-tabs button[aria-selected=true] { background: var(--reading-raised); color: var(--reading-text); box-shadow: inset 0 0 0 1px var(--reading-line); }
body.tn-reading { color-scheme: dark; background: var(--reading-bg); }
.tn-reading main.reading-page {
  box-sizing: border-box; width: min(100%, 1080px); max-width: none; margin: auto;
  padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) max(48px, env(safe-area-inset-bottom));
}
.tn-reading .reading-page h1 { margin: 14px 0 12px; font-size: clamp(29px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.12; }
.tn-reading .reading-page h2 { font-size: 19px; line-height: 1.25; }
.tn-reading .reading-page a, .tn-reading .reading-page nav.crumbs a { color: var(--reading-text); text-underline-offset: .2em; }
.tn-reading .reading-page :is(.hero,.note,.tiles div,ul.status li) { border-radius: var(--reading-radius); }
.tn-reading .reading-page nav.crumbs { margin: 0; font-size: 14px; color: var(--reading-muted); }
.tn-reading .reading-page :is(nav a,.reading-action) { display: inline-flex; align-items: center; min-height: 44px; }
.tn-reading .reading-page :is(.reading-action,nav.crumbs .airport-return) { box-sizing: border-box; padding: 8px 13px; background: var(--reading-panel); border: 1px solid var(--reading-line); border-radius: 9px; text-decoration: none; font-size: 15px; font-weight: 600; }
.tn-reading .reading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-reading :focus-visible, tn-trend :focus-visible, tn-period-summary :focus-visible { outline: 2px solid var(--reading-accent); outline-offset: 2px; }
.reading-dates { list-style: none; margin: 8px 0; padding: 0; }
.reading-dates li { border-bottom: 1px solid var(--reading-line); padding: 5px 0; }
.reading-dates a { display: inline-flex; align-items: center; min-height: 44px; }
.tn-reading .reading-page .finder input { min-width: 0; min-height: 44px; font-size: 16px; }
.tn-reading .reading-page :is(.apt-state,.apt-hist,.band) { color: var(--reading-muted); }
.tn-reading .reading-page .band { letter-spacing: normal; font-size: 15px; }
.tn-reading .airport-help { margin: 16px 0; }
.tn-reading .airport-help summary { min-height: 44px; padding-block: 8px; box-sizing: border-box; cursor: pointer; font-weight: 600; }
tn-period-summary, tn-trend { display: block; min-width: 0; color: var(--reading-text); font-family: var(--reading-font); }
.tn-report { padding: clamp(14px, 2vw, 22px); border: 1px solid var(--reading-line); border-radius: var(--reading-radius); background: var(--reading-panel); }
.tn-report h3, .tn-report p { margin: 0; }
.tn-report .tn-kicker { color: var(--reading-muted); font-size: 14px; }
.tn-value { display: block; margin-block: 4px; font-size: clamp(32px,6vw,44px); font-weight: 680; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.tn-copy, .tn-caption, .tn-report .tn-copy { color: var(--reading-muted); font-size: 14px; line-height: 1.45; }
.tn-report tn-trend { margin-top: 16px; }
.tn-plot { position: relative; }
.tn-plot svg { display: block; width: 100%; height: 168px; overflow: visible; }
.tn-plot .grid { stroke: var(--reading-line); stroke-dasharray: 3 5; }
.tn-plot .axis { fill: var(--reading-muted); font: 12px var(--reading-font); font-variant-numeric: tabular-nums; }
.tn-plot .area { fill: rgba(242,183,101,.14); }
.tn-plot .series { fill: none; stroke: var(--reading-accent); stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
.tn-plot .partial-series { stroke: var(--reading-accent); stroke-width: 2.2; stroke-dasharray: 5 6; opacity: .72; }
.tn-plot .dot { fill: var(--reading-accent); stroke: var(--reading-panel); stroke-width: 2; }
.tn-plot .partial-dot { fill: var(--reading-panel); stroke: var(--reading-accent); stroke-width: 2.5; }
.tn-plot .point-label { fill: var(--reading-text); font: 600 11px var(--reading-font); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--reading-panel); stroke-width: 4px; }
.tn-plot .point-label.partial { fill: var(--reading-muted); }
.tn-plot .gap { stroke: var(--reading-muted); stroke-width: 2; }
.tn-plot-keys { display: grid; grid-template-columns: repeat(var(--points), minmax(0,1fr)); margin-left: var(--axis-width,36px); }
.tn-plot-keys button { cursor: pointer; min-width: 0; min-height: 44px; padding: 2px 0; border: 0; border-radius: 6px; color: var(--reading-text); background: transparent; font: 600 13px var(--reading-font); }
.tn-plot-keys button:hover, .tn-plot-keys button:focus-visible { color: var(--reading-accent); background: var(--reading-raised); }
.tn-caption { margin: 4px 0 0; }
.tn-plot-hit { position: absolute; top: 0; bottom: 44px; left: var(--axis-width,36px); right: 0; display: grid; grid-template-columns: repeat(var(--points),minmax(0,1fr)); }
.tn-plot-hit button { cursor: pointer; background: transparent; border: 0; padding: 0; }
.tn-point-dialog { box-sizing: border-box; width: min(360px, calc(100% - 32px)); max-height: 80dvh; padding: 20px;
  color-scheme: dark; background: var(--reading-raised); color: var(--reading-text); font-family: var(--reading-font); border: 1px solid var(--reading-line); border-radius: var(--reading-radius); }
.tn-point-dialog::backdrop { background: rgb(0 0 0 / 58%); }
.tn-point-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tn-point-dialog h3, .tn-point-dialog p { margin: 0; }
.tn-point-dialog h3 { font-size: 19px; }
.tn-close, .tn-retry { box-sizing: border-box; min-width: 44px; min-height: 44px; border: 1px solid var(--reading-line); color: var(--reading-text); background: var(--reading-panel); border-radius: 9px; cursor: pointer; font: inherit; }
.tn-close { font-size: 22px; }
.tn-retry { margin-top: 8px; padding: 6px 12px; }
.tn-text-link { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: 10px; color: var(--reading-text); }
.tn-loading { min-height: 240px; }
.tn-loading p { font-size: 15px; color: var(--reading-muted); }
.tn-skeleton { height: 14px; margin-block: 14px; width: 38%; background: var(--reading-line); border-radius: 6px; }
.tn-skeleton.plot { width: 100%; height: 116px; }
@media (prefers-reduced-motion: no-preference) { .tn-skeleton { animation: tn-pulse 1.6s ease-in-out infinite alternate; } }
@keyframes tn-pulse { to { opacity: .48; } }
.tn-tabs { display: flex; gap: 4px; padding: 4px; margin: 8px 0 12px; border-radius: 10px; background: var(--reading-panel); }
.tn-tabs button { min-height: 44px; flex: 1; border: 0; border-radius: 7px; color: var(--reading-muted); background: transparent; font: 600 15px var(--reading-font); cursor: pointer; }
.tn-tabs button[aria-pressed=true] { color: var(--reading-text); background: var(--reading-raised); box-shadow: inset 0 0 0 1px var(--reading-line); }
.tn-fallback { padding-left: 1.3em; color: var(--reading-muted); }
.tn-fallback li { padding-block: 4px; }
.tn-reading .tn-trend-note { margin: 6px 0 0; font-size: 14px; color: var(--reading-muted); }
.tn-reading .chart-range { margin: -6px 0 8px; }
.tn-reading .all-russia { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 8px; }
.tn-chart-hint { display: none; }
tn-trend:has(.tn-plot) + .tn-trend-note .tn-chart-hint { display: inline; }
.tn-report .tn-graph-heading { margin: 20px 0 0; font-size: 16px; line-height: 1.3; }
.tn-report .tn-graph-heading + tn-trend { margin-top: 4px; }
.tn-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.tn-facts > div { min-width: 0; padding: 11px 12px; border: 1px solid var(--reading-line); border-radius: 10px; background: var(--reading-raised); }
.tn-facts span { display: block; color: var(--reading-muted); font-size: 12px; line-height: 1.3; }
.tn-facts strong { display: block; margin-top: 3px; font-size: 16px; line-height: 1.25; font-variant-numeric: tabular-nums; }
body.tn-reading { margin: 0; }
.tn-reading .reading-page .hero.quiet .dot { background: var(--reading-muted); }
.tn-reading .reading-page .hero.quiet { gap: 12px; }
@media (max-width: 440px) {
  .tn-plot svg { height: 168px; }
  .tn-facts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tn-reading .site-header .brand { display: none; }
  .tn-reading .site-header .frame { min-height: 46px; }
  .tn-reading .reading-nav { width: 100%; }
  .tn-reading .site-header .crumbs > span:nth-child(3), .tn-reading .site-header .crumbs > a:nth-child(2)::after { display: none; }
}
