:root {
  --bg: #0b0f14; --card: #121922; --line: #223040; --text: #e6edf3; --muted: #8b9bb0;
  --accent: #7cc4ff; --accent-ink: #04121f; --ok: #3fb67a; --bad: #ff6b6b; --warn: #f2c14e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: .02em; margin-bottom: 8px; }
.moon { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset -7px -3px 0 0 var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.h { font-size: 18px; margin: 8px 0; }
label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; }
input { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--line); background: #0d141c; color: var(--text); font-size: 16px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { margin-top: 14px; width: 100%; padding: 11px 14px; border: 0; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 15px; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button.link { background: none; color: var(--accent); width: auto; padding: 0; font-weight: 500; }
button.ghost { background: none; border: 1px solid var(--line); color: var(--text); width: auto; margin: 0; padding: 6px 12px; }
button.danger { background: #3a1416; color: var(--bad); }
form.inline { margin-top: 6px; }
.error { color: var(--bad); }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 14px 0 6px; font-size: 12px; }
.steps li { flex: 1; text-align: center; padding: 5px 0; border-radius: 6px; background: #0d141c; color: var(--muted); border: 1px solid var(--line); }
.steps li.now { border-color: var(--accent); color: var(--text); }
.steps li.done { background: #10261b; border-color: #1f4a33; color: var(--ok); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 14px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.top .brand { margin: 0; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 8px 16px 40px; }
h2 { font-size: 16px; margin: 26px 0 10px; }
.notice { background: #2a2310; border: 1px solid #5a4a1a; color: var(--warn); padding: 10px 12px; border-radius: 9px; }
.panels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.panels a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.panels a:hover, .panels a:focus-visible { border-color: var(--accent); }
.panels span { color: var(--muted); font-size: 13px; }
.panels small { color: var(--accent); font-size: 12px; margin-top: auto; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: #0f151d; white-space: nowrap; }
td small { color: var(--muted); }
tr.pending td:nth-child(4), tr.bad td:nth-child(4) { color: var(--warn); }
tr.blocked td:nth-child(4) { color: var(--bad); }
tr.bad td:nth-child(4) { color: var(--bad); }
tr.ok td:nth-child(4), tr.approved td:nth-child(4) { color: var(--ok); }
td.actions { display: flex; gap: 6px; }
td.actions button { margin: 0; padding: 5px 10px; width: auto; font-size: 12px; }
