:root{font-family:Arial,Helvetica,sans-serif;color:#132e3c;background:#edf2f4;font-size:16px;--ink:#102938;--muted:#637681;--line:#dce4e8;--teal:#006e7b}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #da9f36;outline-offset:4px}header{height:88px;background:var(--ink);display:flex;align-items:center;justify-content:space-between;padding:0 32px;color:#fff}.brand{display:flex;gap:16px;align-items:center;text-decoration:none;color:#fff;font-weight:700;font-size:14px;letter-spacing:2px}.brand-mark{font-family:Georgia,serif;font-size:30px;letter-spacing:-2px;border:1px solid #54707d;padding:8px 10px;color:#e9bd6d}.brand-sub{display:block;color:#a4b8c2;font-weight:400;font-size:13px;letter-spacing:.4px;margin-top:7px}.header-right{display:flex;align-items:center;gap:30px;color:#a4b8c2;font-size:12px;letter-spacing:1.2px}.text-button{background:none;border:0;padding:5px 0;color:var(--teal);font-weight:600;font-size:14px}.header-right button{color:#fff;font-weight:400;letter-spacing:0}main{display:grid;grid-template-columns:360px minmax(0,1fr);max-width:1800px;margin:auto;min-height:calc(100vh - 88px)}aside{background:white;padding:32px 28px;border-right:1px solid var(--line)}.section-label{font-size:12px;letter-spacing:1.6px;color:var(--muted);font-weight:700}h1{font-family:Georgia,'Times New Roman',serif;font-size:38px;line-height:1.08;letter-spacing:-1px;font-weight:400;margin:17px 0}.intro{color:var(--muted);font-size:14px;line-height:1.6;margin-bottom:28px}.location{position:relative;margin:0 0 20px}.location>label{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:700;margin-bottom:9px}.point-label{border:1px solid #bbcbd1;width:23px;height:23px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;font-size:12px}.location input[type=text]{width:100%;height:48px;border:1px solid #bfced5;border-radius:5px;padding:0 12px;color:var(--ink);background:#fff}.location input:focus{outline:2px solid #088693;outline-offset:1px}.coord-note{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5;min-height:18px}.coord-toggle{font-size:12px;font-weight:400;float:right;margin-top:5px}.coords{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.coords[hidden]{display:none}.coords label{font-size:12px;color:var(--muted)}.coords input{width:100%;padding:9px 7px;border:1px solid #bfced5;border-radius:4px;margin-top:5px}.suggestions{position:absolute;z-index:1500;background:#fff;border:1px solid #bfced5;box-shadow:0 8px 18px #10293820;border-radius:4px;max-height:270px;overflow:auto;width:100%;margin-top:4px}.suggestions button{width:100%;border:0;border-bottom:1px solid #eef2f4;background:white;text-align:left;padding:11px 12px;font-size:14px;color:var(--ink)}.suggestions button:hover,.suggestions button:focus{background:#e9f4f5}.suggestions span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.small-actions{display:flex;justify-content:space-between;margin:-3px 0 24px}.options{border-top:1px solid var(--line);padding:17px 0}.options summary,.route-detail summary{font-size:14px;cursor:pointer;font-weight:600}.options p{font-size:13px;color:var(--muted);line-height:1.5}.checks{display:grid;gap:10px;font-size:14px}.checks input{accent-color:var(--teal);width:16px;height:16px;vertical-align:middle}.primary{width:100%;background:var(--teal);color:white;padding:15px 12px;border:0;border-radius:5px;font-weight:700;font-size:15px;margin-top:8px}.primary:hover{background:#005762}#formError{color:#9d431d;font-size:14px;line-height:1.5;margin-top:12px}.side-note{border-top:1px solid var(--line);margin-top:26px;padding-top:20px}.note-label{font-size:11px;letter-spacing:1.1px;font-weight:700;color:var(--muted)}.side-note p{font-size:13px;color:var(--muted);line-height:1.6;margin:9px 0}.engine-note{font-size:12px;color:var(--muted);margin-top:23px}.workspace{min-width:0;padding:24px;display:flex;flex-direction:column;gap:0}.map-shell{position:relative;height:440px;min-height:340px;border:1px solid #cdd9df;border-radius:8px 8px 0 0;overflow:hidden}#map{width:100%;height:100%;background:#b9d5df}.map-title{position:absolute;z-index:500;top:18px;left:18px;background:white;padding:13px 17px;border-radius:5px;box-shadow:0 2px 12px #10293815;max-width:calc(100% - 100px);font-size:14px;font-weight:700}.map-sub{font-size:12px;display:block;color:var(--muted);font-weight:400;margin-top:5px}.map-key{position:absolute;z-index:500;bottom:23px;left:15px;background:#fffef9ed;padding:9px 12px;border-radius:4px;font-size:12px;display:flex;align-items:center;gap:7px}.line-key{width:21px;border-top:3px solid #007d8b;display:inline-block}.gap-key{border-top:2px dashed #ba641f;margin-left:8px}.map-fit{position:absolute;z-index:500;right:14px;bottom:25px;background:#fff;border:1px solid #cedadf;border-radius:4px;padding:8px 12px;font-size:13px;color:var(--ink)}#tileWarning{position:absolute;bottom:66px;left:15px;right:15px;z-index:500;background:#fff0d6;padding:10px;font-size:13px}.results{background:#fff;border:1px solid #cdd9df;border-top:0;border-radius:0 0 8px 8px;padding:24px 28px}#empty h2{font-family:Georgia,serif;font-size:27px;font-weight:400;margin:15px 0}#empty p{color:var(--muted);max-width:680px;font-size:15px;line-height:1.6}.result-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.big-number{font-size:52px;letter-spacing:-2px;line-height:1.3;font-variant-numeric:tabular-nums}.big-number>span:last-child{font-size:20px;letter-spacing:0;color:var(--muted)}.result-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.badge{color:#95601d;background:#fff2d8;font-size:12px;font-weight:600;padding:6px 9px;border-radius:3px}.outline{background:white;border:1px solid #bfced5;border-radius:4px;padding:9px 12px;color:var(--ink);font-size:14px}.metrics{display:grid;grid-template-columns:1fr 1fr 1.1fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 0;margin:17px 0;gap:18px}.metrics>div>span{display:block;color:var(--muted);font-size:13px;margin-bottom:10px}.metrics strong{font-weight:500;font-size:21px;font-variant-numeric:tabular-nums}#speed{width:49px;border:0;border-bottom:1px solid #9cafb8;color:var(--teal);background:#edf7f8;font-size:13px;padding:2px}.warning{font-size:14px;line-height:1.6;color:#815319;background:#fff8eb;padding:12px 15px;border-left:3px solid #cc9b47}.route-detail{margin-top:18px}.route-detail p{font-size:14px;color:var(--muted);line-height:1.6}table{width:100%;border-collapse:collapse;margin-top:16px;font-size:13px}th,td{padding:10px 6px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);font-weight:400}dialog{border:0;border-radius:10px;max-width:690px;width:calc(100% - 32px);padding:30px;color:var(--ink);box-shadow:0 20px 80px #10293850}dialog::backdrop{background:#10293899}.dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.dialog-head h2{font-family:Georgia,serif;font-weight:400;font-size:29px;margin:0}.dialog-head button{border:0;background:none;font-size:30px;color:var(--muted)}dialog p{font-size:15px;line-height:1.7;color:#526873}dialog h3{font-size:16px;margin:24px 0 8px}a{color:var(--teal)}.source-note{font-size:12px!important}.port-marker{background:#102938;border:2px solid white;color:white;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:12px;box-shadow:0 1px 6px #10293860}.via-marker{background:#aa7223}.leaflet-control-zoom{margin:18px!important}.leaflet-container{font-family:Arial,sans-serif}.leaflet-popup-content{line-height:1.6}.leaflet-container a{color:#006e7b}@media(min-width:1450px){.map-shell{height:52vh}}@media(max-width:1000px){main{grid-template-columns:310px minmax(0,1fr)}aside{padding:26px 20px}.workspace{padding:18px}.results{padding:22px 18px}.metrics{gap:12px}.result-top{align-items:flex-start}.big-number{font-size:42px}.result-actions .outline{max-width:155px;line-height:1.5}.header-right{gap:18px}.map-key{bottom:57px}}@media(max-width:740px){header{padding:0 18px;height:76px}.brand{gap:10px}.header-right{font-size:0}.header-right button{font-size:13px}.brand-sub{font-size:11px}.brand{font-size:12px}main{display:block}aside{padding:24px 20px}h1{font-size:31px}h1 br{display:none}.intro{margin-bottom:22px}.side-note,.engine-note{display:none}.workspace{padding:0 12px 20px}.map-shell{height:370px}.map-key{font-size:11px;gap:5px}.result-top{gap:10px}.big-number{font-size:42px}.metrics{grid-template-columns:1fr 1fr}.metrics>div:last-child{grid-column:1/-1}.metrics strong{font-size:19px}.result-actions .outline{font-size:12px}.route-detail{overflow-x:auto}.map-title{max-width:calc(100% - 90px)}dialog{padding:23px}header .brand-mark{font-size:24px}}
.catalog-filter{padding:12px;background:#edf5f6;border-radius:5px;margin-bottom:22px}.catalog-filter>label,.routing-mode>label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}select{width:100%;padding:10px;border:1px solid #bfced5;border-radius:4px;background:#fff;color:var(--ink)}.catalog-filter .text-button{font-size:12px}.routing-mode{margin-top:18px}.routing-mode p{font-size:13px;color:var(--muted);line-height:1.5}.workspace-tools{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 15px;font-size:13px}.workspace-tools label{display:flex;align-items:center;gap:4px}.workspace-tools input{accent-color:#006e7b}.workspace-tools a{margin-left:auto;font-weight:600}.feasibility-panel{background:#fff;border:1px solid #cdd9df;border-radius:8px;margin-top:24px;padding:27px;scroll-margin-top:20px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-heading h2{font-family:Georgia,serif;font-weight:400;font-size:31px;margin:10px 0}.panel-intro{color:var(--muted);font-size:15px;line-height:1.6;margin-top:3px}.assessment-route{font-size:14px;background:#eaf3f5;padding:11px 13px;margin:20px 0;border-left:3px solid #007d8b}.vessel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:17px 0}.vessel-grid label,.reach-grid label{font-size:13px;line-height:1.5;color:#48616e}.vessel-grid input,.reach-grid input,.reach-grid select{width:100%;border:1px solid #bfced5;border-radius:4px;padding:10px 9px;margin-top:6px;color:var(--ink);height:41px;background:#fff}.vessel-grid input:focus,.reach-grid input:focus{outline:2px solid #00818e;outline-offset:1px}.vessel-grid select{margin-top:6px;height:41px}.allowance-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0}.allowance-details summary{font-size:14px;font-weight:600;cursor:pointer;line-height:1.6}.helper{font-size:13px;color:var(--muted);line-height:1.6}.reach-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:20px}.reach-heading h3{font-size:17px;margin:5px 0}.reach-heading .outline{white-space:nowrap}.reach{border:1px solid #d4e0e4;background:#f7fafb;padding:16px;border-radius:5px;margin-bottom:13px}.reach-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.reach-title input{font-size:15px;font-weight:600;background:transparent;border:0;border-bottom:1px solid #becdd4;width:100%;padding:7px 0;color:var(--ink)}.reach-title button{background:none;border:0;color:#9d431d;font-size:13px}.reach-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.reach-more summary{font-size:13px;color:#006e7b;cursor:pointer}.reach-review{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.6;margin-top:15px;color:#4d6470}.reach-review input{margin-top:4px;accent-color:#006e7b}.screen-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.screen-actions .primary{width:auto;margin:0}.screen-actions>a{font-size:13px}#screenError{color:#9d431d;font-size:14px;line-height:1.6}#screenResult{border:1px solid #d4e0e4;padding:20px;margin:20px 0;border-radius:5px}#screenResult h3{margin:0 0 10px;font-size:20px}.screen-exceeded{border-left:4px solid #b74430!important;background:#fff7f4}.screen-unknown{border-left:4px solid #c08d32!important;background:#fffaf0}.screen-within{border-left:4px solid #548293!important;background:#f1f7fa}.screen-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0}.screen-metrics span{display:block;font-size:12px;color:var(--muted);line-height:1.5}.screen-metrics strong{display:block;font-weight:500;font-size:23px;margin-top:7px}.screen-table-wrap{overflow:auto}.screen-table-wrap table{min-width:540px}.reach-status{font-weight:600}.source-link{font-size:12px}.facility-popup{min-width:195px;max-width:280px}.facility-popup h3{margin:0 0 5px;font-size:15px}.facility-popup p{margin:7px 0;font-size:12px}.popup-actions{display:flex;gap:8px}.popup-actions button{border:1px solid #bacdd3;background:#eff7f8;color:#006e7b;padding:7px 10px;border-radius:4px;font-size:12px}#bathyNotice{position:absolute;top:91px;left:17px;right:65px;background:#fffffff0;color:#445e6b;z-index:500;padding:8px 11px;border-radius:4px;font-size:12px;line-height:1.5}#layerStatus{position:absolute;bottom:105px;left:15px;right:15px;z-index:500;pointer-events:none;font-size:12px;line-height:1.5}#layerStatus:not(:empty){padding:8px 11px;background:#fffffff0;border-radius:4px}.coverage-stats{display:grid;grid-template-columns:1fr 1fr;gap:15px}.coverage-stats strong{font-size:27px;display:block}.coverage-stats span{font-size:13px;color:var(--muted)}#coverageDialog{max-width:760px}#coverageDialog table{font-size:13px}#coverageDialog p{font-size:14px}.source-note{font-size:12px}.tow-field[hidden]{display:none}.source-note a{overflow-wrap:anywhere}@media(max-width:1100px){.vessel-grid,.reach-grid{grid-template-columns:1fr 1fr}.feasibility-panel{padding:20px}.workspace-tools{gap:10px}.workspace-tools a{margin-left:0}.screen-metrics{grid-template-columns:1fr 1fr}.reach-heading{align-items:flex-start}}@media(max-width:740px){.feasibility-panel{padding:20px 15px}.workspace-tools{padding:15px 6px 0;font-size:12px}.panel-heading{align-items:flex-start}.panel-heading .badge{max-width:115px;line-height:1.5}.vessel-grid,.reach-grid{gap:12px}.reach{padding:12px}.screen-actions .primary{width:100%}.screen-actions .outline{font-size:13px}.panel-heading h2{font-size:28px}#screenResult{padding:15px}.reach-heading h3{font-size:15px}.reach-heading .outline{padding:8px;font-size:12px}.screen-metrics{gap:12px}.screen-metrics strong{font-size:20px}}

#cToggle{margin:12px 0}#cBox{margin-top:12px}.leg-summary{margin:20px 0}.leg-summary h3{margin:0 0 10px}.leg-table-wrap{overflow-x:auto}.leg-summary table{width:100%;border-collapse:collapse;font-size:13px}.leg-summary td,.leg-summary th{padding:12px 10px;border-bottom:1px solid #dce5e8;text-align:right;white-space:nowrap}.leg-summary td:first-child,.leg-summary th:first-child{text-align:left;white-space:normal;min-width:150px}.leg-summary tfoot{background:#f0f7f7}.river-key{background:#647eb1}.connection-key{background:none;border-top:3px dashed #8b53c1}.map-key{flex-wrap:wrap;max-width:calc(100% - 90px)}.map-title{max-width:calc(100% - 90px)}.map-title>span{overflow-wrap:anywhere}

.via-editor{padding:12px;border:1px solid #d4e0e4;border-radius:4px;margin:12px 0;background:#f7fafb}.via-editor>label{font-size:14px}.via-editor .location{margin-top:12px}.pick-button{font-size:13px;margin:6px 0}.map-pick-status{padding:12px;background:#fff2d8;font-size:15px;margin-bottom:10px}.voyage-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:22px 0}.voyage-summary span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.voyage-summary strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}.debug-table{max-height:360px;overflow:auto}.approach-key{border-color:#ba641f;border-top-style:dashed}.leg-summary td:first-child{min-width:150px}.location .point-label{flex-shrink:0}#locations>.location:not(:last-child){padding-bottom:12px;border-bottom:1px solid var(--line)}.intro{font-size:16px}#debugSummary p{font-size:14px}@media(max-width:740px){.voyage-summary{grid-template-columns:1fr}.map-pick-status{margin:10px 5px}.via-editor{padding:10px}}

/* V0.5: preserve operations layout; compact discovery and diagnostic states. */
.search-heading,.search-empty{padding:10px 12px;font-size:14px;color:#526977}.debug-json,#failureDetail{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;font-size:12px;background:#f2f6f8;padding:12px}#failureDiagnostics{margin-top:12px;font-size:14px}#stopActions{display:flex;gap:8px}#stopActions[hidden],.location[hidden]{display:none}.options>label{display:block;margin:10px 0 5px}.options>input:not([type=checkbox]),.options>select{width:100%;box-sizing:border-box;padding:9px;border:1px solid #bccfd7;border-radius:4px;background:white;color:#183343}#failureDiagnostics summary{cursor:pointer;color:#9d481e}

/* V0.6 adds compact profile controls without changing the routing workspace. */
.language-control{font-size:14px;letter-spacing:0;display:flex;gap:8px;align-items:center}.language-control select{max-width:180px;padding:7px;background:#fff;color:var(--ink);border:1px solid #9fb4bd;border-radius:4px}.vessel-profile{border-top:1px solid var(--line);padding:12px 0}.vessel-profile h3{font-size:16px;margin:10px 0}.vessel-profile label{display:block;font-size:14px;line-height:1.5}.vessel-profile input,.vessel-profile select{width:100%;padding:9px 7px;margin:5px 0 9px;border:1px solid #bfced5;border-radius:4px;background:white;color:var(--ink);min-width:0}.vessel-profile small{display:block;color:var(--muted);font-size:12px}.profile-basic,.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.profile-basic>label:first-child{grid-column:1/-1}.vessel-profile summary{font-size:14px;cursor:pointer}.vessel-profile [hidden]{display:none!important}#vesselErrors{font-size:14px;color:#9d431d}.vessel-result{border-top:1px solid var(--line);padding-top:12px}.vessel-result h3{font-size:16px}.vessel-result>p{font-size:14px}.vessel-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.vessel-result-grid span{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}.vessel-result-grid strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}@media(max-width:740px){header{height:auto;min-height:88px;gap:12px;flex-wrap:wrap;padding:15px}.header-right{flex-wrap:wrap;gap:14px}.vessel-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:360px){.profile-grid,.profile-basic,.vessel-result-grid{grid-template-columns:1fr}}

/* V0.5.1 passage assessment uses text labels as well as colour. */
.passage-state{padding:.7rem;border-left:4px solid #647481;background:#f1f4f5}.passage-green{border-color:#39744c}.passage-amber{border-color:#af7416;background:#fff5df}.passage-red{border-color:#b63c38;background:#fff0ee}.passage-item{border-top:1px solid #d7e0e3;padding:.8rem 0;font-size:.875rem}.passage-item p{margin:.35rem 0}#blockedLegs{padding:1rem;background:#fff6f4}#manualRestrictionPanel input:not([type=checkbox]),#manualRestrictionPanel select,#voyageNote{width:100%;box-sizing:border-box;margin:.3rem 0 .8rem;font:inherit;padding:.5rem}#manualRestrictionPanel>label{display:block;font-size:.875rem}#passageStatus{font-size:.875rem}
