:root {
  --orange: #FF5500; --orange-dark: #E64D00; --orange-tint: #FFF3EC;
  --ink: #14181f; --muted: #5b6573; --line: #e6e9ee; --bg: #fff; --surface: #f7f8fa;
  --green: #1a7f4b; --green-tint: #e6f5ec; --red: #b42318; --red-tint: #fdecea; --amber: #9a6700; --amber-tint: #fff4d6;
  --blue: #175cd3; --blue-tint: #e8f0fe;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface); color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { max-width: 1400px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.brand .mark { width: 28px; height: 28px; display: block; }
.brand span { color: var(--orange); }
.brand .sub { color: var(--muted); font-weight: 500; font-size: 15px; margin-left: 4px; }
.brand .sub::before { content: "/"; margin-right: 8px; color: var(--line); }
nav.tabs { display: flex; gap: 4px; margin-left: auto; }
nav.tabs a { border-bottom: 3px solid transparent; padding: 8px 14px; font-weight: 600; color: var(--muted); }
nav.tabs a.active { color: var(--ink); border-bottom-color: var(--orange); }
nav.tabs a:hover { text-decoration: none; color: var(--ink); }
.stamp { color: var(--muted); font-size: 12.5px; }

main { max-width: 1400px; margin: 0 auto; padding: 20px 24px 60px; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tools input { flex: 1 1 240px; max-width: 380px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--bg); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--muted); }
.chip.active { background: var(--orange-tint); border-color: var(--orange); color: var(--orange-dark); font-weight: 600; }
.chip .n { font-size: 11.5px; margin-left: 4px; opacity: .8; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile b { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; font-weight: 600; }
.tile .v { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.tile .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tile.clickable { cursor: pointer; }
.tile.clickable:hover { border-color: var(--orange); }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.card h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

.tag { display: inline-block; border-radius: 6px; padding: 1px 8px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.tag.grey { background: var(--surface); color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.tag.live { background: var(--green-tint); color: var(--green); }
.tag.built { background: var(--blue-tint); color: var(--blue); }
.tag.paused { background: var(--amber-tint); color: var(--amber); }
.tag.killed { background: var(--red-tint); color: var(--red); }
.tag.old { background: var(--surface); color: var(--muted); }
.tag.net { background: var(--orange-tint); color: var(--orange-dark); }

.tablewrap { overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface); position: sticky; top: 0; cursor: pointer; user-select: none; }
th.sorted::after { content: " \25BE"; color: var(--orange); }
th.sorted.asc::after { content: " \25B4"; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.row { cursor: pointer; }
tr.row:hover td { background: #fffaf7; }
tr.expand td { background: var(--surface); white-space: normal; padding: 12px 16px 14px; }
td .name { font-weight: 600; }
td .name small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; white-space: normal; }
.good { color: var(--green); font-weight: 600; }
.bad { color: var(--red); font-weight: 600; }
.dim { color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.changes { list-style: none; margin: 0; padding: 0; }
.changes li { display: grid; grid-template-columns: 96px 60px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; white-space: normal; }
.changes li:last-child { border-bottom: 0; }
.changes .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.changes .by { color: var(--muted); }
.changes .why { color: var(--muted); }
@media (max-width: 700px) { .changes li { grid-template-columns: 1fr; gap: 2px; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; margin: 12px 0 6px; font-size: 14px; }
.facts b { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; font-weight: 600; }
.facts .val { word-break: break-word; white-space: normal; }
.facts.wide { grid-template-columns: 1fr; }
.urlbox { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.urlbox code { flex: 1; word-break: break-all; white-space: normal; }
button.copy { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
button.copy:hover { border-color: var(--orange); color: var(--orange-dark); }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.detail h1 { font-size: 24px; margin-bottom: 4px; }
.detail .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: 13.5px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.links a { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.links a:hover { text-decoration: none; border-color: var(--orange); }
.chart { width: 100%; height: 220px; display: block; }
.chart text { font-size: 11px; fill: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.note { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
