:root {
	--bg: #fbfaf8; --surface: #ffffff; --text: #1d1d1f; --muted: #6b6b70; --line: #e6e3de;
	--accent: #1f6f5c; --ok: #1f7a3d; --warn: #9a5b00; --bad: #b42318; --chip: #f1efeb;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #141416; --surface: #1c1c1f; --text: #ececee; --muted: #9a9aa2; --line: #2c2c31;
		--accent: #5fc2a6; --ok: #5bc27c; --warn: #e2a64a; --bad: #f2786c; --chip: #26262b;
	}
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
body.wide main { max-width: 1600px; }
@media (max-width: 600px) { main { padding: 24px 16px 48px; } }
header.top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
h1 { font-size: 1.75rem; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 32px 0 12px; }
.muted { color: var(--muted); }
a { color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.card h3 { margin: 18px 0 6px; font-size: 1rem; }
.card h2 { margin: 12px 0 8px; font-size: 1.05rem; }
.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--chip); font-size: 0.75rem; font-weight: 600; color: var(--text); }
.chip.ok { color: var(--ok); } .chip.warn { color: var(--warn); } .chip.bad { color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
textarea { width: 100%; min-height: 420px; field-sizing: content; max-height: 85vh; resize: vertical; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
button, .button { font: inherit; font-size: 0.9rem; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button:disabled { opacity: 0.5; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
details { margin-top: 12px; }
pre.review { white-space: pre-wrap; font-size: 0.85rem; background: var(--bg); padding: 12px; border-radius: 8px; border: 1px solid var(--line); }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--chip); margin-bottom: 16px; }
.notice.bad { color: var(--bad); }
.empty { padding: 24px; text-align: center; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.deploy-list { display: flex; flex-direction: column; gap: 8px; }
.deploy { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.deploy:hover, .deploy:focus-visible { border-color: var(--accent); }
.deploy-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.deploy-title { font-weight: 600; }
.deploy-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.85rem; text-align: right; }
.chev { color: var(--muted); font-size: 1.4rem; line-height: 1; }
@media (max-width: 520px) { .deploy { flex-wrap: wrap; } .deploy-side { flex-direction: row; align-items: center; } }
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.facts dt { color: var(--muted); font-size: 0.8rem; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.notice.warn { color: var(--warn); }
.chip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .chip .dot { animation: none; } }
.live-banner { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--warn); background: var(--surface); margin-bottom: 16px; }
.live-banner a { color: var(--text); font-weight: 600; text-decoration: none; }
.live-banner a:hover { text-decoration: underline; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; gap: 12px; align-items: baseline; }
.timeline .when { color: var(--muted); font-size: 0.85rem; min-width: 170px; }
.progress { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 0.85rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.topbar .back { margin-bottom: 0; }
.lede { margin: -12px 0 16px; }
