:root{
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15,23,42,.12);
  --primary: #c8102e;
  --primaryDark: #9b0c22;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 12px 26px rgba(15,23,42,.10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;background:var(--bg);color:var(--text)}
a{color:#0f4c81;text-decoration:none}

.container{max-width:1100px;margin:0 auto;padding:16px}

.card{background:var(--card);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:16px}

.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:900px){.grid{grid-template-columns:1fr}}

label{display:block;font-size:13px;color:#0f172a;margin:10px 0 6px}
input,select,textarea{
  width:100%;padding:12px;border-radius:14px;border:1px solid rgba(15,23,42,.14);
  background:rgba(15,23,42,.04);color:var(--text);outline:none
}
textarea{min-height:96px;resize:vertical}

.btn{border:0;border-radius:14px;padding:12px 14px;font-weight:900;cursor:pointer}
.btnPrimary{background:var(--primary);color:#ffffff}
.btnGhost{background:#e2e8f0;color:#0f172a}
.btnDanger{background:var(--danger);color:#fff}
.btnSmall{padding:9px 12px;border-radius:12px;font-weight:800}

.badge{font-size:12px;color:var(--muted)}
.notice{margin-top:12px;padding:12px;border-radius:14px;border:1px solid rgba(200,16,46,.22);background:rgba(200,16,46,.08);color:#0f172a}
.error{margin-top:10px;color:#b91c1c;font-size:13px}
.success{margin-top:10px;color:#15803d;font-size:13px}
.hr{height:1px;background:var(--border);margin:14px 0}

.logo{height:44px;max-width:260px;object-fit:contain}

.mapWrap{border-radius:18px;overflow:hidden;border:1px solid var(--border);height:320px;background:rgba(15,23,42,.04)}

.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.kpis{grid-template-columns:1fr}}
.kpi{background:rgba(15,23,42,.03);border:1px solid rgba(15,23,42,.06);border-radius:18px;padding:14px}
.kpi .label{font-size:12px;color:var(--muted)}
.kpi .value{font-size:28px;font-weight:950;margin-top:6px}

.list{margin:0;padding:0;list-style:none}
.list li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid rgba(15,23,42,.08)}

body.bigscreen{background:#000;color:#fff;font-size:18px}
body.bigscreen .container{max-width:1600px}
body.bigscreen .kpi .value{font-size:42px}
body.bigscreen .badge, body.bigscreen .kpi .label{font-size:14px}
body.bigscreen .card{border-radius:26px;background:#ffffff;color:#0f172a}
body.bigscreen .mapWrap{height:680px}