/* Build 180: keep compact, stable controls and expose related controls together. */
/* Build 202, second round: --d-view-wide is the room between the Tactical and Flight bars, which the open View panel now takes
   (never less than the old --d-view-w, never more than 560 px). */
html[data-consolidated-controls="true"] body{--d-view-w:clamp(180px,19vw,250px);--d-view-wide:max(var(--d-view-w),min(560px,calc(100vw - 2 * var(--c-edge) - 4 * var(--d-u) - 4 * var(--d-gap))));--d-u:min(250px,calc((100vw - 2 * var(--c-edge) - var(--d-view-w) - 4 * var(--d-gap)) / 4));--d-flight-x:calc(100vw - var(--c-edge) - 2 * var(--d-u) - var(--d-gap));--d-nav-x:calc(100vw - var(--c-edge) - var(--d-u));--c-menu:340px}
html[data-consolidated-controls="true"] body #sim :is(#sensorsPanel,#showSensors){display:none!important}
html[data-consolidated-controls="true"] body #sim .header-actions{width:var(--c-menu);max-width:var(--c-menu)}
html[data-consolidated-controls="true"] body #sim .header-actions>#shipSystems{width:54px;min-width:54px;order:-1}
html[data-consolidated-controls="true"] body #sim .header-actions .scorebox{order:-2}
html[data-consolidated-controls="true"] body #sim .contact-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;flex:none;margin:0 0 7px}
html[data-consolidated-controls="true"] body #sim .contact-tabs button{height:30px;min-height:30px;min-width:0;font-size:12px;padding:0 8px;white-space:nowrap}
html[data-consolidated-controls="true"] body #sim .contact-tabs button[aria-selected="true"]{color:#ffdfa3;border-color:var(--pane-amber);background:rgba(128,88,23,.24)}
html[data-consolidated-controls="true"] body #sim .contact-tab-count{display:inline-block;min-width:3ch;font-variant-numeric:tabular-nums;text-align:right;font-size:10px}
html[data-consolidated-controls="true"] body #sim .contact-tab-panel{display:flex;flex-direction:column;min-height:0;gap:4px;flex:1}
html[data-consolidated-controls="true"] body #sim .contact-tab-panel[hidden]{display:none!important}
html[data-consolidated-controls="true"] body #sim #contactContacts{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 5px}
html[data-consolidated-controls="true"] body #sim #contactContacts #contacts{max-height:none;overflow:visible}
html[data-consolidated-controls="true"] body #sim #contactContacts .contact-filter{display:grid;grid-template-columns:1fr 1fr;gap:4px;flex:none}
html[data-consolidated-controls="true"] body #sim #contactContacts .contact-filter button{height:28px;min-height:28px;font-size:11px}
html[data-consolidated-controls="true"] body #sim .sensor-help{font-size:11px;line-height:15px;margin:2px 0 5px}
html[data-consolidated-controls="true"] body #sim .drawer-group-title{font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:600;margin:4px 0 6px;color:var(--blue)}
html[data-consolidated-controls="true"] body #sim #fleetControls{grid-row:6;margin-top:3px;padding-top:4px;border-top:1px solid var(--d-line)}
html[data-consolidated-controls="true"] body #sim #fleetControls :is(.fleet-strip,.battle-call){margin:4px 0}
html[data-consolidated-controls="true"] body #sim #fleetControls .fleet-buttons{display:flex;gap:4px}
html[data-consolidated-controls="true"] body #sim #fleetControls .fleet-buttons button{flex:1;min-width:0;height:28px;padding:0 4px;font-size:11px}
html[data-consolidated-controls="true"] body #sim #fleetControls .posture-control{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}
html[data-consolidated-controls="true"] body #sim #fleetControls .posture-control select{flex:1;min-width:0;height:26px}
html[data-consolidated-controls="true"] body #sim #fleetControls :is(#fleetStatus,#waveStatus,#battleStrength,#crewCombatReadout){font-size:10.5px;line-height:14px;margin:3px 0}
html[data-consolidated-controls="true"] body #sim #tacticalDock{max-height:min(var(--d-open-max),604px)}
html[data-consolidated-controls="true"] body #sim #flightSystems :is(button,select){height:28px;min-height:28px;min-width:0;font-size:11px;padding:0 6px}
html[data-consolidated-controls="true"] body #sim #flightSystems #quickSeparate{width:100%}
html[data-consolidated-controls="true"] body #sim #flightSystems #sectionDetails>div,html[data-consolidated-controls="true"] body #sim #flightSystems .section-orders>div{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}
html[data-consolidated-controls="true"] body #sim #flightSystems #sectionDetails button{flex:1}
html[data-consolidated-controls="true"] body #sim #flightSystems :is(p,summary){font-size:10.5px;line-height:14px;margin:4px 0}
html[data-consolidated-controls="true"] body #sim #flightSystems .saucer-locator{display:flex;flex-wrap:wrap;gap:4px}
html[data-consolidated-controls="true"] body #sim #flightSystems .saucer-locator[hidden]{display:none}
html[data-consolidated-controls="true"] body #sim #navigationMissions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:6px 0}
html[data-consolidated-controls="true"] body #sim #navigationMissions button{width:100%;min-width:0;height:30px;min-height:30px;font-size:11px;padding:0 5px;white-space:nowrap}
html[data-consolidated-controls="true"] body #sim #navigationOverview{font-size:11px;line-height:15px;border-top:1px solid var(--d-line);padding-top:4px}
html[data-consolidated-controls="true"] body #sim #navigationOverview summary{cursor:pointer;padding:4px 0}
html[data-consolidated-controls="true"] body #sim #navigationOverview #missionTitle{font-size:14px;line-height:18px;margin:4px 0}
html[data-consolidated-controls="true"] body #sim #navigationOverview :is(#sectorCharacter,.mission-badges){font-size:10.5px;line-height:14px;margin:4px 0}
html[data-consolidated-controls="true"] body #sim #navigateDock[data-expanded="false"] :is(#navigationMissions,#navigationOverview){display:none!important}
html[data-consolidated-controls="true"] body #sim .helm-group-navigate{max-height:min(var(--d-open-max),560px)}
@media(min-width:701px) and (max-height:520px){
 html[data-consolidated-controls="true"] body #sim #fleetControls{max-height:130px;overflow:auto}
}
html[data-consolidated-controls="true"] body #sim #combatOverview{grid-row:6;grid-column:1/-1;font-size:11px;line-height:14px}
html[data-consolidated-controls="true"] body #sim #combatOverview p{margin:3px 0;font-size:10.5px;line-height:14px}
html[data-consolidated-controls="true"] body #sim #fleetControls{grid-row:7}
html[data-consolidated-controls="true"] body #sim #fleetControls summary{cursor:pointer;padding:4px 0;margin:0;font-size:11px}
html[data-consolidated-controls="true"] body #sim #tacticalDetails{min-height:0;overflow-y:auto;max-height:calc(var(--d-open-max) - 48px)}
html[data-consolidated-controls="true"] body #sim #refine{height:34px!important;min-height:34px!important;line-height:13px;white-space:normal;font-size:10px}
html[data-consolidated-controls="true"] body #sim #scanNote .scan-note-actions button[hidden]{visibility:hidden;pointer-events:none;display:flex!important}
html[data-consolidated-controls="true"] body #sim #scanNote .scan-note-actions button small{flex-basis:100%;font-size:10px;line-height:12px;color:#b8d5df}
html[data-consolidated-controls="true"] body #sim #scanNote .scan-note-actions button kbd{font-size:9px;line-height:13px;padding:0 3px;border:1px solid #94b9cc55;border-radius:3px}
#sim #warpLabel[hidden],#sim #systemTitle[data-suppressed="true"]{display:none!important}
html[data-consolidated-controls="true"] body #sim :is(#warpLabel,#systemTitle,#squadronAlert){top:var(--notice-top,100px)!important}
@media(min-width:701px) and (max-height:650px){
 html[data-consolidated-controls="true"] body #sim .contact-tabs button{height:28px;min-height:28px}
}
html[data-consolidated-controls="true"] body #sim :is(#systemTitle,#squadronAlert){left:calc(50% + var(--d-contact-w) / 2)!important;max-width:calc(100vw - var(--d-contact-w) - 48px);transform:translateX(-50%)}

