:root{--ink:#172333;--muted:#6e7d90;--line:#e2e8f0;--line-soft:#edf1f5;--page:#f4f7fb;--panel:#fff;--soft:#f8fafc;--blue:#225bbb;--blue-dark:#174b9f;--blue-soft:#edf4ff;--link:#245db0;--green:#177653;--red:#b42318;--red-dark:#8f1d14;--amber:#9b6818;--topbar-h:60px;--tabbar-h:0px;color:var(--ink);background:var(--page);font-synthesis:none;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Apple SD Gothic Neo,sans-serif}*{box-sizing:border-box}body{background:var(--page);min-width:320px;margin:0}[hidden]{display:none!important}a{color:var(--link)}:where(a,button,input,select,textarea,summary):focus-visible{outline-offset:2px;outline:2px solid #5b8def}.app-shell{min-height:100vh}.topbar{z-index:20;height:var(--topbar-h);border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;gap:12px;padding:0 28px;display:flex;position:sticky;top:0}.brand{color:var(--ink);letter-spacing:-.02em;align-items:center;gap:11px;font-size:16px;font-weight:750;text-decoration:none;display:flex}.brand small{color:var(--muted);letter-spacing:.12em;text-transform:uppercase;margin-top:2px;font-size:10px;font-weight:650;display:block}.brand-mark{color:#fff;background:#142f55;border-radius:11px;place-items:center;width:34px;height:34px;font-size:17px;display:grid}.workspace{min-height:calc(100vh - var(--topbar-h));grid-template-columns:208px minmax(0,1fr);display:grid}.sidebar{top:var(--topbar-h);height:calc(100vh - var(--topbar-h));border-right:1px solid var(--line);background:#fff;padding:24px 12px;position:sticky;overflow-y:auto}.sidebar nav{gap:4px;display:grid}.sidebar a,.tabbar a{color:#58677a;font-weight:600;text-decoration:none}.sidebar a{border-radius:8px;align-items:center;gap:11px;padding:11px 12px;font-size:14px;display:flex}.sidebar a:hover{color:var(--ink);background:#f5f8fc}.sidebar a.active{background:var(--blue-soft);color:#1e56ae}.nav-icon{text-align:center;width:18px;font-size:16px}.tabbar{display:none}.main-content{width:100%;max-width:1540px;margin:0 auto;padding:30px clamp(20px,4vw,56px) 50px}.page-heading{margin-bottom:20px}.page-heading h1{color:#16263a;letter-spacing:-.035em;margin:0;font-size:clamp(22px,2.4vw,30px);line-height:1.15}.page-heading p{color:var(--muted);margin:8px 0 0;font-size:13px;line-height:1.55}.message{color:#39735e;margin:-6px 0 14px;font-size:13px}.message:empty{display:none}.page-root{grid-template-columns:minmax(0,1fr);gap:18px;display:grid}.page-root>*{overflow-wrap:anywhere;min-width:0}.panel,.loading-card{background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 2px 7px #16273e06}.panel{grid-template-columns:minmax(0,1fr);align-content:start;gap:12px;padding:20px 21px;display:grid}.panel>*{margin-top:0;margin-bottom:0}.nested-panel{box-shadow:none;background:var(--soft)}.panel-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.panel h2{color:#1f3044;letter-spacing:-.015em;margin:0;font-size:15px}.panel h3{margin:0;font-size:13px}.panel-head p,.panel-copy{color:var(--muted);margin:6px 0 0;font-size:12px;line-height:1.5}.panel-head .badge{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%}.panel-tools{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.panel-head.collapsible{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:8px;margin:-6px -8px 0;padding:6px 8px}.panel-head.collapsible:hover{background:#f5f8fc}.panel-head.collapsible .check-row{cursor:pointer}.fold-mark{width:18px;color:var(--link);display:inline-block}.loading-card{text-align:center;color:var(--muted);padding:28px;font-size:13px}.empty{text-align:center;color:#8290a1;padding:22px;font-size:13px}.muted,.caption{color:var(--muted)}.caption{font-size:11px;line-height:1.5}.num{text-align:right;font-variant-numeric:tabular-nums}.mono,code{color:#475569;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.info-box{color:#596a80;background:#f2f6fb;border-radius:7px;padding:12px 14px;font-size:12px;line-height:1.55}.error-card{color:#983e39;overflow-wrap:anywhere;background:#fff9f8;border:1px solid #f0c8c5;border-radius:8px;padding:13px;font-size:13px}.warning,.warning-card{color:#543c0b;background:#fff8e7;border:1px solid #d99a25;border-radius:8px;padding:10px 12px;font-size:12px}.warning-card h2{color:#704c00}.badge{white-space:nowrap;color:#58677a;background:#edf1f5;border-radius:20px;align-items:center;padding:3px 8px;font-size:11px;font-weight:700;display:inline-flex}.badge.done{color:var(--green);background:#e7f6ef}.badge.pending{color:#64748b;background:#f0f2f5}.badge.short{color:var(--amber);background:#fff5e5}.badge.error{color:#b4443c;background:#fff0ef}.button,button{color:#34445a;min-height:34px;font:inherit;cursor:pointer;background:#fff;border:1px solid #ccd6e2;border-radius:7px;justify-content:center;align-items:center;gap:7px;padding:8px 12px;font-size:13px;font-weight:650;text-decoration:none;display:inline-flex}.button:hover,button:hover{background:#f9fbfe;border-color:#92a7c2}button:disabled{opacity:.5;cursor:not-allowed}.button.primary,button.primary{color:#fff;background:var(--blue);border-color:var(--blue)}.button.primary:hover,button.primary:hover{background:var(--blue-dark)}.button.danger,button.danger{color:#fff;background:var(--red);border-color:var(--red)}button.danger:hover:not(:disabled),.button.danger:hover:not(:disabled),button.danger:focus-visible,.button.danger:focus-visible{background:var(--red-dark);border-color:var(--red-dark);color:#fff}button.danger:disabled,.button.danger:disabled{background:var(--red-dark);border-color:var(--red-dark);color:#fff;opacity:.6}button.danger.delete-action,.button.danger.delete-action{white-space:nowrap;min-width:132px;min-height:36px;font-weight:700;line-height:1.2}.danger-button-icon{flex:0 0 14px;width:14px;height:14px}.danger-zone{border-left:3px solid var(--red)}.blocker-list{color:var(--red);margin:8px 0;padding-left:18px}.link-button{min-height:0;color:var(--link);background:0 0;border:0;padding:0;font-weight:700;text-decoration:none}.link-button:hover{background:0 0;text-decoration:underline}input[type=text],input[type=number],input[type=search],input:not([type]),select,textarea{font:inherit;color:#1d2c40;background:#fff;border:1px solid #d5dee8;border-radius:6px;max-width:100%;min-height:36px;padding:7px 9px;font-size:13px}input[type=checkbox]{accent-color:var(--blue);flex:none;width:16px;height:16px;margin:0}input[type=range]{width:100%;accent-color:var(--blue)}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.form-grid label{color:#556579;gap:6px;min-width:0;font-size:12px;font-weight:650;display:grid}.form-grid label select[multiple]{min-height:120px}.field{gap:6px;min-width:0;display:grid}.field label,.field-label{color:#556579;font-size:12px;font-weight:650}.field small{color:var(--muted);font-size:11px;line-height:1.45}.check-row{color:#556579;align-items:center;gap:8px;font-size:13px;display:flex}.checkbox-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 12px;display:grid}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.inline-form{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.inline-form select,.inline-form input{min-width:180px}.form-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.target-input,.cap-input{text-align:right;width:92px}.inactive-cell{color:#bac3cd;text-align:center}.check-col{text-align:center;width:36px}.segmented{scrollbar-width:none;background:#e9eef5;border-radius:10px;gap:4px;width:fit-content;max-width:100%;padding:4px;display:flex;overflow-x:auto}.segmented::-webkit-scrollbar{display:none}.segmented a,.segmented button{color:#58677a;background:0 0;border:0;border-radius:7px;flex:none;align-items:center;min-height:34px;padding:7px 14px;font-size:13px;font-weight:650;text-decoration:none;display:inline-flex}.segmented a.active,.segmented button.active{color:#1e56ae;background:#fff;box-shadow:0 1px 3px #16273e1f}.segmented button.has-error{color:var(--red)}.hub-tabs{top:var(--topbar-h);z-index:10;background:var(--page);box-shadow:-60px 0 0 var(--page), 60px 0 0 var(--page);flex-wrap:wrap;gap:6px;padding:8px 0;display:flex;position:sticky}.hub-tabs button{border-radius:20px;min-height:32px;padding:6px 14px}.hub-tabs button.active{background:var(--blue);border-color:var(--blue);color:#fff}.source-section{grid-template-columns:minmax(0,1fr);gap:18px;min-width:0;display:grid}.pick-list{border:1px solid var(--line-soft);border-radius:8px;max-height:420px;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.pick-list li{border-bottom:1px solid var(--line-soft);flex-wrap:wrap;align-items:center;gap:4px 10px;padding:9px 12px;font-size:14px;display:flex}.pick-list li:last-child{border-bottom:0}.pick-list label{cursor:pointer;align-items:center;gap:10px;font-weight:600;display:flex}.pick-list .pick-all{background:var(--soft);font-size:12px}.saved-view-name{font-size:14px}.table-wrap{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;width:100%;min-width:0;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:#718096;white-space:nowrap;background:var(--soft);font-size:11px;font-weight:700}th,td{border-bottom:1px solid var(--line-soft);vertical-align:top;padding:9px 11px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}.table-wrap table{overflow-wrap:normal}.table-wrap td button,.table-wrap td .button{white-space:nowrap}tr.is-checked td{color:#7b8899}.grid-input{text-align:right;width:84px}.grid-input.is-changed{background:#fff8e7;border-color:#d99a25}.grid-input.is-invalid{background:#fff0f0;border-color:#d22;outline:2px solid #d22}.grid-default{display:block}.grid-list{margin:0;padding:0;list-style:none;display:grid}.grid-list li{border-bottom:1px solid var(--line-soft);grid-template-columns:76px minmax(0,1fr);align-items:center;gap:10px;padding:10px 0;display:grid}.grid-list li:last-child{border-bottom:0}.grid-list-label{color:#42536a;font-size:13px;font-weight:700}.grid-list-cell{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.grid-list-cell .grid-default{display:inline}.result-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;display:grid}.result-value{background:#f7f9fc;border-radius:7px;padding:12px}.result-value span{color:var(--muted);font-size:11px;display:block}.result-value strong{margin-top:5px;font-size:16px;display:block}.course-grid{border:1px solid var(--line-soft);-webkit-overflow-scrolling:touch;background:#fff;border-radius:8px;max-height:70vh;overflow:auto}.course-grid table{border-collapse:separate;border-spacing:0;min-width:720px}.course-grid thead{z-index:2;position:sticky;top:0}.course-grid thead th{background:var(--soft);vertical-align:top;border-bottom:1px solid #e3e9f0}.course-grid td{word-break:break-word;vertical-align:middle}.course-grid .course-grid-check{z-index:1;text-align:center;background:#fff;width:84px;position:sticky;left:0}.course-grid thead th.course-grid-check{z-index:3;background:var(--soft)}.course-grid thead th.course-grid-check select{width:100%;margin-top:4px;display:block}.course-grid tbody tr:hover td,.course-grid tbody tr:hover .course-grid-check{background:#f2f7ff}.course-grid select{max-width:100%;min-height:28px;padding:3px 6px;font-size:12px}.course-grid .course-grid-filters th{padding:6px 10px 10px;font-weight:400}.course-grid .course-grid-filters select{width:100%;min-width:90px}.course-grid .course-grid-filters select+select{margin-top:6px}.course-grid-sort{min-height:0;font:inherit;font-weight:inherit;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:4px;padding:0;display:inline-flex}.course-grid-sort:hover{background:0 0}.course-grid-sort-mark{color:var(--link);font-size:11px}.course-grid .course-grid-ratio-head small{color:#8a97a8;white-space:nowrap;margin-top:3px;font-size:10px;font-weight:500;display:block}.course-grid-ratio-field{align-items:center;gap:6px;display:inline-flex}.course-grid-ratio{text-align:right;width:84px}.course-grid .course-grid-ratio{min-height:28px;padding:4px 7px;font-size:12px}.course-grid .course-grid-feedback{white-space:nowrap}.course-grid.is-saving,.course-cards.is-saving{opacity:.65;pointer-events:none}.course-cards{gap:10px;display:grid}.course-cards-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.course-cards-tools select{width:100%}.course-card-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.course-card{border:1px solid var(--line);background:#fff;border-radius:10px;gap:8px;padding:10px 12px;display:grid}.course-card.is-checked{background:#f5faf7;border-color:#cfe7da}.course-card-head{cursor:pointer;align-items:flex-start;gap:12px;display:flex}.course-card-head input[type=checkbox]{width:24px;height:24px;margin-top:1px}.course-card-title{gap:4px;min-width:0;display:grid}.course-card-title .badge{justify-self:start}.course-card-title strong{overflow-wrap:anywhere;font-size:14px;line-height:1.4}.course-card.is-checked .course-card-title strong{color:#4d6b5c}.course-card-fields{gap:4px;margin:0;font-size:12px;display:grid}.course-card-fields div{grid-template-columns:92px minmax(0,1fr);gap:8px;display:grid}.course-card-fields dt{color:var(--muted);font-weight:650}.course-card-fields dd{overflow-wrap:anywhere;margin:0}.course-card-actions{border-top:1px dashed var(--line);flex-wrap:wrap;gap:8px 14px;padding-top:8px;display:flex}.course-card-actions label{color:#556579;align-items:center;gap:8px;font-size:12px;font-weight:650;display:inline-flex}.map-hint{margin:0}.map-legend{flex-wrap:wrap;gap:6px 14px;font-size:12px;display:flex}.map-legend span{align-items:center;gap:6px;display:inline-flex}.map-legend i{border-radius:3px;width:12px;height:12px;display:inline-block}.departure-histogram{margin:0}.departure-histogram-title{margin:0 0 4px;font-size:14px}.dialog-overlay{z-index:1000;background:#00000073;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.dialog-card{background:var(--panel);overflow-wrap:anywhere;border-radius:12px;width:100%;max-width:560px;max-height:85vh;padding:20px 22px;overflow:auto;box-shadow:0 10px 30px #00000040}.dialog-card h2{margin:0 0 10px;font-size:18px}.dialog-card h3{margin:14px 0 6px;font-size:14px}.dialog-card ul{margin:6px 0;padding-left:18px}.dialog-confirm{margin-top:14px;font-size:14px;display:block}.dialog-confirm input{width:100%;margin-top:6px;display:block}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:18px;display:flex}@media (width<=900px){.workspace{grid-template-columns:172px minmax(0,1fr)}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=650px){:root{--topbar-h:52px;--tabbar-h:calc(58px + env(safe-area-inset-bottom,0px))}.topbar{padding:0 14px}.brand{font-size:15px}.brand small{display:none}.brand-mark{border-radius:9px;width:30px;height:30px;font-size:15px}.workspace{min-height:0;display:block}.sidebar{display:none}.tabbar{z-index:30;height:var(--tabbar-h);padding-bottom:env(safe-area-inset-bottom,0px);border-top:1px solid var(--line);-webkit-backdrop-filter:saturate(1.4)blur(8px);background:#fffffff7;grid-auto-columns:1fr;grid-auto-flow:column;display:grid;position:fixed;bottom:0;left:0;right:0}.tabbar a{flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:11px;display:flex}.tabbar a .nav-icon{width:auto;font-size:19px}.tabbar a.active{color:#1e56ae}.main-content{padding:18px 12px calc(var(--tabbar-h) + 24px)}.page-heading{margin-bottom:14px}.page-heading h1{font-size:22px}.page-heading p{font-size:12px}.page-root{gap:12px}.panel{border-radius:12px;padding:14px 12px}.panel-head{flex-direction:column;align-items:stretch;gap:10px}.panel-head>.badge{align-self:flex-start}.panel-tools{width:100%}.panel-head p,.panel-copy,.info-box{font-size:12px}.button,button{min-height:44px;padding:10px 14px;font-size:14px}.link-button{align-items:center;min-height:32px;display:inline-flex}input[type=text],input[type=number],input[type=search],input:not([type]),select,textarea{min-height:44px;font-size:16px}input[type=checkbox]{width:22px;height:22px}.form-grid{grid-template-columns:minmax(0,1fr)}.form-grid label input:not([type=checkbox]):not([type=radio]),.form-grid label select,.form-grid label textarea{width:100%}.checkbox-grid{grid-template-columns:minmax(0,1fr);gap:2px}.check-row{min-height:40px}.toolbar{flex-direction:column;align-items:stretch}.inline-form{align-items:stretch}.inline-form select,.inline-form input{flex:100%;min-width:0}.inline-form>button,.inline-form>.button{flex:auto}.form-actions>button,.form-actions>.button,.panel-tools>button,.panel-tools>.button{flex:140px}.panel-head .panel-tools>button{flex:1 1 0}button.danger.delete-action,.button.danger.delete-action{min-width:0;min-height:44px}.sticky-actions{bottom:calc(var(--tabbar-h) + 8px);z-index:5;background:#fffffff2;border-radius:10px;margin:0 -4px;padding:8px;position:sticky;box-shadow:0 2px 10px #16273e1f}.segmented{width:100%}.segmented a,.segmented button{flex:1 0 auto;justify-content:center;min-height:40px}.segmented.chips{width:auto}.hub-tabs{scrollbar-width:none;flex-wrap:nowrap;overflow-x:auto}.hub-tabs::-webkit-scrollbar{display:none}.hub-tabs button{flex:none;min-height:40px}.pick-list{max-height:none}.pick-list li{padding:12px}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.target-input,.cap-input{width:110px}.grid-input{width:96px}table{font-size:13px}th{font-size:12px}th,td{padding:9px}.table-wrap th:first-child,.table-wrap td:first-child{z-index:1;background:var(--panel);position:sticky;left:0}.table-wrap th:first-child{background:var(--soft)}.table-wrap.stack-sm{overflow:visible}.stack-sm table,.stack-sm tbody,.stack-sm tr,.stack-sm td,.stack-sm tbody th{width:100%;min-width:0;display:block}.stack-sm thead{display:none}.stack-sm tr{border:1px solid var(--line);background:var(--panel);border-radius:10px;margin-bottom:8px;padding:4px 12px}.stack-sm tbody tr:hover{background:var(--panel)}.stack-sm tbody th{color:var(--ink);border-bottom:1px solid var(--line-soft);background:0 0;padding:10px 0 6px;font-size:14px;position:static}.stack-sm td,.stack-sm td:first-child{border:0;border-bottom:1px dashed var(--line);text-align:left;white-space:normal;background:0 0;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:8px;padding:8px 0;display:grid;position:static}.stack-sm td:last-child{border-bottom:0}.stack-sm td:before{content:attr(data-label);color:#6b7a8d;font-size:12px;font-weight:700}.stack-sm td.inactive-cell{display:none}.stack-sm td.row-actions,.stack-sm td.row-check{flex-wrap:wrap;gap:8px;display:flex}.stack-sm td.row-actions:before,.stack-sm td.row-check:before{display:none}.stack-sm td.row-actions .button{flex:auto}.stack-sm td:first-child:has(>input[type=checkbox]:only-child){display:flex}.stack-sm td:first-child:has(>input[type=checkbox]:only-child):before{display:none}.stack-sm.checklist thead{display:block}.stack-sm.checklist thead tr{background:0 0;border:0;margin-bottom:8px;padding:0;display:block}.stack-sm.checklist thead th{display:none}.stack-sm.checklist thead th:first-child{background:0 0;padding:0;display:block;position:static}.stack-sm.checklist thead th:first-child select{width:100%}.stack-sm.checklist tr.is-checked{background:#f5faf7;border-color:#cfe7da}.dialog-overlay{padding:12px}.dialog-card{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px}.dialog-actions{background:var(--panel);border-top:1px solid var(--line);flex-wrap:wrap;margin:18px -16px -16px;padding:10px 16px 16px;position:sticky;bottom:-16px}.dialog-actions>button,.dialog-actions>.button{flex:1 1 0}}
