:root { --bg:#07100e; --panel:#0d1916; --line:#22322d; --text:#e8f0ed; --muted:#8ba098; --lime:#b7f34a; --red:#ff6b6b; }
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(circle at 80% 0,#193127 0,transparent 30%),var(--bg); color:var(--text); font:15px Inter,ui-sans-serif,system-ui; }
main { width:min(1160px,92vw); margin:auto; padding:58px 0 100px; }
header { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:34px; }
.eyebrow,.section-title span { font:700 11px ui-monospace; letter-spacing:.18em; color:var(--lime); }
h1 { font-size:58px; line-height:1; margin:10px 0; }
h1 span { color:var(--lime); }
header p,.card p { color:var(--muted); max-width:560px; }
.header-tools { display:flex; align-items:center; gap:10px; }
.logout { color:var(--muted); border:1px solid var(--line); padding:9px 13px; text-decoration:none; font-size:12px; }
.logout:hover { color:var(--text); border-color:var(--muted); }
.mode { border:1px solid #856b2e; color:#ffd66b; padding:9px 14px; font:700 11px ui-monospace; letter-spacing:.15em; }
.mode.live { border-color:var(--lime); color:var(--lime); }
.stats { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--line); }
.stats article { padding:26px 0; }
.stats b { font-size:25px; display:block; }
.stats small { color:var(--muted); }
section { margin-top:54px; }
.section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.section-title>div { display:flex; gap:13px; align-items:center; }
.section-title h2 { font-size:19px; margin:0; }
.section-title button,button { background:transparent; color:var(--text); border:1px solid var(--line); padding:10px 14px; cursor:pointer; }
.section-title button,.primary,.template-form button { background:var(--lime); color:#07100e; border-color:var(--lime); font-weight:800; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.card,.panel { background:linear-gradient(145deg,#101e1a,#0b1512); border:1px solid var(--line); padding:22px; }
.card-head,.meta,.actions { display:flex; justify-content:space-between; align-items:center; }
.icon { color:var(--lime); font:700 18px ui-monospace; }
.dot { width:8px; height:8px; border-radius:50%; background:#52615b; }
.dot.on { background:var(--lime); box-shadow:0 0 12px var(--lime); }
.card h3 { font-size:20px; margin:28px 0 8px; }
.card p { min-height:42px; }
.meta { border-top:1px solid var(--line); padding-top:14px; color:var(--muted); font-size:12px; }
.actions { justify-content:flex-start; gap:8px; margin-top:18px; }
.actions form { display:inline; }
.danger { color:var(--red)!important; }
.template-form { display:grid; grid-template-columns:1fr 3fr 90px auto; gap:8px; margin-bottom:22px; }
input,select,textarea { width:100%; background:#07110e; border:1px solid var(--line); color:var(--text); padding:11px; font:inherit; }
table { width:100%; border-collapse:collapse; text-align:left; }
th { font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); }
th,td { padding:13px; border-bottom:1px solid var(--line); }
.link { border:0; padding:0; }
.status { padding:5px 8px; color:#ffd66b; background:#2b2515; }
.status.success { color:var(--lime); background:#182813; }
.status.error { color:var(--red); background:#2d1515; }
dialog { width:min(520px,92vw); background:var(--panel); color:var(--text); border:1px solid var(--line); padding:25px; }
dialog::backdrop { background:#000b; }
.dialog-head { display:flex; justify-content:space-between; }
.dialog-head button { border:0; font-size:24px; }
label { display:block; margin:16px 0; color:var(--muted); }
label input,label textarea { margin-top:7px; }
.check { display:flex; align-items:center; gap:8px; }
.check input { width:auto; margin:0; }
.primary { width:100%; }
.login-page { min-height:100vh; display:grid; place-items:center; }
.login-shell { width:min(980px,92vw); padding:0; display:grid; grid-template-columns:1.1fr .9fr; border:1px solid var(--line); background:#0a1411; box-shadow:0 30px 100px #0008; }
.login-brand { margin:0; padding:60px; background:radial-gradient(circle at 20% 100%,#243c24,transparent 48%); }
.login-brand p { color:var(--muted); font-size:16px; line-height:1.7; }
.login-note { margin-top:80px; border-left:2px solid var(--lime); padding-left:15px; }
.login-note b,.login-note small { display:block; }
.login-note small,.privacy { color:var(--muted); margin-top:5px; }
.login-card { margin:0; padding:60px; background:var(--panel); }
.login-card h2 { font-size:28px; margin:12px 0 5px; }
.login-card>div>p { color:var(--muted); margin-top:0; }
.login-card .primary { margin-top:8px; }
.alert { background:#321919; border:1px solid #663030; color:#ffaaaa; padding:11px 13px; margin-top:20px; }
.privacy { display:block; margin-top:22px; text-align:center; }
.custom-run { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:end; }
.custom-run h3 { margin:0 0 8px; font-size:22px; }
.custom-run p { color:var(--muted); line-height:1.6; margin-bottom:0; }
.custom-run label { margin-top:0; }
.run-actions { display:grid; grid-template-columns:1fr 1.4fr; gap:9px; }
.run-actions .primary { width:auto; }
.send-button { background:var(--lime); color:#07100e; }
.result-box { margin-top:12px; border:1px solid var(--line); padding:18px 22px; background:#0b1512; }
.result-box.success { border-left:3px solid var(--lime); }
.result-box.warning { border-left:3px solid #ffd66b; }
.result-box.error { border-left:3px solid var(--red); color:#ffb0b0; }
.activity-preview { display:grid; gap:8px; margin-top:15px; }
.activity-preview article { display:grid; grid-template-columns:110px 1fr auto; gap:14px; align-items:center; border-top:1px solid var(--line); padding-top:10px; }
.activity-preview span { color:var(--lime); font-family:ui-monospace,monospace; }
.activity-preview p { margin:0; color:var(--text); }
.activity-preview small { color:var(--muted); }
.credential-panel { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.credential-panel h3 { margin:0 0 8px; font-size:22px; }
.credential-panel p { color:var(--muted); line-height:1.6; }
.credential-panel label:first-of-type { margin-top:0; }
.connection-state { color:var(--lime); font:700 11px ui-monospace; letter-spacing:.08em; }
.credentials-section.needs-attention .panel { border-color:#7f4935; box-shadow:0 0 0 1px #7f493544; }
.credential-warning { margin-top:18px; padding:12px; color:#ffd2a8; background:#302014; border-left:3px solid #ff9f43; }
.pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:18px; margin-top:8px; border-top:1px solid var(--line); }
.pagination>div { display:flex; gap:6px; }
.pagination a { min-width:38px; padding:9px 11px; border:1px solid var(--line); color:var(--muted); text-decoration:none; text-align:center; font-size:12px; }
.pagination a:hover,.pagination a.active { color:#07100e; background:var(--lime); border-color:var(--lime); }
.pagination a.disabled { pointer-events:none; opacity:.35; }
.pagination.compact { width:min(720px,100%); margin:14px auto 0; border-top:0; }
.page-info { margin-top:12px; color:var(--muted); text-align:center; font-size:12px; }
.empty-state { color:var(--muted); text-align:center; padding:30px; }
.workspace-tabs { display:flex; gap:8px; margin-top:34px; border-bottom:1px solid var(--line); }
.workspace-tabs button { border:0; border-bottom:2px solid transparent; color:var(--muted); padding:13px 18px; }
.workspace-tabs button.active { color:var(--lime); border-bottom-color:var(--lime); }
.monthly-panel[hidden] { display:none; }
.monthly-control { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:end; }
.monthly-control h3 { margin:0 0 8px; font-size:22px; }
.monthly-control p { color:var(--muted); line-height:1.6; }
.monthly-control label { margin-top:0; }
.month-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:16px 0; }
.month-summary span { border:1px solid var(--line); padding:12px; color:var(--muted); }
.month-summary b { display:block; margin-top:5px; color:var(--text); font-size:20px; }
.status.filled { color:#75d7ff; background:#14262d; }
.status.ready { color:#ffd66b; background:#2b2515; }
.status.sent { color:var(--lime); background:#182813; }
.status.future { color:var(--muted); background:#18201d; }
.report-panel[hidden] { display:none; }
.report-control { display:grid; grid-template-columns:1fr 320px; gap:40px; align-items:end; }
.report-control h3 { margin:0 0 8px; font-size:22px; }
.report-control p { color:var(--muted); line-height:1.6; }
.report-control form { display:grid; grid-template-columns:1fr 1fr; gap:9px; align-items:end; }
.report-control label { margin:0; }
.report-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:18px 0; }
.report-kpis article { border:1px solid var(--line); padding:16px; }
.report-kpis b { display:block; font-size:24px; color:var(--lime); }
.report-kpis small { color:var(--muted); }
.clickable-row { cursor:pointer; }
.clickable-row:hover { background:#14221e; }
.report-link { border:0; padding:0; color:var(--lime); text-decoration:underline; text-underline-offset:3px; }
.achievement.complete { color:var(--lime); }
.achievement.incomplete { color:#ffad75; }
.target-status { display:inline-block; padding:5px 8px; font:700 10px ui-monospace; letter-spacing:.05em; }
.target-status.complete { color:var(--lime); background:#182813; }
.target-status.incomplete { color:#ffad75; background:#321f15; }
.report-dialog { width:min(1080px,94vw); max-height:88vh; overflow:auto; }
.report-dialog h2 { margin:8px 0 0; }
.modal-summary { margin:18px 0; padding:12px; color:var(--lime); border:1px solid var(--line); background:#09130f; }
.currency { white-space:nowrap; color:#d9f7a4; font-variant-numeric:tabular-nums; }
@media(max-width:700px) {
  header { display:block; }
  .header-tools { margin-top:15px; }
  .mode { display:inline-block; }
  .stats { grid-template-columns:1fr; }
  .template-form { grid-template-columns:1fr; }
  .table-wrap { overflow:auto; }
  h1 { font-size:46px; }
  .login-shell { grid-template-columns:1fr; }
  .login-brand,.login-card { padding:34px; }
  .login-note { margin-top:35px; }
  .custom-run { grid-template-columns:1fr; gap:20px; }
  .run-actions { grid-template-columns:1fr; }
  .activity-preview article { grid-template-columns:1fr; gap:5px; }
  .credential-panel { grid-template-columns:1fr; gap:20px; }
  .pagination { flex-wrap:wrap; }
  .pagination>div { order:3; width:100%; justify-content:center; }
  .monthly-control { grid-template-columns:1fr; gap:20px; }
  .month-summary { grid-template-columns:1fr 1fr; }
  .report-control { grid-template-columns:1fr; gap:20px; }
  .report-control form,.report-kpis { grid-template-columns:1fr; }
}
