:root{--ink:#183c45;--muted:#6d8184;--paper:#f7f7f0;--line:#dce3dc;--accent:#c4d99a;--rust:#ae6749;--nav:#193943;--shadow:0 16px 55px #142d3920;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--paper);overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;transition:background .15s,transform .15s;border:0;color:inherit}button:hover{filter:brightness(.96)}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #ba794d;outline-offset:3px}button:disabled{opacity:.4;cursor:not-allowed}button:disabled:active{transform:none}a{color:inherit}button.primary{background:var(--ink);color:#fff;padding:16px 20px;border-radius:5px;font-weight:600;display:flex;justify-content:space-between;align-items:center}.primary span{font-size:21px;color:var(--accent)}button.secondary{background:#edf0e7;border:1px solid #d5ddd1;border-radius:5px;padding:12px 16px;font-size:13px}.full{width:100%;margin-top:10px}.text-btn{background:none;padding:8px 0;font-size:11px;color:#526e73}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.8px;line-height:1.8}.topbar{height:77px;background:var(--nav);color:#edf4ec;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:relative;z-index:10;border-bottom:1px solid #ffffff15;gap:20px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;flex-shrink:0}.brand>span:last-child{font-size:12px;letter-spacing:3px;font-weight:350;line-height:1.6}.brand b{display:block;font-size:9px;letter-spacing:2.1px}.brand-icon{border:1px solid #b2c89a55;width:43px;height:42px;display:flex;justify-content:center;align-items:center;font:italic 19px Georgia;color:#d6e5bd}.brand-icon span{font-size:29px;margin:0 -4px;color:#759189}.topbar nav{display:flex;height:100%;gap:8px}.topbar nav button{padding:0 22px;background:transparent;color:#a6bec0;font-size:13px;position:relative;white-space:nowrap}.topbar nav button span{font-size:18px;margin-right:9px}.topbar nav button.active{color:#e6f0d5}.topbar nav button.active:after{content:'';position:absolute;height:3px;background:#c9dea5;bottom:0;left:20px;right:20px}.top-actions{display:flex;align-items:center;gap:10px}.version{font-size:8px;letter-spacing:1.4px;color:#92adb0;margin-right:8px;white-space:nowrap}.version i{font-style:normal;border:1px solid #799194;padding:4px;margin-left:5px}.icon-btn{background:transparent;border:1px solid #6b858855;border-radius:50%;color:#c1d1d0;width:29px;height:29px;font-size:16px}.dev-btn{background:transparent;font-size:9px;letter-spacing:.8px;color:#8ea6a8;padding:10px}.dev-btn.active{color:#d1e5ac}.view{position:absolute;inset:77px 0 0;display:none}.view.active{display:flex}#chart-view{background:#e1ebe7}.map-shell{flex:1;position:relative;min-width:0;overflow:hidden}#chart{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.chart-title{position:absolute;top:37px;left:40px;pointer-events:none}.chart-title .eyebrow{color:#557174}.chart-title h1{font-family:Georgia,serif;font-size:clamp(25px,2.55vw,42px);letter-spacing:-1.5px;line-height:1.12;font-weight:400;margin:14px 0 13px}.chart-title p{font-size:11px;color:#617e81}.map-toolbar{position:absolute;top:22px;right:20px;display:flex;flex-wrap:wrap;gap:0;background:#f9faf3e8;border:1px solid #c7d5cc;border-radius:6px;box-shadow:0 4px 20px #2547440a;max-width:calc(100% - 365px)}.map-toolbar button{background:transparent;font-size:10px;padding:10px 11px}.map-toolbar button.active{background:#d9e4c4}.map-toolbar i{width:1px;background:#d6dfd5;margin:8px 0}.map-instruction{position:absolute;left:40px;bottom:72px;color:#6e8588;font-size:10px;background:#edf4efcf;padding:8px 10px;border-radius:3px;max-width:70%}.map-credit{position:absolute;left:25px;bottom:11px;display:flex;align-items:center;gap:7px;font-size:8px;color:#607d80}.map-credit button{font-size:8px;padding:0;background:none;text-decoration:underline}.dot{width:5px;height:5px;border-radius:50%;background:#719687}.planner{width:365px;background:var(--paper);border-left:1px solid #d8e0d8;display:flex;flex-direction:column;flex-shrink:0;box-shadow:-10px 0 35px #1f483206;z-index:2}.mission-heading{padding:29px 25px 21px}.mission-heading .eyebrow{color:#7a8e88;font-size:9px}.badge{font-size:8px;background:#e7ebdf;color:#5c755e;padding:6px 8px;border-radius:3px;float:right;letter-spacing:.8px}.mission-heading h2{font-family:Georgia,serif;font-size:30px;font-weight:400;letter-spacing:-.6px;margin:13px 0 6px}.mission-heading h2 span{font-family:system-ui;font-weight:200;color:#76928d;margin:0 6px}.mission-heading p{margin:0;font-size:11px;color:var(--muted)}.planner-tabs{display:flex;padding:0 25px;border-bottom:1px solid var(--line);gap:25px}.planner-tabs button{font-size:11px;background:none;padding:11px 0 12px;color:#8a9992;border-bottom:2px solid transparent}.planner-tabs button.active{color:var(--ink);border-color:var(--ink)}.planner-scroll{overflow:auto;padding:0 25px 20px;flex:1;scrollbar-width:thin;scrollbar-color:#bfcbbc transparent}.plan-panel{display:none}.plan-panel.active{display:block}.plan-hero{display:grid;grid-template-columns:1fr 1fr;padding:22px 0 24px;gap:20px}.plan-hero>div+div{border-left:1px solid #d6dfd2;padding-left:23px}.plan-hero span{display:block;font-size:8px;letter-spacing:1px;color:#7c9186;margin-bottom:6px}.plan-hero strong{font-weight:400;font-size:32px;letter-spacing:-1.2px;font-variant-numeric:tabular-nums}.plan-hero small{font-size:11px;letter-spacing:0;color:#7c9186}.field-label{font-size:10px;display:flex;justify-content:space-between;align-items:center;margin:0 0 10px}.field-label>span{font-weight:650}.speed-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 20px}.speed-presets button{border:1px solid #dbe2d6;border-radius:4px;background:transparent;font-size:9px;color:#7b8d80;padding:10px 0}.speed-presets button>span{display:block;font-size:18px;color:var(--ink);margin-bottom:4px}.speed-presets small{font-size:10px;font-weight:400;color:#7d8c7f}.speed-presets button.selected{background:#e6ecdb;border-color:#c2d1b0}.two-fields{display:grid;grid-template-columns:.85fr 1.3fr;gap:12px;margin-bottom:23px}.two-fields label{font-size:9px;color:#72877c;display:block}.two-fields input,.two-fields select{display:block;width:100%;padding:10px 8px;margin-top:8px;color:var(--ink);background:#fdfdf7;border:1px solid #dbe2d5;border-radius:4px;font-size:11px;min-width:0}.two-fields.compact{grid-template-columns:1fr 1fr;margin:17px 0}.compact input{padding:7px 9px}input[type=range]{accent-color:#416b62;width:100%;height:5px;margin:7px 0 10px;cursor:pointer}.range-labels{display:flex;justify-content:space-between;font-size:8px;color:#8a9b91}.forecast-list{border-top:1px solid var(--line);padding:15px 0 4px}.forecast-list>div{display:flex;justify-content:space-between;font-size:10px;margin-bottom:11px}.forecast-list span{color:#788a80}.forecast-list b{font-weight:550}.plan-status{padding:11px 12px;background:#e9efdf;border-radius:4px;font-size:10px;line-height:1.6;border-left:2px solid #93ac77}.plan-status.warn{background:#f1e7d8;border-color:#bd9060}.plan-status.error{background:#f4e1d9;border-color:#b16a4d}.compare-line{display:flex;justify-content:space-between;margin-top:8px}.saved-plans{display:flex;gap:5px;flex-wrap:wrap}.saved-plans button{background:#e7ecdf;border:1px solid #d1dcc3;padding:6px 8px;font-size:9px;border-radius:3px}.explain{font-size:9px;color:#7a8f83;line-height:1.65;border-top:1px solid #e1e7dc;margin-top:15px;padding-top:13px}.explain summary{cursor:pointer}.plan-bottom{padding:12px 25px 10px;border-top:1px solid var(--line);background:#f7f7f0;box-shadow:0 -8px 20px #f7f7f060}.plan-bottom .primary{margin:0;font-size:12px}.plan-bottom p{font-size:8px;text-align:center;color:#89998f;margin:10px 0 0}.panel-intro{font-size:11px;line-height:1.8;color:#70867d;margin:20px 0}.route-actions{display:flex;gap:8px;margin:12px 0}.route-actions button{font-size:11px;border:1px solid #d6dece;background:#edf1e6;border-radius:4px;padding:9px}.waypoint{padding:13px 0;border-bottom:1px solid var(--line)}.waypoint-title{display:flex;align-items:center;gap:9px;font-size:11px;margin-bottom:10px}.waypoint-title>span{border:1px solid #b3c2ac;border-radius:50%;font-size:9px;min-width:20px;height:20px;display:flex;align-items:center;justify-content:center}.waypoint.active .waypoint-title{font-weight:700}.waypoint-fields{display:flex;gap:5px}.waypoint-fields label{font-size:8px;color:#7b8c80;flex:1;min-width:0}.waypoint input{width:100%;font-size:10px;padding:6px 3px;border:1px solid #d7dfd1;border-radius:3px;background:#fbfcf5;margin-top:4px}.waypoint small{font-size:9px;color:#7c8c80;display:block;margin-top:6px}h3{font-family:Georgia,serif;font-weight:400;font-size:23px;margin:22px 0 10px}#panel-weather>.eyebrow{margin-top:22px;color:#819477;font-size:8px}.weather-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e5d9;padding:15px 0;font-size:11px}.weather-row b{font-size:14px;font-weight:500}.weather-row small{display:block;color:#819180;font-size:9px;margin-top:4px}.weather-row .weather-symbol{font-size:23px;color:#879c73}.info-box{background:#eaf0e3;border-radius:4px;padding:13px;font-size:10px;line-height:1.7;margin:16px 0;color:#657d68}.alternate-card{border:1px solid #d9e1d1;border-radius:5px;padding:16px}.alternate-card b{font:21px Georgia}.alternate-card span{display:block;font-size:9px;margin-top:7px;color:#809077}.alternate-card p{font-size:11px;line-height:1.5}.alternate-card button{background:none;padding:0;font-size:10px;text-decoration:underline}
#bridge-view{background:#668f99}#world{width:100%;height:100%;display:block;touch-action:none}.bridge-title{position:absolute;top:34px;left:37px;pointer-events:none;color:#173d45;text-shadow:0 1px 10px #d0e3e055}.bridge-title .eyebrow{font-size:9px}.bridge-title h1{font-size:39px;font-weight:400;letter-spacing:-1.8px;margin:7px 0;font-family:Georgia,serif}.bridge-title em{font-weight:300;opacity:.7}.bridge-title p{font-size:10px;opacity:.75}.weather-strip{position:absolute;top:37px;left:50%;transform:translateX(-50%);font-size:10px;color:#31535c;display:flex;gap:20px;white-space:nowrap;background:#dae8e355;padding:10px 17px;border:1px solid #ecf6f14d;border-radius:5px;backdrop-filter:blur(10px)}.weather-strip b{font-weight:600;margin-left:6px}.view-controls{position:absolute;top:27px;right:26px;display:flex;gap:8px}.view-controls button{background:#f4f6eade;border:1px solid #cbdccdbb;border-radius:5px;padding:10px 12px;font-size:10px}.view-controls kbd{margin-left:8px;font-size:8px;color:#819585}.glass-panel{position:absolute;right:26px;top:78px;width:310px;background:#f6f7eeeb;border:1px solid #e7eddf9e;border-radius:7px;box-shadow:var(--shadow);backdrop-filter:blur(15px);max-height:calc(100% - 270px);overflow:auto;scrollbar-width:thin}.glass-panel.collapsed{display:none}.panel-head{padding:16px 18px;display:flex;justify-content:space-between;font-size:11px;font-weight:600;border-bottom:1px solid #d5e0d2}.panel-head button{background:none;color:#789284;font-size:20px;line-height:12px}#harbor-content{padding:15px 18px;font-size:11px;line-height:1.7}.harbor-intro{font-size:11px;color:#6c8277;margin:0 0 13px}.check-action{display:flex;align-items:center;justify-content:space-between;padding:10px 0;gap:12px;border-bottom:1px solid #dde5d6}.check-action span{color:#6f8376;font-size:10px}.check-action b{display:block;color:#2c4d47;font-weight:500;font-size:11px}.check-action button{background:#e5ecd9;border:1px solid #cbd9bd;border-radius:4px;padding:8px 10px;font-size:10px;white-space:nowrap}.check-action.done button{background:#d4e5c1;color:#446142}.action-note{font-size:9px;color:#859581;margin-top:12px}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.action-grid button{background:#e6edde;border:1px solid #d1ddc8;padding:10px 5px;border-radius:4px;font-size:10px}.action-grid .active{background:#cddfba}.pause-pill{position:absolute;left:50%;bottom:175px;transform:translateX(-50%);background:#183c45e8;color:#dce8db;box-shadow:var(--shadow);display:flex;align-items:center;gap:15px;padding:9px 10px 9px 17px;border-radius:30px;font-size:11px;white-space:nowrap}.pause-pill button{border-radius:22px;padding:8px 13px;background:#d5e6b8;color:#284d46;font-size:10px}.pause-pill>span{opacity:.7}.dock-helper{position:absolute;left:28px;bottom:173px;width:230px;background:#f4f6e9ed;border:1px solid #dfebd3aa;border-radius:6px;padding:12px;box-shadow:var(--shadow)}.dock-helper .eyebrow{font-size:8px}#mini-chart{display:block;width:100%;height:156px;margin-top:7px;border-radius:4px}#dock-readout{font-size:9px;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding-top:9px;color:#667b64}.ok{color:#4b7750}.not-ok{color:#a97049}.helm{position:absolute;bottom:24px;left:28px;right:28px;background:#163841f5;color:#e2ecdf;border:1px solid #adc7b625;border-radius:8px;box-shadow:0 8px 35px #12313c30;backdrop-filter:blur(16px);overflow:hidden}.instruments{display:flex;padding:17px 22px;align-items:center;gap:34px}.speed-instrument{min-width:94px;display:flex;flex-direction:column}.speed-instrument strong{font-size:42px;line-height:1;font-weight:300;letter-spacing:-1.6px;font-variant-numeric:tabular-nums}.speed-instrument>span{font-size:7px;letter-spacing:1.2px;color:#88a6a2;margin-top:7px}.instrument{border-left:1px solid #a4bdb526;padding-left:25px;min-width:100px;display:flex;flex-direction:column}.instrument>span{font-size:7px;color:#8aa69e;letter-spacing:1.2px}.instrument b{font-size:25px;font-weight:350;font-variant-numeric:tabular-nums;line-height:1.6}.instrument b small{font-size:11px;color:#abc3b3}.instrument i{font-style:normal;font-size:8px;color:#91aca3}.time-instrument{flex:1;min-width:120px}.time-instrument i{max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.helm-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.helm-controls button{background:#345259;color:#d0e0d0;border:1px solid #829b8538;border-radius:4px;padding:10px 12px;font-size:11px}.helm-controls #autopilot{background:#294c52;min-width:95px}.helm-controls #autopilot.on{color:#d2e9a8;border-color:#9bb67877}.helm-controls #autopilot span{margin-left:5px;font-size:9px}.warp{display:flex;border:1px solid #adc49933;border-radius:4px;overflow:hidden}.warp button{background:transparent;border:0;border-radius:0;font-size:10px;padding:10px}.warp button.active{background:#c8dda6;color:#25463e}.control-row{display:flex;align-items:center;gap:10px;border-top:1px solid #779b8b24;padding:10px 22px;background:#13323b77}.control-label{font-size:8px;color:#88a59a;white-space:nowrap}.control-label b{display:inline-block;min-width:24px;color:#d1e3bd;margin-left:6px}.control-row input[type=range]{width:150px;margin:0;accent-color:#c5dca5}.control-row button{background:#2e4c50;border:1px solid #90a98c22;color:#dce8ca;border-radius:3px;height:24px;min-width:27px;font-size:11px}.keyboard-hint{font-size:8px;color:#8dab9e;margin-left:auto;word-spacing:3px;white-space:nowrap}.keyboard-hint kbd{background:#28484d;padding:3px 4px;border-radius:2px;margin:0 3px 0 10px;letter-spacing:1px;font-size:8px}#motor-panel{border-top:1px solid #66877744;display:flex;gap:30px;padding:13px 25px;align-items:center}#motor-panel[hidden]{display:none}#motor-panel label{font-size:9px;display:flex;gap:15px;align-items:center;flex:1}#motor-panel span{font-size:9px;min-width:150px}.bridge-warning{position:absolute;bottom:178px;right:28px;max-width:350px;font-size:10px;color:#654b35;background:#f1e6caed;padding:10px 14px;border-radius:4px;display:none}.bridge-warning:empty{display:none!important}.log-shell{max-width:1080px;width:100%;margin:0 auto;padding:55px 55px 80px;overflow:auto}.log-shell h1{font:43px/1.1 Georgia;letter-spacing:-1px;margin:17px 0}.log-shell>p{font-size:13px;color:#7f8d7d}.log-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:35px}.log-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:35px 0}.log-stat{padding:20px;background:#e9eedf;border:1px solid #dce5d0;border-radius:5px}.log-stat span{font-size:9px;color:#829174;display:block}.log-stat b{display:block;font-size:26px;font-weight:400;margin-top:8px}.log-table{width:100%;border-collapse:collapse;font-size:12px}.log-table td,.log-table th{text-align:left;border-bottom:1px solid #dce4d4;padding:12px 10px}.log-table th{font-size:9px;letter-spacing:.6px;color:#7c8f6e;font-weight:500}.event{padding:12px 0;border-bottom:1px solid #e1e7d9;display:flex;gap:20px;font-size:11px;line-height:1.7}.event time{font-variant-numeric:tabular-nums;color:#8c997e}.result-card{padding:28px;background:#e0eacb;border:1px solid #bacf9a;border-radius:6px;margin:30px 0}.result-card h2{font:31px Georgia;margin:8px 0 13px}.result-card p{font-size:12px;line-height:1.8}.result-pay{font-size:43px;font-weight:300}.result-card .eyebrow{font-size:9px}.result-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.result-tags span{background:#f2f6e7;padding:7px 10px;font-size:10px;border-radius:3px}#dev-panel{position:absolute;z-index:45;top:76px;right:0;width:325px;background:#17333ded;color:#d4e5d5;box-shadow:var(--shadow);border-left:1px solid #89a67e55;backdrop-filter:blur(18px);padding:0 18px 18px}#dev-panel[hidden]{display:none}#dev-panel .panel-head{padding:18px 0;border-color:#91ac8644;font-size:10px}#dev-panel p{font-size:10px;line-height:1.7;color:#a9c2ac}.dev-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dev-grid button{background:#365548;border:1px solid #a7bd7355;padding:10px 8px;border-radius:3px;font-size:10px;color:#cfe4b0}#dev-panel .text-btn{color:#b5c6a0}#dev-readout{font-size:9px;line-height:1.7;color:#b0c6ac;white-space:pre-wrap}#toast{position:fixed;z-index:100;bottom:16px;left:50%;transform:translate(-50%,25px);opacity:0;pointer-events:none;background:#13343e;color:#e7eedb;padding:14px 22px;border-radius:5px;font-size:12px;line-height:1.6;max-width:min(650px,85vw);transition:opacity .2s,transform .2s;box-shadow:var(--shadow)}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #cbd9bf;border-radius:10px;box-shadow:0 20px 100px #081e2d55;background:#f7f8ee;color:var(--ink);padding:35px 40px;width:min(690px,92vw);max-height:85vh;overflow:auto}dialog::backdrop{background:#16364199;backdrop-filter:blur(4px)}.modal-close{position:absolute;right:16px;top:12px;font-size:26px;background:none;color:#7f9579}dialog h2{font:32px/1.2 Georgia;margin:8px 0 20px}dialog p{font-size:12px;line-height:1.8;color:#647d68}dialog li{font-size:12px;line-height:1.9}dialog a{color:#366d60}dialog table{font-size:11px;width:100%;border-collapse:collapse}dialog td,dialog th{text-align:left;padding:8px;border-bottom:1px solid #dce5d0}dialog .controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;font-size:11px;margin:20px 0}dialog .controls-grid>div{padding:10px;background:#e9efdf;border-radius:3px}dialog kbd{display:inline-block;min-width:54px;font-size:10px;color:#2f5a4d}dialog label{font-size:12px;display:flex;gap:15px;align-items:center;margin:14px 0}#loading{position:fixed;inset:0;z-index:200;background:#193943;color:#d7e7c8;display:flex;flex-direction:column;align-items:center;justify-content:center}#loading .loadmark{font:italic 54px Georgia;letter-spacing:-8px}#loading .loadmark span{color:#789689;margin:0 8px}#loading p{font-size:13px;letter-spacing:1px;margin-top:32px}#loading small{font-size:10px;color:#8daea8;letter-spacing:2px}.danger-btn{background:#ead7c8!important}.hidden{display:none!important}body.ui-hidden .bridge-title,body.ui-hidden .weather-strip,body.ui-hidden .glass-panel,body.ui-hidden .dock-helper{display:none!important}
@media(min-width:1500px){.planner{width:405px}.planner-scroll,.mission-heading,.plan-bottom{padding-left:30px;padding-right:30px}.chart-title{top:45px;left:50px}.plan-hero{padding:30px 0}.speed-presets button{padding:13px 0}.two-fields{margin-bottom:27px}.field-label{font-size:11px}.forecast-list>div{font-size:11px}}
@media(max-width:1100px){.topbar{padding:0 18px;gap:12px}.topbar nav{gap:0}.topbar nav button{padding:0 15px}.version{display:none}.planner{width:330px}.planner-scroll{padding:0 20px 15px}.mission-heading{padding:24px 20px 18px}.plan-bottom{padding:12px 20px}.chart-title{left:26px;top:70px}.chart-title h1{font-size:31px}.map-toolbar{top:17px;right:auto;left:20px;max-width:calc(100% - 40px)}.map-toolbar button{padding:9px 8px}.instruments{gap:20px;padding:15px 18px}.instrument{padding-left:18px}.weather-strip{top:132px;left:38px;transform:none;gap:12px}.keyboard-hint{display:none}.time-instrument{min-width:100px}.helm-controls{gap:6px}.helm-controls button{padding:9px}.helm{left:20px;right:20px;bottom:18px}.dock-helper{left:20px}.glass-panel{right:20px;width:285px}.control-row input[type=range]{width:200px}.control-row>#split-motors{margin-left:auto}}
@media(max-width:780px){.brand>span:last-child{font-size:10px;letter-spacing:1px}.brand b{font-size:7px;letter-spacing:1px}.brand-icon{width:31px;height:31px;font-size:14px}.brand-icon span{font-size:22px}.topbar{height:62px;padding:0 12px;gap:5px}.topbar nav button{padding:0 10px;font-size:10px}.topbar nav button span{display:none}.top-actions{gap:5px}.icon-btn{width:25px;height:25px;font-size:13px}.view{top:62px}.planner{width:300px}.mission-heading h2{font-size:26px}.chart-title h1{font-size:26px}.chart-title p{display:none}.map-toolbar{gap:0;left:12px;max-width:calc(100% - 24px)}.map-toolbar button{padding:8px 6px;font-size:9px}.map-toolbar button>span{display:none}.chart-title{left:19px;top:93px}.chart-title .eyebrow{font-size:7px}.map-instruction{left:16px;font-size:8px}.map-credit{left:15px;gap:5px;font-size:7px}.bridge-title{top:20px;left:21px}.bridge-title h1{font-size:30px}.weather-strip{top:110px;left:20px;font-size:8px}.view-controls{top:20px;right:15px;gap:5px}.view-controls button{padding:9px;font-size:9px}.view-controls kbd{display:none}.glass-panel{right:15px;top:63px;width:270px}.instrument{padding-left:13px;min-width:75px}.instrument b{font-size:20px}.instrument i{font-size:7px}.speed-instrument{min-width:70px}.speed-instrument strong{font-size:34px}.instruments{gap:12px;flex-wrap:wrap}.helm-controls{margin-left:auto}.time-instrument{display:none}.control-row{padding:10px 15px;gap:8px}.control-row input[type=range]{width:150px}.dock-helper{width:185px;bottom:179px}#mini-chart{height:115px}.log-shell{padding:35px 25px}.log-shell h1{font-size:34px}.log-stats{grid-template-columns:1fr 1fr}.log-stat{padding:16px}#dev-panel{top:62px}}
@media(max-width:580px){.topbar .brand>span:last-child{display:none}.dev-btn{padding:6px;font-size:8px}.topbar nav button{padding:0 12px}.topbar nav button.active:after{left:10px;right:10px}.planner{width:52%;min-width:235px}.mission-heading{padding:18px 15px}.mission-heading .badge{display:none}.mission-heading h2{font-size:23px}.planner-tabs{padding:0 15px;gap:16px}.planner-tabs button{font-size:9px}.planner-scroll{padding:0 15px 14px}.plan-hero{gap:10px;padding:19px 0}.plan-hero strong{font-size:25px}.plan-hero>div+div{padding-left:12px}.two-fields{gap:6px}.two-fields input,.two-fields select{font-size:10px;padding:8px 3px}.plan-bottom{padding:10px 15px}.plan-bottom .primary{padding:13px;font-size:11px}.plan-bottom p{font-size:7px}.chart-title{display:none}.map-toolbar button[data-port=santa]{display:none}.map-instruction{display:none}.map-credit{font-size:0}.map-credit span{display:none}.map-credit button{font-size:7px}.map-toolbar{left:5px;max-width:calc(100% - 10px);right:5px}.map-toolbar button{padding:9px 6px}.helm{left:10px;right:10px;bottom:10px}.instruments{padding:12px;gap:9px}.instrument{padding-left:9px;min-width:64px}.speed-instrument{min-width:57px}.speed-instrument strong{font-size:29px}.instrument b{font-size:18px}.speed-instrument>span{font-size:6px}.helm-controls{width:100%;justify-content:space-between}.helm-controls #autopilot{flex:1}.control-row{gap:5px;padding:9px}.control-row input[type=range]{width:75px}.control-row button{min-width:25px}.control-label{font-size:7px}.dock-helper{bottom:206px;left:10px;width:145px}.dock-helper .eyebrow{font-size:6px}#mini-chart{height:91px}.glass-panel{width:235px;max-height:calc(100% - 290px)}.view-controls{top:17px;right:10px}.bridge-title{top:20px;left:16px}.bridge-title h1{font-size:26px}.bridge-title p{max-width:130px;font-size:8px}.weather-strip{display:none}.pause-pill{bottom:211px;left:50%;padding:7px 8px 7px 13px;font-size:10px;gap:8px}.bridge-warning{bottom:258px;right:10px;max-width:205px;font-size:8px}.log-shell{padding:30px 20px}.log-table{font-size:10px}.log-table td,.log-table th{padding:10px 5px}dialog{padding:30px 23px}dialog .controls-grid{grid-template-columns:1fr}#motor-panel{gap:10px;padding:10px}#motor-panel label{display:block}#motor-panel span{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.asset-status{position:absolute;bottom:171px;left:37px;font-size:8px;letter-spacing:1.6px;color:#e6eee7;text-shadow:0 1px 5px #18343f;pointer-events:none}
.onboard-panel{position:absolute;left:30px;bottom:28px;width:min(530px,calc(100% - 60px));padding:24px 27px;color:#e9e5d7;background:#122e38eb;backdrop-filter:blur(18px);border:1px solid #b9ccb333;border-radius:8px;box-shadow:0 12px 40px #10283230}
.onboard-panel[hidden]{display:none}.onboard-panel .eyebrow{color:#b8cbb0;font-size:9px;display:flex;gap:10px;letter-spacing:1.5px}.onboard-panel h2{font:26px Georgia;margin:12px 0}.onboard-panel p{font-size:10px;color:#adbbb7}.onboard-panel kbd{font:10px monospace;background:#47605b80;border-radius:3px;padding:4px 6px}.deck-actions{display:flex;gap:10px;margin-top:19px}.deck-actions button{font-size:11px;padding:12px 15px;flex:1}.deck-actions .primary:disabled{opacity:.4;cursor:default}.deck-places{display:flex;gap:16px;align-items:center;margin-top:17px;font-size:10px;color:#9baca5}.deck-places button{background:none;color:#d0dfbc;padding:3px 0;border-bottom:1px solid #9fad8655;font-size:10px}
body.onboard .helm,body.onboard .dock-helper,body.onboard .glass-panel,body.onboard .pause-pill,body.onboard .bridge-warning,body.onboard .weather-strip,body.onboard .asset-status{display:none!important}body.onboard .bridge-title{color:#f4efdf;text-shadow:0 2px 16px #142c35}body.onboard #harbor-toggle{display:none}.view-controls button.active{background:#d3e2b8;color:#173c3c}
@media(max-width:1100px){.view-controls{max-width:calc(100% - 210px);flex-wrap:wrap;justify-content:flex-end}.asset-status{bottom:176px;left:24px}}
@media(max-width:580px){.onboard-panel{bottom:15px;left:15px;width:calc(100% - 30px);padding:20px}.onboard-panel h2{font-size:22px}.view-controls{max-width:220px}.view-controls button{padding:8px}.asset-status{display:none}}

/* Shared depth and harbor operations, version 0.3 */
.depth-legend{position:absolute;left:26px;bottom:72px;display:flex;flex-wrap:wrap;align-items:center;gap:9px;max-width:420px;padding:11px 14px;background:#f7f9f0ed;border:1px solid #b9cfca;border-radius:5px;font-size:9px;pointer-events:none}.depth-legend[hidden]{display:none}.depth-legend b{width:100%;font-size:9px;letter-spacing:1px}.depth-legend span{display:flex;gap:5px;align-items:center}.depth-legend i{width:13px;height:8px;border:1px solid #7b9797}.depth-legend .deep{background:#cddfe5}.depth-legend .basin{background:#add9d3}.depth-legend .shallow{background:#ecdbac}.depth-legend .danger{background:#deaa91}.depth-legend small{width:100%;color:#5c7377;font-size:9px}.depth-danger{color:#a64e35!important;background:#f3e0d7!important}.info-box + .info-box{margin-top:9px}.harbor-card{border:1px solid #d5dfd7;border-radius:6px;padding:15px;margin:15px 0;background:#fcfcf7}.harbor-card.selected{border-color:#8fa890}.harbor-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.harbor-card-head h3{margin:0}.harbor-meta{font-size:11px;line-height:1.75;color:#607879}.berth-state{display:flex;flex-direction:column;gap:4px;font-size:11px;background:#edf1e4;padding:10px;border-radius:4px}.berth-spec{font-size:10px;line-height:1.6;border-bottom:1px solid #e5e9e0;padding-bottom:8px}.berth-spec b{display:block;font-weight:500;color:#698270}.booking-state{font-size:11px;line-height:1.8;border-left:2px solid #b9ce8e;padding-left:10px}.harbor-card .primary{font-size:11px;padding:12px}.harbor-card .text-btn{display:block}.harbor-live{display:flex;flex-direction:column;gap:5px;font-size:11px;background:#e7edde;padding:12px;margin-bottom:12px;border-radius:4px}.harbor-live small{font-size:9px;color:#5c7271;line-height:1.6}.grounding-card{background:#f4dfd4;color:#874d36;padding:12px;font-size:11px;border-radius:4px;margin-bottom:10px}.grounding-card p{line-height:1.6;margin-bottom:0}.depth-instrument{min-width:108px}.depth-instrument b{font-size:24px}.depth-instrument i{font-size:9px}.planner-tabs button{padding-left:5px;padding-right:5px}.helm .instruments{flex-wrap:wrap}
@media(max-width:1000px){.depth-instrument{min-width:82px}.depth-instrument b{font-size:21px}.depth-legend{left:12px;max-width:310px}.map-toolbar{max-width:calc(100% - 30px);left:15px;right:15px}.chart-title{top:88px}}
@media(max-width:650px){.depth-legend{left:6px;right:6px;bottom:55px;padding:8px;gap:5px}.depth-legend small{font-size:8px}.depth-instrument{min-width:65px}.depth-instrument b{font-size:18px}.depth-instrument i{font-size:7px}.harbor-card{padding:10px}.planner-tabs button{font-size:8px}}

/* Voyage analysis and the explicit developer workspace. */
.voyage-report{margin:35px 0}.voyage-report h2{font:32px Georgia,serif;font-weight:400}.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.report-kpis>div{border:1px solid #d5dfd7;border-radius:6px;padding:18px;background:#edf1e5}.report-kpis span{display:block;font-size:9px;letter-spacing:.8px;color:#587371}.report-kpis b{display:block;font-size:23px;font-weight:500;margin-top:10px}.report-table-scroll{overflow:auto;max-height:470px}.report-table-scroll .log-table{width:100%}.report-table-scroll small{display:block;font-size:9px;margin-top:5px;color:#718787}.report-plot{width:100%;max-height:280px;background:#edf2ec;border:1px solid #d8e1d9;border-radius:5px}.report-plot text{font:11px system-ui;fill:#52716f}.report-route{max-width:720px}.report-reserve-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;font-size:11px}.report-reserve-grid b{display:block;font-size:20px;margin-top:8px}.report-insights{padding-left:23px}.report-insights li{padding:7px 0;font-size:13px;line-height:1.7}.voyage-report .info-box{line-height:1.7}
#editor-view{background:#edf2ea}.editor-map{flex:1;min-width:0;position:relative;overflow:hidden}#editor-chart{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.editor-map-title{position:absolute;left:25px;top:25px;pointer-events:none;max-width:420px;background:#f7f9efdf;padding:15px 20px;border-radius:6px}.editor-map-title h1{font:34px Georgia;margin:7px 0}.editor-map-title p{font-size:11px;line-height:1.6;margin:6px 0;color:#5a7377}.editor-fit{position:absolute;right:20px;bottom:65px}.editor-count{position:absolute;left:24px;bottom:65px;font-size:10px;background:#f8faf0dc;padding:8px;border-radius:4px}.editor-sidebar{display:flex;flex-direction:column;width:360px;flex-shrink:0;background:var(--paper);border-left:1px solid #cbd8cc}.editor-sidebar .panel-head{padding:15px 20px;border-bottom:1px solid #d3ddd3}.editor-scroll{overflow:auto;min-height:0;padding:18px 20px}.editor-scroll label{display:block;font-size:10px;color:#5f7979;margin:0 0 12px}.editor-scroll input,.editor-scroll select{display:block;width:100%;margin-top:6px;border:1px solid #cbd7ce;background:#fffef8;color:var(--ink);border-radius:4px;padding:9px;font-size:12px}.editor-tools{display:flex;gap:6px;margin:14px 0}.editor-tools button{flex:1;padding:10px 4px;font-size:10px;background:#e0e9d2;border-radius:4px}.editor-tools button.active{background:#234750;color:white}.editor-history{display:flex;align-items:center;gap:9px}.editor-history button{font-size:22px;background:#e7eddf;padding:8px 14px;border-radius:4px}.editor-file-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.editor-file-actions button{padding:11px 8px;border:1px solid #d2ddd3;background:#edf0e7;font-size:10px;border-radius:4px}.editor-bottom{padding:13px 20px;border-top:1px solid #d5dfd5}.editor-bottom p{font-size:9px;text-align:center;color:#6c817e}.editor-scroll [hidden],#editor-form[hidden]{display:none!important}.editor-object-actions button{font-size:11px}.editor-scroll .info-box{font-size:11px;line-height:1.6}.editor-scroll .two-fields{margin-top:0}
@media(max-width:1000px){.report-kpis{grid-template-columns:repeat(2,1fr)}.editor-sidebar{width:310px}.editor-map-title{max-width:270px;left:12px;top:12px;padding:12px}.editor-map-title h1{font-size:26px}}
@media(max-width:650px){.editor-sidebar{width:245px}.editor-scroll{padding:12px}.editor-map-title{display:none}.editor-count{left:5px;right:5px;font-size:8px;bottom:110px}.editor-fit{right:5px;font-size:9px}.editor-tools{flex-wrap:wrap}.editor-tools button{font-size:9px}.editor-sidebar .panel-head{font-size:11px;padding:10px}.editor-bottom{padding:10px}.editor-bottom .primary{padding:12px;font-size:11px}.report-reserve-grid{grid-template-columns:repeat(2,1fr)}.report-kpis b{font-size:18px}}

/* Tablet controls use Pointer Events, including iPad's desktop-style Safari. */
#world,.press-control,#touch-stick{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
button{touch-action:manipulation}#touch-controls,#planner-toggle{display:none}
body.touch-ui button{min-height:44px;min-width:44px}body.touch-ui input,body.touch-ui select{min-height:44px;font-size:16px}body.touch-ui kbd,body.touch-ui .keyboard-hint{display:none}
body.touch-ui{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}body.touch-ui input,body.touch-ui textarea,body.touch-ui [contenteditable="true"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
body.touch-ui .topbar{height:64px;padding:0 12px;gap:8px}body.touch-ui .topbar nav button{padding:0 12px}body.touch-ui .brand>span:last-child,body.touch-ui .version{display:none}body.touch-ui .top-actions{gap:5px}body.touch-ui .view{top:64px}body.touch-ui .icon-btn{width:44px}
body.touch-ui #touch-controls{display:flex;position:absolute;left:20px;right:20px;bottom:190px;justify-content:space-between;align-items:flex-end;pointer-events:none;z-index:4}
.stick-wrap{display:flex;align-items:center;flex-direction:column;color:#f1f5e4;text-shadow:0 1px 4px #122e38;gap:5px;width:180px}.stick-wrap b{font-size:12px;letter-spacing:1px}.stick-wrap>span{font-size:10px;text-align:center;max-width:180px;line-height:1.4}
#touch-stick{pointer-events:auto;width:132px;height:132px;border-radius:50%;border:1px solid #d5e7cb77;background:#173c4599;position:relative;display:grid;place-items:center;box-shadow:inset 0 0 25px #112b4066}
.stick-cross{font-size:80px;font-weight:200;color:#d4e4c733;line-height:1}.stick-thumb{position:absolute;width:52px;height:52px;border:2px solid #e3edcf;border-radius:50%;background:#bed19daf;box-shadow:0 4px 14px #122e3855;pointer-events:none}
.touch-actions{display:flex;gap:8px;pointer-events:auto}.touch-actions button{background:#193d46ed;border:1px solid #b4ca9c77;border-radius:6px;color:#ecf3d9;padding:10px 13px;font-size:12px}
body.touch-ui .helm{left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));z-index:5}body.touch-ui .instruments{padding:10px 15px;gap:15px;flex-wrap:nowrap}body.touch-ui .instrument{min-width:75px;padding-left:12px}body.touch-ui .instrument b{font-size:22px}body.touch-ui .time-instrument{display:none}body.touch-ui .helm-controls{margin-left:auto;gap:5px}body.touch-ui .helm-controls button{padding:8px}body.touch-ui .helm-controls #autopilot{min-width:80px}
body.touch-ui .control-row{padding:7px 15px;gap:12px}body.touch-ui .control-row>.press-control{display:none}body.touch-ui .control-row input[type=range]{width:clamp(150px,28vw,320px);flex:1}body.touch-ui .control-row button{height:44px;padding:0 12px}body.touch-ui .control-label{font-size:11px}
body.touch-ui .view-controls{top:10px;right:12px;max-width:calc(100% - 160px);gap:6px}body.touch-ui .view-controls button{font-size:12px;padding:9px 12px}body.touch-ui .bridge-title{left:20px;top:14px}body.touch-ui .bridge-title h1{font-size:28px;margin:5px 0}body.touch-ui .bridge-title p,body.touch-ui .asset-status{display:none}body.touch-ui .weather-strip{left:20px;top:86px;transform:none;font-size:9px}
body.touch-ui .glass-panel{top:66px;right:12px;width:310px;max-height:calc(100% - 325px);z-index:6}body.touch-ui .pause-pill{bottom:194px;left:50%;z-index:5}body.touch-ui .bridge-warning{bottom:250px;right:215px;max-width:260px;pointer-events:none}body.touch-ui .dock-helper{left:auto;right:12px;bottom:255px;width:180px;pointer-events:none}body.touch-ui #mini-chart{height:100px}
body.touch-ui .onboard-panel{left:auto;right:16px;bottom:25px;width:380px;padding:18px;max-height:calc(100% - 95px);overflow:auto}body.touch-ui.onboard #touch-controls{bottom:30px;right:auto}body.touch-ui.onboard .touch-actions{display:none}body.touch-ui .deck-places{gap:12px}body.touch-ui .deck-places button{padding:8px}
body.touch-ui #planner-toggle{display:block;position:absolute;right:14px;top:12px;z-index:8;padding:10px 18px;background:#193d46;color:#eff4df;border-radius:5px;box-shadow:0 4px 18px #15354133;font-size:13px}body.touch-ui .planner{display:none;position:absolute;right:0;top:64px;bottom:0;width:350px;max-width:100%;z-index:7;box-shadow:-15px 0 35px #123d4433}body.touch-ui.planner-open .planner{display:flex}body.touch-ui .map-toolbar{top:12px;left:14px;right:190px;max-width:none;flex-wrap:wrap;justify-content:flex-start;gap:3px}body.touch-ui .map-toolbar button{padding:8px 10px;font-size:11px}body.touch-ui .chart-title{top:120px;left:25px;pointer-events:none}body.touch-ui .chart-title h1{font-size:30px}body.touch-ui .map-instruction{font-size:11px;pointer-events:none}body.touch-ui .planner-tabs{gap:4px;padding:0 12px;justify-content:space-between}body.touch-ui .planner-tabs button{font-size:11px}body.touch-ui .planner-scroll{overscroll-behavior:contain}body.touch-ui .depth-legend{bottom:75px;max-width:310px}
body.touch-ui #dev-panel{top:64px;max-height:calc(100dvh - 64px);overflow:auto}body.touch-ui .editor-sidebar{width:330px}body.touch-ui .editor-map-title h1{font-size:24px}body.touch-ui .editor-map-title{max-width:240px}body.touch-ui .editor-scroll{overscroll-behavior:contain}
@media(max-width:800px){body.touch-ui .topbar nav button{font-size:11px;padding:0 10px}body.touch-ui .bridge-title .eyebrow{font-size:8px}body.touch-ui .instruments{gap:8px;padding:10px}body.touch-ui .instrument{padding-left:8px;min-width:65px}body.touch-ui .instrument b{font-size:19px}body.touch-ui .speed-instrument{min-width:63px}body.touch-ui .speed-instrument strong{font-size:30px}body.touch-ui .warp button{min-width:36px}body.touch-ui .helm-controls{gap:4px}body.touch-ui #touch-controls{bottom:190px}body.touch-ui .touch-actions{gap:5px}body.touch-ui .touch-actions button{padding:10px}body.touch-ui .glass-panel{max-height:calc(100% - 360px)}body.touch-ui .bridge-warning{right:205px;max-width:220px}body.touch-ui .editor-map-title{display:none}}
@media(max-width:600px){body.touch-ui .topbar{padding:0 4px;gap:2px}body.touch-ui .brand{display:none}body.touch-ui .topbar nav button{padding:0 7px}body.touch-ui .top-actions{gap:2px}body.touch-ui #save{display:none}body.touch-ui .helm-controls{width:auto}body.touch-ui .instruments{flex-wrap:wrap}body.touch-ui #touch-controls{bottom:230px;left:4px;right:8px}body.touch-ui .stick-wrap{width:145px}body.touch-ui #touch-stick{width:112px;height:112px}body.touch-ui .touch-actions{flex-direction:column}body.touch-ui .dock-helper{bottom:390px;width:145px}body.touch-ui .pause-pill{bottom:235px}body.touch-ui .glass-panel{max-height:calc(100% - 330px)}body.touch-ui .onboard-panel{width:calc(100% - 175px);right:8px;padding:12px}body.touch-ui .deck-actions,body.touch-ui .deck-places{flex-direction:column;gap:4px}body.touch-ui .onboard-panel .eyebrow{display:none}body.touch-ui .view-controls{max-width:calc(100% - 120px)}body.touch-ui .editor-sidebar{width:55%;min-width:220px}}
body.touch-ui.motors-open:not(.onboard) #touch-controls{bottom:275px}body.touch-ui.motors-open .pause-pill{bottom:280px}body.touch-ui.motors-open .dock-helper{display:none!important}body.touch-ui #motor-panel{gap:15px;padding:10px 15px}body.touch-ui #motor-panel label{display:block}body.touch-ui #motor-panel span{display:none}body.touch-ui #motor-panel input{width:100%}

.controller-settings{border:1px solid #cbd9bf;border-radius:6px;background:#e9efdf;padding:12px 18px;margin:22px 0}.controller-settings legend{font-size:14px;font-weight:600;padding:0 7px}.controller-settings label{min-height:44px;margin:4px 0;cursor:pointer}.controller-settings input[type=checkbox]{width:19px;height:19px;flex-shrink:0;accent-color:#366d60}.controller-settings p{margin:7px 0}#controller-save-status{font-size:11px}
/* The shipyard reuses the existing 3D canvas, with space reserved for controls. */
body.yard-open #bridge-view>#world{width:calc(100% - 370px)}
body.yard-open #bridge-view>:not(#world):not(#shipyard):not(#yard-camera){display:none!important}
#shipyard[hidden],#yard-camera[hidden]{display:none}
#shipyard{position:absolute;right:0;top:0;bottom:0;width:370px;background:#f6f6ed;display:flex;flex-direction:column;border-left:1px solid #cbd8cf;box-shadow:-12px 0 50px #13303c20;z-index:8}
.yard-heading{padding:24px 24px 12px}.yard-heading .eyebrow{font-size:9px;letter-spacing:1.3px;display:flex;justify-content:space-between}.yard-heading .eyebrow span{background:#dce8c8;padding:2px 6px;border-radius:3px;font-size:8px;letter-spacing:.6px}.yard-heading h2{font:32px/1.1 Georgia;margin:14px 0 8px}.yard-heading p{color:#6d8184;font-size:11px;margin:0}
.yard-tabs{display:flex;gap:24px;padding:0 24px;border-bottom:1px solid #d5ded3}.yard-tabs button{padding:13px 0 11px;background:none;color:#6d8184;border-bottom:3px solid transparent;font-size:12px}.yard-tabs button[aria-selected=true]{color:#183c45;border-color:#72986e;font-weight:650}
.yard-scroll{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:19px 24px 24px}.yard-identity{display:grid;grid-template-columns:1fr 1fr;gap:9px}.yard-identity label,.yard-select,.yard-library label{font-size:10px;color:#587477;display:flex;flex-direction:column;gap:7px;min-width:0}.yard-identity input,.yard-select select,.yard-library select{font-size:12px;min-width:0;width:100%;padding:10px 8px;border-radius:4px;border:1px solid #cbd6ca;background:#fffef8;color:#183c45}.yard-identity p{grid-column:1/-1;font-size:10px;color:#7a8c83;margin:0 0 6px}
.yard-field{margin:18px 0 0;padding:0;border:0;min-width:0}.yard-field legend{font-size:11px;font-weight:650;margin-bottom:10px;padding:0}.yard-swatches{display:flex;gap:6px}.yard-swatches button{display:flex;flex:1;min-width:0;align-items:center;flex-direction:column;gap:6px;background:transparent;padding:5px 0 2px;border-radius:5px;font-size:9px;color:#6a807e}.yard-swatches i,.yard-preset i{display:block;width:30px;height:30px;background:var(--swatch);border:1px solid #183c4530;border-radius:50%;box-shadow:inset 0 1px 4px #ffffff50}.yard-swatches button[aria-pressed=true]{color:#183c45;font-weight:650}.yard-swatches button[aria-pressed=true] i{outline:2px solid #56786b;outline-offset:3px}.yard-select{margin-top:20px}.yard-select select{margin-top:0}
.yard-footer{padding:14px 24px 13px;border-top:1px solid #d4decf;background:#eff2e6}.yard-footer>div:first-child{display:flex;align-items:center;justify-content:space-between;font-size:12px}.yard-footer strong{font:26px Georgia}.yard-footer p{font-size:10px;margin:7px 0 12px;color:#526f67;line-height:1.5;min-height:15px}.yard-footer small{display:block;text-align:center;font-size:9px;margin-top:10px;color:#708675}.yard-actions{display:flex;gap:8px}.yard-actions button{flex:1;border-radius:4px;font-size:11px;padding:12px 8px;background:#e3eade;border:1px solid #ccd9c7}.yard-actions button.primary{background:#183c45;border-color:#183c45;color:white;font-size:12px;justify-content:center;padding:13px 8px}
.yard-intro,.yard-note{font-size:11px;color:#6c817b;line-height:1.7;margin:0 0 18px}.yard-note{font-size:10px;margin:16px 0}.yard-option{display:flex;gap:12px;align-items:center;padding:19px 0;border-bottom:1px solid #dbe2d5;cursor:pointer}.yard-option input{width:19px;height:19px;accent-color:#375e50;flex-shrink:0}.yard-option span{flex:1}.yard-option b,.yard-preset b{font-size:12px;font-weight:600;display:block}.yard-option small,.yard-preset small{display:block;font-size:10px;line-height:1.6;color:#73877f;margin-top:5px}.yard-option em{font-size:11px;font-style:normal;color:#648059;white-space:nowrap}
.yard-preset{display:flex;align-items:center;gap:14px;text-align:left;width:100%;background:#edf0e5;border:1px solid #d6dfd1;padding:14px 12px;margin:9px 0;border-radius:5px}.yard-preset>span:nth-child(2){flex:1}.yard-preset i{flex-shrink:0}.yard-library{border-top:1px solid #d3ddcd;padding-top:20px;margin-top:24px}.yard-library select{margin-bottom:10px}.yard-library .secondary{font-size:11px}
#yard-camera{position:absolute;left:24px;top:23px;z-index:7;color:#edf4ec;text-shadow:0 1px 8px #153543;max-width:calc(100% - 420px)}#yard-camera nav{display:flex;gap:5px;margin-top:11px;flex-wrap:wrap}#yard-camera button{padding:10px 13px;font-size:11px;border-radius:4px;background:#f5f5e9eb;color:#23444a;border:1px solid #ffffff50;text-shadow:none}#yard-camera button[aria-pressed=true]{background:#d3e3b8;border-color:#e4edca}#yard-camera p{font-size:10px;line-height:1.6;margin-top:10px;opacity:.9}
@media(max-width:900px){#shipyard{width:325px}body.yard-open #bridge-view>#world{width:calc(100% - 325px)}.yard-heading{padding:18px 18px 10px}.yard-tabs{padding:0 18px;gap:20px}.yard-scroll{padding:15px 18px 20px}.yard-footer{padding:12px 18px}#yard-camera{left:14px;top:15px;max-width:calc(100% - 350px)}#yard-camera button{padding:9px 10px}#yard-camera p{max-width:210px;font-size:9px}}
@media(max-width:650px){body.yard-open #bridge-view>#world{width:100%;height:43%}#shipyard{top:43%;width:100%;border-left:0;border-top:1px solid #cbd8cf}.yard-heading{padding:10px 16px 6px}.yard-heading h2{font-size:23px;margin:6px 0 0}.yard-heading p{display:none}.yard-tabs{padding:0 16px;gap:25px}.yard-tabs button{padding:8px 0}.yard-scroll{padding:14px 16px}.yard-footer{padding:8px 16px}.yard-footer>div:first-child{display:none}.yard-footer p{margin:0 0 7px;font-size:9px}.yard-footer small{display:none}.yard-footer .yard-actions button{padding:10px}.yard-heading .eyebrow{font-size:8px}#yard-camera{top:10px;left:12px;max-width:calc(100% - 24px)}#yard-camera .eyebrow{font-size:8px}#yard-camera nav{margin-top:4px}#yard-camera button{font-size:9px;padding:7px 9px}#yard-camera p{display:none}.yard-swatches button{font-size:10px}}
/* Phone bridge: the water remains the main surface; detail panels open on demand. */
.phone-only,#phone-shade{display:none}
.dev-tools{margin-top:16px;border-top:1px solid #d5ddd1;padding-top:12px}.dev-tools summary{cursor:pointer;font-size:12px;padding:10px 0}
.phone-menu-list{display:grid;gap:8px;margin:22px 0}.phone-menu-list button{min-height:51px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;background:#e9eee1;border:1px solid #d5dfca;border-radius:7px;padding:12px 14px;font-size:14px}.phone-menu-list small{font-size:10px;color:#69806a}.phone-menu-list .phone-restart{border-color:#b6c69f;background:#dde8cd}
.phone-metrics{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:12px 0 24px}.phone-metrics small,.phone-metrics b{display:block}.phone-metrics small{font-size:11px;color:#728277;margin-bottom:5px}.phone-metrics b{font-size:22px;font-weight:400}.phone-throttle-label{display:flex;justify-content:space-between;margin:8px 0;font-size:13px}.phone-warp{display:flex;gap:8px;margin-top:14px}.phone-warp button{flex:1;min-height:44px;border:1px solid #c7d6bc;border-radius:5px;background:#edf0e7}.phone-warp button[aria-pressed=true]{background:#c4d99a}.phone-motor-details{margin-top:20px;font-size:13px}.phone-motor-details summary{padding:12px 0;cursor:pointer}.phone-motor-details label{display:block;margin:10px 0}#phone-throttle,#phone-motor-left,#phone-motor-right{height:28px;touch-action:pan-y}
body.phone-ui{position:fixed;inset:0;height:100dvh;overscroll-behavior:none}
body.phone-ui .phone-only{display:flex}
body.phone-ui .topbar{height:calc(48px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));gap:5px}
body.phone-ui .brand{display:flex}body.phone-ui .brand>span:last-child{display:none}body.phone-ui .brand-icon{width:32px;height:32px;font-size:15px}
body.phone-ui .topbar nav{gap:0;margin:0 auto}body.phone-ui .topbar nav button{padding:0 12px;font-size:12px;min-height:44px}body.phone-ui .topbar nav button span{display:none}body.phone-ui .topbar nav button.active:after{left:12px;right:12px}
body.phone-ui .topbar nav [data-view=log],body.phone-ui .top-actions>:not(#mobile-menu){display:none}
body.phone-ui #mobile-menu{align-items:center;padding:0 10px;min-height:44px;background:none;color:#e1ebd8;font-size:13px;white-space:nowrap}
body.phone-ui .view{top:calc(48px + env(safe-area-inset-top));bottom:0}
body.phone-ui .bridge-title{left:max(14px,env(safe-area-inset-left));top:14px;max-width:calc(100% - 176px)}body.phone-ui .bridge-title h1{font-size:25px;letter-spacing:-.7px;margin:0;overflow-wrap:anywhere;text-shadow:0 1px 12px #eff5eb}
body.phone-ui .bridge-title .eyebrow,body.phone-ui .bridge-title p,body.phone-ui .weather-strip,body.phone-ui .view-controls,body.phone-ui .helm,body.phone-ui .pause-pill,body.phone-ui .asset-status{display:none!important}
body.phone-ui .phone-views{position:absolute;right:max(10px,env(safe-area-inset-right));top:10px;gap:6px}body.phone-ui .phone-views button{min-height:44px;padding:0 13px;font-size:12px;background:#f2f4e9ed;border:1px solid #d4dfcfb3;border-radius:6px}body.phone-ui #phone-harbor[aria-expanded=true]{background:#c8dda6}
body.phone-ui #phone-helm{position:absolute;bottom:calc(8px + env(safe-area-inset-bottom));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));height:66px;align-items:center;gap:8px;padding:7px 8px 7px 14px;background:#173c45f2;border:1px solid #9ab6a744;border-radius:10px;color:#e2ecda;box-shadow:0 3px 20px #18384026}
.phone-speed{min-width:80px}.phone-speed>b{display:block;font-size:29px;font-weight:350;line-height:1;letter-spacing:-1px;font-variant-numeric:tabular-nums}.phone-speed small{display:block;margin-top:4px;font-size:9px;color:#b6cbbd}.phone-readings{display:grid;gap:3px;flex:1;font-size:10px;color:#a8c0b5}.phone-readings span{display:flex;justify-content:space-between;gap:10px}.phone-readings b{font-weight:500;color:#ebf2df;font-variant-numeric:tabular-nums}
body.phone-ui #phone-helm button{width:44px;height:44px;flex-shrink:0;border-radius:7px;background:#2c5057;color:#e5eedf;font-size:22px}body.phone-ui #phone-helm #phone-pause{background:#c4d99a;color:#234c43;font-size:18px}body.phone-ui #phone-helm.depth-danger{border-color:#dfa579}
body.phone-ui.touch-ui #touch-controls{left:max(14px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(85px + env(safe-area-inset-bottom));align-items:flex-end}
body.phone-ui.touch-ui .stick-wrap{width:96px;gap:5px}body.phone-ui.touch-ui #touch-stick{width:96px;height:96px;background:#153f485c;border-color:#d6e6c48c;box-shadow:none}body.phone-ui.touch-ui .stick-thumb{width:42px;height:42px;margin:0}body.phone-ui.touch-ui .stick-cross{font-size:30px}body.phone-ui.touch-ui #stick-label{font-size:9px;letter-spacing:.5px}body.phone-ui.touch-ui #stick-hint{display:none}
body.phone-ui.touch-ui .touch-actions{display:grid;grid-template-columns:1fr 1fr;width:164px;gap:6px}body.phone-ui.touch-ui .touch-actions button{min-height:44px;padding:7px 8px;font-size:11px;justify-content:center;align-items:center;border-radius:6px;background:#1b424bf0}
body.phone-ui.touch-ui .touch-actions .press-control{display:none}body.phone-ui.touch-ui .touch-actions #touch-neutral{grid-column:1;grid-row:2}body.phone-ui.touch-ui #phone-maneuver{grid-column:2;grid-row:2}body.phone-ui.touch-ui #phone-maneuver[aria-expanded=true]{border-color:#c4d99a;color:#d6e7b7}
body.phone-ui.touch-ui.maneuver-open .touch-actions .press-control{display:block;grid-row:1}
body.phone-ui #harbor-panel{display:none!important;z-index:7;top:auto;bottom:0;right:max(0px,env(safe-area-inset-right));left:max(0px,env(safe-area-inset-left));width:auto;max-height:82%;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);background:#f6f7eefc;backdrop-filter:none}
body.phone-ui.phone-harbor-open #harbor-panel{display:block!important}body.phone-ui.phone-harbor-open #phone-shade{display:block;position:absolute;inset:0;width:100%;height:100%;background:#0e2b3d48;z-index:6}
body.phone-ui #harbor-panel .panel-head{position:sticky;top:0;background:#f6f7ee;z-index:1;align-items:center;min-height:58px;font-size:14px;padding:7px 16px}body.phone-ui #harbor-close{min-width:44px;min-height:44px;font-size:26px}
body.phone-ui #harbor-content{font-size:12px}body.phone-ui #harbor-content button{min-height:44px;font-size:12px}body.phone-ui .check-action b{font-size:12px}
body.phone-ui #dock-helper{position:static;width:auto;margin:12px 18px 0;padding:10px;box-shadow:none;background:#e8efe1}body.phone-ui #mini-chart{height:100px}body.phone-ui #dock-readout{font-size:11px}
body.phone-ui .bridge-warning{top:66px;bottom:auto;left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));max-width:none;width:fit-content;padding:7px 10px;font-size:10px;pointer-events:none}
body.phone-ui #dev-panel{top:calc(56px + env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));width:auto;max-height:calc(100dvh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto}body.phone-ui #dev-panel button{min-height:44px}body.phone-ui #dev-close{min-width:44px}body.phone-ui #dev-panel .panel-head{align-items:center;padding:0 0 8px}
body.phone-ui dialog{position:fixed;inset:auto max(0px,env(safe-area-inset-right)) 0 max(0px,env(safe-area-inset-left));margin:0 auto;width:auto;max-width:580px;max-height:calc(100dvh - 58px - env(safe-area-inset-top));padding:26px 20px calc(24px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;overscroll-behavior:contain}body.phone-ui dialog h2{font-size:28px;margin:10px 0 16px}body.phone-ui .modal-close{position:sticky;top:-16px;float:right;margin:-14px -8px 0 0;min-width:44px;min-height:44px;background:#edf1e5e8;z-index:2;border-radius:50%}body.phone-ui dialog input:not([type=range]):not([type=checkbox]),body.phone-ui dialog select{font-size:16px}body.phone-ui #toast{bottom:calc(82px + env(safe-area-inset-bottom));max-width:calc(100% - 28px);font-size:11px}
body.phone-ui.onboard #phone-helm{display:none}body.phone-ui.onboard #touch-controls{bottom:calc(12px + env(safe-area-inset-bottom))}body.phone-ui.onboard .onboard-panel{left:126px;right:max(10px,env(safe-area-inset-right));bottom:calc(10px + env(safe-area-inset-bottom));top:auto;width:auto;padding:12px}body.phone-ui.onboard .onboard-panel p,body.phone-ui.onboard .deck-places{display:none}body.phone-ui.onboard .onboard-panel h2{font-size:20px;margin:0 0 8px}body.phone-ui.onboard .deck-actions{gap:5px}body.phone-ui.onboard .deck-actions button{min-height:44px;padding:7px;font-size:11px}
body.phone-ui .yard-identity input,body.phone-ui .yard-select select,body.phone-ui .yard-library select{font-size:16px}body.phone-ui .yard-tabs button,body.phone-ui .yard-actions button,body.phone-ui #yard-camera button{min-height:44px}body.phone-ui #shipyard{padding-bottom:env(safe-area-inset-bottom)}
@media(max-height:500px){
 body.phone-ui .bridge-title{top:12px}body.phone-ui .bridge-title h1{font-size:23px}body.phone-ui .bridge-warning{top:62px;font-size:9px;max-width:55%}
 body.phone-ui #phone-helm{left:130px;right:188px;max-width:440px;margin:auto;height:62px;bottom:calc(8px + env(safe-area-inset-bottom))}
 body.phone-ui.touch-ui #touch-controls{bottom:calc(9px + env(safe-area-inset-bottom))}body.phone-ui.touch-ui #touch-stick{width:88px;height:88px}body.phone-ui.touch-ui .stick-wrap{width:88px}
 body.phone-ui #harbor-panel{left:25%;max-height:100%;border-radius:12px 0 0 0}body.phone-ui #mini-chart{height:90px}
 body.phone-ui #shipyard{width:300px}body.phone-ui.yard-open #bridge-view>#world{width:calc(100% - 300px);height:100%}body.phone-ui #yard-camera{max-width:calc(100% - 320px);top:8px}body.phone-ui #yard-camera .eyebrow,body.phone-ui #yard-camera p{display:none}body.phone-ui #yard-camera nav{margin:0}body.phone-ui #yard-camera button{padding:7px 9px}
 body.phone-ui .yard-heading{padding:10px 14px 5px}body.phone-ui .yard-heading h2{font-size:23px;margin:7px 0 0}body.phone-ui .yard-heading p{display:none}body.phone-ui .yard-tabs{padding:0 14px}body.phone-ui .yard-tabs button{padding:8px 0}body.phone-ui .yard-footer{padding:8px 14px}body.phone-ui .yard-footer>div:first-child,body.phone-ui .yard-footer small{display:none}
 body.phone-ui.onboard .onboard-panel{left:auto;max-width:310px}body.phone-ui.onboard .deck-actions{flex-direction:row}
}

#dev-new-mission{color:var(--ink)}
body.phone-ui .planner-scroll{min-height:0;overscroll-behavior:contain}body.phone-ui .plan-bottom{flex-shrink:0;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
body.phone-ui .log-shell{padding:28px 20px calc(36px + env(safe-area-inset-bottom))}body.phone-ui .log-shell h1{font-size:30px}body.phone-ui .log-actions{gap:8px}body.phone-ui .log-actions button{min-height:44px}
@media(max-height:500px){
 body.phone-ui .planner{top:0;width:55%;max-width:470px}body.phone-ui .mission-heading{padding:10px 16px;flex-shrink:0}body.phone-ui .mission-heading h2{font-size:22px;margin:0}body.phone-ui .mission-heading>.eyebrow,body.phone-ui .mission-heading>.badge,body.phone-ui .mission-heading>p{display:none}body.phone-ui .planner-tabs{padding:0 16px;gap:22px;flex-shrink:0}body.phone-ui .planner-scroll{padding:0 16px 15px}body.phone-ui .plan-bottom{padding:8px 16px calc(8px + env(safe-area-inset-bottom))}body.phone-ui .plan-bottom p{display:none}body.phone-ui .plan-bottom button{min-height:44px;padding:10px 16px}
 body.phone-ui.planner-open #planner-toggle{left:12px;right:auto}body.phone-ui.planner-open .map-toolbar,body.phone-ui.planner-open .chart-title,body.phone-ui.planner-open .depth-legend,body.phone-ui.planner-open .map-instruction{display:none}
}

#dev-sea{color:var(--ink)}.sea-presets{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0}.sea-presets button{min-height:76px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;border:1px solid #c8d5bf;border-radius:6px;background:#e9eee1;padding:12px 16px;text-align:left}.sea-presets button[aria-pressed=true]{background:#cbdcae;border-color:#688b59}.sea-presets b{font-size:24px;font-weight:450}.sea-presets span{font-size:11px;color:#587061}.sea-direction{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0;font-size:13px}.sea-direction select{min-height:44px;border:1px solid #c7d3bc;background:#fffdf5;border-radius:4px;padding:6px 12px;color:var(--ink)}
.fps-badge{position:fixed;left:12px;bottom:12px;z-index:50;padding:4px 9px;border-radius:4px;background:#0f262cd9;color:#e9efdf;font:600 12px/1.4 system-ui;font-variant-numeric:tabular-nums;pointer-events:none}
.effect-range{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.effect-range input{flex:1;max-width:220px;accent-color:var(--ink)}
.explore-clock{display:flex;align-items:center;gap:10px;min-height:44px;margin:-6px 0 14px;font-size:13px;cursor:pointer}.explore-clock input{width:20px;height:20px;accent-color:var(--ink)}#sea-status{font-size:12px;color:#486849;background:#e9efdf;border-radius:5px;padding:10px 12px}.sea-note{font-size:11px!important}#sea-test-badge{position:absolute;top:136px;left:37px;background:#d9e5beed;border:1px solid #c2d29c;color:#345139;padding:6px 9px;border-radius:5px;font-size:10px;pointer-events:none}#sea-test-badge[hidden]{display:none}body.phone-ui #sea-test-badge{top:67px;left:max(14px,env(safe-area-inset-left));font-size:10px}body.phone-ui:has(#sea-test-badge:not([hidden])) .bridge-warning{top:101px}

/* Captain view: a small live readout, with instruments available on demand. */
#cockpit-helm{position:absolute;left:50%;transform:translateX(-50%);bottom:max(16px,env(safe-area-inset-bottom));width:min(660px,calc(100% - 32px));height:60px;display:flex;align-items:center;gap:14px;padding:8px 12px 8px 18px;background:#173c45e8;border:1px solid #b5c7b43d;border-radius:9px;color:#e4ecdc;backdrop-filter:blur(10px);z-index:6;font-variant-numeric:tabular-nums}
#cockpit-helm[hidden]{display:none!important}.cockpit-speed{min-width:88px;display:flex;align-items:baseline;gap:7px}.cockpit-speed>b{font-size:26px;font-weight:350;letter-spacing:-.7px}.cockpit-speed>span{font-size:9px;color:#bbcfbe;display:flex;flex-direction:column;gap:2px;white-space:nowrap}.cockpit-reading{display:flex;flex-direction:column;gap:4px;min-width:44px}.cockpit-reading>span{font-size:9px;color:#afc4b6}.cockpit-reading>b{font-size:13px;font-weight:500;white-space:nowrap}
#cockpit-helm button{height:40px;flex-shrink:0;border:1px solid #b5c7b42b;border-radius:5px;background:#294c54;color:#e4edda;padding:0 12px;font-size:11px}#cockpit-helm #cockpit-instruments{margin-left:auto;white-space:nowrap}#cockpit-instruments kbd{display:inline-block;margin-left:8px;padding:2px 5px;border:1px solid #adbf9b70;border-radius:3px;font-size:10px}#cockpit-instruments[aria-expanded=true]{border-color:#b9d294;color:#d2e4b2}#cockpit-helm #cockpit-pause{width:40px;padding:0;background:#c4d99a;color:#234c43;font-size:17px}#cockpit-helm.depth-danger{border-color:#e9aa74}#cockpit-helm.depth-danger #cockpit-depth{color:#ffc195}
body.cockpit-ui .helm{display:none}body.cockpit-ui .pause-pill,body.cockpit-ui .asset-status{display:none!important}body.cockpit-ui:not(.cockpit-instruments-open) .dock-helper,body.cockpit-ui:not(.cockpit-instruments-open) .weather-strip{display:none!important}
body.cockpit-ui .bridge-title{top:25px;left:25px}body.cockpit-ui .bridge-title h1{font-size:26px;margin:0;letter-spacing:-.6px}body.cockpit-ui .bridge-title .eyebrow,body.cockpit-ui .bridge-title p{display:none}body.cockpit-ui .bridge-warning{top:78px;bottom:auto;left:25px;right:auto;max-width:420px;pointer-events:none}body.cockpit-ui #sea-test-badge{top:65px;left:25px}body.cockpit-ui:has(#sea-test-badge:not([hidden])) .bridge-warning{top:104px}
body.cockpit-ui.cockpit-instruments-open .helm{display:block;bottom:88px;max-height:calc(100% - 178px);overflow:auto;z-index:5}body.cockpit-ui.cockpit-instruments-open .instruments{flex-wrap:wrap;gap:20px}body.cockpit-ui.cockpit-instruments-open .dock-helper{top:76px;bottom:auto;left:25px;right:auto;width:190px;max-height:calc(100% - 305px);overflow:auto}body.cockpit-ui.cockpit-instruments-open #mini-chart{height:110px}
body.cockpit-ui.touch-ui #touch-controls{left:20px;right:auto;bottom:90px}body.cockpit-ui.touch-ui .touch-actions,body.cockpit-ui.touch-ui #stick-hint{display:none}body.cockpit-ui.touch-ui .stick-wrap{width:100px}body.cockpit-ui.touch-ui #touch-stick{width:100px;height:100px}body.cockpit-ui.touch-ui #stick-label{font-size:10px}body.cockpit-ui.touch-ui .stick-cross{font-size:40px}body.cockpit-ui.touch-ui .stick-thumb{width:44px;height:44px}body.cockpit-ui.touch-ui.cockpit-instruments-open #touch-controls{display:none}body.cockpit-ui.touch-ui.cockpit-instruments-open .control-row>.press-control{display:inline-block}body.cockpit-ui .control-row{flex-wrap:wrap}
@media(max-width:850px){#cockpit-helm{gap:10px;padding-left:12px}#cockpit-helm button{padding:0 9px}.cockpit-speed{min-width:80px}.cockpit-reading{min-width:39px}body.cockpit-ui .view-controls kbd{display:none}}

/* Region selection stays out of the bridge instruments. */
.region-select{background:#264b52;border:1px solid #7e9c884f;border-radius:5px;color:#dce9d4;padding:9px 12px;font-size:11px;white-space:nowrap}
.region-picker>h2{margin-bottom:10px}.region-intro{margin:0 0 18px}.region-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:stretch}.region-card{overflow:hidden;background:#fdfdf7;border:1px solid #d2ddca;border-radius:8px;display:flex;flex-direction:column}.region-card.is-current{border-color:#8da378}.region-card-body{padding:17px;display:flex;flex-direction:column;flex:1}.region-card-body .eyebrow{font-size:8px;letter-spacing:1.3px;color:#7a8a73}.region-card h3{margin:8px 0 6px;font-size:29px;display:flex;align-items:center;justify-content:space-between;gap:8px}.region-card h3 small{font:600 8px system-ui;letter-spacing:.5px;color:#6b825c;background:#e7eedb;padding:5px 6px;border-radius:3px}.region-card p{font-size:11px;line-height:1.6;margin:0 0 12px}.region-stops{display:block;font-size:10px;line-height:1.5;color:#728476;margin-bottom:14px}.region-card button{margin-top:auto;min-height:46px;font-size:11px;text-align:left}.region-card button:disabled{opacity:.65}.region-account{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;background:#e7eeda;border:1px solid #d6dfc8;border-radius:5px;padding:12px 15px;margin-bottom:18px;font-size:11px}.region-account b{font-weight:500;font-size:20px;font-variant-numeric:tabular-nums}.region-account small{margin-left:auto;font-size:10px;color:#698063}.region-picker .region-locked{padding:12px 14px;background:#f0e5d4;border-left:3px solid #b48d57;border-radius:4px;color:#765b3e;margin:15px 0 0}.region-status:empty{display:none}.region-picker .region-status{padding:10px 0;margin:4px 0;font-weight:600;color:#426141}.region-picker .region-status.error{color:#a25b3c}.region-picker .region-footnote{font-size:11px;margin:15px 0 0}.region-picker .region-distance-note{font-size:10px;color:#8a9685;margin:14px 0 0}
.region-scene{height:124px;position:relative;overflow:hidden;background:linear-gradient(180deg,#a9c9d0 0%,#e0e6d5 65%,#6a9c9d 66%)}.region-ridge{position:absolute;inset:22% -3% 27%;background:#889585;clip-path:polygon(0 75%,10% 45%,15% 50%,24% 17%,33% 37%,40% 9%,49% 35%,54% 29%,65% 61%,72% 50%,82% 72%,100% 87%,100% 100%,0 100%)}.region-foreshore{position:absolute;inset:46% -3% 16%;background:#b3b293;clip-path:polygon(0 11%,12% 14%,23% 47%,36% 37%,48% 76%,61% 68%,73% 81%,85% 86%,100% 88%,100% 100%,0 100%)}.region-water{position:absolute;inset:72% 0 0;background:linear-gradient(176deg,#72a4a1,#286f7d);clip-path:polygon(0 6%,32% 23%,64% 10%,100% 0,100% 100%,0 100%)}.region-yacht{position:absolute;left:64%;top:82%;width:29px;height:5px;background:#f0f0dc;border-radius:0 0 5px 9px;box-shadow:0 3px 0 #345f6699;transform:rotate(-3deg)}.region-yacht:before{content:'';position:absolute;width:15px;height:4px;left:6px;top:-5px;background:#ececd7;border-top:2px solid #f8f6e7}.region-yacht:after{content:'';position:absolute;right:30px;top:1px;width:12px;border-top:1px solid #d7e9de55}.region-scene.almeria{background:linear-gradient(180deg,#b8d0cd 0%,#edddbf 65%,#739f9d 66%)}.almeria .region-ridge{background:#b59879;inset:14% -3% 23%;clip-path:polygon(0 69%,10% 24%,19% 43%,24% 9%,34% 38%,41% 27%,49% 46%,58% 21%,67% 46%,72% 12%,85% 60%,91% 50%,100% 78%,100% 100%,0 100%)}.almeria .region-foreshore{background:#cab58a;clip-path:polygon(0 13%,11% 7%,21% 31%,32% 21%,47% 49%,53% 57%,66% 39%,77% 71%,88% 75%,100% 79%,100% 100%,0 100%)}.almeria .region-water{background:linear-gradient(176deg,#75a5a0,#2a7080)}#dev-region{color:var(--ink)}
@media(max-width:1100px){.region-select{font-size:10px;padding:9px}}
/* Keep ports and the beach picker in shallow rows below the planner control. */
body.phone-ui .map-toolbar{top:64px;left:14px;right:14px;max-width:none;gap:0}
body.phone-ui .map-toolbar button{min-height:44px;padding:8px 9px}
body.phone-ui .map-toolbar i{display:none}
@media(max-width:560px){.region-cards{grid-template-columns:1fr;gap:14px}.region-scene{height:91px}.region-card-body{padding:14px 16px}.region-card h3{font-size:25px;margin-top:5px}.region-card p{margin-bottom:8px}.region-stops{margin-bottom:12px}.region-account{gap:9px}.region-account small{font-size:9px}.region-picker .region-intro{font-size:11px}.region-picker .region-footnote{font-size:10px}.region-picker .region-distance-note{font-size:9px}}

/* Excursions keep only the essentials in view, including on a phone. */
.jetski-active #helm,.jetski-active #phone-helm,.jetski-active #cockpit-helm,.jetski-active #dock-helper,.jetski-active #pause-pill,.jetski-active #onboard-panel,.jetski-active .view-controls,.jetski-active .phone-views,.jetski-active #bridge-warning,.jetski-active #asset-status,.jetski-active #weather-strip,.jetski-active #sea-test-badge,.jetski-active .bridge-title h1 em,.jetski-active .touch-actions{display:none!important}
#jetski-panel{position:absolute;inset:0;pointer-events:none;z-index:6;color:#f6f2df}
#jetski-panel[hidden]{display:none}
#jetski-panel button{pointer-events:auto;min-height:44px;border-radius:9px;padding:10px 15px;background:#244b53e8;border:1px solid #b9cab955;color:#f4f2e2;font-size:14px}
#jetski-panel button.primary{background:#d4e3a4;color:#183f47;border-color:#d4e3a4}
#jetski-panel button:disabled{opacity:.5;cursor:default}
.jetski-top{position:absolute;right:24px;top:22px;display:flex;align-items:center;gap:12px;padding:12px 14px;background:#12333cdc;border:1px solid #adc3b33b;border-radius:12px;backdrop-filter:blur(12px)}
.jetski-home{display:flex;gap:8px;align-items:center;margin-top:3px}.jetski-home b{font-size:21px;font-weight:500}.jetski-home small{font-size:11px;color:#c0d0c8}.jetski-home #jetski-arrow{font-size:25px;display:inline-block;color:#d4e3a4}
.jetski-bottom{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:22px;border-radius:14px;padding:12px 18px;background:#12333ce8;border:1px solid #b7c8b641;box-shadow:0 8px 25px #001d2633;backdrop-filter:blur(12px)}
.jetski-speed b{font-size:38px;font-weight:300;line-height:1}.jetski-speed small{display:block;margin-top:4px;color:#c0d0c8;font-size:11px}.jetski-drive small{display:block;color:#adc1bb;font-size:11px}.jetski-drive b{display:block;margin-top:4px;font-weight:500;min-width:55px}
.jetski-camera{position:absolute;left:24px;bottom:29px;display:flex;flex-direction:column;gap:7px}.jetski-camera span{font-size:11px;text-shadow:0 1px 3px #000;max-width:210px}.jetski-camera button{align-self:flex-start}
.jetski-active #touch-controls{bottom:135px}.jetski-active #harbor-panel:not(.collapsed){z-index:10}
@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .jetski-active .bridge-title{top:16px;left:16px}.jetski-active .bridge-title h1{font-size:29px;margin:4px 0}.jetski-active #mission-line{display:none}.jetski-active #phase-label{font-size:8px;letter-spacing:1.7px}
 .jetski-top{top:87px;left:16px;right:16px;gap:10px;padding:9px 12px}.jetski-top>div{margin-right:auto}.jetski-top .eyebrow{font-size:8px}.jetski-home b{font-size:18px}.jetski-home small{font-size:10px}
 .jetski-bottom{left:14px;right:14px;transform:none;bottom:16px;gap:12px;padding:10px 12px}.jetski-speed{margin-right:auto}.jetski-speed b{font-size:31px}.jetski-drive small{font-size:10px}.jetski-drive b{font-size:12px;min-width:36px}.jetski-bottom button{padding:10px 14px!important}
 .jetski-camera{left:auto;right:16px;top:16px;bottom:auto}.jetski-camera span{display:none}.jetski-active #touch-controls{bottom:112px}.jetski-active .stick-wrap{width:110px}.jetski-active #touch-stick{width:104px;height:104px}.jetski-active #stick-hint{display:none}.jetski-active #stick-label{font-size:10px}
}
@media(max-height:500px){.jetski-top{top:12px;left:auto;width:auto}.jetski-active .bridge-title{display:none}.jetski-camera{top:auto;bottom:96px}.jetski-active #touch-controls{bottom:18px}.jetski-bottom{left:190px;right:160px}.jetski-home small{display:none}}

/* 0.17 — a separate, uncluttered way to visit the coast. */
#welcome[hidden],#explore-tools[hidden],#explore-helm[hidden]{display:none!important}
.welcome-open>.topbar,.welcome-open>main,.welcome-open>#dev-panel{display:none}
#welcome{position:fixed;inset:0;z-index:100;background:#f3f4eb;overflow:auto;padding:30px max(28px,calc((100vw - 1180px)/2));color:#193f47}
.welcome-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.welcome-brand{font:italic 28px Georgia;display:flex;align-items:center;gap:16px}.welcome-brand small{font:600 10px/1.6 system-ui;letter-spacing:2px;max-width:130px}.welcome-top label{display:flex;align-items:center;gap:10px;font-size:12px}.welcome-top select,.language-field select,.welcome-picker select,#explore-craft{background:#fbfcf7;border:1px solid #bbcdbb;border-radius:5px;color:#214a4d;padding:10px;min-height:44px}
.welcome-intro{margin:44px 0 30px;display:grid;grid-template-columns:1.2fr 1fr;gap:0 40px;align-items:end}.welcome-intro .eyebrow{grid-column:1/-1;color:#607c6d}.welcome-intro h1{font:normal clamp(43px,4.5vw,65px)/1.04 Georgia;letter-spacing:-2px;margin:12px 0 0}.welcome-intro p{max-width:450px;font-size:14px;line-height:1.8;margin:0 0 2px;color:#637a73}
.start-cards{display:grid;grid-template-columns:1.15fr 1fr;gap:18px}.start-card{border:1px solid #cad6c7;background:#fafbf5;border-radius:12px;padding:26px;display:flex;flex-direction:column;min-height:380px;overflow:hidden}.start-card .eyebrow{font-size:9px;letter-spacing:1.1px;color:#688272}.start-card h2{font:normal 35px/1.12 Georgia;letter-spacing:-.8px;margin:12px 0 16px}.start-card p{font-size:13px;line-height:1.7;color:#60766c;margin:0 0 18px}.start-card button{margin-top:18px;width:100%;min-height:48px;font-size:13px;text-align:left}.start-card .mode-label{margin-top:auto;font-size:10px;color:#52745e}.start-san-jose{background:#e4ecdc;border-color:#a4bb91}.start-career{background:#eef0e7}.start-symbol{height:66px;font-size:43px;color:#8ba087;padding-bottom:18px;line-height:1}
.start-scenery{height:66px;position:relative;margin:-26px -26px 23px;background:linear-gradient(176deg,#b8d8d5 0 54%,#8cbac0 54% 62%,#328596 64%);overflow:hidden}.start-scenery i{position:absolute;inset:5px -10px 20px;background:#799172;clip-path:polygon(0 70%,9% 55%,19% 15%,25% 50%,33% 30%,44% 65%,55% 62%,64% 82%,80% 80%,100% 100%,0 100%)}.start-scenery span{position:absolute;right:16px;bottom:8px;font-size:8px;letter-spacing:1.4px;color:#e4efe3}
.welcome-footer{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:20px 0 24px;font-size:11px;color:#6c8075}.welcome-footer p{margin:0;flex:1}.welcome-footer small{flex-basis:100%;font-size:10px}.welcome-footer .text-btn{font-size:12px}.welcome-picker{max-width:780px;margin:24px auto}.welcome-picker h1{font:normal 44px Georgia}.welcome-picker h2{font:normal 35px Georgia}.welcome-picker p{font-size:14px;line-height:1.7}
.graphics-card{margin-top:-14px}.graphics-card .primary{white-space:nowrap}.gfx-advanced>summary{cursor:pointer;font-size:14px;font-weight:600;min-height:44px;display:flex;align-items:center;color:#214a4d}.gfx-advanced select:disabled{opacity:.5}
/* Graphics on the start screen: same fieldsets as the in-game menu (dialog label rules). */
.welcome-graphics label{font-size:12px;display:flex;gap:15px;align-items:center;margin:14px 0}.welcome-graphics .controller-settings{color:#214a4d}.welcome-graphics .controller-settings,dialog .controller-settings{min-inline-size:0}.welcome-graphics>.primary{margin-top:8px}
@media(max-width:600px){.sea-direction{flex-wrap:wrap;gap:8px}.sea-direction select{flex:1 1 100%;min-width:0;width:100%;max-width:100%;box-sizing:border-box}}.welcome-picker>.text-btn{font-size:14px;padding:12px 0 26px}.career-regions{display:grid;grid-template-columns:1fr 1fr;gap:18px}.career-regions button{min-height:160px;background:#e1e9d7;border:1px solid #adc29c;border-radius:8px;text-align:left;padding:24px}.career-regions b{display:block;font:normal 30px Georgia;margin-bottom:18px}.career-regions span{font-size:13px}
.location-groups h3{font-size:24px}.section-jump{position:sticky;top:-20px;z-index:2;box-shadow:0 -16px 0 #f7f8ee;display:flex;gap:6px;overflow-x:auto;padding:8px 0 10px;margin-bottom:4px;background:#f7f8ee;scrollbar-width:none}#welcome .section-jump{background:#f3f4eb;box-shadow:0 -16px 0 #f3f4eb}.section-jump::-webkit-scrollbar{display:none}.section-jump button{flex:none;border:1px solid #cbd8bf;border-radius:999px;background:#f4f7ef;color:#2f4a3c;font-size:12px;padding:7px 12px;min-height:34px;white-space:nowrap}.coast-section{scroll-margin-top:72px}.coast-section h4,.coast-section-title{font:600 11px/1.4 system-ui;letter-spacing:1.4px;text-transform:uppercase;color:#4d6858;margin:18px 0 8px}.coast-section h4 small{font-weight:400;color:#8a9b8f;margin-left:4px}.coves{margin-top:8px}.coves summary{cursor:pointer;font:600 12px/1.4 system-ui;color:#4d6858;padding:10px 2px;min-height:40px;display:flex;align-items:center;gap:6px}.coves summary small{font-weight:400;color:#8a9b8f}.coves>.location-list{margin-top:4px}.location-list button.current{border-color:#2f6b4f;box-shadow:inset 0 0 0 1px #2f6b4f}.location-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.location-list button{background:#e7edde;border:1px solid #cbd8bf;border-radius:6px;text-align:left;min-height:65px;padding:12px 14px}.location-list button span{display:block;font-size:14px}.location-list button small{display:block;font-size:10px;color:#6c8372;margin-top:5px}.language-field{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;font-size:13px}
#experience-menu{background:#294f55;color:#e4ebda;border-color:#66817b;white-space:nowrap;font-size:12px;min-height:38px}
body.explore-mode .topbar [data-view=log],body.explore-mode .top-actions>*:not(#experience-menu),body.explore-mode .phone-views,body.explore-mode .view-controls,body.explore-mode #helm,body.explore-mode #phone-helm,body.explore-mode #cockpit-helm,body.explore-mode #pause-pill,body.explore-mode #dock-helper,body.explore-mode #harbor-panel,body.explore-mode #weather-strip,body.explore-mode #sea-test-badge,body.explore-mode #asset-status,body.explore-mode .touch-actions,body.explore-mode #jetski-panel,body.explore-mode .planner,body.explore-mode #planner-toggle,body.explore-mode #edit-route,body.explore-mode #undo-route{display:none!important}
body.explore-mode .chart-title h1,body.explore-mode .chart-title p{display:none}body.explore-mode .map-toolbar{max-width:calc(100% - 48px);top:72px}body.explore-mode .map-instruction{bottom:30px}body.explore-mode .depth-legend{bottom:72px}
body.explore-mode .bridge-title{top:28px;left:26px}.explore-mode .bridge-title h1{font-size:32px;margin:4px 0}.explore-mode #mission-line{display:block;font-size:10px}.explore-mode #phase-label{display:block}.explore-mode .bridge-title .eyebrow{font-size:9px}
#explore-tools{position:absolute;top:23px;right:24px;z-index:7;text-align:right}#explore-tools>div{display:flex;gap:7px;margin-top:8px}#explore-tools button{min-height:42px;border:1px solid #c2d0bba8;border-radius:6px;padding:10px 14px;background:#f1f3e6ec;font-size:12px;color:#23494c}#explore-tools kbd{font-size:9px;opacity:.6;margin-left:4px}#explore-menu{display:none}.explore-badge{display:inline-block;background:#233f45dd;color:#d9e7b8;border-radius:4px;padding:6px 9px;font-size:8px;letter-spacing:1.4px}
#explore-helm{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);width:min(640px,calc(100% - 38px));display:flex;gap:18px;align-items:center;padding:12px 16px;border:1px solid #b0c7b74f;border-radius:12px;background:#173b44ed;box-shadow:0 9px 30px #00172122;color:#e7f0de;z-index:7;backdrop-filter:blur(8px)}.explore-speed{min-width:88px}.explore-speed b{font-size:34px;line-height:1;font-weight:300}.explore-speed small{display:block;font-size:10px;color:#b1c8bf;margin-top:4px}.explore-throttle{font-size:10px;flex:1;min-width:60px}.explore-throttle span{float:right}.explore-throttle input{display:block;min-height:24px;margin:5px 0 0;accent-color:#cfdfa5;touch-action:none}.explore-reading small{display:block;color:#b1c8bf;font-size:10px}.explore-reading b{font-size:13px;font-weight:500;white-space:nowrap;display:block;margin-top:7px}#explore-helm button{border-radius:7px;min-height:42px;padding:10px 14px;background:#31565c;color:#e8efdf;border:1px solid #73918a55;font-size:12px}#explore-helm button.primary{background:#c9dea0;color:#183c44}.explore-key-hint{position:absolute;left:12px;bottom:-25px;font-size:9px;letter-spacing:.1px;color:#c7dacc;margin:0;text-shadow:0 1px 3px #183c45}
body.explore-mode.touch-ui #touch-controls{left:20px;right:auto;bottom:122px;display:block}body.explore-mode.touch-ui #touch-stick{width:105px;height:105px}body.explore-mode.touch-ui .stick-wrap{width:110px}body.explore-mode.touch-ui #stick-label{font-size:10px}body.explore-mode.touch-ui #stick-hint{display:none}.explore-mode #bridge-warning{top:auto;bottom:136px;left:auto;right:20px;font-size:10px;max-width:260px}.explore-mode.onboard #explore-tools{display:none}
@media(max-width:800px){#welcome{padding:24px}.welcome-intro{margin-top:32px;gap:10px}.welcome-intro h1{font-size:45px}.welcome-intro p{font-size:12px}.start-cards{gap:10px}.start-card{padding:19px;min-height:365px}.start-card h2{font-size:29px}.start-card p{font-size:12px}.start-scenery{margin:-19px -19px 23px}.welcome-brand small{font-size:8px}.welcome-top label{font-size:11px}}
@media(max-width:600px){#welcome{padding:20px 18px calc(20px + env(safe-area-inset-bottom))}.welcome-top{gap:12px}.welcome-brand{font-size:23px;gap:8px}.welcome-brand small{font-size:7px;letter-spacing:1px;max-width:90px}.welcome-top label{font-size:0;gap:0}.welcome-top select{font-size:12px;max-width:130px}.welcome-intro{display:block;margin:32px 0 24px}.welcome-intro h1{font-size:46px}.welcome-intro p{font-size:13px;margin-top:17px}.start-cards{grid-template-columns:1fr;gap:15px}.start-card{min-height:0;padding:23px}.start-card h2 br{display:none}.start-card h2 br:after{content:' '}.start-card h2{font-size:31px;margin:10px 0 13px}.start-card p{font-size:13px;margin-bottom:15px}.start-card h2 br{display:inline}.start-symbol{display:none}.start-scenery{margin:-23px -23px 20px;height:100px}.start-card .mode-label{font-size:11px}.welcome-footer{gap:12px}.welcome-footer p{flex-basis:100%;line-height:1.7}.career-regions{grid-template-columns:1fr}.location-list{grid-template-columns:1fr 1fr}.location-list button{padding:12px 10px}.location-list button span{font-size:12px}.welcome-picker{margin-top:10px}
 body.phone-ui #experience-menu{display:inline-block!important}.top-actions #mobile-menu{display:none!important}
 body.explore-mode .topbar{padding-left:15px;padding-right:15px;gap:5px}body.explore-mode .topbar nav button{padding:0 12px;font-size:12px}body.explore-mode #experience-menu{font-size:11px;padding:10px}body.explore-mode .bridge-title{left:17px;top:91px}.explore-mode .bridge-title h1{font-size:29px}.explore-mode #mission-line{display:none}
 #explore-tools{left:15px;right:15px;top:13px;text-align:left}#explore-tools>div{margin-top:7px;gap:6px;position:absolute;right:0;top:21px}#explore-tools button{min-height:42px;padding:9px 11px;font-size:12px}#explore-tools kbd{display:none}.explore-badge{font-size:8px}
 #explore-helm{bottom:16px;gap:10px;padding:10px 12px;width:calc(100% - 28px)}.explore-speed{min-width:68px}.explore-speed b{font-size:29px}.explore-reading{display:none}#explore-helm button{padding:9px 10px;font-size:11px;min-height:44px}.explore-key-hint{display:none}body.explore-mode.touch-ui #touch-controls{bottom:103px;left:16px}.explore-mode #bridge-warning{bottom:114px;right:16px;max-width:200px}
 body.explore-mode .map-toolbar{top:45px;left:14px;right:14px;max-width:none}.explore-mode .chart-title{top:12px;left:18px}
}
@media(max-height:500px){#welcome{padding-top:18px}.welcome-intro{margin-top:24px}.welcome-intro h1{font-size:38px}.start-card{min-height:310px}.start-card h2{font-size:27px}.welcome-top select{min-height:36px}body.explore-mode .bridge-title{top:20px;left:20px}#explore-tools{top:10px;left:auto;right:18px;text-align:right}#explore-tools>div{position:static;margin-top:5px}#explore-helm{bottom:14px;left:auto;right:18px;transform:none;width:calc(100% - 200px);padding:8px 12px}.explore-key-hint{display:none}body.explore-mode.touch-ui #touch-controls{bottom:16px;left:18px}.explore-mode #bridge-warning{bottom:98px}.explore-mode #mission-line{display:none}.explore-mode .bridge-title h1{font-size:28px}}

body.explore-mode #phase-label{display:block!important}body.explore-mode .bridge-title{max-width:calc(100% - 36px)}body.phone-ui #experience-menu{display:inline-block!important}body.phone-ui #mobile-menu{display:none!important}

.experience-career{margin-top:18px;border-top:1px solid #d2ddcb;padding-top:16px;font-size:13px}.experience-career summary{cursor:pointer;min-height:30px}.experience-career .phone-menu-list{margin-top:8px}

#explore-tools #explore-sea{padding:5px 11px;min-width:76px}#explore-sea span{display:block;font-size:9px;line-height:1.3}#explore-sea strong{display:block;font-size:12px;font-weight:550;line-height:1.5;white-space:nowrap}.explore-sea-presets{grid-template-columns:repeat(3,1fr);margin:16px 0}.explore-sea-presets button{min-height:68px;padding:10px 12px}.explore-sea-presets b{font-size:23px}.explore-sea-status{font-size:12px!important;color:#486849;background:#e9efdf;border-radius:5px;padding:10px 12px}
@media(max-width:600px){#explore-tools>div{gap:5px}#explore-tools button{padding-left:9px;padding-right:9px}#explore-tools #explore-sea{min-width:70px;padding-left:7px;padding-right:7px}.explore-sea-presets{gap:7px}.explore-sea-presets button{padding:9px}.explore-sea-presets span{font-size:10px}}

/* Shared sound controls, available in Career and Explore. */
.audio-enable{min-height:44px;font-weight:600}.audio-enable input{width:20px;height:20px;accent-color:#366d60}.audio-levels{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px}.audio-levels label{display:grid;grid-template-columns:1fr auto;gap:6px 10px;margin:8px 0;min-width:0}.audio-levels label:first-child{grid-column:1/-1}.audio-levels output{font-variant-numeric:tabular-nums;color:#647d68}.audio-levels input{grid-column:1/-1;width:100%;min-width:0;min-height:36px;accent-color:#366d60}.audio-actions{display:flex;gap:12px}.audio-actions button{flex:1;min-height:44px}#audio-status{min-height:3em}.audio-levels~.action-note{font-size:10px}@media(max-width:580px){.audio-levels{grid-template-columns:1fr;gap:0}.audio-actions{flex-wrap:wrap}.audio-actions button{min-width:140px}}
/* Offline installation and optional release updates, 0.24.0. */
#offline-setup{position:fixed;inset:0;z-index:200;background:#102c35;color:#f2f0e7;overflow:auto;padding:clamp(24px,5vw,72px);padding-top:max(24px,env(safe-area-inset-top));box-sizing:border-box}
#offline-setup[hidden]{display:none}
body.offline-setup-open>:not(#offline-setup){display:none!important}
.offline-intro{max-width:1040px;margin:0 auto;padding:20px 0 40px}
.offline-intro>.eyebrow{margin-top:60px;color:#b8caa2}
.offline-intro h1{font:clamp(38px,6vw,68px)/1.06 Georgia,serif;margin:18px 0 24px;letter-spacing:-1.5px}
.offline-intro>p{max-width:660px;line-height:1.7;color:#c4d0cb}
.offline-options{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:35px 0 18px}
.offline-options article{border:1px solid #a0bca533;border-radius:10px;padding:28px;background:#ffffff06;display:flex;flex-direction:column;align-items:flex-start}
.offline-options article:last-child{background:#b7c99b0d;border-color:#b7c99b77}
.offline-options h2,.offline-dialog h2,.offline-intro>h2{font:30px/1.15 Georgia,serif;margin:16px 0}
.offline-options p{font-size:14px;line-height:1.7;color:#bac9c5;flex:1;margin:0 0 26px}
.offline-options button,.offline-dialog button:not(.modal-close),.offline-intro>button{min-height:46px;padding:14px 20px;font-size:13px}
.offline-help{margin-top:24px;font-size:13px;line-height:1.7;max-width:760px}
.offline-help summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px;padding:8px 0}
.offline-help p{opacity:.8;margin:10px 0}
.offline-error{color:#f3c99c!important;line-height:1.6;font-size:14px}
.offline-card{display:flex;justify-content:space-between;align-items:center;gap:24px;border:1px solid #aec19d55;border-radius:8px;background:#ffffff08;padding:20px 24px;margin:0 0 28px;color:inherit}
.offline-card h3{font:23px/1.2 Georgia,serif;margin:8px 0}
.offline-card p{font-size:12px;line-height:1.6;margin:5px 0;opacity:.8}
.offline-card .offline-note:empty{display:none}
.offline-card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;max-width:420px}
.offline-card-actions button{min-height:44px;padding:11px 16px;font-size:12px}
.offline-card-actions .text-btn{flex-basis:100%;text-align:right}
#offline-setup .secondary,.offline-card .secondary{background:transparent;color:inherit;border:1px solid #abc19b88}
#offline-setup .primary,.offline-card .primary{background:#bfd0a5;color:#143640}
#offline-setup button:disabled,.offline-card button:disabled{opacity:.45;cursor:not-allowed}
.offline-dialog{width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;color:#193c44;background:#f3f1e7;border:1px solid #91a88b;border-radius:10px;overflow:auto}
.offline-dialog p{font-size:14px;line-height:1.7}
.offline-dialog::backdrop{background:#081d28bb}
.offline-dialog progress,.offline-intro progress{width:100%;height:15px;accent-color:#7e9b67;margin-top:22px}
.offline-progress{font-variant-numeric:tabular-nums;min-height:44px}
@media(max-width:650px){.offline-options{grid-template-columns:1fr;gap:14px;margin-top:24px}.offline-options article{padding:22px}.offline-options p{margin-bottom:18px}.offline-intro>.eyebrow{margin-top:35px}.offline-card{display:block;padding:18px}.offline-card-actions{justify-content:flex-start;max-width:none;margin-top:16px}.offline-card-actions .text-btn{text-align:left}.offline-intro .welcome-top{gap:16px;flex-wrap:wrap}}
/* A camera-only flight leaves the paused boat and its controls behind. */
.drone-launch{position:absolute;right:22px;top:112px;z-index:5;background:#eff2e6ed;color:#183f38;border:1px solid #adc3af;border-radius:7px;min-height:42px;padding:9px 17px;font-size:12px;box-shadow:0 2px 14px #082b3320}
body.drone-active #bridge-view> :not(#world):not(#drone-panel){display:none!important}
body.drone-active .topbar nav,body.drone-active #dev-toggle,body.drone-active #mobile-menu,body.drone-active #touch-toggle{display:none!important}
#drone-panel{position:absolute;inset:0;z-index:6;pointer-events:none;color:#eff5e7}
#drone-panel[hidden]{display:none}
#drone-panel button,#drone-panel select,#drone-stick{pointer-events:auto}
.drone-top{position:absolute;top:24px;left:28px;right:28px;display:flex;gap:10px;align-items:flex-start;text-shadow:0 1px 7px #092c38}
.drone-top>div{margin-right:auto}.drone-top .eyebrow{color:#f1f3d7;font-size:11px;letter-spacing:1.6px}.drone-top p{font-size:12px;margin:7px 0;color:#edf2dd}
.drone-top button,.drone-height button{background:#eff3e6ed;color:#214d43;border:1px solid #b2c7b8;border-radius:7px;min-height:44px;padding:10px 15px;text-shadow:none}
.drone-reticle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:21px;color:#e5f3ded0;text-shadow:0 0 4px #244650}
.drone-telemetry{position:absolute;left:50%;top:92px;transform:translateX(-50%);display:flex;align-items:center;gap:16px;white-space:nowrap;background:#163d42d9;border:1px solid #d7e8d033;border-radius:7px;padding:11px 17px;font-variant-numeric:tabular-nums;font-size:12px;backdrop-filter:blur(8px)}
.drone-telemetry b{font-size:18px;font-weight:500}.drone-bottom{position:absolute;bottom:max(25px,env(safe-area-inset-bottom));left:28px;right:28px;display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.drone-stick-wrap{text-align:center;font-size:10px;letter-spacing:2px;text-shadow:0 1px 5px #143849}.drone-stick-wrap>span{display:block;margin-top:9px}
#drone-stick{position:relative;display:grid;place-items:center;width:112px;height:112px;border-radius:50%;border:1px solid #d8edcd90;background:#153e4777;touch-action:none;user-select:none;-webkit-user-select:none}
#drone-stick .stick-cross{font-size:40px}#drone-stick .stick-thumb{width:46px;height:46px}
.drone-instructions{background:#173d44d9;border:1px solid #d7e8d033;backdrop-filter:blur(8px);border-radius:8px;padding:12px 18px;max-width:380px}
.drone-instructions label{display:flex;align-items:center;gap:20px;font-size:12px;color:#e7eedb;margin:0}.drone-instructions select{margin-left:auto;background:#edf2e2;color:#20473e;border-radius:4px;min-height:38px;padding:7px 10px}.drone-instructions p{font-size:11px;line-height:1.7;color:#d5e2cf;margin:10px 0 0}.drone-height{display:flex;flex-direction:column;gap:8px}.drone-height button{touch-action:none;min-width:105px;user-select:none;-webkit-user-select:none}
@media(max-width:700px){.drone-launch{right:16px;top:116px;min-height:40px;padding:7px 13px}.drone-top{top:18px;left:16px;right:16px;flex-wrap:wrap;gap:8px}.drone-top>div{flex-basis:100%}.drone-top p{margin:5px 0}.drone-top button{font-size:11px;min-height:40px;padding:8px 12px}.drone-top kbd{display:none}.drone-telemetry{top:120px;gap:7px 15px;width:calc(100% - 32px);max-width:410px;white-space:normal;flex-wrap:wrap;padding:10px 12px;font-size:11px}.drone-telemetry b{font-size:16px}#drone-coordinates{flex-basis:100%;order:4}.drone-bottom{left:16px;right:16px;bottom:max(18px,env(safe-area-inset-bottom));gap:12px;flex-wrap:wrap}.drone-instructions{order:-1;width:100%;max-width:none;padding:10px 12px}.drone-instructions p{display:none}.drone-stick-wrap>span{display:none}#drone-stick{width:96px;height:96px}.drone-height button{font-size:12px;min-width:100px}.drone-reticle{top:48%}}
@media(max-height:500px){.drone-launch{top:72px}.drone-top{top:12px;left:16px;right:16px;flex-wrap:nowrap}.drone-top>div{flex-basis:auto}.drone-top p{display:none}.drone-telemetry{top:64px;width:auto;max-width:calc(100% - 32px);flex-wrap:nowrap;font-size:10px}#drone-coordinates{flex-basis:auto;order:0}#drone-range{display:none}.drone-telemetry b{font-size:14px}.drone-bottom{bottom:14px;flex-wrap:nowrap}.drone-instructions{order:0;width:auto;padding:8px 12px}.drone-instructions p{display:none}#drone-stick{width:86px;height:86px}.drone-stick-wrap>span{display:none}.drone-height button{min-height:38px;padding:6px 10px}}

/* Jetski rider jump (Claude, branch claude/jetski): hold to crouch, release to pop. */
#touch-jump{display:none}
body.touch-ui.jetski-active #touch-jump{display:flex;align-items:center;justify-content:center;pointer-events:auto;width:84px;height:84px;margin:0 0 10px auto;border-radius:50%;background:#d4e3a4eb;color:#183f47;border:2px solid #f4f8e4;font-size:14px;font-weight:600;letter-spacing:.3px;box-shadow:0 6px 18px #001d2640;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:transform .12s,background .12s}
body.touch-ui.jetski-active #touch-jump.charging{transform:scale(.9);background:#f6f3c4}

/* Docking wind: arrow follows wind flow relative to the yacht, bow at top. */
.dock-wind{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #b6cbb4;margin-bottom:9px;color:#173d45}
.dock-wind-compass{width:56px;height:64px;flex-shrink:0;position:relative;text-align:center}.dock-wind-compass>span{font-size:8px;font-weight:700;letter-spacing:1px;display:block;height:16px}.dock-wind-compass svg{display:block;width:48px;height:48px;margin:auto;fill:#225e61;background:#d4e5d3;border-radius:50%;padding:4px}
.dock-wind-label{display:block;font-size:10px;letter-spacing:1px;font-weight:600}.dock-wind-speed{display:block;font-size:26px;line-height:1.15;font-variant-numeric:tabular-nums}.dock-wind-from{display:block;font-size:10px;margin-top:5px;color:#365b57}
#phone-dock-wind{display:none}body.phone-ui #phone-dock-wind:not([hidden]){display:flex;position:absolute;left:max(14px,env(safe-area-inset-left));bottom:calc(212px + env(safe-area-inset-bottom));padding:8px 12px;margin:0;border:1px solid #b6cbb4;border-radius:8px;background:#f4f6e9f5;pointer-events:none;z-index:2;gap:8px}
body.phone-ui.phone-harbor-open #phone-dock-wind,body.explore-mode #phone-dock-wind,body.jetski-active #phone-dock-wind,body.ui-hidden #phone-dock-wind{display:none!important}
body.phone-ui #dock-helper .dock-wind{padding-top:0}body.phone-ui .dock-wind-speed{font-size:24px}
@media(max-height:500px){body.phone-ui #phone-dock-wind:not([hidden]){bottom:calc(85px + env(safe-area-inset-bottom));left:124px;padding:5px 9px}.dock-wind-compass{width:44px;height:54px}.dock-wind-compass svg{width:38px;height:38px}}
/* Touch handedness: one control per side, including the compact Free Roam HUD. */
body.touch-ui #touch-controls{left:max(16px,env(safe-area-inset-left))!important;right:max(16px,env(safe-area-inset-right))!important;flex-direction:row-reverse}
body.touch-ui.explore-mode #touch-controls{display:flex}
body.touch-ui.touch-stick-left #touch-controls{flex-direction:row}
/* Jump button right beside the lever (Mängelbuch M-003): space-between used to leave it mid-screen. */
body.touch-ui.jetski-active #touch-jump{margin:0 auto 10px 14px;flex-shrink:0}
body.touch-ui.touch-stick-left.jetski-active #touch-jump{margin:0 14px 10px auto}
body.touch-ui:not(.touch-stick-left) .drone-bottom{flex-direction:row-reverse}
body.touch-ui.onboard:not(.touch-stick-left) .onboard-panel{left:16px;right:auto}
body.phone-ui.touch-ui.onboard:not(.touch-stick-left) .onboard-panel{left:max(10px,env(safe-area-inset-left));right:126px;width:auto}
@media(max-height:500px){body.explore-mode.touch-ui:not(.touch-stick-left) #explore-helm{left:18px;right:auto}}
@media(max-height:500px){body.explore-mode.touch-ui.jetski-active #touch-controls{bottom:100px}}

/* iOS zooms into fields under 16px and may leave the page offset: keep them at 16px on touch screens. */
@media (any-pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px}}
html,body{overscroll-behavior:none}
/* Floating touch controls: faint at rest, solid while held. */
body.touch-floating #touch-stick,body.touch-floating #drone-stick{opacity:.42;transition:opacity .25s}body.touch-floating #touch-stick.stick-active,body.touch-floating #drone-stick.stick-active{opacity:1;transition:none}body.touch-floating .stick-wrap>b,body.touch-floating .stick-wrap>span,body.touch-floating .drone-stick-wrap>span{opacity:.55}
body.touch-ui.jetski-active.touch-floating #touch-jump{opacity:.5;transition:transform .12s,background .12s,opacity .25s}body.touch-ui.jetski-active.touch-floating #touch-jump.charging{opacity:1;transition:transform .12s,background .12s}

/* Start-up progress (loading.js) */
#loading{transition:opacity .4s ease}
#loading.done{opacity:0;pointer-events:none}
#loading .loadmark{animation:load-breathe 2.4s ease-in-out infinite}
@keyframes load-breathe{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.96);opacity:.78}}
#loading .load-progress{width:min(320px,calc(100vw - 64px));margin-top:26px}
#loading .load-bar{height:3px;border-radius:2px;background:#d7e7c822;overflow:hidden}
#loading .load-bar span{display:block;height:100%;background:#d7e7c8;transform-origin:left center;transform:scaleX(0);transition:transform .35s ease-out}
#loading .load-row{display:flex;justify-content:space-between;gap:12px;margin-top:9px;font-size:10px;letter-spacing:1.5px;color:#8daea8}
#loading .load-pct{font-variant-numeric:tabular-nums}
#loading.progress small{display:none}
@media (prefers-reduced-motion:reduce){#loading .loadmark{animation:none}#loading .load-bar span{transition:none}}

/* Touch helm (touch-helm.js): throttle lever and wheel instead of the stick; the stick stays for walking aboard. */
#helm-lever,#helm-wheel,.helm-caption{display:none}
body.touch-ui.touch-helm:not(.onboard):not(.drone-active) #touch-stick,body.touch-ui.touch-helm:not(.onboard):not(.drone-active) #stick-label,body.touch-ui.touch-helm:not(.onboard):not(.drone-active) #stick-hint{display:none}
body.touch-ui.touch-helm:not(.onboard):not(.drone-active) #helm-wheel,body.touch-ui.touch-helm:not(.onboard):not(.drone-active) .stick-wrap>.helm-caption,#helm-lever>.helm-caption{display:block}
body.touch-ui.touch-helm:not(.onboard):not(.drone-active) #helm-lever{display:flex}
.helm-wheel{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;width:100%;max-width:132px;aspect-ratio:1;color:#ecf3d9;filter:drop-shadow(0 1px 4px #122e38cc);opacity:.78}
.helm-wheel.helm-active{opacity:1}
.helm-wheel svg{width:100%;height:100%;display:block}
.helm-caption{font-size:12px;letter-spacing:1px;color:#f1f5e4;text-shadow:0 1px 4px #122e38}
.helm-lever{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;flex-direction:column;align-items:center;gap:5px;width:68px;color:#f1f5e4;text-shadow:0 1px 4px #122e38}
.helm-lever-value{font-size:13px;letter-spacing:.5px;min-height:16px;font-variant-numeric:tabular-nums}
.helm-lever-track{position:relative;display:block;width:22px;height:clamp(118px,32vh,190px);border-radius:11px;border:1px solid #d5e7cb88;background:linear-gradient(#5f9f7a99,#173c4599 46%,#173c4599 54%,#a8604f99)}
.helm-lever-notch{position:absolute;left:-9px;right:-9px;top:50%;height:2px;margin-top:-1px;background:#ecf3d9bb;border-radius:1px}
.helm-lever-handle{position:absolute;left:50%;top:50%;width:58px;height:30px;transform:translate(-50%,-50%);border-radius:10px;background:#ecf3d9;box-shadow:0 2px 6px #0d262f99,inset 0 -3px 0 #b7c9a8;transition:top .12s ease-out}
.helm-lever.helm-active .helm-lever-handle{transition:none;background:#fff}
.helm-lever[data-dir=ahead] .helm-lever-value{color:#bfe6c4}.helm-lever[data-dir=astern] .helm-lever-value{color:#f2b7a6}
body.phone-ui.touch-ui .helm-lever{width:60px}body.phone-ui.touch-ui .helm-lever-handle{width:52px;height:28px}
@media(max-height:500px){.helm-lever-track{height:clamp(104px,30vh,150px)}}

/* Wetter & Zeit (weather-menu.js, claude/wetter): a translucent panel at the top, no blurred
   backdrop, so every change shows in the scene at once. Touch first: tiles ≥ 64 px, thumb sliders. */
dialog.weather-dialog{background:#163640e8;color:#eef3e6;border-color:#2c5560;width:min(900px,96vw);max-height:66vh;margin:12px auto auto;padding:18px 22px 20px}
dialog.weather-dialog::backdrop{background:transparent;backdrop-filter:none}
.weather-dialog .eyebrow{color:#a9c3a7}
.weather-dialog p{color:#c9d8cf}
.wx-tabs{display:flex;gap:4px;margin:10px 0 14px;background:#0f2a32;border-radius:7px;padding:4px}
.wx-tabs button{flex:1;min-height:44px;border-radius:5px;color:#d5e2d6;font-weight:600;font-size:13px;letter-spacing:.3px}
.wx-tabs button[aria-selected=true]{background:var(--accent);color:#183c45}
.wx-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.wx-tile{min-height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid #33606b;border-radius:8px;background:#1d434d;color:#eef3e6;padding:8px 6px;text-align:center}
.wx-tile b{font-size:12px;font-weight:600;line-height:1.25}
.wx-tile small{font-size:11px;color:#a9c3a7}
.wx-tile[aria-pressed=true]{background:var(--accent);color:#183c45;border-color:var(--accent)}
.wx-tile[aria-pressed=true] small{color:#3c5b3e}
.wx-tile:focus-visible,.wx-tabs button:focus-visible,.wx-choice button:focus-visible,.wx-toggle:focus-visible,.weather-dialog input:focus-visible{outline:3px solid #f2c96b;outline-offset:2px}
.wx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px 18px}
.wx-grid[data-disabled]{opacity:.45;pointer-events:none}
.wx-slider{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#d5e2d6}
.wx-slider span{display:flex;justify-content:space-between}
.wx-slider output{color:#f2f5ea;font-weight:600}
.wx-slider input{width:100%;height:36px;accent-color:#c4d99a}
.wx-choice{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;color:#d5e2d6}
.wx-choice>span{flex-basis:100%}
.wx-choice button{min-height:44px;padding:0 14px;border-radius:6px;border:1px solid #33606b;background:#1d434d;color:#eef3e6;font-size:12px}
.wx-choice button[aria-pressed=true]{background:var(--accent);color:#183c45;border-color:var(--accent)}
.wx-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;margin-bottom:12px;padding:8px 14px;border:1px solid #33606b;border-radius:8px;background:#1d434d;color:#eef3e6;text-align:left}
.wx-toggle span{margin-left:auto;font-weight:600}.wx-toggle.small{min-height:44px;margin:0}
.wx-toggle[aria-pressed=true]{border-color:var(--accent)}.wx-toggle[aria-pressed=true] span{color:var(--accent)}
.wx-status{margin:12px 0 8px;font-size:13px;color:#eef3e6!important}
.wx-note{background:#2a4a3a;border-radius:6px;padding:8px 10px}
.wx-now{grid-column:1/-1}
.weather-dialog .primary{background:var(--accent);color:#183c45;margin-top:6px}
.weather-dialog .secondary,.weather-dialog .text-btn{color:#eef3e6}
@media (max-width:700px) and (orientation:portrait){dialog.weather-dialog{margin:auto auto 0;width:100vw;max-width:100vw;max-height:62vh;border-radius:14px 14px 0 0;padding:12px 12px 16px}.wx-tiles{grid-template-columns:repeat(auto-fill,minmax(86px,1fr))}.wx-tile{min-height:88px}}
@media (max-height:520px) and (orientation:landscape){dialog.weather-dialog{margin:0 auto 0 0;width:min(56vw,520px);max-height:100vh;height:100vh;border-radius:0 12px 12px 0;padding:10px 12px}.wx-tiles{grid-template-columns:repeat(auto-fill,minmax(82px,1fr))}.wx-tile{min-height:80px}.wx-tabs button{min-height:40px}}
/* Wetter & Zeit: the phone layout of other dialogs (body.phone-ui dialog) and the light dialog
   buttons must not win here. */
body dialog.weather-dialog .wx-tabs button{background:transparent;color:#d5e2d6;border:0}
body dialog.weather-dialog .wx-tabs button[aria-selected=true]{background:var(--accent);color:#183c45}
.wx-slider output{margin-left:8px}
body.phone-ui dialog.weather-dialog{inset:auto 0 0 0;max-height:min(62dvh,560px);background:#163640ee}
@media (orientation:landscape) and (max-height:520px){body.phone-ui dialog.weather-dialog,dialog.weather-dialog{inset:0 auto 0 0;margin:0;width:min(56vw,520px);max-width:none;height:100dvh;max-height:100dvh;border-radius:0 12px 12px 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}}
body dialog.weather-dialog .wx-tabs button{padding:0 4px;font-size:12px;white-space:normal;line-height:1.15;min-width:0}
body dialog.weather-dialog .wx-tile,body dialog.weather-dialog .wx-choice button,body dialog.weather-dialog .wx-toggle{padding-top:6px;padding-bottom:6px}
dialog.weather-dialog,body.phone-ui dialog.weather-dialog{background:#143039f7}
.wx-help{min-height:2.6em;margin:10px 0 0;font-size:12px!important;color:#e6efe2!important;border-left:3px solid var(--accent);padding-left:10px}
@media (min-width:900px) and (min-height:521px){dialog.weather-dialog{inset:0 auto 0 0;margin:0;width:480px;max-width:none;height:100vh;max-height:100vh;border-radius:0 12px 12px 0;padding:22px 24px;font-size:14px}
 .wx-tabs button{font-size:14px!important;min-height:48px}.wx-tiles{grid-template-columns:repeat(3,1fr)}.wx-tile b{font-size:13px}.wx-grid{grid-template-columns:1fr}.wx-slider{font-size:13px}}
body dialog.weather-dialog .wx-tabs{width:100%;box-sizing:border-box}body dialog.weather-dialog .wx-tabs button{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis}
@media (max-width:440px){body dialog.weather-dialog .wx-tabs button{font-size:11px!important;letter-spacing:0}}
dialog.weather-dialog,body.phone-ui dialog.weather-dialog{background:#143039}
@media (orientation:landscape) and (max-height:520px){body dialog.weather-dialog .wx-tiles{grid-template-columns:repeat(3,1fr)}body dialog.weather-dialog .wx-tile b{font-size:11px;hyphens:auto}body dialog.weather-dialog{padding-top:max(10px,env(safe-area-inset-top))}}
body dialog.weather-dialog .wx-tabs{position:sticky;top:-10px;z-index:2;margin-right:52px}
/* Report button (report.js, claude/melden): picture, note and facts in the modal */
.report-shot{display:block;width:100%;max-height:34vh;object-fit:cover;border-radius:10px;margin:8px 0 10px;border:1px solid rgba(0,0,0,.12)}
#report-note,#befund-note{width:100%;box-sizing:border-box;padding:10px 12px;border-radius:10px;border:1px solid rgba(0,0,0,.2);font:inherit;resize:vertical;margin-bottom:10px}
.report-facts{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;font-size:12px;margin:0 0 12px;opacity:.85}
.report-facts dt{font-weight:600}.report-facts dd{margin:0;overflow-wrap:anywhere}
/* W0b (docs/grafikspeicher-claude): no backdrop blur on touch devices. Safari keeps a full-screen copy of the
   picture per blurred layer (≈12 MB at DPR 3); on the iPhone 17 the page reloaded on opening the places list
   after the car drive. Covers the panels here and those styled from JS (car-ui.js, rooms.js); the desktop keeps them. */
@media(pointer:coarse){*,*::before,*::after,dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
body.touch-ui *,body.touch-ui *::before,body.touch-ui *::after,body.touch-ui dialog::backdrop,body.phone-ui *,body.phone-ui dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* Absturzprotokoll (absturzprotokoll.js, entry-ui.js): unauffälliger Kasten im Startmenü, nur nach einem vermuteten Absturz. */
.crash-card{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;border:1px dashed #aec19d55;border-radius:8px;padding:10px 16px;margin:0 0 16px;font-size:12px;opacity:.85}
.crash-card p{margin:0}
.crash-card small{opacity:.75}
.crash-card div{display:flex;gap:8px}
.crash-card button{min-height:36px;padding:7px 14px;font-size:12px}
.crash-card .secondary{background:transparent;color:inherit;border:1px solid #abc19b88}
.crash-card .crash-note:empty{display:none}
.crash-card textarea{flex-basis:100%;font:11px/1.4 ui-monospace,monospace;background:transparent;color:inherit;border:1px solid #abc19b55;border-radius:6px;padding:6px}

/* Befund-Knopf (befund.js): klein, halb transparent, oben in der Mitte unter der Leiste (links und rechts stehen Titel, Fahrzeuganzeige
   und Werkzeuge, unten Steuer, Stick, Hebel und Pedale; am iPhone quer reicht das Steuer links bis zur Bildmitte) */
.befund-knopf{position:absolute;z-index:8;left:50%;transform:translateX(-50%);top:8px;width:34px;height:34px;padding:0;border-radius:50%;border:1px solid #ffffff55;background:#13343e66;color:#f1f3e6;font-size:15px;line-height:1;opacity:.55;backdrop-filter:blur(4px);-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.befund-knopf:hover,.befund-knopf:focus-visible{opacity:.95}
.befund-knopf[hidden]{display:none!important}
/* im Auto und mit der Drohne blendet die Brücke alles außer Bild und Fahrzeugpanel aus; der Knopf bleibt (höhere Spezifität) */
body.car-active #bridge-view>#befund-knopf:not(#world):not(#car-panel):not([hidden]),body.drone-active #bridge-view>#befund-knopf:not(#world):not(#drone-panel):not([hidden]){display:block!important}
.befund-zeile{font-variant-numeric:tabular-nums;word-break:break-word}
/* ===== Explore HUD in the top bar + side menu (hud-dock.js) ===== */
body.explore-mode .topbar{height:56px;gap:14px}
body.explore-mode .topbar .brand>span:last-child{display:none}
body.explore-mode #explore-tools,body.explore-mode #drone-launch{display:none!important}
#hud-dock{display:flex;align-items:center;gap:10px;margin:0 auto;min-width:0;color:#e6efe0;font-variant-numeric:tabular-nums}
#hud-dock:empty{display:none}
body.explore-mode #hud-dock #explore-helm{position:static;transform:none;width:auto;display:flex;align-items:center;gap:12px;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;color:inherit}
#hud-dock .explore-speed{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
#hud-dock .explore-speed b{font-size:21px;font-weight:500;letter-spacing:-.4px}
#hud-dock .explore-speed small,#hud-dock .explore-reading small,#hud-dock .explore-throttle{font-size:10px;letter-spacing:.6px;color:#a9c0bb}
#hud-dock .explore-throttle{display:flex;align-items:center;gap:7px;white-space:nowrap;margin:0}
#hud-dock .explore-throttle input{width:132px;margin:0}
#hud-dock #explore-power{color:#e6efe0;min-width:34px}
#hud-dock .explore-reading{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
#hud-dock .explore-reading b{font-size:13px;font-weight:500}
#hud-dock #explore-helm button,#hud-dock #drone-exit{min-height:34px;padding:5px 11px;font-size:11px;border-radius:6px}
#hud-dock .explore-key-hint{display:none}
/* Drone: altitude and speed in the bar, "back aboard" next to the menu. */
#hud-dock #drone-readout{position:static;transform:none;display:flex;align-items:baseline;gap:12px;padding:0;border:0;background:none;box-shadow:none;white-space:nowrap;font-size:11px;color:#c4d6cf}
#hud-dock #drone-readout b{font-size:19px;font-weight:500;color:#eef4e6}
#hud-dock #drone-readout b::before{content:'✈ ';font-size:13px;color:#c9dea5}
#hud-dock .drone-cruise-dock{display:flex;align-items:center;gap:6px;font-size:10px;color:#a9c0bb;white-space:nowrap}
#hud-dock .drone-cruise-dock select{min-height:30px;padding:3px 6px;font-size:11px;border-radius:6px}
#hud-dock #drone-exit{background:#c9dea0;color:#183c44;border:0}
body:not(.drone-active) #hud-dock :is(#drone-readout,.drone-cruise-dock,#drone-exit){display:none}
body.drone-active #hud-dock #explore-helm{display:none!important}
body.explore-mode.drone-active .drone-top{display:none}
body.explore-mode.drone-active .drone-instructions{position:absolute;left:16px;bottom:14px;right:auto;top:auto;transform:none;padding:0;margin:0;border:0;background:none;box-shadow:none;font-size:10px;opacity:.75;text-shadow:0 1px 6px #0b2a33}
body.explore-mode.drone-active .drone-height{position:absolute;right:14px;top:50%;bottom:auto;transform:translateY(-50%);display:flex;flex-direction:column;gap:8px}
body.explore-mode.drone-active .drone-height button{min-height:38px;padding:6px 11px;font-size:12px}
/* The place and the yacht's name: small, top left. */
body.explore-mode .bridge-title{top:12px;left:16px}
body.explore-mode .bridge-title h1{font-size:22px;margin:2px 0}
body.explore-mode .bridge-title .eyebrow{font-size:8px}
/* Side menu */
#side-menu{position:fixed;top:56px;right:0;bottom:0;width:min(290px,86vw);z-index:60;background:#173b44f5;color:#e8efdf;border-left:1px solid #ffffff1c;box-shadow:-14px 0 40px #0b232a66;transform:translateX(104%);transition:transform .22s ease-out;display:flex;flex-direction:column;padding:12px 12px max(12px,env(safe-area-inset-bottom));overflow-y:auto}
#side-menu.open{transform:none}
#side-shade{position:fixed;inset:0;z-index:59;background:#0b232a33}
#side-shade[hidden]{display:none}
#side-menu .side-head{display:flex;align-items:center;justify-content:space-between;margin:2px 2px 10px}
#side-menu .side-head .eyebrow{font-size:9px;letter-spacing:1.6px;color:#a9c0bb}
#side-close{min-height:36px;min-width:36px;border-radius:6px;background:transparent;color:#e8efdf;border:1px solid #ffffff22}
#side-menu .side-list{display:flex;flex-direction:column;gap:6px}
#side-menu .side-list button{display:flex;align-items:center;gap:12px;min-height:46px;padding:8px 12px;border-radius:8px;background:#ffffff0d;border:1px solid #ffffff14;color:inherit;font-size:13px;text-align:left}
#side-menu .side-list button:hover,#side-menu .side-list button:focus-visible{background:#ffffff1f}
#side-menu .side-list button>span{width:20px;text-align:center;color:#c9dea5;font-size:15px}
#side-menu .side-list em{font-style:normal}
#side-menu .side-list .side-end{margin-top:10px;background:none;border-color:#ffffff24}
#side-menu .side-list :is(kbd,small,i){margin-left:auto;font-size:10px;color:#a9c0bb;font-style:normal}
#side-menu .side-settings{margin-top:8px}
#side-menu .side-extra>span{color:#f3d28a}#side-menu .side-extra small{color:#f3d28a;border:1px solid #f3d28a66;border-radius:4px;padding:1px 5px;letter-spacing:1px}
#side-menu .side-keys{margin-top:auto;padding-top:14px;font-size:10px;line-height:1.5;color:#8fa9a4}
@media (prefers-reduced-motion:reduce){#side-menu{transition:none}}
/* Touch and small screens: a slimmer bar; the joystick sets the throttle, so
   the slider gives way to its reading. */
body.explore-mode.touch-ui .topbar{height:calc(46px + env(safe-area-inset-top));gap:6px}
body.explore-mode.touch-ui #side-menu{top:calc(46px + env(safe-area-inset-top))}
body.explore-mode.touch-ui #hud-dock .explore-throttle input{display:none}
body.explore-mode.touch-ui #hud-dock .explore-throttle{gap:4px}
body.explore-mode.touch-ui #side-menu .side-keys{display:none}
body.explore-mode.touch-ui.drone-active .drone-instructions{display:none}
/* Drone on touch: climb and descend on the side opposite the flight stick, so one thumb steers and the other sets the height. */
body.explore-mode.touch-ui.drone-active:not(.touch-stick-left) .drone-height{left:max(12px,env(safe-area-inset-left));right:auto}
body.explore-mode.touch-ui.drone-active.touch-stick-left .drone-height{right:max(12px,env(safe-area-inset-right));left:auto}
@media (max-width:900px){
 body.explore-mode .topbar nav button{padding:0 9px;font-size:11px}
 body.explore-mode .topbar nav button span{display:none}
 #hud-dock{gap:8px}
 #hud-dock .explore-speed b{font-size:18px}
 #hud-dock .explore-speed small span{display:none}
 #hud-dock .explore-reading small{display:none}
 #hud-dock #explore-helm{gap:9px!important}
 #hud-dock #explore-helm button,#hud-dock #drone-exit{min-height:32px;padding:4px 9px}
 #hud-dock #drone-coordinates{display:none}
 #hud-dock .drone-cruise-dock{font-size:0;gap:0}
 #hud-dock .drone-cruise-dock select{font-size:11px}
 body.explore-mode .bridge-title h1{font-size:18px}
 body.explore-mode .bridge-title p{display:none}
}
@media (max-width:560px){
 /* Portrait phone: the instruments get their own slim row under the bar. */
 body.explore-mode #hud-dock{position:fixed;left:0;right:0;top:calc(46px + env(safe-area-inset-top));height:38px;justify-content:center;background:#183c45e6;border-bottom:1px solid #ffffff12;z-index:9}
 body.explore-mode #side-menu{top:calc(84px + env(safe-area-inset-top))}
 body.explore-mode .bridge-title{top:50px}
 #hud-dock #drone-range{display:none}
}

/* Keep the Explore viewport flush with its compact header. */
body.explore-mode .view{top:56px}
body.explore-mode.touch-ui .view{top:calc(46px + env(safe-area-inset-top))}
@media(max-width:560px){body.explore-mode .view,body.explore-mode.touch-ui .view{top:calc(84px + env(safe-area-inset-top))}}