html[data-consolidated-controls="true"] body #sim #contactSelected{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
html[data-consolidated-controls="true"] body #sim #contactSelected #targetCommandStrip{flex:none;overflow:visible;max-height:none}
/* The saucer bearing remains actionable below a central notice, never over it. */
html[data-consolidated-controls="true"] body #sim:has(#squadronAlert:not([hidden])) #saucerBearing,html[data-consolidated-controls="true"] body #sim:has(#systemTitle.show:not([hidden]):not([data-suppressed="true"])) #saucerBearing{top:calc(var(--notice-top,104px) + 112px)!important}
html[data-consolidated-controls="true"] body #sim.warping #saucerBearing{display:none}
/* Revision 2: two compact groups, with View centered between them. */
html[data-consolidated-controls="true"] body #sim .drawer-grip{box-sizing:border-box;width:100%;height:32px;min-height:32px;max-height:32px;padding:0;margin:0;border:0;background:transparent;box-shadow:none;border-radius:6px;font-size:0;cursor:pointer}
html[data-consolidated-controls="true"] body #sim .drawer-grip::before{top:14px;width:40px;margin-left:-20px}
html[data-consolidated-controls="true"] body #sim .drawer-grip:hover{background:#bde5ff12}
html[data-consolidated-controls="true"] body #sim .drawer-grip:focus-visible{outline:2px solid #a9dcff;outline-offset:-3px}
html[data-consolidated-controls="true"] body #sim #targetPanel{height:min(430px,calc(100vh - 300px));max-height:min(430px,calc(100vh - 300px));overflow:hidden}
html[data-consolidated-controls="true"] body #sim #contactContacts .sensor-help{height:30px;min-height:30px;margin:0 0 3px}
html[data-consolidated-controls="true"] body #sim #viewDock{top:auto;bottom:var(--d-bottom);left:50%;right:auto;transform:translateX(-50%);width:var(--d-view-wide);min-width:0;max-width:none;height:var(--d-bar);border-top-color:var(--pane-blue)}
html[data-consolidated-controls="true"] body #sim #viewDock .deck-view-heading{width:100%;height:calc(var(--d-bar) - 2px);min-height:0}
/* Build 212: the View panel has no grip row any more (controls-layout.js), so its top padding is its sides' again. */
html[data-consolidated-controls="true"] body #sim #viewDock #viewDetails{top:auto;bottom:calc(100% - 1px);right:auto;left:50%;transform:translateX(-50%);width:var(--d-view-wide);max-height:calc(100vh - 150px);overflow-y:auto;border-bottom-left-radius:0;border-bottom-right-radius:0}
html[data-consolidated-controls="true"] body #sim #viewDock #viewDetails[hidden]{display:none}
/* Build 202, second round: where the window leaves the View panel no extra room (under about 1390 px) the key hints give
   their space to the labels, which were clipped there (Admire, Forward and Watch at 1100 px). */
