:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#143643;background:#eef3f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:680px;margin:auto;padding:28px 22px 32px}header{display:flex;align-items:center;gap:12px}.logo{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#143643;color:white;font-size:28px}small{font-size:10px;letter-spacing:1.8px;font-weight:700}header small{color:#64808b;font-size:8px}h1{font-size:20px;margin:4px 0}#clock{margin-left:auto;color:#64808b;font-size:12px}.intro{padding:35px 0 23px}.tag{color:#397b83;font-size:12px;font-weight:700}h2{font-size:32px;line-height:1.32;letter-spacing:-1.3px;margin:12px 0}.intro p{color:#68818b;font-size:14px}nav,.segmented{display:flex;gap:5px;padding:5px;background:#dfe8ea;border-radius:14px;margin-bottom:20px}button{font:inherit;cursor:pointer;border:0}nav button,.segmented button{flex:1;background:transparent;padding:13px 5px;color:#5b7580;border-radius:10px;font-weight:600}nav .active,.segmented .active{background:white;color:#143643;box-shadow:0 2px 5px #1636430b}.card{background:white;border:1px solid #e0e9ec;border-radius:20px;padding:24px;margin-bottom:18px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}h3{font-size:17px;margin:0}.section-title span{font-size:10px;letter-spacing:1px;color:#75939d}.route{display:grid;grid-template-columns:1fr 34px 1fr;gap:10px;align-items:start}label{display:block;font-size:13px;font-weight:600;color:#47636f;margin-bottom:17px;min-width:0}input,select{width:100%;min-width:0;border:1px solid #d9e4e7;border-radius:10px;background:#f8fafb;color:#153b49;padding:14px 12px;font:inherit;font-size:16px;margin-top:8px}input:focus,select:focus{outline:2px solid #549fa8;outline-offset:1px}.swap{border-radius:50%;background:#edf4f4;color:#4c8890;margin-top:34px;width:34px;height:34px;font-size:23px}.hint,.footnote{font-size:12px;color:#7a9099;line-height:1.65;font-weight:400}.hint{margin:-3px 0 18px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.unit{position:relative}.unit input{padding-right:54px}.unit span{position:absolute;right:14px;top:25px;font-size:12px;color:#83979f}.primary{display:flex;justify-content:space-between;width:100%;background:#167d86;color:white;padding:17px 18px;border-radius:12px;font-size:15px;font-weight:700}.primary:hover{background:#106c74}.error{color:#ba3f36;font-size:13px;margin:12px 0 0}.error:empty{display:none}.result{background:#143643;color:white;border-radius:20px;padding:27px 25px;position:relative;overflow:hidden}.result:after{content:"";position:absolute;width:170px;height:170px;border:1px solid #ffffff0d;border-radius:50%;right:-75px;top:-75px;box-shadow:0 0 0 26px #ffffff04,0 0 0 52px #ffffff03;pointer-events:none}.result small{color:#7bb6bd}.result h3{margin:16px 0 8px;font-weight:500;font-size:14px}.big{font-size:52px;letter-spacing:-2px;font-weight:700}.result p{font-size:13px;color:#a6c0ca}.result-bottom{border-top:1px solid #ffffff20;padding-top:19px;margin-top:25px;display:flex;justify-content:space-between;font-size:13px}.result-note{font-size:11px!important;margin-bottom:0}.footnote{margin:15px 5px 25px}footer{display:flex;justify-content:space-between;font-size:11px;color:#80969f;border-top:1px solid #d8e3e7;padding-top:20px}.hidden{display:none!important}.coordinate-row{border-top:1px solid #e5ecef;padding:18px 0 5px}.coordinate-row h4{margin:0 0 12px;font-size:14px}.fields{display:grid;grid-template-columns:1.1fr 1.2fr 1.2fr 1fr;gap:8px}.fields label{font-size:11px}.fields input,.fields select{padding:12px 7px}.fields.dmm{grid-template-columns:1fr 1.5fr 1fr}.coord-result small{color:#67919d}.coord-result h3{margin:15px 0 20px}.coord-result>div{font-size:21px;font-variant-numeric:tabular-nums;padding:12px 0;overflow-wrap:anywhere}.secondary{padding:13px;border-radius:10px;background:#eaf3f3;color:#1c7880;font-weight:600;width:100%;margin:14px 0}.secondary:disabled{opacity:.5}.coord-result .hint{margin:0}@media(max-width:390px){main{padding:22px 15px}.card{padding:20px 16px}h2{font-size:29px}.fields{gap:5px}.fields input,.fields select{font-size:15px}.route{gap:5px;grid-template-columns:1fr 28px 1fr}.swap{width:28px;height:28px}select{padding-left:8px}}
.distance-summary{display:flex;align-items:center;justify-content:space-between;background:#edf6f6;border:1px solid #d4e8e9;border-radius:12px;padding:18px;margin:3px 0 12px;gap:12px}.distance-summary small{color:#68919b;font-size:9px}.distance-summary p{margin:6px 0 0;font-size:13px;color:#47717a}.distance-summary strong{font-size:28px;color:#167d86;white-space:nowrap}.distance-summary strong span{font-size:12px;font-weight:500}.route-hint{margin:0 0 12px}.coordinate-details{margin-bottom:22px;font-size:12px;color:#64828c}.coordinate-details summary,.weather-more summary{cursor:pointer;padding:8px 0}.coordinate-details>div{background:#f7fafb;padding:12px;border-radius:10px}.coordinate-details p{margin:6px 0;color:#6e8993}.coordinate-details a,.source-link{color:#277e86;text-decoration:none;font-size:12px}.coordinate-details>div>div+div{margin-top:16px}.weather-card{margin-top:18px}.weather-card .section-title{margin-bottom:12px}.refresh{background:#eaf3f3;color:#277e86;border-radius:9px;padding:8px 11px;font-size:12px}.refresh:disabled{opacity:.5}.weather-message{margin:22px 0!important}.weather-current{margin:22px 0 15px;padding:18px;border-radius:12px;background:#edf6f6}.weather-period{font-size:12px;color:#64828c;margin-bottom:9px}.weather-values{font-size:18px;color:#143643;font-weight:650;line-height:1.7;overflow-wrap:anywhere}.weather-row{border-top:1px solid #e5ecef;padding:14px 0 8px}.weather-row .weather-values{font-size:15px}.weather-more{font-size:12px;color:#64828c;margin-bottom:16px}.weather-note{font-size:11px;color:#80969f;line-height:1.7;margin-bottom:0}#weatherTimestamp{margin:16px 0 10px;font-size:11px}@media(max-width:390px){.weather-values{font-size:16px}.distance-summary strong{font-size:25px}.route select{font-size:14px}}
/* Compact first screen: plan and arrival remain together on mobile. */
main{padding-top:18px}header{margin-bottom:18px}nav{margin-bottom:14px}nav button{padding:10px 5px}#eta>.card:first-child{padding:18px 20px;margin-bottom:12px}#eta>.card:first-child .section-title{margin-bottom:14px}.fixed-route{grid-template-columns:1fr 24px 1.4fr;align-items:start;gap:8px}.fixed-route label{margin-bottom:8px}.fixed-origin{font-size:16px;color:#143643;background:#f8fafb;border:1px solid #d9e4e7;border-radius:10px;padding:12px}.fixed-route select{padding:12px 8px}.route-arrow{margin-top:34px;color:#73969c}.distance-summary{padding:10px 14px;margin:4px 0 12px}.distance-summary>span{font-size:12px;color:#47717a}.distance-summary strong{font-size:24px}#eta>.card:first-child>label{margin-bottom:8px}#eta>.card:first-child .unit input{padding-top:12px;padding-bottom:12px}#eta>.card:first-child .unit span{top:23px}#eta>.card:first-child>.hint{font-size:10px;margin:0 0 8px}#calculate{padding:12px 15px;font-size:14px}.result{padding:18px 22px}.result h3{margin:10px 0 4px}.big{font-size:46px}.result p{margin:6px 0}.result-bottom{margin-top:12px;padding-top:12px}.result-note{margin-top:8px!important}.weather-card{margin-top:14px}footer{margin-top:20px}@media(max-width:390px){main{padding:14px 14px 24px}header{margin-bottom:12px}#eta>.card:first-child{padding:15px}.result{padding:16px 18px}.fixed-route select{font-size:14px}.big{font-size:42px}}
/* Clear arrival hierarchy and a single-line marine summary. */
.result{background:#102f3c;padding:20px 22px;border:1px solid #234853}.result>small{color:#b4dce1;font-size:13px;letter-spacing:.5px}.result h3{color:#d1e4e8;font-size:15px;margin:12px 0 5px}.big{font-size:58px;line-height:1.15;letter-spacing:0;font-variant-numeric:tabular-nums;color:#fff}.result #arrivalDate{font-size:13px;color:#bbd1d9;margin:8px 0 15px}.result-bottom{align-items:center;background:#ffffff0b;border:0;border-radius:10px;padding:13px 14px;margin-top:10px}.result-bottom>span{color:#b8cfd5;font-size:13px}.result-bottom strong{font-size:19px;color:#fff}.result-note{color:#8fadb8!important;font-size:10px!important;margin-top:10px!important}.weather-current{padding:14px 10px;margin:17px 0 0}.weather-values{white-space:nowrap;overflow-wrap:normal;letter-spacing:-.35px;font-size:17px;line-height:1.5}.weather-card{padding:18px 20px}.weather-period{margin-bottom:6px}.weather-card .tag{font-size:11px}@media(max-width:390px){.result{padding:18px}.big{font-size:52px}.result-bottom strong{font-size:17px}.weather-card{padding:16px}.weather-values{font-size:15px}.route select{font-size:13px}}
.result{padding:17px 20px}.result>small{font-size:14px;letter-spacing:0}.result h3{font-size:14px;margin:9px 0 0}.result .current-time{color:#a8c4cd;font-size:12px;margin:10px 0 6px}.eta-inline{display:flex;align-items:baseline;gap:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.eta-inline #arrival{font-size:42px;line-height:1.12;letter-spacing:0;color:#fff}.eta-divider{font-size:25px;color:#6f939f;font-weight:300}.eta-inline #duration{font-size:22px;color:#d3f0ed;line-height:1.2}@media(max-width:390px){.result{padding:15px 18px}.eta-inline{gap:10px}.eta-inline #arrival{font-size:38px}.eta-inline #duration{font-size:19px}}
.land-plan{padding:18px 20px;margin-bottom:12px}.land-plan .section-title{margin-bottom:14px}.land-time{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#47636f;padding:8px 4px 16px}.land-time strong{font-size:19px;color:#167d86}#landCalculate{padding:12px 15px;font-size:14px}.eta-inline #landArrival{font-size:42px;line-height:1.12;color:#fff}.eta-inline #landDuration{font-size:22px;color:#d3f0ed}@media(max-width:390px){.land-plan{padding:15px}.eta-inline #landArrival{font-size:38px}.eta-inline #landDuration{font-size:19px}}

.departure-note{font-size:11px;font-weight:400;color:#a8c4cd;white-space:normal}
