/* Controls share the field HUD's type and colour, with larger hit areas in the dialog. */
.field-nav #assistMenuButton {gap:5px;padding-inline:9px;color:#e2eccf;position:relative}
.field-nav #assistMenuButton.assist-active:after {content:"";position:absolute;right:5px;top:5px;width:4px;height:4px;border-radius:50%;background:#c3e5a2}
@media(max-width:425px) {
  .walking #mercCount{top:calc(max(12px,env(safe-area-inset-top)) + 48px)}
}
#assistMenu {
  --assist-accent:#c1d9a7;--assist-soft:#a9b7a9;
  box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(442px,calc(100vw - 28px));
  max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);padding:0;overflow:hidden;
  border:1px solid #526155;border-radius:12px;color:#eff2e9;background:#1b2521;
  background:linear-gradient(120deg,#222e27,#1a2420 55%);
  box-shadow:0 20px 65px #07110cca,0 1px 0 #dce8d415 inset;
  font:500 14px/1.4 system-ui,"Microsoft YaHei",sans-serif;color-scheme:dark;
  overscroll-behavior:contain;touch-action:pan-y;
}
#assistMenu[open] {display:flex;flex-direction:column}
#assistMenu::backdrop {background:rgba(8,15,13,.68)}
#assistMenu * {box-sizing:border-box}
#assistMenu svg {display:block;height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#assistMenu button {font:inherit;cursor:pointer;touch-action:manipulation}
#assistMenu button:focus-visible,#assistMenu label:has(input:focus-visible) {outline:2px solid #d7ecad;outline-offset:2px}
#assistMenu .assist-top {display:flex;align-items:center;gap:12px;padding:19px 20px 15px;border-bottom:1px solid #bacbb71c;flex:none}
#assistMenu .assist-emblem {width:39px;height:39px;display:grid;place-items:center;flex:none;border:1px solid #788b6c;border-radius:9px;color:#cee2b1;background:#344332}
#assistMenu .assist-emblem svg {width:22px;height:22px}
#assistMenu .assist-caption {flex:1;min-width:0}
#assistMenu h2 {margin:0;color:#f1f3e8;font:650 21px/1.23 system-ui,"Microsoft YaHei",sans-serif;letter-spacing:.035em;outline:0}
#assistMenu #assistStatus {display:block;margin-top:4px;color:#b3bfaf;font-size:11px;letter-spacing:.015em}
#assistMenu #assistClose {display:grid;place-items:center;width:41px;height:41px;padding:0;color:#cad5c8;border:1px solid #cad5c422;border-radius:7px;background:#c4d4bc08}
#assistMenu #assistClose:hover {background:#c4d4bc17}
#assistMenu .assist-controls {display:grid;gap:15px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 20px;color:#eff2e6;scrollbar-width:thin}
#assistMenu fieldset {border:0;min-inline-size:0;margin:0;padding:0}
#assistMenu legend {float:none;padding:0;margin:0 0 7px;font:650 12px/1.4 system-ui,"Microsoft YaHei",sans-serif;color:#b8c6b4;letter-spacing:.07em}
#assistMenu .assist-grid {display:grid;grid-template-columns:repeat(var(--tile-count,3),minmax(0,1fr));gap:6px}
#assistMenu .assist-tile {position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:78px;padding:10px 10px 9px;background:#27322c;border:1px solid #b4c5b225;border-radius:6px;cursor:pointer;touch-action:pan-y;user-select:none;-webkit-tap-highlight-color:transparent}
#assistMenu .assist-tile:has(input:checked) {background:#344331;border-color:#8caa73}
#assistMenu .assist-tile:hover {border-color:#83947c}
#assistMenu .assist-tile-head {display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:#b5c6af}
#assistMenu .assist-tile-head svg {width:16px;height:16px}
#assistMenu .assist-tile:has(input:checked) .assist-tile-head {color:#d0e8b3}
#assistMenu .assist-toggle {display:inline-flex;align-items:center;width:24px;height:14px;padding:2px;background:#1a241f;border:1px solid #758174;border-radius:12px;flex:none}
#assistMenu .assist-toggle:after {content:"";width:8px;height:8px;background:#a7b3a6;border-radius:50%;transition:transform 110ms ease}
#assistMenu input:checked + .assist-tile-head .assist-toggle {border-color:#bdd3a6;background:#bdd3a6}
#assistMenu input:checked + .assist-tile-head .assist-toggle:after {background:#384934;transform:translateX(9px)}
#assistMenu .assist-tile strong {font:650 14px/1.3 system-ui,"Microsoft YaHei",sans-serif;color:#f1f3e9;white-space:nowrap}
#assistMenu .assist-tile small {margin-top:3px;color:#adbbac;font-size:10px;line-height:1.3;white-space:nowrap}
#assistMenu .assist-tile:has(input:checked) small {color:#c2d1b9}
#assistMenu input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
#assistMenu .assist-speed {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #bdc9b923;padding-top:13px}
#assistMenu .assist-speed legend {float:left;margin:0}
#assistMenu .assist-radios {display:flex;gap:3px;padding:3px;border:1px solid #aabda62d;border-radius:6px;background:#141d19}
#assistMenu .assist-radios label {position:relative;min-width:46px;display:grid;place-items:center;min-height:31px;border-radius:3px;user-select:none}
#assistMenu .assist-radios label span {display:block;color:#bcc8b9;padding:3px 6px;font:650 14px/1.2 ui-monospace,Consolas,monospace}
#assistMenu .assist-radios label b {font-size:12px;font-weight:500}
#assistMenu .assist-radios label:has(input:checked) {background:#465841}
#assistMenu .assist-radios label:has(input:checked) span {color:#e4f4d4}
#assistMenu .assist-foot {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px 16px;border-top:1px solid #bdc9b923;flex:none}
#assistMenu #assistReset {display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:3px 3px;color:#c5d1bd;border:0;background:none;font-size:12px}
#assistMenu #assistReset svg {width:14px;height:14px}
#assistMenu #assistReset:disabled {color:#869285;cursor:default}
#assistMenu #assistDone {min-height:41px;padding:0 21px;border:1px solid #c0d7a5;border-radius:6px;background:#c0d7a5;color:#23341f;font-size:13px;font-weight:700}
#assistMenu #assistDone:hover {background:#d1e3bd}
@media(max-width:500px) and (min-height:481px) {
  #assistMenu {inset:auto 0 0;width:100%;max-width:100vw;max-height:calc(100dvh - max(18px,env(safe-area-inset-top)));border-radius:15px 15px 0 0;border-bottom:0}
  #assistMenu .assist-top {padding:17px 18px 14px}
  #assistMenu .assist-controls {padding:15px 18px}
  #assistMenu .assist-foot {padding:12px 18px max(16px,env(safe-area-inset-bottom))}
}
@media(max-width:360px) {
  #assistMenu .assist-grid {gap:5px}
  #assistMenu .assist-tile {padding:9px 7px}
  #assistMenu .assist-tile small {font-size:9.5px}
}
@media(min-width:560px) and (max-height:500px) {
  #assistMenu {width:min(650px,calc(100vw - 26px));max-height:calc(100dvh - 16px)}
  #assistMenu .assist-top {padding:10px 17px}
  #assistMenu .assist-controls {grid-template-columns:1fr 1fr;gap:10px 14px;padding:11px 17px}
  #assistMenu .assist-speed {grid-column:1/-1;padding-top:8px}
  #assistMenu .assist-tile {min-height:68px;padding:7px 8px}
  #assistMenu .assist-tile-head {margin-bottom:5px}
  #assistMenu .assist-foot {padding:7px 17px 10px}
}
@media(pointer:coarse) {
  #assistMenu .assist-radios label {min-width:48px;min-height:37px}
  #assistMenu #assistDone,#assistMenu #assistClose,#assistMenu #assistReset {min-height:44px}
}
@media(prefers-reduced-motion:reduce) {#assistMenu .assist-toggle:after {transition:none}}

.arsenal-bar #bigRoundsQuick {display:none}
.walking.pulse-mode:not(.defeated) .arsenal-bar #bigRoundsQuick {
  display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;
  font:650 12px/1.2 system-ui,"Microsoft YaHei",sans-serif;color:#ecf2e4;white-space:nowrap;
  background:#71856523;touch-action:manipulation
}
.arsenal-bar #bigRoundsQuick b {
  display:grid;place-items:center;min-width:17px;height:18px;padding:0 2px;
  border:1px solid #b5c3b14f;border-radius:3px;background:#1d2721;color:#bac5b5;font-size:10px;font-weight:600
}
.walking.pulse-mode:not(.defeated) .arsenal-bar #bigRoundsQuick[aria-pressed=true] {color:#e8f3d9;background:#42543b}
.arsenal-bar #bigRoundsQuick[aria-pressed=true] b {border-color:#b6ce97;background:#bfd5a7;color:#293b22}
#assistMenu .assist-section[data-section=shooting] legend {color:#d3e3bc}
#assistMenu .assist-section[data-section=shooting] .assist-tile {background:#2c382e;border-color:#b3c59845}
#assistMenu .assist-section[data-section=shooting] .assist-tile:has(input:checked) {background:#3a4b35;border-color:#a5c08b}
@media(min-width:560px) and (max-height:500px) {
  #assistMenu .assist-section[data-section=shooting] {grid-column:1/-1}
  #assistMenu .assist-section[data-section=shooting] .assist-tile {display:grid;grid-template-columns:18px 1fr auto;grid-template-rows:auto auto;gap:2px 8px;align-content:center;min-height:43px;padding:6px 9px}
  #assistMenu .assist-section[data-section=shooting] .assist-tile-head {display:contents}
  #assistMenu .assist-section[data-section=shooting] .assist-tile-head svg {grid-area:1/1/3/2;align-self:center}
  #assistMenu .assist-section[data-section=shooting] .assist-toggle {grid-area:1/3/3/4;align-self:center}
  #assistMenu .assist-section[data-section=shooting] strong {grid-area:1/2}
  #assistMenu .assist-section[data-section=shooting] small {grid-area:2/2;margin:0}
  #assistMenu .assist-controls {gap:8px 14px}
}
@media(max-width:345px) {
  .walking.pulse-mode:not(.defeated) .arsenal-bar #bigRoundsQuick {gap:3px;padding:0 6px}
}
@media(max-width:460px) {
  .walking.pulse-mode:not(.defeated) .arsenal-bar {bottom:calc(max(18px,env(safe-area-inset-bottom)) + 110px)}
}
@media(min-width:560px) and (max-height:425px) {
  #assistMenu .assist-top {padding-block:7px}
  #assistMenu .assist-controls {padding-block:7px;row-gap:6px}
  #assistMenu .assist-foot {padding-block:5px}
}