@media (max-width:1387px){html[data-consolidated-controls="true"] body #sim #viewDock #viewDetails kbd{display:none}}
/* Build 202, third round put the View panel's second row (Shuttlebay lounge, the View button, Send Shuttle) at the bottom edge in
   wide windows. Build 208 (Eric, 23 Nov: "rearrange the View menu at the center bottom of the screen. Put Admire/Fly as a toggle,
   Tower (instead of Shuttlebay Lounge), ... Cockpit in the bottom bar - if they all fit. Then it expands to reveal the remaining
   functions"): that row is now the View bar itself (control-deck.css), and the panel opens above it at every width. */
/* One footprint for every reading, including two rows of actions. */
html[data-consolidated-controls="true"] body #sim #scanNote:is([data-state="tip"],[data-state="scan"],[data-state="watch"]){box-sizing:border-box;width:var(--d-contact-w);max-width:calc(100vw - 24px);height:174px;min-height:174px;max-height:174px;display:flex;flex-direction:column;overflow:hidden;padding:7px 8px}
html[data-consolidated-controls="true"] body #sim #scanNote .scan-note-head{height:20px;min-height:20px;flex:none}
html[data-consolidated-controls="true"] body #sim #scanNote #scanNoteText{display:block;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;-webkit-line-clamp:unset;line-clamp:unset;font-size:11px;line-height:14px;margin:4px 0;white-space:normal}
html[data-consolidated-controls="true"] body #sim #scanNote .scan-note-actions{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:28px 28px;gap:4px;flex:none;height:60px;margin-top:0}
html[data-consolidated-controls="true"] body #sim #scanNote:not([data-state="tip"]) .scan-note-actions{display:none}
html[data-consolidated-controls="true"] body #sim #scanNote .scan-note-actions button{display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 4px;width:100%;height:28px!important;min-height:28px!important;max-height:28px!important;margin:0;padding:0 3px;font-size:10.5px;line-height:12px;white-space:normal;overflow:hidden}
html[data-consolidated-controls="true"] body #sim #scanNote[data-state="watch"] :is(.scan-note-head,#scanNoteText){display:none}
html[data-consolidated-controls="true"] body #sim #scanNote #scanNoteClose{width:24px;min-width:24px;height:24px}
/* Flight: section controls and their status above the speed controls. */
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="true"]{max-height:min(var(--d-open-max),520px);grid-template-columns:repeat(5,minmax(0,1fr));row-gap:4px}
html[data-consolidated-controls="true"] body #sim #flightSystems{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:96px minmax(0,1fr);gap:6px;align-items:start;min-height:0;max-height:170px;overflow:auto;scrollbar-width:thin;border-bottom:1px solid var(--d-line);padding:0 0 5px}
html[data-consolidated-controls="true"] body #sim #flightSystems .flight-saucer{grid-column:1;grid-row:1}
html[data-consolidated-controls="true"] body #sim #flightSystems .deck-radar{grid-column:2;grid-row:1;display:block;margin:0;min-height:68px;height:68px;overflow:hidden;font-size:10px;line-height:13px}
html[data-consolidated-controls="true"] body #sim #flightSystems .deck-radar>div{display:grid;grid-template-columns:1fr;gap:1px;min-width:0}
html[data-consolidated-controls="true"] body #sim #flightSystems .deck-radar span:first-child{display:none}
html[data-consolidated-controls="true"] body #sim #flightSystems :is(#navMode,#speedReason){display:block;height:26px;min-height:26px;overflow:hidden;font-size:10px;line-height:13px}
html[data-consolidated-controls="true"] body #sim #flightSystems #heading{height:13px;line-height:13px;font-size:10px;font-variant-numeric:tabular-nums}
html[data-consolidated-controls="true"] body #sim #flightSystems #quickSeparate{height:44px;min-height:44px;white-space:normal;line-height:14px}
html[data-consolidated-controls="true"] body #sim #flightSystems:has(#sectionDetails:not([hidden])){grid-template-columns:1fr}
html[data-consolidated-controls="true"] body #sim #flightSystems:has(#sectionDetails:not([hidden])) .deck-radar{grid-row:2;grid-column:1}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="true"] .flight-strip{grid-row:3}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="true"] #turboReason{grid-row:4;grid-column:1/-1}
html[data-consolidated-controls="true"] body #sim #helmDock #turboReason{display:block!important;height:14px;min-height:14px;max-height:14px;line-height:14px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="true"] .speed-zone-line{grid-row:5;display:grid;grid-template-columns:minmax(0,1fr) 94px;gap:5px}
html[data-consolidated-controls="true"] body #sim #helmDock .speed-zone-line :is(span,output){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="true"] .course-eta{grid-row:6}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="true"] :is(#stop,#impulse25,#impulse50,#impulse100,#throttle){grid-row:7}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="true"] :is(#speedDown,#speedUp,#backAway){grid-row:8}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="true"] #helmHeader{grid-row:9}
html[data-consolidated-controls="true"] body #sim #helmDock #flightSection{display:none}
html[data-consolidated-controls="true"] body #sim #helmDock #helmHeader{display:grid;grid-template-columns:46px minmax(0,1fr) 77px;gap:3px;align-items:center;min-width:0}
html[data-consolidated-controls="true"] body #sim #helmDock #helmToggle{width:46px;min-width:46px;padding:0;text-align:left;font-size:9px;letter-spacing:.6px}
html[data-consolidated-controls="true"] body #sim #helmDock #flightBarSpeed{display:block;min-width:0;height:16px;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;font-variant-numeric:tabular-nums;text-align:left}
html[data-consolidated-controls="true"] body #sim #helmDock #helmHeader .speed-turbo-presets{display:grid;grid-template-columns:27px 23px 23px;gap:2px;height:22px!important;margin:0}
html[data-consolidated-controls="true"] body #sim #helmDock #helmHeader .turbo-chip-label{font-size:8px;letter-spacing:0;padding:0}
html[data-consolidated-controls="true"] body #sim #helmDock #helmHeader [data-speed-turbo]{box-sizing:border-box;width:23px;height:22px;min-height:22px;max-height:22px;padding:0;font-size:10px;line-height:20px}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="false"]{grid-template-columns:minmax(0,1fr) 38px;gap:3px;padding:0 3px 0 7px}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="false"] #helmHeader{grid-column:1;grid-row:1}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="false"] .flight-strip{display:none!important}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="false"] #stop{grid-column:2;width:38px;padding:0 2px;font-size:9px}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="false"] #stop{font-size:0}
html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="false"] #stop::before{content:'Stop';font-size:10px}
html[data-consolidated-controls="true"] body #sim #helmDock .flight-strip output{width:100%;min-width:0;height:17px;max-height:17px;font-variant-numeric:tabular-nums}
html[data-consolidated-controls="true"] body #sim #helmDock .flight-strip .flight-limit{height:14px;min-height:14px;max-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:701px) and (max-width:1100px){
 html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="false"] #helmHeader{grid-template-columns:39px minmax(0,1fr) 50px;gap:1px}
 html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="false"] #helmHeader .speed-turbo-presets{grid-template-columns:24px 24px;gap:2px}
 html[data-consolidated-controls="true"] body #sim #helmDock[data-expanded="false"] .turbo-chip-label{display:none}
}
@media(min-width:701px) and (max-height:600px){
 html[data-consolidated-controls="true"] body #sim #flightSystems{max-height:90px}
}
#sim #helmDock .speed-turbo-presets{grid-template-columns:auto repeat(2,minmax(0,1fr))}

