html, body { margin: 0; height: 100%; font-family: system-ui, sans-serif; color: #172033; }
header { height: 76px; padding: 12px 20px; box-sizing: border-box; background: #17324d; color: white; }
header h1 { margin: 0; font-size: 20px; } header p { margin: 5px 0 0; font-size: 13px; opacity: .85; }
main { display: flex; height: calc(100% - 76px); }
aside { width: 340px; padding: 16px; box-sizing: border-box; overflow-y: auto; border-right: 1px solid #ccd4dc; background: #f7f9fb; }
aside h2 { margin: 8px 0 10px; font-size: 16px; }
label { display: block; margin-top: 9px; font-size: 12px; font-weight: 650; }
select, input, button { width: 100%; box-sizing: border-box; padding: 7px; margin-top: 4px; }
button { margin: 14px 0; cursor: pointer; }
#map { flex: 1; } #summary { margin-top: 14px; font-size: 13px; line-height: 1.55; }
.legend-card { padding: 10px; border: 1px solid #bdc9d4; border-radius: 6px; background: white; font-size: 12px; }
.legend-card p { margin: 5px 0; } .warning { color: #8a4b08; }
.legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; border: 1px solid #1f2937; }
.generation-dot { background: #059669; } .demand-dot { background: #2563eb; }
.legend-chip { display: inline-block; padding: 2px 5px; border-radius: 3px; }
.confirmed-chip { background: #dcfce7; color: #166534; } .unresolved-chip { background: #fff7ed; color: #9a3412; }
.popup-title { font-size: 15px; font-weight: 750; margin-bottom: 7px; }
.popup-row { margin: 3px 0; }
.transport-detail { margin-top: 10px; padding-top: 8px; border-top: 1px solid #d7dde3; }
.transport-detail h3 { margin: 0 0 6px; font-size: 14px; }
.link-status { padding: 6px; border-radius: 4px; background: #eef2f6; }
.link-status-enlace_confirmado { background: #dcfce7; color: #166534; }
.link-status-enlace_no_resuelto, .link-status-enlace_ambiguo { background: #fff7ed; color: #9a3412; }
.semantic-note { font-size: 11px; color: #536170; margin-bottom: 0; }
.physical-node{margin:8px 0;padding:7px;border-left:3px solid #9ca3af;background:#f7f9fb}.physical-node.matches-filter{border-left-color:#059669;background:#ecfdf5}.physical-node small{overflow-wrap:anywhere}
