/* V9: local battle replay and user-configurable instrument loadout */
#settingsOpen{border-color:#62d8b4;color:#9dffe1;background:linear-gradient(#18453a,#0a1d18)}
#lastReplayOpen{border-color:#ffb839;color:#ffe19c;background:linear-gradient(#49300b,#1c1307)}
#lastReplayOpen:disabled{opacity:.38;filter:grayscale(1);cursor:not-allowed}
.replay-notice{position:absolute;z-index:6;top:34px;left:50%;display:none;grid-template-columns:auto auto auto;align-items:center;gap:14px;transform:translateX(-50%);padding:7px 9px 7px 14px;border:1px solid #ffcf5a;background:#190d05e8;color:#ffe1a0;box-shadow:0 0 22px #ffad1477,inset 0 0 18px #ff6d001f;font:800 10px/1 Consolas,monospace;letter-spacing:.12em;white-space:nowrap;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
body.replay-mode .replay-notice{display:grid}
body.replay-mode.replay-flash .replay-notice b{animation:replayFlash .72s steps(2,end) infinite}
.replay-notice span{color:#f6f0d9;font-size:9px;letter-spacing:.04em}
.replay-notice button{padding:5px 8px;border:1px solid #ff8c58;background:#4d160d;color:#fff2db;font:800 8px Consolas,monospace;cursor:pointer}
@keyframes replayFlash{50%{opacity:.18;text-shadow:0 0 18px #ffad14}}
body.result-hold .main-display{box-shadow:inset 0 0 70px #ff9d1938,0 0 24px #ff9d1938}
.settings-window>section{width:min(1040px,94vw);max-height:92vh;overflow:auto}
.settings-columns{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(420px,1.28fr);gap:14px;text-align:left}
.settings-columns article{border:1px solid #36574d;background:#08130f;padding:14px}
.settings-columns h3{margin:0 0 12px;color:#ffcf5a;font:900 12px/1 Consolas,monospace;letter-spacing:.12em}
.settings-window label{margin:8px 0}
.setting-switch{display:flex!important;align-items:flex-start;gap:10px;padding:9px;border:1px solid #29493e;background:#0d1b16;cursor:pointer}
.setting-switch input{flex:0 0 auto;margin-top:2px;accent-color:#5cff9a}
.setting-switch span,.setting-switch b,.setting-switch small{display:block}
.setting-switch b{color:#dff7e9;font:800 9px/1.2 Consolas,monospace;letter-spacing:.06em}
.setting-switch small{margin-top:4px;color:#79958a;font:7px/1.4 Consolas,monospace}
.module-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.module-settings .setting-switch{margin:0;min-height:53px}
.module-settings .setting-switch input:not(:checked)+span b{color:#ff887c}
.settings-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:13px}
.settings-actions button{min-width:190px}
:is(html:fullscreen,html.fullscreen-fit) [data-module].module-disabled,body.windowed-loadout [data-module].module-disabled{display:none!important}
:is(html:fullscreen,html.fullscreen-fit) body.module-missions-off .shell{grid-template-rows:58px minmax(0,1fr) 18px}
:is(html:fullscreen,html.fullscreen-fit) body.module-tactical-off .main-display{grid-template-rows:23px minmax(0,1fr) 48px}
:is(html:fullscreen,html.fullscreen-fit) body.lower-count-0 .centre-column{grid-template-rows:minmax(0,1fr) 26px}
:is(html:fullscreen,html.fullscreen-fit) body.lower-count-0 .lower-console{display:none}
:is(html:fullscreen,html.fullscreen-fit) body.left-count-0 .left-column,:is(html:fullscreen,html.fullscreen-fit) body.right-count-0 .right-column{display:none}
:is(html:fullscreen,html.fullscreen-fit) body.left-count-0:not(.right-count-0) .cockpit-grid{grid-template-columns:minmax(500px,1fr) 210px}
:is(html:fullscreen,html.fullscreen-fit) body.right-count-0:not(.left-count-0) .cockpit-grid{grid-template-columns:210px minmax(500px,1fr)}
:is(html:fullscreen,html.fullscreen-fit) body.left-count-0.right-count-0 .cockpit-grid{grid-template-columns:1fr}
:is(html:fullscreen,html.fullscreen-fit) body.left-count-1 .left-column{grid-template-rows:minmax(0,1fr)}
:is(html:fullscreen,html.fullscreen-fit) body.left-count-2 .left-column{grid-template-rows:repeat(2,minmax(0,1fr))}
:is(html:fullscreen,html.fullscreen-fit) body.right-count-1 .right-column{grid-template-rows:minmax(0,1fr)}
:is(html:fullscreen,html.fullscreen-fit) body.right-count-2 .right-column{grid-template-rows:repeat(2,minmax(0,1fr))}
:is(html:fullscreen,html.fullscreen-fit) body.right-count-3 .right-column{grid-template-rows:repeat(3,minmax(0,1fr))}
:is(html:fullscreen,html.fullscreen-fit) body.right-count-4 .right-column{grid-template-rows:repeat(4,minmax(0,1fr))}
:is(html:fullscreen,html.fullscreen-fit) body.lower-count-1 .lower-console{grid-template-columns:1fr}
:is(html:fullscreen,html.fullscreen-fit) body.lower-count-2 .lower-console{grid-template-columns:repeat(2,minmax(0,1fr))}
body.windowed-loadout.left-count-0 .left-column,body.windowed-loadout.right-count-0 .right-column{display:none}
body.windowed-loadout.left-count-0:not(.right-count-0) .cockpit-grid{grid-template-columns:minmax(590px,1fr) 270px}
body.windowed-loadout.right-count-0:not(.left-count-0) .cockpit-grid{grid-template-columns:270px minmax(590px,1fr)}
body.windowed-loadout.left-count-0.right-count-0 .cockpit-grid{grid-template-columns:1fr}
body.windowed-loadout.lower-count-0 .lower-console{display:none}
body.windowed-loadout.lower-count-1 .lower-console{grid-template-columns:1fr}
body.windowed-loadout.lower-count-2 .lower-console{grid-template-columns:repeat(2,minmax(0,1fr))}
body.replay-mode #pauseButton,body.replay-mode #mapButton,body.replay-mode .hard-controls button,body.replay-mode .hard-controls input,body.replay-mode .altitude-control button,body.replay-mode .altitude-control input{pointer-events:none;filter:grayscale(.8);opacity:.55}
@media(max-width:760px){.settings-columns{grid-template-columns:1fr}.module-settings{grid-template-columns:1fr}.replay-notice{top:28px;gap:7px;font-size:8px}.replay-notice span{display:none}}