html[data-consolidated-controls="true"] body #sim #scanNote .scan-note-actions button{align-content:center}
/* Revision 3: permanent command slots and independent science/advice readouts. */
#captainCommands{display:none}
html[data-consolidated-controls="true"]:not(.crew-mode) body #sim #captainCommands{display:block;position:absolute;top:calc(var(--c-top) + 56px);right:var(--c-edge);width:var(--c-menu);z-index:6;pointer-events:auto}
html[data-consolidated-controls="true"] body #sim #captainQuick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:32px 32px;gap:4px;height:68px}
html[data-consolidated-controls="true"] body #sim #captainQuick>button{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;width:100%;min-width:0;height:32px;min-height:32px;max-height:32px;margin:0;padding:1px 4px;border-radius:6px;font-size:10.5px;line-height:12px;white-space:normal;overflow:hidden;background:var(--pane-button,rgba(18,35,51,.78));border:1px solid var(--pane-edge);color:#d5e9f5}
html[data-consolidated-controls="true"] body #sim #captainQuick>button :is(strong,small,kbd){display:block;height:11px;min-height:11px;font-size:9px;line-height:11px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap;color:#afcbd7}
html[data-consolidated-controls="true"] body #sim #captainQuick>button kbd{border:0;padding:0;background:none}
html[data-consolidated-controls="true"] body #sim #captainQuick>button[aria-pressed="true"]{background:#285c52;border-color:#8edfc3;color:#e6fff6}
html[data-consolidated-controls="true"] body #sim #captainQuick>button[data-suggested="true"]{outline:2px solid #e9bd70;outline-offset:-2px}
html[data-consolidated-controls="true"] body #sim #captainQuick>button:disabled{opacity:.5}
html[data-consolidated-controls="true"] body #sim #captainAdvice{box-sizing:border-box;display:flex;flex-direction:column;height:auto;min-height:0;max-height:none;overflow:hidden;margin-top:6px;padding:6px 8px;border:1px solid var(--pane-edge);border-left:2px solid #f2c46d;border-radius:var(--pane-radius);background:var(--pane-fill);box-shadow:var(--pane-shadow);backdrop-filter:var(--pane-blur);-webkit-backdrop-filter:var(--pane-blur)}
html[data-consolidated-controls="true"] body #sim #captainAdvice[hidden]{display:none}
html[data-consolidated-controls="true"] body #sim #captainAdvice .captain-advice-head{display:flex;align-items:center;justify-content:space-between;gap:6px;height:20px;min-height:20px;flex:none}
html[data-consolidated-controls="true"] body #sim #captainAdviceName{min-width:0;font-size:10px;line-height:14px;letter-spacing:.08em;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f6d58e}
html[data-consolidated-controls="true"] body #sim #captainAdviceText{display:block;flex:none;min-height:0;max-height:56px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;font-size:11px;line-height:14px;margin:4px 0;color:#d5ecec;white-space:normal}
html[data-consolidated-controls="true"] body #sim #captainAdviceClose{flex:none;width:24px;min-width:24px;height:24px;min-height:24px;max-height:24px;padding:0;border:0;background:transparent;font-size:14px;line-height:22px;color:#cfe6f3}
html[data-consolidated-controls="true"] body #sim #captainAdvice[data-urgent="true"]{border-left-color:#ff7f6a}
html[data-consolidated-controls="true"] body #sim #captainAdvice[data-urgent="true"] #captainAdviceName{color:#ffab98}
html[data-consolidated-controls="true"] body #sim #captainAdvice[data-tip="arrival"]{border-left-color:#7fd3ff}
html[data-consolidated-controls="true"] body #sim #captainAdvice .scan-note-actions{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:28px;gap:4px;flex:none;height:auto;margin:2px 0 0}
html[data-consolidated-controls="true"] body #sim #captainAdvice .scan-note-actions:not(:has(button:not([hidden]))){display:none}
html[data-consolidated-controls="true"] body #sim #captainAdvice .scan-note-actions button{display:flex;align-items:center;align-content:center;justify-content:center;flex-wrap:wrap;gap:0 4px;box-sizing:border-box;width:100%;height:28px;min-height:28px;max-height:28px;margin:0;padding:0 3px;font-size:10.5px;line-height:12px;white-space:normal;overflow:hidden}
html[data-consolidated-controls="true"] body #sim #captainAdvice .scan-note-actions button[hidden]{display:none}
html[data-consolidated-controls="true"] body #sim #captainAdvice .scan-note-actions button small{flex-basis:100%;font-size:9px;line-height:11px;color:#b8d5df}
html[data-consolidated-controls="true"] body #sim #captainAdvice .scan-note-actions button kbd{font-size:9px;line-height:12px;padding:0 3px;border:1px solid #94b9cc55;border-radius:3px}
html[data-consolidated-controls="true"] body #sim #scanNote:is([data-state="scan"],[data-state="watch"]){top:calc(var(--c-top) + 52px);width:min(224px,var(--d-contact-w));height:auto;min-height:0;max-height:none;padding:6px 8px}
html[data-consolidated-controls="true"] body #sim #tacticalDetails .deck-combat-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-consolidated-controls="true"] body #sim #tacticalDetails .shield-power{grid-template-columns:1fr}

