:root {
  --bg: #f6f5f2;
  --fg: #1d1d1b;
  --muted: #6b6a66;
  --line: #dddbd5;
  --card: #ffffff;
  --accent: #2f5d50;
  --warn: #9a3412;
  --s-hirry: #2f5d50;
  --s-msu: #8a5a2b;
  --s-unknown: #9b9a95;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --fg: #ecebe7;
    --muted: #a3a29d;
    --line: #34332f;
    --card: #1f1f1d;
    --accent: #7fb8a5;
    --warn: #f0a07a;
    --s-hirry: #7fb8a5;
    --s-msu: #d9a56b;
    --s-unknown: #6f6e69;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
button { font: inherit; }
main { max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px; }
.quiet { color: var(--muted); }
.warn { color: var(--warn); }

header#bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
header#bar .brand { font-weight: 700; text-decoration: none; color: var(--fg); }
header#bar .spacer { flex: 1; }
#crumbs a { color: var(--muted); text-decoration: none; }
#who { color: var(--muted); font-size: 14px; }
#signout { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; color: var(--fg); cursor: pointer; }

.welcome { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.welcome h1 { font-size: 34px; font-weight: 600; margin: 0; }
.primary { background: var(--fg); color: var(--bg); border: 0; border-radius: 8px; padding: 12px 22px; cursor: pointer; font-size: 16px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 12px; }
.tile { position: relative; display: flex; align-items: flex-end; min-height: 300px; border-radius: 14px; overflow: hidden;
        text-decoration: none; color: #fff; background: var(--s-unknown); }
.tile .picture { position: absolute; inset: 0; background-size: cover; background-position: center;
                 filter: grayscale(1); transition: filter .35s ease, transform .35s ease; }
.tile:hover .picture, .tile:focus-visible .picture { filter: grayscale(0); transform: scale(1.02); }
.tile .title { position: relative; width: 100%; padding: 18px 20px; font-size: 26px; font-weight: 700; letter-spacing: .04em;
               background: linear-gradient(transparent, rgba(0,0,0,.65)); }

.menu h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 24px 0 8px; }
.menu ul { list-style: none; padding: 0; margin: 0; }
.menu li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu .struck { text-decoration: line-through; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0; }
.filters label { margin-right: 10px; white-space: nowrap; }
.filters fieldset[disabled] { opacity: .5; }
.filters input[type=text] { width: 70px; }
.summary { font-size: 14px; color: var(--muted); margin: 8px 0; }
.summary button { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; }

.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); white-space: nowrap; }
td { max-width: 420px; overflow-wrap: anywhere; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.fixed { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fixed b { color: var(--fg); font-weight: 600; }
.cells { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin-top: 6px; font-size: 14px; }
.cells dt { color: var(--muted); }
.cells dd { margin: 0; overflow-wrap: anywhere; }
details pre, pre.json { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); padding: 8px; border-radius: 6px; margin: 6px 0 0; }
.inline { margin: 10px 0 0 12px; padding-left: 12px; border-left: 3px solid var(--line); }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.chart h3 { margin: 0 0 8px; font-size: 15px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10px; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.failure { border-left: 3px solid var(--warn); padding: 6px 10px; margin: 8px 0; background: var(--card); }

@media (max-width: 520px) {
  .charts { grid-template-columns: 1fr; }
  .tile { min-height: 200px; }
}

.view-title { font-size: 22px; margin: 0 0 4px; }
