:root {
  color-scheme: dark;
  --bg: #020b07;
  --panel: #071710;
  --panel-2: #0a2016;
  --line: #175b3a;
  --text: #e8fff3;
  --muted: #82aa94;
  --green: #59f2a5;
  --yellow: #f0c84b;
  --red: #ff637d;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 5%, #0c2b1c 0, transparent 28%), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.shell { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 60px; position: relative; }
.topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand div { display: flex; flex-direction: column; }
.brand strong { font-size: 20px; color: var(--green); }
.brand small { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--green); color: var(--green); font-size: 26px; font-weight: 900; box-shadow: inset 0 0 18px #28de8633; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .18em; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 5vw, 72px); line-height: .98; letter-spacing: -.05em; margin: 0 0 24px; }
h1 span { color: var(--green); }
h2 { margin: 0 0 24px; font-size: 30px; }
p { color: var(--muted); line-height: 1.65; }
.login-grid { min-height: calc(100vh - 130px); display: grid; grid-template-columns: 1.35fr .75fr; gap: 72px; align-items: center; }
.hero { max-width: 800px; }
.hero > p:not(.eyebrow) { max-width: 680px; font-size: 18px; }
.hero ul { display: grid; gap: 12px; padding: 0; margin: 32px 0 0; list-style: none; color: #b9dbc8; }
.hero li::before { content: "✓"; color: var(--green); margin-right: 12px; font-weight: 900; }
.login-card, .table-card, .stats article { border: 1px solid var(--line); background: linear-gradient(145deg, #091a12, #04100b); box-shadow: 0 28px 80px #0008; }
.login-card { padding: 38px; }
label { display: grid; gap: 9px; margin-bottom: 20px; color: #a8c9b7; font-size: 14px; }
input { width: 100%; border: 1px solid #1c6341; background: #020c08; color: var(--text); padding: 15px 16px; font: inherit; outline: none; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px #59f2a51c; }
.button { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 12px 18px; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { border-color: var(--green); }
.button.primary { background: var(--green); color: #021008; border-color: var(--green); }
.button.danger { color: #1b060a; background: var(--red); border-color: var(--red); }
.button.ghost { color: var(--green); background: transparent; }
.button.wide { width: 100%; padding: 16px; }
.button:disabled { opacity: .4; cursor: not-allowed; }
.security-note { font-size: 12px; margin: 18px 0 0; }
.alert { margin: 18px 0 0; padding: 14px 18px; border: 1px solid var(--line); background: var(--panel); }
.alert.error { border-color: #8c3040; color: #ffb6c2; }
.alert.success { border-color: #1d7c4e; color: var(--green); }
.alert.warning { border-color: #7a6421; color: var(--yellow); }
.dashboard-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding: 64px 0 32px; }
.dashboard-head h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 12px; }
.dashboard-head p:last-child { margin: 0; max-width: 760px; }
.head-actions { display: flex; gap: 12px; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats article { padding: 22px; box-shadow: none; }
.stats span { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.stats strong { display: block; font-size: 36px; margin-top: 8px; }
.green { color: var(--green); }
.yellow { color: var(--yellow); }
.safety-banner { margin: 18px 0; padding: 15px 18px; border-left: 3px solid var(--green); background: #0b281a; color: #bde8d0; }
.job-card { margin: 0 0 18px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, #0a2016, #06150e); }
.job-card.success { border-color: #218656; }
.job-card.completed_with_errors, .job-card.failed { border-color: #8a6d20; }
.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.job-head h2 { margin: 0 0 16px; font-size: 24px; }
.job-state { border: 1px solid var(--line); color: var(--green); padding: 7px 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.progress-track { height: 9px; overflow: hidden; background: #031009; border: 1px solid #17482f; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, #2ecb7d, var(--green)); transition: width .3s ease; }
.job-metrics { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 16px; color: var(--muted); }
.job-metrics b { color: var(--text); }
.job-card > p:last-child { margin: 12px 0 0; }
.table-card { overflow: hidden; box-shadow: none; }
.table-wrap { overflow-x: auto; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 18px; color: var(--muted); border-top: 1px solid #103f29; }
.pagination a { text-decoration: none; }
.button.disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
table { width: 100%; border-collapse: collapse; min-width: 1040px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid #103f29; vertical-align: middle; }
th { color: #7fae94; font-size: 11px; letter-spacing: .11em; text-transform: uppercase; background: #06150e; }
td { color: #cae5d6; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 4px; }
tr.eligible { background: #3b2e071f; }
tr:hover { background-color: #0e2b1c; }
code { color: #91c2a6; }
.badge { display: inline-flex; padding: 6px 9px; border: 1px solid; font-size: 12px; font-weight: 800; }
.badge.active { border-color: #1f8654; color: var(--green); background: #0b2d1c; }
.badge.inactive { border-color: #8a6d20; color: var(--yellow); background: #2a2209; }
.badge.archived { border-color: #52665b; color: #99aaa0; }
.muted, .empty { color: var(--muted); }
.empty { text-align: center; padding: 50px; }
@media (max-width: 900px) { .login-grid { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; } .dashboard-head { align-items: flex-start; flex-direction: column; } .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shell { width: min(100% - 24px, 1500px); padding-top: 16px; } .login-card { padding: 24px; } .stats { grid-template-columns: 1fr 1fr; } .head-actions { width: 100%; flex-direction: column; } .head-actions form, .head-actions button { flex: 1; width: 100%; } .pagination { justify-content: center; flex-wrap: wrap; } }
