:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f3f6fb;--surface:#fff;--surface-muted:#f7f9fd;--line:#bdc9d1;--line-strong:#9fb0bb;--text:#111827;--muted:#5f6f7a;--teal:#00796b;--teal-dark:#006356;--teal-soft:#dff5f0;--blue:#159ddd;--blue-soft:#dceeff;--amber:#c46a1a;--amber-soft:#fff0dc;--danger:#ba1a1a;--danger-soft:#ffd9d6;--shadow:0 12px 30px #11182714;--radius:8px;font-family:IBM Plex Sans,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,sans-serif}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;color:var(--text);margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}select,input{border:1px solid var(--line);color:var(--text);background:#fbfcff;border-radius:2px;min-height:44px;padding:0 14px}select:focus,input:focus,button:focus-visible{outline-offset:2px;outline:3px solid #00796b3d}h1,h2,h3,p{margin-top:0}.app-shell{grid-template-columns:320px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--line);background:#fff;flex-direction:column;height:100vh;padding:28px 24px;display:flex;position:sticky;top:0}.brand-block{align-items:center;gap:12px;margin-bottom:44px;display:flex}.brand-mark{object-fit:contain;border-radius:8px;width:46px;height:46px}.brand-mark.small{width:32px;height:32px}.brand-title{letter-spacing:0;margin-bottom:4px;font-weight:800}.brand-subtitle{color:var(--muted);margin:0;font-family:SFMono-Regular,Consolas,monospace}.side-nav{gap:12px;display:grid}.side-nav-item,.side-link{color:#263238;text-align:left;background:0 0;border:0;border-radius:4px;align-items:center;gap:14px;width:100%;min-height:48px;padding:0 16px;display:flex}.side-nav-item span,.side-link{font-family:SFMono-Regular,Consolas,monospace}.side-nav-item.active{color:#fff;background:#078c7b}.sidebar-spacer{flex:1}.primary-wide-button,.solid-button,.run-button{background:var(--teal);color:#fff;border:1px solid #0000;border-radius:2px;justify-content:center;align-items:center;gap:10px;min-height:46px;padding:0 18px;font-weight:800;display:inline-flex}.primary-wide-button{width:100%;margin-bottom:26px}.side-footer{border-top:1px solid var(--line);gap:8px;padding-top:22px;display:grid}.workspace{min-width:0}.topbar{z-index:50;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#f7f9fdf0;align-items:center;gap:18px;min-height:78px;padding:0 28px;display:flex;position:sticky;top:0}.mobile-brand{color:var(--teal-dark);align-items:center;gap:10px;font-weight:800;display:none}.top-nav{align-items:stretch;min-height:78px;margin-left:auto;display:flex}.top-nav-link{color:#263238;background:0 0;border:0;min-width:96px;padding:0 18px;font-weight:650;position:relative}.top-nav-link.active{color:var(--teal-dark)}.top-nav-link.active:after{background:var(--teal);content:"";height:3px;position:absolute;bottom:0;left:12px;right:12px}.top-actions{align-items:center;gap:12px;display:flex}.secondary-button,.soft-button,.reset-button,.icon-button{border:1px solid var(--line-strong);color:#1f2937;background:#fff;border-radius:2px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 16px;font-weight:700;display:inline-flex}.secondary-button:hover,.soft-button:hover,.reset-button:hover,.icon-button:hover{border-color:var(--teal)}.solid-button{background:var(--teal)}.solid-button:hover,.primary-wide-button:hover,.run-button.greedy:hover{background:var(--teal-dark)}.action-divider{background:var(--line);width:1px;height:28px}.icon-button{width:44px;padding:0}.icon-button.subtle{width:36px;min-height:36px;color:var(--muted);border:0}.main-content{min-height:calc(100vh - 78px);padding:28px}.main-content.is-navigating{opacity:.86}.page-capture{min-height:calc(100vh - 134px)}.page-enter{animation:.22s both page-enter}.dashboard-grid{grid-template-columns:360px minmax(0,1fr);gap:28px;display:grid}.control-column,.page-stack{align-content:start;gap:28px;display:grid}.main-dashboard{gap:28px;min-width:0;display:grid}.visual-matrix-grid{grid-template-columns:minmax(420px,1fr) minmax(420px,1fr);gap:28px;display:grid}.panel,.result-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.panel{padding:26px}.section-title-inline,.panel-heading,.result-card-head,.visual-head,.page-header-row{align-items:center;display:flex}.section-title-inline{gap:12px}.section-title-inline svg,.mini-icon{color:var(--teal)}.section-title-inline h2,.section-title-inline h3,.panel-heading h2{margin:0}.panel-heading,.page-header-row{justify-content:space-between;gap:18px;margin-bottom:20px}.page-header-row h1{margin-bottom:8px;font-size:32px}.page-header-row p{color:#34434c;margin:0;font-size:17px}.header-actions{flex-wrap:wrap;gap:12px;display:flex}.field-label{margin:24px 0 10px;font-weight:800;display:block}.panel select{width:100%}.soft-button{background:#dfe9ff;width:100%;margin-top:28px}.run-button{width:100%;margin-top:16px}.run-button.branch{background:var(--blue)}.run-button.compare{background:#b7623d}.reset-button{width:100%;margin-top:16px}.or-divider{color:#263238;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;margin:22px 0 10px;font-family:SFMono-Regular,Consolas,monospace;font-size:14px;display:grid}.or-divider span{background:var(--line);height:1px}.status-message,.muted-note{color:var(--muted);margin:16px 0 0;line-height:1.5}.table-title{letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px;font-family:SFMono-Regular,Consolas,monospace;font-size:15px;font-weight:800}.location-table-wrap,.matrix-scroll,.comparison-wrap,.editor-table-wrap,.editable-matrix{overflow:auto}.location-table,.matrix-table,.comparison-table,.editor-table,.matrix-editor-table{border-collapse:collapse;width:100%;font-family:SFMono-Regular,Consolas,monospace}.matrix-table{min-width:620px}.comparison-table{min-width:840px}.editor-table,.matrix-editor-table{min-width:700px}.location-table th,.location-table td,.matrix-table th,.matrix-table td,.comparison-table th,.comparison-table td,.editor-table th,.editor-table td,.matrix-editor-table th,.matrix-editor-table td{border:1px solid var(--line);text-align:left;padding:12px}.location-table th,.matrix-table th,.comparison-table th,.editor-table th,.matrix-editor-table th{background:#edf2fc;font-weight:900}.location-table tr.selected td{background:var(--teal-soft)}.visual-panel{padding:0;overflow:hidden}.visual-head{border-bottom:1px solid var(--line);justify-content:space-between;padding:14px 22px}.tab-group,.route-toggles,.small-segmented{align-items:center;gap:10px;display:flex}.tab-group button,.route-toggles button,.guide-tabs button,.small-segmented button{color:#263238;background:0 0;border:0;align-items:center;gap:8px;min-height:36px;padding:0 10px;font-weight:800;display:inline-flex}.tab-group button.active,.guide-tabs button.active{border-bottom:3px solid var(--teal);color:var(--teal-dark)}.route-toggles button span,.algorithm-dot{background:var(--line-strong);border-radius:999px;width:10px;height:10px;display:inline-block}.route-toggles button.enabled.greedy span,.algorithm-dot.greedy{background:var(--amber)}.route-toggles button.enabled.branch span,.algorithm-dot.branchAndBound{background:var(--blue)}.visual-body{background:#eaf1fb;min-height:460px;position:relative}.leaflet-map,.graph-canvas,.map-skeleton{width:100%;height:460px}.map-skeleton{color:var(--muted);background:linear-gradient(90deg,#ffffff59,#ffffffb8,#ffffff59),#eaf1fb;place-items:center;display:grid}.map-note{border:1px solid var(--line);background:#ffffffeb;align-items:center;gap:8px;padding:10px 12px;font-family:SFMono-Regular,Consolas,monospace;font-size:13px;display:inline-flex;position:absolute;bottom:20px;right:20px}.route-marker-wrapper{background:0 0}.route-marker{color:#111827;background:#eef4ff;border:2px solid #263238;border-radius:999px;place-items:center;width:30px;height:30px;font-family:SFMono-Regular,Consolas,monospace;font-weight:900;display:grid;box-shadow:0 6px 14px #1118272e}.route-marker.start{background:var(--amber);color:#fff;border-color:#fff}.matrix-table th,.matrix-table td{text-align:center;min-width:62px}.matrix-table td.diagonal{background:#dbe7fb}.matrix-table .start-axis,.matrix-table .start-cross{background:#fff3df}.matrix-table td.diagonal.start-cross{background:#cfe6dd}.validation-box{border-radius:var(--radius);align-items:flex-start;gap:14px;padding:18px 20px;display:flex}.validation-box.success{color:#075f4c;background:#ecfff8;border:1px solid #8ad9bd}.validation-box.error{background:var(--danger-soft);color:#8f0909;border:1px solid #ff9b91}.validation-box ul{margin:8px 0 0;padding-left:20px}.results-grid,.theory-grid,.data-editor-grid,.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;display:grid}.result-card{padding:26px;animation:.26s both card-rise}.result-card.greedy{border-top:4px solid var(--amber)}.result-card.branch{border-top:4px solid var(--blue)}.result-card-head{justify-content:space-between;gap:14px;margin-bottom:22px}.status-pill,.tiny-badge{color:var(--teal-dark);text-transform:uppercase;background:#e5f7f2;border-radius:2px;align-items:center;padding:6px 10px;font-family:SFMono-Regular,Consolas,monospace;font-size:12px;font-weight:900;display:inline-flex}.status-pill.idle{color:var(--muted);background:#eef2f7}.metric-grid{border:1px solid var(--line);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.metric-grid div{padding:18px 20px}.metric-grid span{color:#263238;margin-bottom:10px;font-family:SFMono-Regular,Consolas,monospace;display:block}.metric-grid strong{color:var(--teal-dark);font-size:27px}.route-section{margin-top:22px}.route-section p{font-family:SFMono-Regular,Consolas,monospace;font-weight:900}.route-chip-list{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.route-chip-wrap{align-items:center;gap:8px;display:inline-flex}.route-chip{border:1px solid var(--line-strong);background:#edf2fc;border-radius:3px;place-items:center;min-width:32px;height:32px;font-family:SFMono-Regular,Consolas,monospace;font-weight:900;display:grid}.route-chip.greedy{background:var(--amber-soft);border-color:#d18b58}.route-chip.branch{background:var(--blue-soft);border-color:#88c9ff}.route-arrow{color:var(--line-strong);font-size:24px}.empty-result,.empty-table-cell{color:var(--muted);line-height:1.6}.skeleton-block{background:linear-gradient(90deg,#edf2fc,#fafcff,#edf2fc) 0 0/220% 100%;border-radius:6px;height:172px;animation:1.15s infinite shimmer}.comparison-panel{padding:0;overflow:hidden}.comparison-panel>.section-title-inline{border-bottom:1px solid var(--line);padding:22px 26px}.comparison-table th,.comparison-table td{vertical-align:middle}.comparison-table td:first-child{white-space:nowrap}.route-cell{word-break:break-word;max-width:220px}.highlight-cost{color:var(--teal-dark);background:#e2f4ee;font-weight:900}.highlight-fast{background:var(--amber-soft);color:var(--amber);font-weight:900}.tiny-badge{background:#fffc;margin-left:8px}.graph-canvas{background:#eaf1fb}.graph-canvas svg{width:100%;height:100%;display:block}.graph-edge{fill:none;stroke-width:1.5px;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1px;animation:.52s forwards draw-route}.graph-edge.greedy{stroke:var(--amber)}.graph-edge.branchAndBound{stroke:var(--teal);stroke-width:1.9px}.graph-node circle{fill:#eff6ff;stroke:#263238;stroke-width:.4px}.graph-node text{fill:#111827;font-family:SFMono-Regular,Consolas,monospace;font-size:3.2px;font-weight:900}.compact-button{min-height:40px}.editor-panel{min-width:0}.editor-table input,.matrix-editor-table input{width:100%;min-width:84px;text-align:inherit;background:0 0;border:0;padding:0 4px}.matrix-editor-table th,.matrix-editor-table td{text-align:center;min-width:72px}.matrix-editor-table td:has(.diagonal-input){background:#dbe7fb}.guide-tabs{border-bottom:1px solid var(--line);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.guide-tabs button{justify-content:center;padding:0 14px 16px}.theory-card{line-height:1.72}.theory-card.wide{grid-template-columns:minmax(0,1.6fr) 360px;gap:36px;display:grid}.theory-visual{background:linear-gradient(135deg,#335966,#87a7b5);border-radius:6px;min-height:230px;position:relative;overflow:hidden}.theory-visual:before{content:"";background:linear-gradient(36deg,#0000 48%,#ffffff42 49%,#0000 50%),linear-gradient(113deg,#0000 48%,#ffffff38 49%,#0000 50%);position:absolute;inset:0}.theory-visual span{background:#d9eef5;border-radius:999px;width:12px;height:12px;position:absolute;box-shadow:0 0 0 10px #d9eef51f}.theory-visual span:first-child{top:28%;left:24%}.theory-visual span:nth-child(2){top:18%;left:52%}.theory-visual span:nth-child(3){top:58%;left:65%}.theory-visual span:nth-child(4){top:76%;left:36%}.theory-visual span:nth-child(5){top:32%;left:78%}.formula-row{flex-wrap:wrap;gap:10px;margin-top:18px;display:flex}.formula-row span,.complexity-box{border:1px solid var(--line);background:#eef2f7;border-radius:3px;padding:8px 12px;font-family:SFMono-Regular,Consolas,monospace}.complexity-box{justify-content:space-between;gap:12px;margin:20px 0;display:flex}.complexity-box strong{color:var(--teal-dark);background:#cbeee5;border-radius:3px;padding:2px 8px}.complexity-box.danger strong{color:var(--danger);background:#ffe0e0}.greedy-tone svg{color:var(--amber)}.branch-tone svg{color:var(--teal)}.pros-cons{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;display:grid}.report-summary-grid{grid-template-columns:360px minmax(0,1fr)}.summary-card dl{margin:0}.summary-card div{border-bottom:1px solid #dbe3ea;grid-template-columns:1fr 1fr;gap:16px;padding:14px 0;display:grid}.summary-card dt{color:#34434c}.summary-card dd{margin:0;font-family:SFMono-Regular,Consolas,monospace;font-weight:900}.insight-card{border-radius:var(--radius);background:var(--teal);color:#fff;box-shadow:var(--shadow);padding:34px}.insight-card .section-title-inline svg{color:#fff}.insight-card li{margin:12px 0;line-height:1.6}.report-map-panel .leaflet-map,.report-map-panel .graph-canvas,.report-map-panel .map-skeleton{height:390px}.report-map-grid{grid-template-columns:1.4fr .8fr;gap:18px;display:grid}.small-segmented button{background:#e4ecff}@keyframes page-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes card-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes draw-route{to{stroke-dashoffset:0}}@keyframes shimmer{to{background-position:-220% 0}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (max-width:1280px){.app-shell{grid-template-columns:260px minmax(0,1fr)}.dashboard-grid,.visual-matrix-grid,.data-editor-grid,.report-map-grid{grid-template-columns:1fr}}@media (max-width:960px){.app-shell{display:block}.sidebar{height:auto;padding:18px;position:static}.brand-block,.side-footer,.primary-wide-button{display:none}.side-nav{grid-template-columns:repeat(4,minmax(0,1fr))}.side-nav-item{justify-content:center;padding:0 8px}.side-nav-item span{display:none}.topbar{flex-wrap:wrap;min-height:auto;padding:14px}.mobile-brand{width:100%;display:flex}.top-nav{order:3;width:100%;min-height:48px;overflow-x:auto}.top-nav-link{min-width:auto}.top-actions{margin-left:auto;overflow-x:auto}.main-content{padding:18px}.dashboard-grid,.results-grid,.theory-grid,.report-summary-grid,.pros-cons,.theory-card.wide{grid-template-columns:1fr}}@media (max-width:640px){.panel,.result-card,.insight-card{padding:18px}.visual-head,.page-header-row,.panel-heading,.result-card-head{flex-direction:column;align-items:flex-start}.header-actions,.header-actions button,.solid-button,.secondary-button{width:100%}.metric-grid,.guide-tabs{grid-template-columns:1fr}.visual-body,.leaflet-map,.graph-canvas,.map-skeleton{height:360px}}
