:root { color-scheme: light; --ink:#17231e; --muted:#6d7772; --paper:#f6f5f0; --card:#fff; --accent:#b85c38; --line:#dedfd9; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:var(--paper); color:var(--ink); font:15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
main { width:min(1120px, calc(100% - 32px)); margin:0 auto; padding:48px 0; }
.hidden { display:none !important; }
.login-card { width:min(460px, 100%); margin:8vh auto; padding:42px; background:var(--card); border:1px solid var(--line); border-radius:24px; box-shadow:0 24px 70px #23332a15; }
.brand { width:46px; height:46px; display:grid; place-items:center; background:var(--ink); color:white; border-radius:14px; font-weight:800; }
h1,h2,p { margin-top:0; } h1 { font-size:clamp(28px,5vw,48px); line-height:1.05; letter-spacing:-.04em; } h2 { margin-bottom:4px; }
.eyebrow { margin:24px 0 8px; color:var(--accent); font-weight:800; text-transform:uppercase; letter-spacing:.12em; font-size:12px; }
.muted { color:var(--muted); }
form { display:grid; gap:16px; margin-top:28px; } label { display:grid; gap:7px; font-weight:650; }
input,select { width:100%; padding:12px 14px; background:white; border:1px solid var(--line); border-radius:10px; color:var(--ink); font:inherit; }
button { border:0; border-radius:10px; padding:12px 18px; background:var(--accent); color:white; font:inherit; font-weight:750; cursor:pointer; }
button:disabled { opacity:.45; cursor:not-allowed; }
button.secondary { background:transparent; color:var(--ink); border:1px solid var(--line); }
button.small { padding:7px 10px; font-size:12px; }
.error { color:#a52b2b; min-height:20px; }
.success { color:#1f6b45; }
header,.panel-head,.actions { display:flex; align-items:center; justify-content:space-between; gap:20px; } header .eyebrow { margin-top:0; } header h1 { margin-bottom:8px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:36px 0 24px; }
.stats article,.panel { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:24px; }
.stats span { display:block; color:var(--muted); }.stats strong { font-size:36px; }
nav { display:flex; gap:6px; margin-bottom:14px; overflow:auto; } nav button { background:transparent; color:var(--muted); } nav button.active { color:white; background:var(--ink); }
.panel { min-height:340px; }.table-wrap { overflow:auto; margin-top:24px; } table { width:100%; border-collapse:collapse; } th,td { padding:14px 10px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; } th { color:var(--muted); font-size:12px; text-transform:uppercase; }
.badge { display:inline-block; padding:4px 9px; border-radius:99px; background:#eef0e9; font-size:11px; font-weight:800; }
.agency-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-top:24px; }.agency-card { display:grid; gap:5px; text-align:left; background:#f4f1e9; color:var(--ink); }.agency-card span { color:var(--muted); font-weight:400; font-size:13px; }
.record-form { max-width:560px; }.actions { justify-content:flex-end; }
@media (max-width:650px) { main { padding:20px 0; }.login-card { padding:26px; }.stats { grid-template-columns:1fr; }.stats article { padding:16px; }.panel { padding:18px; }.panel-head { align-items:flex-start; } }
