:root {
  color-scheme: dark;
  --bg: #07100f;
  --panel: #0d1a18;
  --panel-2: #11211e;
  --line: #203a35;
  --text: #f2f7f5;
  --muted: #91aaa4;
  --accent: #38e59d;
  --accent-dark: #092e21;
  --danger: #ff6b72;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% -10%, #12392d 0, transparent 32%), var(--bg); color: var(--text); font: 15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1180px)/2)); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(7,16,15,.85); }
.brand { color: var(--text); display: flex; gap: 11px; align-items: center; font-weight: 760; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #032217; background: var(--accent); font-weight: 900; }
.shell { max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
h1 { margin: 6px 0 8px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }
.eyebrow { color: var(--accent); font: 700 12px/1.2 ui-monospace, monospace; letter-spacing: .14em; }
.muted, .hint { color: var(--muted); }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.button { border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; color: var(--text); background: transparent; cursor: pointer; font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.button:hover { text-decoration: none; border-color: var(--accent); }
.button.primary { background: var(--accent); color: #032217; border-color: var(--accent); }
.button.primary:hover { background: #65efb4; }
.button.danger { background: #5b1e24; color: #ffd8da; border-color: #8b353d; }
.button.danger:hover { background: #792830; border-color: var(--danger); }
.button.ghost { background: var(--panel); }
.danger-link, .danger-text { color: var(--danger); }
.separator { margin: 0 8px; color: var(--muted); }
.danger-card { border-color: #572b30; }
.table-wrap, .auth-card, .form-card, .empty { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel), #091411); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font: 700 11px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(56,229,157,.035); }
code { color: #d0e4df; background: #07110f; padding: 4px 7px; border: 1px solid #18312b; border-radius: 6px; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 999px; background: var(--accent-dark); color: var(--accent); font-weight: 700; font-size: 12px; }
.actions { text-align: right; }
.auth-card, .form-card { max-width: 680px; margin: 4vh auto 0; padding: clamp(28px, 5vw, 52px); }
.auth-card { max-width: 500px; }
.stack { display: grid; gap: 20px; margin-top: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.full { grid-column: 1/-1; }
label { display: grid; gap: 8px; color: #dbe8e4; font-weight: 680; }
input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #07110f; color: var(--text); padding: 12px 13px; font: inherit; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,229,157,.13); }
.hint { font-size: 12px; font-weight: 450; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.back { display: inline-block; margin-bottom: 30px; color: var(--muted); }
.empty { text-align: center; padding: 76px 24px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-dark); color: var(--accent); font-size: 32px; }
.notice { max-width: 680px; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; background: var(--panel); }
.notice.error { color: #ffb0b4; border-color: #663136; }
.notice.success { color: var(--accent); border-color: #1f6048; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) { .shell { padding-top: 34px; } .page-head { align-items: stretch; flex-direction: column; } .form-grid { grid-template-columns: 1fr; } .full { grid-column: auto; } th, td { padding: 14px; } h1 { font-size: 2.25rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
