:root {
  --brand: #449dff; --bg: #edf2f8; --surface: #fff; --line: #d3dce8; --fg: #142133; --muted: #56667a;
  --accent: #1a6fd6; --stop: #c3261d; --ok: #2f7a45;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 Barlow, "Helvetica Neue", Arial, sans-serif; }
.box { max-width: 420px; margin: 9vh auto 0; padding: 0 16px; }
.wide { max-width: 980px; margin: 32px auto; padding: 0 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; box-shadow: 0 10px 40px rgba(16,28,44,.08); margin-bottom: 18px; }
h1 { font: 700 30px/1.1 "Barlow Condensed", "Arial Narrow", Arial, sans-serif; margin: 0 0 4px; letter-spacing: .01em; }
h2 { font: 600 22px/1.2 "Barlow Condensed", "Arial Narrow", Arial, sans-serif; margin: 0 0 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); font-weight: 600; }
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 5px; color: var(--muted); }
input, select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--fg); }
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
button { font: 600 15px Barlow, Arial, sans-serif; border: 0; border-radius: 9px; padding: 11px 18px; cursor: pointer; background: var(--accent); color: #fff; }
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button.small { padding: 6px 11px; font-size: 13px; }
button.danger { background: var(--stop); }
button:disabled { opacity: .55; cursor: default; }
.full { width: 100%; margin-top: 20px; }
.msg { min-height: 1.4em; margin-top: 12px; font-size: 14px; }
.msg.err { color: var(--stop); }
.msg.ok { color: var(--ok); }
.hint { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1 1 180px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #e3effe; color: var(--accent); }
.pill.off { background: #fbe7e5; color: var(--stop); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.top a { color: var(--accent); text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { .hide-sm { display: none; } td, th { padding: 8px 4px; } }