/* Revision4: Eric permits content cards, including their action rows, to fit their content. */
html[data-consolidated-controls="true"] body #sim #scanNote #scanNoteText{flex:none;max-height:56px;overflow-wrap:anywhere}
html[data-consolidated-controls="true"] body #sim #scanNote .scan-watch{height:auto}
html[data-consolidated-controls="true"] body #sim #captainAdviceText{overflow-wrap:anywhere}
html[data-consolidated-controls="true"] body #sim #captainAdvice .scan-note-actions:not(:has(#scanNoteAction2:not([hidden]))){grid-template-columns:1fr}
html[data-consolidated-controls="true"] body #sim #captainAdvice .scan-note-actions:not(:has(#scanNoteAction4:not([hidden]))) #scanNoteAction3{grid-column:1/-1}
/* Revision5: compact command groups and advice inside the existing Status band. */
html[data-consolidated-controls="true"] body #sim #captainGroups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;height:27px}
html[data-consolidated-controls="true"] body #sim #captainGroups>button{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;min-width:0;height:27px;min-height:27px;max-height:27px;padding:0 7px;margin:0;font-size:11px;line-height:14px;white-space:nowrap;border-radius:5px;background:var(--pane-button,rgba(18,35,51,.78));border:1px solid var(--pane-edge);color:#d5e9f5}
html[data-consolidated-controls="true"] body #sim #captainGroups .command-dot{display:block;width:4px;height:4px;border-radius:50%;background:transparent;flex:none}
html[data-consolidated-controls="true"] body #sim #captainGroups>button[data-suggested="true"]{outline:2px solid #e9bd70;outline-offset:-2px}
html[data-consolidated-controls="true"] body #sim #captainGroups>button[data-suggested="true"] .command-dot{background:#e9bd70}
html[data-consolidated-controls="true"] body #sim #captainGroups>button[data-active="true"] .command-dot{background:#8edfc3}
html[data-consolidated-controls="true"] body #sim #captainQuick{box-sizing:border-box;position:absolute;top:31px;left:0;right:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:24px;gap:3px;height:32px;padding:3px;background:var(--pane-fill);border:1px solid var(--pane-edge);border-radius:5px;box-shadow:var(--pane-shadow)}
html[data-consolidated-controls="true"] body #sim #captainQuick[hidden],html[data-consolidated-controls="true"] body #sim #captainQuick>button[hidden]{display:none!important}
html[data-consolidated-controls="true"] body #sim #captainQuick>button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;height:24px;min-height:24px;max-height:24px;margin:0;padding:0 4px;font-size:11px;line-height:14px;white-space:nowrap;border-radius:3px}
html[data-consolidated-controls="true"] body #sim #captainQuick>button :is(strong,small,kbd){display:inline-block;height:auto;min-height:0;font-size:10px;line-height:13px;flex:none}
html[data-consolidated-controls="true"] body #sim #captainQuick>button kbd{padding:0 3px;border:1px solid #94b9cc66;border-radius:3px}
html[data-consolidated-controls="true"] body #sim #captainQuick .quick-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
html[data-consolidated-controls="true"] body #sim #bridgePanel{grid-template-columns:minmax(120px,.8fr) minmax(0,1.15fr) minmax(0,1.1fr);column-gap:10px;height:52px;min-height:52px;max-height:52px;padding:3px 8px;align-items:stretch}
html[data-consolidated-controls="true"] body #sim #bridgePanel #alertBanner{grid-column:1;grid-row:1}
html[data-consolidated-controls="true"] body #sim #bridgePanel #currentTask{grid-column:2;grid-row:1}
html[data-consolidated-controls="true"] body #sim #bridgePanel .bridge-updates{display:none!important}
html[data-consolidated-controls="true"] body #sim #bridgePanel :is(.task-heading .eyebrow,#taskOwner){font-size:9px;line-height:11px}
html[data-consolidated-controls="true"] body #sim #bridgePanel #taskName{font-size:11px;line-height:14px;max-height:14px}
html[data-consolidated-controls="true"] body #sim #bridgePanel #taskDetail{font-size:10.5px;line-height:12px;max-height:12px;margin:1px 0 0}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice{position:relative;grid-column:3;grid-row:1;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-self:stretch;gap:2px;min-width:0;width:auto;height:46px;min-height:46px;max-height:46px;margin:0;padding:0 18px 0 0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:hidden}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice[hidden]{display:none!important}
html[data-consolidated-controls="true"] body #sim #bridgePanel .captain-advice-head{position:absolute;top:0;right:0;display:block;height:18px;min-height:18px;width:18px}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdviceName{display:none}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdviceClose{width:18px;min-width:18px;height:18px;min-height:18px;max-height:18px;font-size:12px;line-height:16px}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdviceText{flex:none;font-size:11px;line-height:13px;max-height:39px;margin:0;overflow-y:auto;color:#efd197}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice[data-urgent="true"] #captainAdviceText{color:#ffad98}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice[data-has-text="false"] #captainAdviceText,html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice:is([data-action-count="3"],[data-action-count="4"]) #captainAdviceText{display:none}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice:is([data-action-count="1"],[data-action-count="2"]) #captainAdviceText{max-height:13px;line-height:13px;font-size:11px}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice .scan-note-actions{flex:none;width:100%;height:auto;margin:0;gap:2px;grid-auto-rows:22px}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice .scan-note-actions button{height:22px;min-height:22px;max-height:22px;line-height:14px;font-size:11px;flex-wrap:nowrap;gap:4px;padding:0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice .scan-note-actions button small{flex-basis:auto;font-size:10px;line-height:12px}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice[data-action-count="1"] .scan-note-actions{display:flex;justify-content:flex-end}
html[data-consolidated-controls="true"] body #sim #bridgePanel #captainAdvice[data-action-count="1"] .scan-note-actions button:not([hidden]){width:auto;padding:0 7px}
/* Phone Status uses the same edges open or closed. Only the message slot flexes. */
@media(max-width:700px){
 html[data-controls="new"] body #sim #showBridge{
  --d-line:#83b3ca33;
  --status-inset-left:max(var(--c-edge),env(safe-area-inset-left));
  --status-inset-right:max(var(--c-edge),env(safe-area-inset-right));
  display:flex!important;align-items:center;gap:5px;z-index:7;
  left:var(--status-inset-left);right:var(--status-inset-right);transform:none;
  box-sizing:border-box;width:calc(100% - var(--status-inset-left) - var(--status-inset-right));
  height:32px;min-height:32px;margin:0;padding:0 7px;overflow:hidden;white-space:nowrap;
  color:var(--blue);background:var(--pane-fill);border:1px solid var(--pane-edge);
  border-bottom:var(--pane-accent) solid var(--pane-blue);border-radius:var(--pane-radius);
  box-shadow:var(--pane-shadow);backdrop-filter:var(--pane-blur);
 }
 html[data-controls="new"] body #sim #showBridge[hidden]{
  border-radius:var(--pane-radius) var(--pane-radius) 0 0;
  border-bottom-color:var(--d-line);
 }
 html[data-controls="new"] body #sim #showBridge .drawer-title{flex:none;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
 html[data-controls="new"] body #sim #showBridge .drawer-title::after{content:' ▾'}
 html[data-controls="new"] body #sim #showBridge[hidden] .drawer-title::after{content:' ▴'}
 html[data-controls="new"] body #sim #showBridge .status-where{
  display:block;box-sizing:border-box;flex:0 0 29%;min-width:0;padding:0 4px 0 0;font-size:9px;letter-spacing:.035em;
 }
 html[data-controls="new"] body #sim #showBridge :is(.drawer-summary,.status-notice){
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;
 }
 html[data-controls="new"] body #sim #showBridge .drawer-summary::before{content:none}
 html[data-controls="new"] body #sim #showBridge :is(.status-torpedoes,.status-quantum){box-sizing:border-box;text-align:right;padding-left:4px}
 html[data-controls="new"] body #sim #showBridge .status-torpedoes{width:51px}
 html[data-controls="new"] body #sim #showBridge .status-quantum{width:35px;margin-left:0}
 html[data-controls="new"] body #sim #bridgePanel{
  top:calc(var(--c-top) + 57px);
  left:max(var(--c-edge),env(safe-area-inset-left));right:max(var(--c-edge),env(safe-area-inset-right));
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(52px,auto);grid-auto-rows:auto;
  height:auto;min-height:0;max-height:none;z-index:6;border-top:0;border-radius:0 0 var(--pane-radius) var(--pane-radius);
  padding:3px 8px;row-gap:0;
 }
 html[data-controls="new"] body #sim #bridgePanel #taskBelay{
  grid-column:1/-1;grid-row:2;margin:0;padding-top:4px;border-top:1px solid var(--line);
 }
 html[data-controls="new"] body #sim #bridgePanel #bridgeToggle{display:none}
 html[data-controls="new"].controls-menu-open body #sim header{z-index:8}
 html[data-controls="new"] body #sim #bridgePanel .bridge-updates{grid-row:3}
 html[data-controls="new"] body #sim #bridgePanel #taskBelay #belayOrder{height:32px;max-height:32px;line-height:32px}
}
@media(min-width:701px) and (max-height:520px){
 html[data-controls="new"] body #sim :is(#showBridge,#bridgePanel){
  left:max(var(--c-edge),env(safe-area-inset-left));
 }
}
html[data-consolidated-controls="true"] body #sim #showBridge[hidden] .drawer-summary,html[data-consolidated-controls="true"] body #sim #showBridge[hidden][data-notice="info"] .status-notice{display:none!important}
html[data-consolidated-controls="true"] body #sim #statusAdviceAlert{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;line-height:14px;color:#ffb39a}
html[data-consolidated-controls="true"] body #sim #statusAdviceAlert[hidden]{display:none!important}
/* Build 205 (Eric's flight log 15): with the photon magazine empty its urgent advice held the bar for the rest of the fight and hid
   every fresh message, so "Quantum torpedo held · U.S.S. Defiant is within 2 km ..." never reached him. A fresh message now has the
   bar for its six seconds; the advice comes back after it. */
