/* Axel Hardware Design brand: teal #194e6a, near-black #333333. */
:root {
  --brand: #194e6a; --brand-deep: #123a50; --on-brand: #fff;
  --bg: #f3f5f7; --panel: #fff; --ink: #333333; --muted: #66727c; --line: #d5dce1;
  --accent: #194e6a; --accent-ink: #fff; --tint: #e6eef2;
  --ok: #1a7f4b; --warn: #9a5b00; --bad: #b3261e; --chip: #edf1f4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181c; --panel: #1b2329; --ink: #e4e8eb; --muted: #98a5ae; --line: #2f3a42;
    --accent: #7dbcdc; --accent-ink: #0d1a22; --tint: #1f3340;
    --ok: #5fd39a; --warn: #f0b458; --bad: #ff8a80; --chip: #26313a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header.top { background: var(--brand); color: var(--on-brand); padding: 0 24px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  min-height: 60px; border-bottom: 3px solid var(--brand-deep); }
header.top a { color: var(--on-brand); }
header.top .brand { display: flex; align-items: center; gap: 14px; margin-right: 22px; padding: 10px 0; }
header.top .brand:hover { text-decoration: none; }
header.top .brand img { height: 34px; width: auto; display: block; }
header.top .brand .sep { width: 1px; height: 30px; background: rgba(255,255,255,.35); }
header.top .brand .wordmark { height: 15px; width: auto; color: var(--on-brand); display: block; }
header.top nav { display: flex; gap: 2px; align-self: stretch; }
header.top nav a { display: flex; align-items: center; padding: 0 14px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; font-size: 12px;
  border-bottom: 3px solid transparent; margin-bottom: -3px; opacity: .85; }
header.top nav a:hover { text-decoration: none; opacity: 1; background: rgba(255,255,255,.08); }
header.top nav a.on { opacity: 1; border-bottom-color: #fff; }
header.top .spacer { flex: 1; }
header.top .who { opacity: .85; margin-right: 10px; }
header.top button.quiet { color: var(--on-brand); border-color: rgba(255,255,255,.45); }
header.top button.quiet:hover { background: rgba(255,255,255,.12); }

main { max-width: 1200px; margin: 0 auto; padding: 24px; }
main.wide { max-width: none; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: var(--accent); letter-spacing: .01em; }
h2 { font-size: 12px; font-weight: 700; margin: 26px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.crumbs { color: var(--muted); margin-bottom: 12px; font-size: 13px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin-bottom: 16px; }
.panel > h2:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 6px; padding: 14px 16px; color: var(--ink); }
.card:hover { border-color: var(--accent); text-decoration: none; background: var(--tint); }
.card .t { font-weight: 700; font-size: 15px; }
.card .m { color: var(--muted); font-size: 13px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; border-bottom: 2px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.hash { color: var(--muted); word-break: break-all; }
.chip { display: inline-block; background: var(--chip); border-radius: 10px; padding: 1px 9px; font-size: 12px; white-space: nowrap; }
.chip.major { background: var(--brand); color: #fff; font-weight: 600; }
.chip.released { color: var(--ok); } .chip.pending { color: var(--warn); } .chip.rejected, .chip.off { color: var(--bad); }
tr.major td { background: var(--tint); }
.ver { font-weight: 700; font-size: 15px; }
.notes { white-space: pre-wrap; }
form.stack { display: grid; gap: 12px; max-width: 540px; }
form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
label { display: grid; gap: 3px; font-weight: 600; font-size: 13px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px; }
label small, .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input[type=file] { font: inherit; font-weight: 400; }
form.inline input, form.inline select { width: auto; }
textarea { min-height: 96px; resize: vertical; }
button, a.btn { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 4px; padding: 7px 14px; display: inline-block; }
button:hover, a.btn:hover { filter: brightness(1.12); text-decoration: none; }
form.stack > button[type=submit] { justify-self: start; min-width: 140px; }
button.quiet { background: transparent; color: var(--accent); border-color: var(--line); padding: 3px 9px; font-size: 13px; font-weight: 400; }
button.link { background: none; border: none; color: var(--accent); padding: 0; font-weight: 400; }
button:disabled { opacity: .55; cursor: default; }
.error { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); border-radius: 4px; padding: 7px 10px; }
.viewer { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } main { padding: 14px; } header.top { padding: 0 14px; } }
.empty { color: var(--muted); padding: 10px 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
fieldset { border: 1px solid var(--line); border-radius: 4px; display: grid; gap: 12px; padding: 12px; margin: 0; }

/* Sign-in */
body.signin { background: var(--brand); background-image: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); min-height: 100vh; }
.login { max-width: 420px; margin: 9vh auto 0; background: #fff; color: #333333; border-radius: 8px; padding: 34px 34px 26px; box-shadow: 0 18px 50px rgba(0,0,0,.28); color-scheme: light;
  --panel: #fff; --ink: #333333; --muted: #66727c; --line: #d5dce1; --accent: #194e6a; --accent-ink: #fff; --bad: #b3261e; }
.login .logo { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 14px; }
.login .wordmark { display: block; height: 20px; width: auto; margin: 0 auto 22px; color: #194e6a; }
.login .sub { text-align: center; }
.login form.stack > button[type=submit] { justify-self: stretch; padding: 9px 14px; }
.qr svg { background: #fff; border-radius: 6px; display: block; margin: 0 auto; }
.secret { font-size: 15px; letter-spacing: .05em; }
.signin-foot { text-align: center; color: rgba(255,255,255,.7); font-size: 12px; margin-top: 18px; }

/* Release gate */
.badge { display: inline-block; min-width: 18px; text-align: center; background: #fff; color: var(--brand); border-radius: 9px; padding: 0 5px; font-size: 12px; font-weight: 700; }
.notice { border-left: 4px solid var(--warn); background: var(--chip); padding: 8px 12px; border-radius: 4px; }
.panel.gate { border-left: 4px solid var(--warn); margin-bottom: 16px; }
ul.checks { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; gap: 18px; flex-wrap: wrap; }
ul.checks li::before { content: "\2717  "; color: var(--bad); font-weight: 700; }
ul.checks li.done::before { content: "\2713  "; color: var(--ok); }
ul.checks li.opt::before { content: "\2013  "; color: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
