:root { color-scheme: light dark; font: 16px/1.5 system-ui, sans-serif; --bg: #f5f7fa; --card: #fff; --text: #17202a; --muted: #657180; --line: #dbe1e8; --accent: #2867d6; --danger: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
.topbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem max(1rem, calc((100% - 1100px)/2)); background: #152237; color: #fff; }
.brand { color: #fff; font-weight: 750; text-decoration: none; font-size: 1.2rem; }
nav, nav form, .actions, .actions form, .inline, .heading-row { display: flex; align-items: center; gap: .75rem; }
nav a, .link-button { color: #eaf1ff; text-decoration: none; }
.link-button { background: transparent; border: 0; padding: 0; }
.container { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin: 1rem 0; box-shadow: 0 3px 14px rgba(0,0,0,.04); }
.narrow { max-width: 430px; margin: 8vh auto; }
h1, h2 { line-height: 1.2; margin-top: 0; } h2 { font-size: 1.1rem; }
label { display: block; font-weight: 650; margin: .8rem 0; }
input, textarea, button { font: inherit; }
input, textarea { display: block; width: 100%; margin-top: .35rem; border: 1px solid #aeb8c4; border-radius: 7px; padding: .65rem; background: var(--card); color: var(--text); }
textarea { resize: vertical; font-family: ui-monospace, monospace; }
button { border: 1px solid #9aa7b5; border-radius: 7px; padding: .52rem .8rem; background: var(--card); color: var(--text); cursor: pointer; white-space: nowrap; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; } button.danger { color: var(--danger); border-color: #e4aaa4; }
.grow { flex: 1; }.muted { color: var(--muted); }.heading-row { justify-content: space-between; align-items: flex-start; }
.notice { border-radius: 8px; padding: .7rem .9rem; margin: .8rem 0; background: #e8efff; }.notice.error { background: #fee4e2; color: #912018; }.notice.success { background: #dcfae6; color: #087443; }.notice.warning { background: #fff1c7; color: #7a4d00; }
.status, .pill { display: inline-block; border-radius: 999px; padding: .28rem .65rem; font-size: .88rem; }.status.ok, .pill.enabled { background: #dcfae6; color: #087443; }.status.bad, .pill.revoked { background: #fee4e2; color: #912018; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; } th { color: var(--muted); font-size: .88rem; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }.route-grid .card { margin: 0; }.secret { overflow-wrap: anywhere; }
@media (max-width: 800px) { .route-grid { grid-template-columns: 1fr; }.inline, .heading-row { align-items: stretch; flex-direction: column; }.actions { flex-wrap: wrap; } }
@media (prefers-color-scheme: dark) { :root { --bg: #101722; --card: #182231; --text: #edf3fa; --muted: #aeb9c7; --line: #344155; --accent: #6799f2; } input, textarea { border-color: #536176; } }
