:root{--primary:#1b4fd8;--dark:#0f172a;--muted:#64748b;--bg:#f5f7fb;--card:#fff;--line:#e2e8f0;--accent:#f6c344}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--dark)}
.app-shell{display:flex;min-height:100vh}.sidebar{width:285px;background:linear-gradient(180deg,#0f2c77,#07152f);color:#fff;display:flex;flex-direction:column;padding:22px 16px;position:fixed;inset:0 auto 0 0}.brand{margin-bottom:26px}.brand-vertical{text-align:center;display:grid;place-items:center;gap:6px}.brand-icon{width:62px;height:62px;border-radius:18px;background:#fff;color:var(--primary);display:grid;place-items:center;font-size:32px}.brand h1{font-size:26px;line-height:1;margin:7px 0 0;font-weight:900;letter-spacing:1px}.brand small{color:#cbd5e1;font-size:11px;line-height:1.25}.menu{display:grid;gap:7px}.menu-label{padding:8px 14px 0;color:#93c5fd;text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:1px}.menu .nav-link{border:0;width:100%;text-align:left;padding:11px 14px;border-radius:14px;background:transparent;color:#dbeafe;font-weight:650}.menu .nav-link:hover,.menu .nav-link.active{background:rgba(255,255,255,.14);color:#fff}.menu i{width:26px}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.14);padding-top:16px;color:#dbeafe;display:grid;gap:7px;line-height:1.35}.sidebar-footer strong{font-size:14px;color:#fff;font-weight:800}.sidebar-footer small{display:block;color:#dbeafe;font-size:11px;font-weight:400;white-space:nowrap}.main-content{margin-left:285px;width:calc(100% - 285px);padding:26px}.topbar{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:22px}.topbar h2{font-weight:850;margin:0}.topbar p{margin:3px 0 0;color:var(--muted)}.page{display:none}.page.active{display:block}.card-soft{background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 30px rgba(15,23,42,.05)}.stat-card{padding:20px}.stat-card .icon{width:44px;height:44px;border-radius:14px;background:#eef4ff;color:var(--primary);display:grid;place-items:center;font-size:22px}.stat-card h3{margin:14px 0 0;font-size:30px;font-weight:850}.stat-card p{margin:0;color:var(--muted)}.section-title{font-weight:800;margin:0}.table-wrap{padding:18px}.badge-soft{padding:7px 10px;border-radius:999px;font-weight:750;display:inline-block}.badge-green{background:#dcfce7;color:#166534}.badge-yellow{background:#fef9c3;color:#854d0e}.badge-red{background:#fee2e2;color:#991b1b}.badge-blue{background:#dbeafe;color:#1d4ed8}.badge-gray{background:#f1f5f9;color:#334155}.health{height:10px;border-radius:999px;background:#e5e7eb;overflow:hidden}.health div{height:100%;background:linear-gradient(90deg,#ef4444,#f59e0b,#22c55e)}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .full{grid-column:1/-1}.mini-muted{font-size:12px;color:var(--muted)}.action-btns{display:flex;gap:6px}.report-number{font-size:26px;font-weight:850}.json-box{background:#0f172a;color:#dbeafe;border-radius:14px;padding:16px;max-height:430px;overflow:auto;font-size:12px}.clickable-card{cursor:pointer;transition:.18s ease}.clickable-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(15,23,42,.09);border-color:#bcd2ff}.vehicle-cell b{display:block}.vehicle-cell span{display:block}.score-pill{font-weight:800;font-size:18px}.guide-card{padding:22px}.formula-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:14px}.small-table td,.small-table th{padding:.45rem .6rem}.top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:900px){.sidebar{position:static;width:100%;border-radius:0}.app-shell{display:block}.main-content{margin-left:0;width:100%;padding:16px}.topbar{display:block}.top-actions{margin-top:12px}.form-grid{grid-template-columns:1fr}.sidebar-footer small{white-space:normal}}
.chart-card canvas{max-height:285px}.chart-select{width:145px;min-width:145px}