html[data-consolidated-controls="true"] body #sim #showBridge[data-tip-urgent="true"] .drawer-summary{display:none!important}
html[data-consolidated-controls="true"] body #sim #showBridge[data-tip-urgent="true"]:not([data-notice]) .status-notice{display:none!important}
html[data-consolidated-controls="true"] body #sim #showBridge[data-tip-urgent="true"][data-notice] #statusAdviceAlert{display:none!important}
html[data-consolidated-controls="true"] body #sim #warpLabel{display:none!important}
html[data-consolidated-controls="true"] body #sim :is(#systemTitle,#squadronAlert){left:50%!important;max-width:min(520px,calc(100vw - 2 * (var(--c-menu) + var(--c-edge) + 12px)));transform:translateX(-50%)}
html[data-consolidated-controls="true"] body #sim #systemTitle b{font-size:clamp(18px,2.2vw,30px);letter-spacing:clamp(1px,.3vw,4px)}
html[data-consolidated-controls="true"] body #sim #systemTitle>span{display:none}
#sim #warpFactor{display:none!important}
#sim #assignedWarpFactor{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;font-variant-numeric:tabular-nums;font-size:11px;line-height:13px;min-height:28px;height:28px;min-width:40px;border:1px solid var(--pane-edge,#71869b);border-radius:5px;background:var(--pane-button,#102238);color:var(--ink,#dcebf3)}
#sim #assignedWarpFactor[hidden]{display:none!important}
#sim #assignedWarpFactor b{font-size:11px;line-height:13px;font-weight:600}
#sim #assignedWarpFactor small{font-size:9px;line-height:11px;color:#9ecbbf}

