:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --panel: #11161f;
  --panel-2: #151b25;
  --text: #e9edf3;
  --muted: #8f9cad;
  --line: #263142;
  --accent: #88a6d8;
  --danger: #dd8b8b;
  --ok: #82b69b;
  --warn: #d0ac70;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(82, 106, 145, .11), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: #a9bfdf; text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  height: 58px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 18, .9);
  display: flex;
  align-items: center;
}
.topbar .shell { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: .01em; }
.mark { width: 25px; height: 25px; border: 1px solid #56667d; border-radius: 5px; display: grid; place-items: center; color: #c9d6e8; font-size: 12px; }
.nav { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.nav a { color: var(--muted); }
main { padding: 54px 0 80px; }
.login-wrap { width: min(420px, 100%); margin: 4vh auto 0; }
.card { background: linear-gradient(180deg, var(--panel), #0f141c); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 60px rgba(0,0,0,.28); }
.card-body { padding: 28px; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
h1 { font-size: 25px; line-height: 1.2; margin: 8px 0 8px; font-weight: 650; }
h2 { font-size: 18px; margin: 0 0 10px; }
p { color: #b9c3d0; }
.small { font-size: 12px; color: var(--muted); }
label { display: block; color: #c4cbd6; font-size: 13px; margin: 16px 0 7px; }
input, button, textarea, select {
  width: 100%; border-radius: 6px; border: 1px solid #313d50; background: #0c1118; color: var(--text); padding: 11px 12px; font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 1px solid #627b9e; border-color: #627b9e; }
button { margin-top: 18px; background: #23364f; border-color: #385374; cursor: pointer; font-weight: 600; }
button:hover { background: #29405e; }
button:disabled { opacity: .65; cursor: wait; }
.notice { margin-top: 16px; padding: 10px 12px; border: 1px solid #49343a; background: #1b1317; color: #e1b1b8; border-radius: 6px; font-size: 13px; display: none; }
.notice.show { display: block; }
.meta-row { border-top: 1px solid var(--line); padding: 13px 28px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.tile strong { display: block; margin-bottom: 7px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: var(--ok); }
.status-dot.warn { background: var(--warn); }
.table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 20px; }
.row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.row:last-child { border-bottom: 0; }
.row .key { color: var(--muted); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #090d12; border: 1px solid var(--line); border-radius: 7px; padding: 14px; overflow-x: auto; color: #becbe0; }
.footer { border-top: 1px solid var(--line); color: #6f7a88; font-size: 12px; padding: 20px 0 32px; }
.filebox { border: 1px dashed #3b4a60; padding: 22px; border-radius: 8px; background: #0c1118; }
.badge { display: inline-block; padding: 3px 7px; border-radius: 999px; border: 1px solid #4b402c; background: #19150e; color: #d3b982; font-size: 11px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } .nav { gap: 10px; } .nav a:nth-child(2) { display:none; } .row { grid-template-columns: 1fr; gap: 3px; } }
