:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#1c2932;background:#f3f6f5}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #e0e7e3;padding:14px max(20px,calc((100vw - 900px)/2));display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:12px;align-items:center}.brand strong{display:block;font-size:16px}.brand small{display:block;color:#64748b}.logo{background:#166534;color:white;font-size:24px;font-weight:800;border-radius:12px;width:45px;height:45px;display:grid;place-items:center}main{max-width:900px;margin:auto;padding:22px 16px 60px}.hero{background:linear-gradient(115deg,#174c35,#176c4a);color:white;padding:32px;border-radius:18px;margin-bottom:18px}.hero h1{font-size:clamp(26px,5vw,38px);margin:8px 0}.hero p{max-width:640px;opacity:.92}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:700}.card{background:white;border:1px solid #e3e8e5;border-radius:16px;padding:25px;margin-bottom:18px;box-shadow:0 2px 12px #173b2b0b}h2{font-size:20px;margin:4px 0 18px}form h2:not(:first-child){margin-top:30px;padding-top:18px;border-top:1px solid #e8ece9}label{display:block;font-weight:600;font-size:14px;margin-bottom:15px}input,textarea{display:block;width:100%;font:inherit;margin-top:7px;padding:12px;border:1px solid #cbd5d1;border-radius:9px;background:white;color:#172b23}input:focus,textarea:focus{outline:2px solid #77b991;outline-offset:1px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.hint{color:#64748b;font-size:13px;margin:0 0 18px}.check{display:flex;gap:10px;align-items:start;font-weight:400}.check input{width:auto;margin:3px 0}button{font:inherit;border:0;border-radius:9px;background:#166534;color:white;padding:12px 16px;cursor:pointer;font-weight:700}button:disabled{opacity:.55;cursor:wait}button.secondary{background:#e9f4ee;color:#166534}.actions,.tabs{display:flex;gap:10px;flex-wrap:wrap}.tabs{margin:16px 0}.tabs button{background:#e1e8e4;color:#365344}.tabs button.selected{background:#166534;color:white}.link{background:none;color:#166534;padding:12px 0}.record{border:1px solid #e1e8e4;border-radius:12px;padding:15px;margin:12px 0}.record strong{display:block}.record p{white-space:pre-wrap;overflow-wrap:anywhere}.record small{color:#64748b}.record select{width:100%;padding:10px;margin-top:12px}#notice:not(:empty){background:#e7f4eb;border:1px solid #b7d9c2;border-radius:9px;padding:12px;margin:15px 0}footer{text-align:center;color:#64748b;padding:18px;font-size:13px}footer a{color:#166534}@media(max-width:560px){.grid{grid-template-columns:1fr}.hero{padding:23px}.card{padding:19px}header{padding:12px 16px}}

.brand-logo{display:block;width:110px;height:68px;object-fit:contain;background:white;border-radius:8px}.hero{background:linear-gradient(115deg,#a50000,#cf0000 58%,#155e25)}.tabs button.selected,button{background:#b60000}button.secondary{background:#eaf4ec;color:#176527}.tabs button.selected{background:#176527}footer a,.link{color:#176527}@media(max-width:560px){.brand-logo{width:82px;height:55px}.brand strong{font-size:14px}}

.inner{margin-top:24px;background:#f7faf8}.total{font-weight:800;font-size:20px}.record .actions{margin-top:12px}select{display:block;width:100%;padding:12px;margin-top:7px;border:1px solid #cbd5d1;border-radius:9px;background:white;font:inherit}

/* Panel de control v16: indicadores reales protegidos por RLS */
.dashboard-head{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:18px 0 26px}.metric{border:1px solid #d8e4dd;border-radius:12px;background:#f7faf8;padding:16px}.metric strong{display:block;font-size:29px;font-weight:800;color:#176527}.metric span{font-size:13px;color:#40564b}.metric small{display:block;color:#955d00}.station-list{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 22px}.station-chip{border-radius:999px;background:#e7f3ec;padding:8px 12px;color:#176527;font-size:13px;font-weight:700}.station-chip.inactive{background:#f0f0f0;color:#697174}.dashboard-alerts{border-top:1px solid #e4ece7;padding:14px 0;margin-bottom:10px;color:#35483f}.dashboard-alerts p{margin:8px 0}@media(max-width:560px){.dashboard-head button{width:100%}}