/* Build 185: voyage history stays readable without squeezing the Status band. */
html[data-consolidated-controls="true"] body #sim #navigationMissions #bridgeLog{grid-column:1/-1}

/* Build 189 (Eric, Nov 19: "Move fire under Combat"): on a desktop window Quantum is the third button of Combat ▾ on the
   Enterprise-E. Its blue, its in-flight gold and its tube-ready bar come with it; the row reads "Quantum ⇧Q 18/18". */
html[data-consolidated-controls="true"] body #sim #captainQuick[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum{position:relative;grid-column:auto;background:#1f3e5cc4;color:#d6eeff;border-color:#8fc4ea80;white-space:nowrap;overflow:hidden}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum:hover:not(:disabled){background:#2d5983e0}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum::after{content:'';position:absolute;left:0;bottom:0;height:2px;width:calc(var(--tube-ready,1)*100%);background:#bfe6ff;opacity:.9}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum[data-state="flying"]{background:#7c5a16e6;color:#fff3cf;border-color:#ffd98a}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum[data-state="empty"]{color:#9fb6c7;border-color:#6f879a66}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum #quantumStatus{display:inline-block;font-size:10px;line-height:13px;font-variant-numeric:tabular-nums;color:#bfe6ff}

/* Build 190 r2 (Eric, Nov 19: "When Combat is selected and the buttons appear below, Combat should indicate that it is the
   selected button ... make everything cool and consistent. I think those buttons need to be a bit more liquid glassy ...
   the Quantum button should be wider ... Hunt and Send Fleet ... smaller and of equal size"). One language for Combat,
   Defense and Supply and the buttons they open:
     open group   = selected: a richer blue glass fill, a bright edge and white text (aria-expanded);
     gold dot + gold edge = the crew recommends something in that group (data-suggested), as before;
     green dot    = an order from that group is running (data-active), as before; the running order itself is green glass.
   Glass is drawn with gradients and inner highlights only, no backdrop blur on the always-visible buttons (frame cost);
   the open tray alone blurs what is behind it. */
html[data-consolidated-controls="true"] body #sim :is(#captainGroups,#captainQuick)>button{
 background:linear-gradient(180deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,.05) 46%,rgba(9,24,38,.18) 54%,rgba(9,24,38,.42) 100%),rgba(20,40,58,.72);
 border:1px solid rgba(168,214,240,.30);border-radius:8px;color:#dcecf6;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.26),inset 0 -1px 0 rgba(0,0,0,.28),0 2px 8px rgba(0,8,16,.28);
 text-shadow:0 1px 1px rgba(0,0,0,.35);transition:background-color .15s,border-color .15s,box-shadow .15s,color .15s}
html[data-consolidated-controls="true"] body #sim :is(#captainGroups,#captainQuick)>button:hover:not(:disabled){
 border-color:rgba(190,228,250,.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.34),inset 0 -1px 0 rgba(0,0,0,.28),0 2px 10px rgba(80,170,230,.22)}
/* The open group: selected. */
html[data-consolidated-controls="true"] body #sim #captainGroups>button[aria-expanded="true"]{
 background:linear-gradient(180deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,.08) 46%,rgba(20,70,120,.20) 54%,rgba(10,46,86,.55) 100%),rgba(36,104,160,.82);
 border-color:#9fdcff;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(0,0,0,.25),0 0 0 1px rgba(159,220,255,.35),0 3px 12px rgba(60,160,230,.35)}
