/* The page behind the informer badge: a site's week, open to anyone who clicked. */
@font-face { font-family: "Onest"; src: url("/fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Onest"; src: url("/fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --brand: #8955ee;
  --page: #f4f2f8; --surface: #fff; --well: #faf9fc; --border: #e9e6f0;
  --text: #14121f; --text-2: #6b6780; --muted: #9a96ab;
  --good: #0f9d6b; --bad: #d64545;
  --shadow: 0 1px 2px rgba(20, 18, 31, 0.04), 0 18px 48px rgba(20, 18, 31, 0.08);
}
/* The page is as light or dark as the badge that led to it, whatever the visitor's device prefers. */
:root.dark {
  --page: #0c0b12; --surface: #14121f; --well: #1b1929; --border: #2a2738;
  --text: #fff; --text-2: #b3aec6; --muted: #7e7a92;
  --good: #2fc48d; --bad: #f07070;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; }
.kpi-value, .delta, .period, .chart-head b { font-variant-numeric: tabular-nums; }
body { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--page); color: var(--text); font: 14px/1.45 "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.card { width: 100%; max-width: 420px; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }

header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; }
.who { min-width: 0; margin-right: auto; }
.who h1 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who p { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.period { flex: none; padding: 5px 10px; border-radius: 8px; background: var(--well); box-shadow: inset 0 0 0 1px var(--border); color: var(--text-2); font: 500 11.5px "Onest", system-ui, sans-serif; white-space: nowrap; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 22px; }
.kpi { min-width: 0; padding: 14px 16px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--border); }
.kpi-label { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.kpi-value { margin: 6px 0 4px; font: 650 22px "Onest", system-ui, sans-serif; letter-spacing: -0.02em; white-space: nowrap; }
.delta { color: var(--muted); font: 500 11px "Onest", system-ui, sans-serif; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }

.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.chart-head b { color: var(--brand); font: 600 11.5px "Onest", system-ui, sans-serif; }
.chart-box { padding: 6px 0 0; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.chart { display: block; width: 100%; height: auto; }
.grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; }
.line { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fade-top { stop-color: var(--brand); stop-opacity: 0.28; }
.fade-bottom { stop-color: var(--brand); stop-opacity: 0; }
.today { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.6; }
.dot { fill: var(--brand); stroke: var(--well); stroke-width: 1.5; }
.days { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 0 2px; color: var(--muted); font: 500 10.5px "Onest", system-ui, sans-serif; text-transform: lowercase; }
.days .now { padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }

footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11.5px; }
.by { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); text-decoration: none; }
.by b { color: var(--text); font-weight: 650; }
.by:hover b { color: var(--brand); }
.logo { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--brand); }
.logo svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 400px) {
  .card { padding: 18px; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 19px; }
  .days span:not(.now) { font-size: 10px; }
}
