@font-face { font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/geist-latin.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --ink: #e8eefb; --muted: #a3b0c9; --line: #26344b; --surface: #090f1c;
  --link: #93bdff; --blue: #245fe8; --glow: #38d6ff;
  font: 16px/1.5 Geist, Inter, "Segoe UI", sans-serif; color: var(--ink); background: #03060c;
}
* { box-sizing: border-box; }
body {
  min-height: 100svh; margin: 0;
  background: linear-gradient(0deg,#03060c 0%,transparent 75%),
    radial-gradient(ellipse at 50% 0%,#153363bb 0%,transparent 60%),
    linear-gradient(90deg,#88aae60e 1px,transparent 1px),
    linear-gradient(#88aae60e 1px,transparent 1px), #03060c;
  background-size: auto,auto,52px 52px,52px 52px,auto;
}
main { width: min(960px,calc(100% - 40px)); margin: auto; padding-bottom: 48px; }
header {
  height: 72px; display: flex; align-items: center; gap: 14px; position: relative;
  box-shadow: 0 1px #8ca9e625; margin-bottom: clamp(26px,6vh,66px);
}
header b { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 760; letter-spacing: -.045em; color: #fff; }
header b::before {
  content: ""; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg,transparent 47%,#8ae8ff 48% 54%,transparent 55%) 50% 50%/55% 55% no-repeat,
    linear-gradient(135deg,#264998,#17346c 46%,#103447);
  box-shadow: inset 0 0 0 1px #679cf477, 0 0 14px #2970fc30;
}
header span { color: #aabbd9; font-size: .875rem; padding-left: 14px; border-left: 1px solid #44536a; }
section { margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px,4vw,38px); background: linear-gradient(145deg,#0c1626,#080d17 70%); box-shadow: 0 16px 40px #01030850; }
main:has(form[action="/login"]) section { max-width: 458px; border-top-color: #48618a; }
h1,h2 { color: #f2f6ff; line-height: 1.1; letter-spacing: -.05em; margin: 0; font-weight: 650; }
h1 { font-size: clamp(32px,4vw,42px); } h2 { font-size: 27px; }
p { margin: 9px 0 24px; color: var(--muted); }
label { display: block; color: #dce6f8; font-size: .875rem; font-weight: 550; }
input,select {
  display: block; width: 100%; min-width: 0; min-height: 46px; margin-top: 7px;
  border: 1px solid #40506c; border-radius: 7px; background: #060c17; color: var(--ink);
  padding: 10px 13px; font: 450 1rem/1.35 Geist,Inter,"Segoe UI",sans-serif;
}
input:hover,select:hover { border-color: #6882a7; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
button {
  min-height: 46px; padding: 10px 20px; border: 1px solid #5285ff; border-radius: 8px; color: white;
  background: linear-gradient(180deg,#2b6df9,var(--blue)); cursor: pointer; font: 600 .96rem/1.4 Geist,Inter,sans-serif;
}
button:hover { background: #306df4; box-shadow: 0 0 18px #2565ff3b; }
button:disabled { opacity: .6; cursor: wait; }
a,.link { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #c3e9ff; }
form[action="/login"] { display: grid; gap: 16px; }
form[action="/login"] label:has(img) { display:grid; grid-template-columns: 154px minmax(0,1fr); align-items:center; gap: 0 12px; }
form[action="/login"] img { display:block; width:100%; height:auto; grid-area:2/1; border-radius:6px; margin-top:7px; }
input[name="answer"] { grid-area:2/2; text-transform:uppercase; letter-spacing:.1em; }
form[action="/login"] button { margin-top:4px; width:100%; }
[role="alert"] { color:#ffaba3; margin:0; } [role="alert"]:empty {display:none;}
.fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin: 20px 0; }
.logout { float:right; }
.link { min-height:36px; padding:6px 10px; border:1px solid var(--line); background:#0e1728; font-size:.85rem; }
.link:hover { background:#17243b; }
.ready { display:block; margin:16px 0; padding:15px 18px; background:#0e2331; color:#afeaff; border:1px solid #24475b; border-radius:9px; }
.scroll { margin-top:18px; overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:.91rem; font-variant-numeric:tabular-nums; }
td,th { text-align:left; padding:12px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
th { color:var(--muted); font-size:.79rem; font-weight:550; }
td a { font-weight:620; }
section p:last-child { margin-bottom:0; }
@media(max-width:580px) {
  main { width:calc(100% - 28px); } header {height:60px; margin-bottom:24px;} section {padding:22px 18px;}
  form[action="/login"] label:has(img) {grid-template-columns:minmax(110px,145px) minmax(0,1fr); gap:0 8px;}
  .fields { gap:12px; } .logout {float:none; text-align:right; margin-bottom:10px;}
  form[action="/batch"] button {width:100%;}
}
@media(max-width:350px) { .fields {grid-template-columns:1fr;} }

.crumb { margin: 0 0 14px; color: var(--muted); font-size: .86rem; }
.crumb span { padding: 0 5px; color: #6882a7; }
.topline, .actions, .picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topline { justify-content: space-between; align-items: flex-start; }
.picker { align-items: flex-end; gap: 7px; }
.picker select { min-width: 134px; }
.access-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.access-section h2 { margin-bottom: 15px; font-size: 21px; }
.access-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px 8px; }
.access-field { min-width: 0; }
.access-field input { font: 14px/1.4 ui-monospace, Consolas, monospace; min-height: 42px; }
button.secondary { background: #111e33; border-color: #344762; color: #d1e4ff; box-shadow: none; }
button.secondary:hover { background: #1a2c49; border-color: #648abe; }
.small { min-height: 42px; padding: 8px 14px; font-size: .86rem; }
.actions { gap: 8px; }
.action-link { display: inline-flex; min-height: 44px; align-items: center; padding: 7px 9px; }
#action-status:empty { display: none; }
@media (max-width: 580px) {
 .topline { display: block; }
 .picker select { width: 100%; }
 .actions > button { flex: 1; }
 .action-link { padding-left: 0; }
}