html[data-consolidated-controls="true"] body #sim #captainGroups>button>span[aria-hidden="true"]:last-child{display:inline-block;transition:transform .15s}
html[data-consolidated-controls="true"] body #sim #captainGroups>button[aria-expanded="true"]>span[aria-hidden="true"]:last-child{transform:rotate(180deg)}
/* Recommended (gold) and running (green) keep their meanings, drawn in the same glass. */
html[data-consolidated-controls="true"] body #sim #captainGroups>button[data-suggested="true"]:not([aria-expanded="true"]){outline:0;border-color:#e9bd70;box-shadow:inset 0 1px 0 rgba(255,255,255,.26),inset 0 -1px 0 rgba(0,0,0,.28),0 0 0 1px rgba(233,189,112,.45),0 2px 8px rgba(0,8,16,.28)}
html[data-consolidated-controls="true"] body #sim #captainGroups>button[data-suggested="true"][aria-expanded="true"]{outline:0}
html[data-consolidated-controls="true"] body #sim #captainGroups .command-dot{width:6px;height:6px;box-shadow:none}
html[data-consolidated-controls="true"] body #sim #captainGroups>button[data-active="true"] .command-dot{background:#8edfc3;box-shadow:0 0 6px #8edfc3}
html[data-consolidated-controls="true"] body #sim #captainGroups>button[data-suggested="true"] .command-dot{box-shadow:0 0 6px #e9bd70}
/* The tray the open group shows. */
html[data-consolidated-controls="true"] body #sim #captainQuick{height:34px;padding:4px;border-radius:10px;border-color:rgba(159,220,255,.38);
 background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0) 60%),rgba(12,28,44,.62);-webkit-backdrop-filter:blur(12px) saturate(150%);backdrop-filter:blur(12px) saturate(150%)}
html[data-consolidated-controls="true"] body #sim #captainQuick>button{border-radius:7px}
html[data-consolidated-controls="true"] body #sim #captainQuick>button[aria-pressed="true"]{
 background:linear-gradient(180deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,.06) 46%,rgba(10,70,56,.25) 54%,rgba(8,52,42,.55) 100%),rgba(40,120,100,.85);border-color:#8edfc3;color:#effffa}
html[data-consolidated-controls="true"] body #sim #captainQuick>button[data-suggested="true"]:not([aria-pressed="true"]){outline:0;border-color:#e9bd70;box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 0 0 1px rgba(233,189,112,.45)}
/* Combat on the Enterprise-E: Hunt and Send fleet equal and narrower, Quantum wider for its count. */
html[data-consolidated-controls="true"] body #sim #captainQuick[data-group="combat"][data-count="3"]{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.55fr)}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum{
 background:linear-gradient(180deg,rgba(255,255,255,.20) 0%,rgba(255,255,255,.06) 46%,rgba(20,60,110,.22) 54%,rgba(12,40,80,.55) 100%),rgba(34,78,128,.85);border-color:rgba(143,196,234,.65);color:#e3f3ff;overflow:hidden}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum:hover:not(:disabled){background:linear-gradient(180deg,rgba(255,255,255,.26) 0%,rgba(255,255,255,.08) 46%,rgba(20,60,110,.22) 54%,rgba(12,40,80,.55) 100%),rgba(45,96,152,.9)}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum[data-state="flying"]{background:linear-gradient(180deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,.06) 46%,rgba(110,70,10,.25) 54%,rgba(90,58,8,.55) 100%),rgba(150,104,24,.88);border-color:#ffd98a;color:#fff6dc}
html[data-consolidated-controls="true"] body #sim #captainQuick>#quantum::after{left:6px;right:6px;width:auto;transform-origin:left;transform:scaleX(var(--tube-ready,1));border-radius:2px;bottom:1px}
@media(prefers-reduced-motion:reduce){html[data-consolidated-controls="true"] body #sim :is(#captainGroups,#captainQuick)>button,html[data-consolidated-controls="true"] body #sim #captainGroups>button>span{transition:none}}

/* One compact command size across the drawers. Touch keeps its own height. */
html[data-controls="new"] body #sim{
 --menu-control-height:26px;
 --menu-control-font:11px
}
html[data-controls="new"] body #sim #targetPanel
 :is(.contact-tabs,.contact-filter,.target-actions,.target-secondary-actions,.tractor-actions)>button,
html[data-controls="new"] body #sim #targetPanel .target-more-toggle,
html[data-consolidated-controls="true"] body #sim #navigationMissions>button,
html[data-consolidated-controls="true"] body #sim #tacticalDock :is(.deck-combat-actions,.shield-modes)>button,
html[data-consolidated-controls="true"] body #sim #fleetControls .fleet-buttons>button,
html[data-consolidated-controls="true"] body #sim #flightSystems #sectionDetails button,
html[data-consolidated-controls="true"] body #sim .header-actions>button:not(.menu-icon),
html[data-consolidated-controls="true"] body #sim #viewDock #viewDetails button,
html[data-controls="new"] body #sim #repairShuttleOrder{
 box-sizing:border-box;
 height:var(--menu-control-height);min-height:var(--menu-control-height);max-height:var(--menu-control-height);
 font-size:var(--menu-control-font);--glass-menu-font:var(--menu-control-font);
 line-height:1.15;padding:0 5px;border-radius:6px;
 align-items:center;justify-content:center;white-space:nowrap;
}
html[data-consolidated-controls="true"] body #sim .contact-tabs>button,
html[data-controls="new"] body #sim #repairShuttleOrder:not([hidden]){
 display:flex;gap:4px;
}
html[data-consolidated-controls="true"] body #sim .contact-tabs{margin-bottom:4px}
html[data-controls="new"] body #sim #repairShuttleOrder{margin:0}
@media(max-width:700px){
 html[data-controls="new"] body #sim{
  --menu-control-height:44px;--menu-control-font:12px
 }
}
