:root{--navy:#0b1f3a;--ink:#172033;--muted:#64748b;--line:#dbe3ee;--bg:#f3f6fa;--card:#fff;--blue:#2563eb;--purple:#6d28d9;--green:#15803d;--red:#b42318;--amber:#b45309}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;color:var(--ink);background:var(--bg)}
.synthetic{background:#fff0c2;color:#7a4b00;font-weight:800;font-size:12px;letter-spacing:.08em;text-align:center;padding:8px;border-bottom:1px solid #efd38a}
header{background:linear-gradient(115deg,#08182e,#102f55);color:white;padding:24px 32px;display:flex;justify-content:space-between;gap:24px;align-items:flex-end}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;opacity:.78}.purple{color:#7c3aed;opacity:1}h1{font-size:28px;margin:5px 0 4px}header p{margin:0;color:#cbd5e1;font-size:14px}
.header-controls{display:flex;gap:10px;align-items:flex-end}.header-controls label{font-size:11px;color:#cbd5e1}.header-controls select{display:block;margin-top:5px;background:#193a62;color:white;border:1px solid #31557d;border-radius:8px;padding:9px 32px 9px 10px;min-width:165px}
main{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:18px;padding:18px;max-width:1650px;margin:auto}.dashboard{min-width:0}.toolbar-row{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:2px 0 12px}.context-line{font-size:13px;color:var(--muted)}.interaction-note{font-size:10px;color:#6d28d9;background:#f5f3ff;border:1px solid #e9ddff;padding:6px 9px;border-radius:999px;white-space:nowrap}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kpi,.card,.detail-card,.insights{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.kpi{padding:14px;cursor:pointer;transition:.15s}.kpi:hover,.kpi.active,.card.clickable:hover,.table-clickable:hover{border-color:#93b4eb;box-shadow:0 0 0 2px #dbeafe}.kpi-label{font-size:12px;color:var(--muted);font-weight:650}.kpi-value{font-size:26px;font-weight:780;margin:7px 0 4px}.delta{font-size:11px}.good{color:var(--green)}.bad{color:var(--red)}.neutral{color:var(--muted)}
.charts{display:grid;grid-template-columns:1.12fr 1fr;gap:12px;margin-top:12px}.card{padding:14px;min-height:290px}.card.clickable{cursor:pointer}.card-title{font-size:14px;font-weight:750;display:flex;justify-content:space-between;gap:8px}.card-sub{font-size:11px;color:var(--muted);margin-top:3px}.viz{height:220px;margin-top:10px}.viz svg{width:100%;height:100%;overflow:visible}.axis{font-size:10px;fill:#64748b}.grid{stroke:#e6ebf2;stroke-width:1}.line{fill:none;stroke:#2563eb;stroke-width:3}.line2{fill:none;stroke:#94a3b8;stroke-width:2.5;stroke-dasharray:5 5}.dot{fill:#2563eb;cursor:pointer}.dot2{fill:#94a3b8;cursor:pointer}.bar{fill:#4f7ee8;cursor:pointer}.bar:hover,.dot:hover,.dot2:hover,.program-row:hover rect{filter:brightness(.9)}.budget{fill:#cbd5e1}.actual{fill:#2f64ca}.estimate{fill:#16a34a}.legend{display:flex;gap:14px;font-size:10px;color:var(--muted);margin-top:4px}.legend i{width:9px;height:9px;display:inline-block;margin-right:4px;border-radius:2px}
.detail-card{margin-top:12px;padding:14px;overflow:auto}.detail-card .card-title span:last-child{font-size:11px;color:var(--muted);font-weight:500}table{width:100%;border-collapse:collapse;margin-top:10px;font-size:12px}th{text-align:left;color:#64748b;font-size:10px;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--line);padding:8px}td{padding:8px;border-bottom:1px solid #edf1f6}tbody tr[data-focus]{cursor:pointer}tbody tr[data-focus]:hover{background:#f6f9fe}
.insights{position:sticky;top:12px;height:calc(100vh - 24px);padding:18px;display:flex;flex-direction:column;border-top:4px solid #7c3aed}.insight-head{display:flex;justify-content:space-between;gap:10px}.insight-head h2{font-size:20px;margin:4px 0}.mode{font-size:10px;background:#f1eafe;color:#6d28d9;border-radius:999px;padding:5px 8px;height:max-content;white-space:nowrap}.focus-chip{font-size:11px;color:#5b21b6;background:#f5f3ff;padding:8px 10px;border-radius:8px;margin:8px 0 12px}.insight-body{overflow:auto;max-height:45vh;font-size:13px;line-height:1.5;padding-right:3px}.insight-body h3{font-size:13px;margin:15px 0 5px;color:#4c1d95}.insight-body ul{padding-left:18px;margin:5px 0}.insight-body li{margin:7px 0}.callout{border-left:3px solid #7c3aed;background:#faf8ff;padding:10px;margin:2px 0 12px;border-radius:0 8px 8px 0}.metric-note{font-size:11px;color:var(--muted);margin-top:9px}.followup-block{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}.followup-title{font-size:11px;font-weight:750;margin-bottom:7px}.suggestions{display:flex;gap:6px;flex-wrap:wrap}.suggestion{font-size:10px;border:1px solid #d8c8f6;background:#faf8ff;color:#5b21b6;border-radius:999px;padding:6px 8px;cursor:pointer}.suggestion:hover{background:#f1eafe}.chat-thread{max-height:170px;overflow:auto;margin-top:8px}.chat-pair{border-top:1px solid #edf1f6;padding:8px 0}.chat-q{font-size:11px;font-weight:750;color:#334155;margin-bottom:4px}.chat-a{font-size:11px;line-height:1.45;color:#475569}.question{padding-top:10px}.question label{font-size:11px;font-weight:700}.question div{display:flex;margin-top:6px}.question input{flex:1;min-width:0;border:1px solid var(--line);border-radius:8px 0 0 8px;padding:10px;font-size:12px}.question button{border:0;background:#6d28d9;color:white;font-weight:700;border-radius:0 8px 8px 0;padding:0 14px;cursor:pointer}.micro{font-size:10px;color:#94a3b8;margin-bottom:0;line-height:1.35}
footer{text-align:center;color:#94a3b8;font-size:10px;padding:14px}
@media(max-width:1150px){main{grid-template-columns:1fr}.insights{position:static;height:auto}.insight-body{max-height:none}.kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){header{padding:18px;display:block}.header-controls{margin-top:16px;flex-wrap:wrap}.header-controls label,.header-controls select{width:100%}.toolbar-row{display:block}.interaction-note{display:inline-block;margin-top:7px;white-space:normal}.kpis,.charts{grid-template-columns:1fr}main{padding:10px}}
