/* Same look as ar5.sh: dark ground, one signal orange, system fonts so the
   page is there at once on a phone at night */
:root {
  --ground: #0D1013; --panel: #14181D; --line: #262C33; --text: #E8EAED; --muted: #9AA3AD;
  --accent: #FF6A2B; --ok: #7FD1A6;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.stripe { height: 6px; background: repeating-linear-gradient(135deg, var(--accent) 0 14px, var(--ground) 14px 28px); }
header, main { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; font-size: 26px; letter-spacing: 0.06em; color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-family: var(--mono); font-size: 14px; }
nav a, nav button { min-height: 44px; display: inline-flex; align-items: center; }
a { color: var(--text); } a:hover { color: #fff; }
main { padding-bottom: 64px; }
section { padding: 28px 0; border-top: 1px solid var(--line); }
section.narrow { max-width: 420px; }
h1 { margin: 12px 0; font-size: 32px; line-height: 1.15; overflow-wrap: anywhere; }
h2 { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
h3 { margin: 28px 0 8px; font-size: 18px; }
p { margin: 8px 0; }
.big { font-size: 34px; font-weight: 700; line-height: 1.1; margin: 0; }
.muted, small { color: var(--muted); }
small { display: block; font-size: 14px; }
.wrap { overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; }
code, pre { font-family: var(--mono); font-size: 14px; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.error { color: #FF9C8A; } .error:empty { display: none; }
.notice { margin: 20px 0 0; padding: 12px 16px; background: var(--panel); border: 1px solid var(--accent); border-radius: 6px; }

.list { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.list > li { background: var(--panel); border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list > li.muted { padding: 14px 16px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 56px; color: var(--text); text-decoration: none; }
a.row:hover { background: #1A1F25; }
.grow { flex: 1; min-width: 0; }
.grow strong { display: block; overflow-wrap: anywhere; }

.badge { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); }
.badge.triggered { background: var(--accent); border-color: var(--accent); color: var(--ground); font-weight: 600; }
.badge.acked { border-color: var(--ok); color: var(--ok); }

.timeline { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 14px; }
.timeline li { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline time { color: var(--muted); flex: none; }
.timeline .alert span { color: var(--accent); }
.timeline .ack span, .timeline .resolve span { color: var(--ok); }
.timeline .skip span { color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin: 12px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
label.order { flex: none; width: 76px; font-size: 12px; }
input, select { font: inherit; color: var(--text); background: var(--ground); border: 1px solid #3A424C; border-radius: 3px; padding: 10px 12px; min-height: 44px; width: 100%; }
button { font: inherit; font-weight: 600; color: var(--text); background: transparent; border: 1px solid #3A424C; border-radius: 3px; padding: 10px 18px; min-height: 44px; cursor: pointer; }
button:hover { border-color: var(--text); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--ground); min-height: 56px; padding: 12px 28px; font-size: 19px; }
button.link { border: 0; padding: 0 4px; font-weight: 400; color: var(--muted); text-decoration: underline; }
button.link:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details { margin: 16px 0; } summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted); }
