/* Stable instruments: changing dates and figures never move the wallet. */
@media(min-width:761px){
 .topbar{display:grid;grid-template-columns:minmax(100px,1fr) minmax(320px,440px) minmax(250px,1fr);gap:16px}
 .captain-status{min-width:0;overflow:hidden}
 .wallet{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;min-width:0;gap:8px;justify-content:stretch}
 .resource{min-width:0;gap:7px;padding:7px 8px}
 .resource>div{min-width:0}
 .resource strong{display:block;font-size:19px;font-variant-numeric:tabular-nums;letter-spacing:0}
 .top-actions{justify-self:end;min-width:0;margin-left:0}
 .sea-time{width:118px;min-width:118px;font-variant-numeric:tabular-nums}
 .sea-time .time,.sea-time small,.daylight,.time-hold{display:block;white-space:nowrap}
 .time-hold:empty{display:block;visibility:hidden;min-height:17px}
 .time-hold::before{margin-right:5px}
}
@media(min-width:761px) and (max-width:1190px){
 .topbar{grid-template-columns:100px minmax(280px,1fr) 205px;gap:10px;padding-inline:16px}
 .resource .icon{width:23px;height:25px}.resource{gap:5px;padding:6px}
 .sea-time{width:118px;min-width:118px}.top-actions{gap:6px}.top-actions .speed-control{display:none}.top-actions .audio-toggle{display:none}
}
@media(min-width:761px) and (max-width:850px){
 .topbar{grid-template-columns:80px minmax(268px,1fr) 205px;gap:8px;padding-inline:12px}
 .captain-status strong{font-size:15px}.captain-status small{max-width:72px}.resource strong{font-size:17px}
}
@media(max-width:760px){
 :root{--masthead:112px}
 .topbar{grid-template-columns:minmax(0,1fr) 170px;grid-template-rows:34px 54px;height:112px;min-height:112px;padding:8px 12px;gap:6px 8px}
 .captain-status{max-height:34px;min-width:0;overflow:hidden}.captain-status>div{min-width:0}.captain-status .status-lamp{flex-shrink:0}.captain-status strong{display:block;max-width:100%;font-size:14px;line-height:19px;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.captain-status small{line-height:13px;max-width:110px}
 .wallet{gap:6px;align-self:stretch}.resource{padding:4px 5px;gap:4px;min-width:0;overflow:hidden}.resource>div{min-width:0}.resource .icon{width:20px;height:23px;flex:0 0 20px}.resource small{line-height:11px}
 .sea-time{width:92px;min-width:92px;font-variant-numeric:tabular-nums}
 .time-hold{min-height:12px}.time-hold:empty{display:block;visibility:hidden}
 .resource strong{display:block;font-size:16px;line-height:22px;font-variant-numeric:tabular-nums;overflow-wrap:normal;white-space:nowrap}
}
.resource .travel-supply{font-size:8px;color:#bddbcf;letter-spacing:0;line-height:1.4;white-space:nowrap}
@media(max-width:370px){.wallet .resource{padding:4px;justify-content:center;text-align:center}.wallet .resource .icon{display:none}.wallet .resource strong{font-size:16px}.captain-status small{max-width:92px}}
.origin-portrait{background:transparent!important;border:0!important;box-shadow:none!important}
.origin-portrait img{object-fit:contain;object-position:center bottom;background:transparent!important}
.origin-portrait>span{background:transparent!important;position:static!important;display:block;color:var(--navy-light);padding:7px 10px;font-size:11px;line-height:1.5;text-align:center}
.start-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}
.start-settings label{display:grid;gap:5px;font-size:12px;font-weight:600;color:var(--navy-light)}
.start-settings select{width:100%;min-height:40px;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:3px;color:var(--ink)}
.start-ledger{padding:12px 14px;background:var(--paper-shade);border-left:3px solid var(--navy-light);margin:12px 0;font-size:12px;line-height:1.8}
.start-ledger p{margin:3px 0}.origin-offer .origin-effect{display:grid;gap:4px;margin:8px 0;font-size:11px;line-height:1.6}.origin-offer .origin-effect b{font-weight:600;color:var(--navy-light)}
.origin-offer .origin-purse{font-weight:600;font-size:12px;color:var(--rust)}
.atlas-display-filters{display:flex;flex-wrap:wrap;gap:7px 16px;padding:10px 14px;background:var(--paper-shade);border-top:1px solid var(--line)}
.world-chart .map-toolbar>strong{color:#dbe8ed;font-size:12px}
.atlas-display-filters label{display:flex;align-items:center;gap:6px;font-size:12px;cursor:pointer;min-height:28px}
.atlas-display-filters input{width:16px;height:16px;accent-color:var(--navy-light)}
.atlas-intel-note{font-size:12px;line-height:1.7;padding:12px;background:var(--paper-shade);margin:10px 0}
.frontier-license,.frontier-workshop,.wreck-panel{padding:16px}
.frontier-license h3,.frontier-workshop h3,.wreck-panel h3{margin:0 0 9px;color:var(--navy-light)}
.license-list,.port-ship-offers{display:grid;gap:10px}.license-row,.port-ship-offer{padding:12px;border:1px solid var(--line);border-radius:3px}.license-row p,.port-ship-offer p{margin:5px 0;font-size:12px;line-height:1.7}
.port-ship-offer .btn{margin-top:8px}.module-availability{font-size:11px;line-height:1.7;color:var(--muted);margin:6px 0}
.frontier-workshop .panel-head{padding:0 0 12px;margin-bottom:12px}
.shipyard-current{display:grid;grid-template-columns:minmax(160px,42%) minmax(0,1fr);gap:20px;align-items:center;padding:16px;background:#14354a;color:#e7edf1;margin-bottom:18px;border-radius:4px}
.shipyard-current h3{color:#f5eee0;margin:8px 0 14px;font-size:22px}.shipyard-current .hint{color:#c0d0d8;line-height:1.7;margin-bottom:0}
.shipyard-art{height:200px;display:grid;place-items:center;overflow:hidden}.shipyard-art .ship-portrait,.shipyard-art .yard-portrait,.shipyard-art img{height:100%;max-height:200px;width:100%;object-fit:contain}
.shipyard-current .shipyard-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:transparent;padding:0}.shipyard-current .shipyard-facts span{display:flex;justify-content:space-between;gap:8px;font-size:12px}.shipyard-current .shipyard-facts b{color:#f5eee0;font-variant-numeric:tabular-nums}
.shipyard-current .shipyard-facts span{color:#bdcfd8}
.port-ship-offers{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.port-ship-offer{display:flex;flex-direction:column;gap:6px;background:var(--paper)}.port-ship-offer h3{margin:0;font-size:17px}.port-ship-offer>small{color:var(--muted)}.port-ship-offer .cost{display:flex;flex-wrap:wrap;gap:5px 10px;line-height:1.7}.port-ship-offer .trade-materials{margin-bottom:8px}.port-ship-offer .btn{margin-top:auto;align-self:stretch;white-space:normal}.port-ship-offer .requirements{margin-bottom:0}
@media(max-width:1000px){.shipyard-current{grid-template-columns:1fr;gap:10px}.shipyard-art{height:180px}.shipyard-current h3{font-size:19px}}
@media(max-width:540px){.frontier-workshop{padding:12px}.shipyard-current{padding:12px}.port-ship-offers{grid-template-columns:1fr}.port-ship-offer{padding:12px}.shipyard-art{height:150px}}
.wreck-list{display:grid;gap:10px}.wreck-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;border:1px solid var(--line);padding:12px;align-items:start}.wreck-card>.icon{width:44px;height:44px}.wreck-card h3{font-size:15px;margin:0 0 5px}.wreck-card p{font-size:12px;line-height:1.7;margin:3px 0}.wreck-card .btn{margin-top:6px}.wreck-marker{position:absolute;transform:translate(-50%,-50%);z-index:12;border:1px solid #e2c9a2;background:#142e40;border-radius:50%;width:30px;height:30px;padding:3px;box-shadow:0 2px 6px #001b2f80}.wreck-marker .icon{width:100%;height:100%}
@media(max-width:540px){.start-settings{grid-template-columns:1fr}.atlas-display-filters{gap:5px 12px}.atlas-display-filters label{font-size:11px}.wreck-card{grid-template-columns:36px minmax(0,1fr)}.wreck-card>.icon{width:32px;height:32px}}
