:root{--g2b-ui:ready;--g2b-dock:clamp(250px,27vw,440px)}
/* One flexible combat row: the original controls/handlers remain in place. */
html:not([data-touch-ui=true]) body.layout1 .actions{left:4px!important;right:var(--g2b-dock)!important;bottom:6px!important;height:84px!important;min-height:0!important;padding:7px!important;gap:5px!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow:visible!important;max-width:none!important;transform:none!important}
html:not([data-touch-ui=true]) body.layout1 #combatDock1{width:var(--g2b-dock)!important;height:84px!important;bottom:6px!important;padding:7px!important;gap:6px!important;display:flex!important;align-items:center!important}
html:not([data-touch-ui=true]) body.layout1 #combatDock1 button{flex:1 1 0!important;min-width:0!important;min-height:44px!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere;font-size:clamp(10px,.76vw,13px)!important;padding:7px 4px!important}
html:not([data-touch-ui=true]) body.layout1 .actions>button{flex:1 1 0!important;min-width:0!important;max-width:none!important;flex-basis:0!important;height:66px!important;min-height:66px!important;max-height:66px!important;box-sizing:border-box!important;margin:0!important;padding:3px!important;overflow:hidden!important;border-radius:7px!important}
html body.layout1 .actions :is(#tfAPBtn,#tfHEBtn,#tfPumpkinBtn,#tfBoneBtn,#repairBtn,#rocketBtn,#torpedoBtn,#fuelUse5,#heliLaunch,#jetLaunch)[data-g2b-label]{font-size:0!important;line-height:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:2px!important;padding:3px!important;background-image:linear-gradient(#173849,#071d2c)!important;background-size:auto!important}
html body.layout1 .actions [data-g2b-label]>*{display:none!important}
html body.layout1 .actions :is(#tfAPBtn,#tfHEBtn,#tfPumpkinBtn,#tfBoneBtn,#repairBtn,#rocketBtn,#torpedoBtn,#fuelUse5,#heliLaunch,#jetLaunch)[data-g2b-label]::before{content:attr(data-g2b-icon)!important;position:static!important;display:block!important;height:20px!important;width:24px!important;flex:0 0 20px!important;font:19px/20px Arial!important;margin:0!important;color:#c5e6e7;background:none!important;mask:none!important;-webkit-mask:none!important}
html body.layout1 .actions :is(#tfAPBtn,#tfHEBtn,#tfPumpkinBtn,#tfBoneBtn,#repairBtn,#rocketBtn,#torpedoBtn,#fuelUse5,#heliLaunch,#jetLaunch)[data-g2b-label]::after{content:attr(data-g2b-label)!important;display:block!important;white-space:pre-line!important;text-align:center!important;font:600 clamp(10px,.75vw,13px)/1.2 Arial!important;color:#edf5f7!important;letter-spacing:0!important;max-width:100%;overflow-wrap:normal}
html body.layout1 .actions #tfAPBtn::before{color:#cce1e8!important}html body.layout1 .actions #tfHEBtn::before{color:#e5a17c!important}
html body.layout1 .actions button[hidden]{display:none!important}
html:not([data-touch-ui=true]) body.layout1 #combatReload11{bottom:91px!important;font-size:11px!important}
html:not([data-touch-ui=true]) body.layout1 #navigationStatus{background:#03283b9c!important;max-width:calc(var(--sea-width1) - 30px)!important;left:calc(var(--sea-left1) + 15px)!important}
html:not([data-touch-ui=true]) body.layout1 .buttons>button{padding:0 clamp(4px,1vw,16px)!important;font-size:clamp(10px,.9vw,15px)!important;flex:1 1 0!important;white-space:nowrap!important}
html:not([data-touch-ui=true]) body.layout1 #tfResourceStrip .row{font-size:clamp(9px,.75vw,13px)!important;gap:4px!important;padding:4px!important}
html:not([data-touch-ui=true]) body.layout1 #tfResourceStrip .row b{font-size:clamp(10px,.88vw,15px)!important}
html body.layout1 :is(.panel,.marineDialog5,dialog){box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
/* Same world resources and colour on touch; only resolution/shadows may differ. */
html[data-touch-ui=true] body.layout1 .actions{display:flex!important;left:calc(env(safe-area-inset-left) + 6px)!important;right:calc(env(safe-area-inset-right) + 6px)!important;bottom:calc(env(safe-area-inset-bottom) + 4px)!important;gap:3px!important;padding:4px!important;height:66px!important;min-height:66px!important;overflow:visible!important;flex-wrap:nowrap!important;touch-action:manipulation}
html[data-touch-ui=true] body.layout1 .actions>button{flex:1 1 0!important;min-width:44px!important;max-width:none!important;width:auto!important;height:56px!important;min-height:56px!important;max-height:56px!important;margin:0!important;padding:3px!important}
html[data-touch-ui=true] body.layout1 .actions :is(#tfAPBtn,#tfHEBtn,#tfPumpkinBtn,#tfBoneBtn,#repairBtn,#rocketBtn,#torpedoBtn,#fuelUse5,#heliLaunch,#jetLaunch)[data-g2b-label]::after{font-size:10px!important;line-height:12px!important}
html[data-touch-ui=true] body.layout1 .actions :is(#tfAPBtn,#tfHEBtn,#tfPumpkinBtn,#tfBoneBtn,#repairBtn,#rocketBtn,#torpedoBtn,#fuelUse5,#heliLaunch,#jetLaunch)[data-g2b-label]::before{font-size:17px!important;height:18px!important;line-height:18px!important;flex-basis:18px!important}
html[data-touch-ui=true] body.layout1 #mobileTop{grid-template-columns:44px minmax(100px,.8fr) minmax(100px,1.4fr) 46px!important;gap:5px!important;left:calc(env(safe-area-inset-left) + 6px)!important;right:calc(env(safe-area-inset-right) + 6px)!important;height:44px!important;top:calc(env(safe-area-inset-top) + 4px)!important}
html[data-touch-ui=true] body.layout1 #mobileTop button{min-height:40px!important;height:40px!important}
html[data-touch-ui=true] body.layout1 :is(.panel,.marineDialog5,dialog,#mobileMenu,#mobileSettings,#tradePanel1){inset:calc(env(safe-area-inset-top) + 6px) calc(env(safe-area-inset-right) + 8px) calc(env(safe-area-inset-bottom) + 6px) calc(env(safe-area-inset-left) + 8px)!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;min-width:0!important;margin:0!important;padding:12px!important;transform:none!important;overflow-x:hidden!important;overflow-y:auto!important;font-size:13px!important}
html[data-touch-ui=true] body.layout1 :is(.panel,.marineDialog5,dialog) :is(input,select,textarea){max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
html[data-touch-ui=true] body.layout1 :is(.shopGrid,.itemGrid,.tradeOffers1,.mobileMenuGrid){grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr))!important;gap:8px!important}
html[data-touch-ui=true] body.layout1 .equipLayout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
html[data-touch-ui=true] body.layout1 :is(.fleetRow,.fleetCreate,.tradeActions1){min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
html[data-touch-ui=true] body.layout1 .panel table{font-size:12px!important;table-layout:fixed;width:100%;overflow-wrap:anywhere}
html[data-touch-ui=true] body.layout1 #mobileHelm14{width:76px!important;height:76px!important;bottom:calc(env(safe-area-inset-bottom) + 82px)!important;left:calc(env(safe-area-inset-left) + 10px)!important}
html[data-touch-ui=true] body.layout1 #mobileTarget{bottom:calc(env(safe-area-inset-bottom) + 83px)!important;right:calc(env(safe-area-inset-right) + 7px)!important}
html[data-touch-ui=true] body.layout1 #mobileRail{top:calc(env(safe-area-inset-top) + 70px)!important}
html[data-touch-ui=true] body.layout1 #combatReload11{bottom:calc(env(safe-area-inset-bottom) + 72px)!important}
html[data-touch-ui=true] body.layout1 :is(.panel,.marineDialog5,dialog) h2{font-size:17px!important;margin-top:3px!important;line-height:1.3!important}
html[data-touch-ui=true] body.layout1 :is(.panel,.marineDialog5,dialog) :is(.close,.minimize11,.mobileDialogMin){position:sticky!important;top:0!important;z-index:5;min-width:44px!important;min-height:44px!important;margin:0 0 6px 5px!important}
@media(max-height:420px){html[data-touch-ui=true] body.layout1 #mobileHelm14{width:64px!important;height:64px!important}html[data-touch-ui=true] body.layout1 #mobileRail{flex-direction:row!important;gap:4px!important}html[data-touch-ui=true] body.layout1 #mobileRail button{height:44px!important;width:44px!important}}
@media(max-width:600px){html[data-touch-ui=true] body.layout1 .equipLayout{grid-template-columns:minmax(0,1fr)!important}html[data-touch-ui=true] body.layout1 #mobileResources{font-size:10px!important}html[data-touch-ui=true] body.layout1 .actions>button{min-width:42px!important}}

html body.layout1 .actions :is(#tfAPBtn,#tfHEBtn,#tfPumpkinBtn,#tfBoneBtn,#repairBtn,#rocketBtn,#torpedoBtn,#fuelUse5,#heliLaunch,#jetLaunch)[data-g2b-label]>*{display:none!important}
html body.layout1 .actions #tfAPBtn[data-g2b-label]::before{content:""!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23c7e4e9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2021V8l4-6%204%206v13z%22%2F%3E%3Cpath%20d%3D%22M8%2016h8%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat!important}
html body.layout1 .actions #tfHEBtn[data-g2b-label]::before{content:""!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23f0ad78%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2021V8l4-6%204%206v13z%22%2F%3E%3Cpath%20d%3D%22M8%2010h8M8%2017h8%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat!important}
html body.layout1 .actions #tfPumpkinBtn[data-g2b-label]::before{content:""!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23f0bc69%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%206V2l3-1M12%206C1-1-4%2023%2012%2022c16%201%2011-23%200-16zM12%207c-5-1-6%2015%200%2015s5-16%200-15%22%2F%3E%3Cpath%20d%3D%22m7%2012%202-2%201%203m4%200%201-3%202%202M8%2017l4%202%204-2%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat!important}
html body.layout1 .actions #repairBtn[data-g2b-label]::before{content:""!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23c7e4e9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203a5%205%200%200%200-4%208L2%2019l3%203%208-9a5%205%200%200%200%208-5l-4%203-4-4%203-4z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat!important}
html body.layout1 .actions #rocketBtn[data-g2b-label]::before{content:""!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23c7e4e9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2015C6%208%2013%203%2021%202c-1%208-6%2015-13%2013zm0-4-5%201-2%205%207-2m5%201-1%205-5%202%201-8M5%2019l-3%203%22%2F%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%228%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat!important}
html body.layout1 .actions #torpedoBtn[data-g2b-label]::before{content:""!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23c7e4e9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2015%2016%203q6-4%205%203L8%2019%203%2015zm2%202-3%205m6-3-1%204M3%2015l-2%201%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat!important}
html body.layout1 .actions #fuelUse5[data-g2b-label]::before{content:""!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23c7e4e9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%206h14v16H5zM7%202h9v4H7zM4%207l-2-3%203-2%202%203M8%2010l8%208m0-8-8%208%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat!important}
html body.layout1 .actions #heliLaunch[data-g2b-label]::before{content:""!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23c7e4e9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%203h20M12%203v5M3%2014h14q6-5%200-6H9l-6%206zm0%200-2-6M6%2018h14m-11-4v4m8-4v4%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat!important}
html body.layout1 .actions #jetLaunch[data-g2b-label]::before{content:""!important;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23c7e4e9%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%201%202%208%208%206v3l-8-3v5l3%203-5-1-5%201%203-3v-5l-8%203v-3l8-6z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat!important}

html body.layout1 :is(.hud,.buttons,.actions,.help,#chatBox,#mapDock1,#combatDock1,#mobileTop,#navigationStatus){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:not([data-touch-ui=true]) body.layout1 #navigationStatus{width:max-content!important;max-width:calc(var(--sea-width1) - 30px)!important;padding:3px 10px!important}

html body.layout1 .actions #tfPumpkinBtn[hidden]{display:none!important}
html[data-touch-ui=true] body.layout1:not(.mobileCarrier) .actions :is(#heliLaunch,#jetLaunch){display:none!important}

@media(max-width:1450px){html:not([data-touch-ui=true]) body.layout1 #tfResourceStrip .row{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;grid-template-rows:16px 16px!important;column-gap:3px!important;row-gap:0!important;padding:4px!important}html:not([data-touch-ui=true]) body.layout1 #tfResourceStrip .row::before{grid-row:1/3!important}html:not([data-touch-ui=true]) body.layout1 #tfResourceStrip .row b{grid-column:2!important;white-space:nowrap!important;font-size:11px!important}html:not([data-touch-ui=true]) body.layout1 #tfResourceStrip .row span{grid-column:2!important;font-size:9px!important}}

html[data-touch-ui=true] body.layout1 .rankEntry{display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;column-gap:8px!important;min-width:0!important}html[data-touch-ui=true] body.layout1 .rankEntry small{grid-column:2!important;margin-left:0!important;overflow-wrap:anywhere!important}html[data-touch-ui=true] body.layout1 .rankEntry b{min-width:0!important;overflow-wrap:anywhere!important}
