/* Страница статуса SdamEx (#6411). Токены и вёрстка — утверждённый макет 14.10.2026.
   Одна колонка как лист журнала проверок: сводка, сервисы с 90-дневными полосками, разбор дня
   под строкой, журнал инцидентов. Шрифты системные: страница не ходит к сторонним сервисам. */
:root {
  --bg: oklch(0.985 0.004 160);
  --surface: oklch(1 0 0);
  --ink: oklch(0.22 0.02 160);
  --ink-2: oklch(0.45 0.02 160);
  --ink-3: oklch(0.62 0.015 160);
  --line: oklch(0.91 0.008 160);
  --brand: oklch(0.45 0.15 160);
  --up: oklch(0.62 0.15 158);
  --partial: oklch(0.78 0.15 80);
  --down: oklch(0.6 0.2 28);
  --maint: oklch(0.62 0.11 250);
  --nodata: oklch(0.9 0.006 160);
  --up-soft: oklch(0.95 0.04 158);
  --warn-soft: oklch(0.96 0.05 85);
  --down-soft: oklch(0.95 0.04 28);
  --maint-soft: oklch(0.95 0.03 250);
  --focus: oklch(0.55 0.15 160);
  --font-body:
    "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-data:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.17 0.012 160);
    --surface: oklch(0.21 0.014 160);
    --ink: oklch(0.94 0.01 160);
    --ink-2: oklch(0.76 0.015 160);
    --ink-3: oklch(0.6 0.015 160);
    --line: oklch(0.3 0.015 160);
    --brand: oklch(0.75 0.13 160);
    --up: oklch(0.68 0.14 158);
    --partial: oklch(0.8 0.14 80);
    --down: oklch(0.68 0.18 28);
    --maint: oklch(0.7 0.11 250);
    --nodata: oklch(0.32 0.012 160);
    --up-soft: oklch(0.27 0.04 158);
    --warn-soft: oklch(0.29 0.05 80);
    --down-soft: oklch(0.29 0.05 28);
    --maint-soft: oklch(0.28 0.04 250);
    --focus: oklch(0.75 0.13 160);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: oklch(0.17 0.012 160);
  --surface: oklch(0.21 0.014 160);
  --ink: oklch(0.94 0.01 160);
  --ink-2: oklch(0.76 0.015 160);
  --ink-3: oklch(0.6 0.015 160);
  --line: oklch(0.3 0.015 160);
  --brand: oklch(0.75 0.13 160);
  --up: oklch(0.68 0.14 158);
  --partial: oklch(0.8 0.14 80);
  --down: oklch(0.68 0.18 28);
  --maint: oklch(0.7 0.11 250);
  --nodata: oklch(0.32 0.012 160);
  --up-soft: oklch(0.27 0.04 158);
  --warn-soft: oklch(0.29 0.05 80);
  --down-soft: oklch(0.29 0.05 28);
  --maint-soft: oklch(0.28 0.04 250);
  --focus: oklch(0.75 0.13 160);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 28px 56px;
  display: grid;
  gap: 28px;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
a {
  color: var(--brand);
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand .logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand .logo span {
  color: var(--brand);
}
.brand .sub {
  color: var(--ink-2);
  font-size: 15px;
}
.updated {
  color: var(--ink-3);
  font-size: 13px;
  font-family: var(--font-data);
}

.summary {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--up-soft);
}
.summary.warn {
  background: var(--warn-soft);
}
.summary.bad {
  background: var(--down-soft);
}
.summary.maint {
  background: var(--maint-soft);
}
.summary .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--up);
  flex: none;
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--up) 25%, transparent);
}
.summary.warn .dot {
  background: var(--partial);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--partial) 25%, transparent);
}
.summary.bad .dot {
  background: var(--down);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--down) 25%, transparent);
}
.summary.maint .dot {
  background: var(--maint);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--maint) 25%, transparent);
}
.summary h1 {
  font-size: 20px;
  font-weight: 600;
}
.summary p {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.active {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid color-mix(in oklch, var(--partial) 60%, var(--line));
  border-radius: var(--r);
  background: var(--surface);
  transition: box-shadow 0.3s ease;
}
.active.maint {
  border-color: color-mix(in oklch, var(--maint) 60%, var(--line));
}
.active h2 {
  font-size: 17px;
  font-weight: 600;
}
.chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chip.minor {
  background: var(--warn-soft);
  color: var(--ink);
}
.chip.major {
  background: var(--down-soft);
  color: var(--ink);
}
.chip.ok {
  background: var(--up-soft);
  color: var(--ink);
}
.chip.maint {
  background: var(--maint-soft);
  color: var(--ink);
}
.updates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.updates li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  font-size: 14px;
}
.updates .when {
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--ink-3);
  padding-top: 2px;
}
.updates .what {
  min-width: 0;
  overflow-wrap: anywhere;
}
.updates .what strong {
  font-weight: 600;
}
.affected,
.note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.groups {
  display: grid;
  gap: 16px;
}
section.group {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.group-head h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.group-head .toggle {
  border: 0;
  background: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}
section.group.collapsed .group-head {
  border-bottom: 0;
}
.row {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.row-name {
  font-weight: 500;
  min-width: 0;
}
.row-name small {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 400;
}
.row-pct {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.row-pct .span {
  color: var(--ink-3);
}
.bars {
  display: grid;
  grid-template-columns: repeat(90, 1fr);
  gap: 2px;
  height: 30px;
}
.bars button {
  border: 0;
  padding: 0;
  border-radius: 2px;
  background: var(--nodata);
  cursor: pointer;
  min-width: 0;
  transition: transform 0.12s ease;
}
.bars button.up {
  background: var(--up);
}
.bars button.partial {
  background: var(--partial);
}
.bars button.down {
  background: var(--down);
}
.bars button.maint {
  background: var(--maint);
}
.bars button:hover {
  transform: scaleY(1.12);
}
.bars button[aria-expanded="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.axis {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-data);
}
.axis .m {
  display: none;
}

.day {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.day-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}
.day-head h3 {
  font-size: 15px;
  font-weight: 600;
}
.day-head .stats {
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.strip {
  position: relative;
  height: 14px;
  border-radius: 3px;
  background: var(--up);
  overflow: hidden;
}
.strip.empty {
  background: var(--nodata);
}
.strip i {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--down);
  min-width: 3px;
}
.strip i.partial {
  background: var(--partial);
}
.strip i.maint {
  background: var(--maint);
}
.strip i.n {
  background: var(--nodata);
}
.strip-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: -6px;
}
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.events li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
}
.events .when {
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--ink-3);
  padding-top: 2px;
}
.events .what {
  min-width: 0;
  overflow-wrap: anywhere;
}
.inc-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
}
.muted {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0;
}
.day-inc {
  margin: 0;
  font-size: 14px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-2);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.lg-up {
  background: var(--up);
}
.lg-partial {
  background: var(--partial);
}
.lg-down {
  background: var(--down);
}
.lg-maint {
  background: var(--maint);
}
.lg-nodata {
  background: var(--nodata);
}

.history {
  display: grid;
  gap: 14px;
}
.history > h2 {
  font-size: 18px;
  font-weight: 600;
}
.inc {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: box-shadow 0.3s ease;
}
.inc.flash,
.active.flash {
  box-shadow: 0 0 0 3px var(--focus);
}
.inc-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}
.inc-top h2,
.inc-top h3 {
  overflow-wrap: anywhere;
}
.inc h3 {
  font-size: 16px;
  font-weight: 600;
}
.inc .meta,
.active .meta {
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--ink-3);
}
.inc details summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 14px;
}
.inc details p,
.active details p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 65ch;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

footer {
  color: var(--ink-3);
  font-size: 13px;
  display: grid;
  gap: 4px;
}

@media (max-width: 600px) {
  .bars {
    grid-template-columns: repeat(30, 1fr);
  }
  .bars button:nth-child(-n + 60) {
    display: none;
  }
  .axis .d {
    display: none;
  }
  .axis .m {
    display: inline;
  }
  .updates li,
  .events li {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .summary h1 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
