/* Holo Glass: luminous, floating tactical glass over open space. */
:root[data-ui-theme='holo'] {
  color-scheme: dark;
  --holo-space: #050a14;
  --holo-glass: rgba(10, 20, 36, 0.55);
  --holo-dialog: rgba(8, 16, 30, 0.9);
  --holo-glass-strong: rgba(8, 16, 30, 0.86);
  --holo-line: rgba(160, 210, 255, 0.28);
  --holo-line-soft: rgba(160, 210, 255, 0.15);
  --holo-cyan: #6fd3ff;
  --holo-ice: #e8f4ff;
  --holo-secondary: #9fb6cc;
  --holo-friendly: #59b8ff;
  --holo-hostile: #ff5d6c;
  --holo-amber: #ffb347;
  --holo-good: #6dffb0;
  --holo-type-floor: calc(12px / var(--gui-size, 1));
  --holo-text-size: max(var(--holo-type-floor), clamp(12px, 0.48vw, 18px));
  --holo-header: 82px;
  --holo-sidebar: calc(clamp(210px, 16vw, 320px) * var(--gui-size, 1));
  --holo-order-space: 0px;
  --bg: var(--holo-space);
  --panel: var(--holo-glass);
  --line: var(--holo-line);
  --muted: var(--holo-secondary);
  --cyan: var(--holo-cyan);
  --red: var(--holo-hostile);
  --error: var(--holo-hostile);
  --success: var(--holo-good);
  --gold: var(--holo-amber);
  --shield-healthy: var(--holo-cyan);
  --shield-damaged: var(--holo-amber);
  --shield-critical: var(--holo-hostile);
  --shield-collapsed: #853c54;
  --console-face: rgba(16, 32, 52, 0.62);
  --console-edge: var(--holo-line);
  --console-active: rgba(55, 143, 191, 0.32);
  --console-hover: rgba(51, 127, 172, 0.28);
  --console-bevel: inset 0 1px 0 rgba(232, 244, 255, 0.12), 0 0 14px rgba(61, 173, 227, 0.08);
  --hud-font: var(--holo-text-size);
  --own-art-size: 118px;
  --own-diagram-width: 230px;
  --own-diagram-height: 154px;
  --own-label-width: 46px;
  --target-art-size: 48px;
  --target-shield-width: 148px;
  --target-shield-height: 58px;
  --target-label-width: 44px;
  color: var(--holo-ice);
  font-family: Inter, sans-serif;
  font-size: clamp(12px, 0.48vw, 18px);
}

:root[data-ui-theme='holo'] body {
  position: relative;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--holo-space) url('../library/backgrounds/tarsin-veil-v1.png') center / cover fixed;
  color: var(--holo-ice);
  font:
    400 1em/1.45 Inter,
    sans-serif;
  letter-spacing: 0.005em;
}

:root[data-ui-theme='holo'] body::before {
  content: '';
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 20, 0.54), rgba(5, 10, 20, 0.12) 48%, rgba(5, 10, 20, 0.54)),
    linear-gradient(0deg, rgba(5, 10, 20, 0.58), transparent 48%, rgba(5, 10, 20, 0.35));
}

:root[data-ui-theme='holo'] :is(button, input, select, textarea) {
  color: inherit;
  font: inherit;
  font-size: var(--holo-text-size);
}

:root[data-ui-theme='holo'] button {
  min-height: 30px;
  border: 1px solid var(--holo-line);
  border-radius: 0.55rem;
  padding: 0.38em 0.78em;
  background: rgba(111, 211, 255, 0.055);
  color: var(--holo-ice);
  box-shadow: inset 0 1px 0 rgba(232, 244, 255, 0.08);
  text-shadow: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

:root[data-ui-theme='holo'] button:hover:not(:disabled) {
  border-color: rgba(111, 211, 255, 0.75);
  background: rgba(111, 211, 255, 0.14);
  box-shadow: 0 0 14px rgba(111, 211, 255, 0.12);
}

:root[data-ui-theme='holo'] button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

:root[data-ui-theme='holo'] .crew-workspace {
  --crew-panel: var(--holo-dialog);
  --crew-line: var(--holo-line);
  --crew-ink: var(--holo-ice);
  --crew-accent: var(--holo-cyan);
}
:root[data-ui-theme='holo'] .crew-workspace :is(button, select) {
  min-height: 42px;
  font-size: max(14px, var(--holo-text-size));
}
:root[data-ui-theme='holo'] .crew-workspace button:disabled {
  opacity: 1;
  color: var(--holo-ice);
  background: rgba(8, 16, 30, 0.9);
}
:root[data-ui-theme='holo'] .crew-workspace :focus-visible {
  outline: 3px solid var(--holo-cyan);
  outline-offset: 2px;
}

:root[data-ui-theme='holo'] :is(button[aria-pressed='true'], button.active, button.on, button.selected, button.is-on) {
  border-color: rgba(111, 211, 255, 0.85) !important;
  background: rgba(58, 157, 205, 0.26) !important;
  color: var(--holo-cyan) !important;
  box-shadow:
    inset 0 0 16px rgba(111, 211, 255, 0.1),
    0 0 15px rgba(111, 211, 255, 0.12) !important;
}

:root[data-ui-theme='holo']
  :is(input:not([type='checkbox']):not([type='radio']):not([type='range']), select, textarea) {
  min-width: 0;
  border: 1px solid var(--holo-line);
  border-radius: 0.45rem;
  padding: 0.45em 0.6em;
  background: rgba(4, 11, 22, 0.76);
  color: var(--holo-ice);
}

:root[data-ui-theme='holo'] :is(input[type='checkbox'], input[type='radio'], input[type='range']) {
  accent-color: var(--holo-cyan);
}

:root[data-ui-theme='holo'] :focus-visible {
  outline: 2px solid var(--holo-cyan);
  outline-offset: 2px;
}

:root[data-ui-theme='holo'] :is(h1, h2, h3, h4, .stats strong, #clock, #mission-clock) {
  font-family: 'Exo 2', Inter, sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
}

:root[data-ui-theme='holo']
  :is(
    #clock,
    #mission-clock,
    #hull-number,
    #shield-number,
    #ammo-number,
    #target-hull-number,
    #target-range,
    .stats strong,
    .rb-stat b,
    .rb-row-num b
  ) {
  font-variant-numeric: tabular-nums;
}

:root[data-ui-theme='holo'] :is(small, .hint, .muted, .subtle) {
  color: var(--holo-secondary);
}

/* Header and wide, edge-to-edge battlefield. */
:root[data-ui-theme='holo'] header:not(.display-settings-head) {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  min-height: 72px;
  height: auto;
  gap: 1.25rem;
  margin: 10px 14px 0;
  padding: 8px 18px;
  border: 1px solid var(--holo-line);
  border-radius: 1rem;
  background: rgba(5, 12, 24, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(232, 244, 255, 0.13),
    0 10px 30px rgba(0, 0, 0, 0.28);
}

:root[data-ui-theme='holo'] .brand {
  flex: 0 0 auto;
  gap: 0.65rem;
  color: var(--holo-ice);
  font:
    500 1.1em/1.1 'Exo 2',
    Inter,
    sans-serif;
  letter-spacing: 0.14em;
}

:root[data-ui-theme='holo'] .brand b,
:root[data-ui-theme='holo'] .insignia {
  color: var(--holo-cyan);
  text-shadow: 0 0 12px rgba(111, 211, 255, 0.32);
}

:root[data-ui-theme='holo'] .brand small {
  margin-top: 4px;
  color: var(--holo-secondary);
  font:
    500 max(var(--holo-type-floor), 0.63em) / 1.1 Inter,
    sans-serif;
  letter-spacing: 0.18em;
}

:root[data-ui-theme='holo'] .sector-power {
  flex: 1 1 300px;
  max-width: 520px;
  min-width: 180px;
  margin: 0 0.4rem;
}

:root[data-ui-theme='holo'] .sector-power .sector {
  gap: 0.55rem;
  color: var(--holo-secondary);
  font:
    500 max(var(--holo-type-floor), 0.73em) / 1.2 Inter,
    sans-serif;
  letter-spacing: 0.12em;
}

:root[data-ui-theme='holo'] .sector #clock {
  color: var(--holo-ice);
  font:
    300 1.65em/1 'Exo 2',
    sans-serif;
  letter-spacing: 0.03em;
}

:root[data-ui-theme='holo'] #battle-state {
  color: var(--holo-cyan);
  font-size: max(var(--holo-type-floor), 0.8em);
}

:root[data-ui-theme='holo'] .live {
  background: var(--holo-cyan);
  box-shadow: 0 0 10px rgba(111, 211, 255, 0.72);
}

:root[data-ui-theme='holo'] .power-balance-label {
  color: var(--holo-secondary);
  font:
    500 max(var(--holo-type-floor), 0.66em) / 1.3 Inter,
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:root[data-ui-theme='holo'] #balance-blue {
  color: var(--holo-friendly);
}

:root[data-ui-theme='holo'] #balance-red {
  color: var(--holo-hostile);
}

:root[data-ui-theme='holo'] .power-balance-track {
  height: 2px;
  border-radius: 3px;
  background: rgba(255, 93, 108, 0.34);
  box-shadow: none;
}

:root[data-ui-theme='holo'] .power-balance-track i {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--holo-friendly), #b1edff);
  box-shadow: 0 0 8px rgba(89, 184, 255, 0.6);
}

:root[data-ui-theme='holo'] .time-controls {
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.35rem;
}

:root[data-ui-theme='holo'] .time-controls button {
  min-height: 32px;
  padding: 0.38em 0.68em;
  font-size: var(--holo-text-size);
  white-space: nowrap;
}

:root[data-ui-theme='holo'] .time-controls #pause,
:root[data-ui-theme='holo'] .time-controls #campaign-launch {
  border-color: rgba(111, 211, 255, 0.68);
  color: var(--holo-cyan);
  background: rgba(111, 211, 255, 0.12);
}

:root[data-ui-theme='holo'] #audio-settings {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 12rem;
  width: min(360px, calc(100vw - 24px));
  padding: 1rem;
  border: 1px solid var(--holo-line);
  border-radius: 1rem;
  background: var(--holo-glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 14px 38px #0009;
}

:root[data-ui-theme='holo'] main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: var(--holo-sidebar) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: transparent;
}

:root[data-ui-theme='holo'] .viewport {
  --hud-floating: 1;
  position: fixed;
  z-index: 0;
  inset: 0;
  grid-column: auto;
  grid-row: auto;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-ui-theme='holo'] .viewport::after {
  display: none;
}

/* Keep text-bearing battle overlays out of a glass dialog's backdrop, including
   Firefox installations where backdrop blur is unavailable. */
:root[data-ui-theme='holo'] body:has(dialog:modal) .viewport > :not(canvas),
:root[data-ui-theme='holo'] body:has(dialog:modal) > :is(header, footer),
:root[data-ui-theme='holo'] body:has(dialog:modal) aside.left {
  visibility: hidden;
}

:root[data-ui-theme='holo'] .viewport > canvas#battle {
  width: 100%;
  height: 100%;
}

:root[data-ui-theme='holo'] aside.left {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin: 8px 0 8px 12px;
  padding: 12px 12px 14px;
  border: 1px solid var(--holo-line);
  border-radius: 1.1rem;
  background: var(--holo-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(232, 244, 255, 0.12),
    0 12px 35px rgba(0, 0, 0, 0.24);
  scrollbar-color: rgba(111, 211, 255, 0.48) rgba(5, 10, 20, 0.24);
}

:root[data-ui-theme='holo'] .section-title,
:root[data-ui-theme='holo'] .comms-label,
:root[data-ui-theme='holo'] .map-label {
  color: var(--holo-cyan);
  font:
    600 0.78em/1.35 Inter,
    sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

:root[data-ui-theme='holo']
  :is(
    .section-title,
    .ship-card small,
    #squadron-toolbar label,
    #squadron-toolbar small,
    #fleet-filters button,
    .legend,
    .map-label,
    .map-label small,
    .map-footer,
    .comms-label,
    #log
  ) {
  font-size: var(--holo-text-size) !important;
}

:root[data-ui-theme='holo'] .section-title {
  margin: 14px 0 9px;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--holo-line-soft);
  background: none;
  box-shadow: none;
  text-shadow: 0 0 12px rgba(111, 211, 255, 0.18);
}

:root[data-ui-theme='holo'] .section-title:first-child {
  margin-top: 0;
}

:root[data-ui-theme='holo'] .section-title::after {
  display: none;
}

:root[data-ui-theme='holo'] .hostile-title {
  color: var(--holo-hostile);
}

:root[data-ui-theme='holo'] .left .section-title span {
  color: var(--holo-secondary);
}

:root[data-ui-theme='holo'] aside.left * {
  font-size: var(--holo-text-size) !important;
}

:root[data-ui-theme='holo'] #squadron-toolbar,
:root[data-ui-theme='holo'] #fleet-filters {
  margin-bottom: 10px;
}

:root[data-ui-theme='holo'] #squadron-toolbar label {
  color: var(--holo-secondary);
}

:root[data-ui-theme='holo'] #squadron-toolbar select,
:root[data-ui-theme='holo'] #squadron-toolbar button,
:root[data-ui-theme='holo'] #fleet-filters button {
  font-size: 0.83em;
}

:root[data-ui-theme='holo'] .ship-card {
  height: auto;
  min-height: 3.2em;
  border: 1px solid var(--holo-line-soft);
  border-radius: 0.75rem;
  background: rgba(5, 15, 29, 0.55);
  box-shadow: inset 0 1px 0 rgba(232, 244, 255, 0.06);
}

:root[data-ui-theme='holo'] .ship-card.selected {
  border-color: rgba(111, 211, 255, 0.75);
  background: rgba(35, 107, 145, 0.28);
  box-shadow:
    inset 3px 0 var(--holo-cyan),
    0 0 16px rgba(111, 211, 255, 0.1);
}

:root[data-ui-theme='holo'] .ship-card.target {
  border-color: rgba(255, 93, 108, 0.8);
  box-shadow:
    inset 3px 0 var(--holo-hostile),
    0 0 15px rgba(255, 93, 108, 0.12);
}

:root[data-ui-theme='holo'] .ship-card canvas {
  border: 1px solid var(--holo-line-soft);
  border-radius: 0.45rem;
  background: rgba(5, 10, 20, 0.6);
}

:root[data-ui-theme='holo'] .ship-card .bar,
:root[data-ui-theme='holo'] .meter,
:root[data-ui-theme='holo'] .power-balance-track {
  height: 2px;
  border-radius: 4px;
  background: rgba(160, 210, 255, 0.17);
  box-shadow: none;
}

:root[data-ui-theme='holo'] .ship-card .bar i,
:root[data-ui-theme='holo'] .meter > div {
  border-radius: inherit;
  background: var(--holo-cyan);
  box-shadow: 0 0 7px currentColor;
}

:root[data-ui-theme='holo'] .ship-card.enemy .bar i,
:root[data-ui-theme='holo'] .ship-card.target .bar i {
  background: var(--holo-hostile);
}

:root[data-ui-theme='holo'] .legend {
  color: var(--holo-secondary);
}

:root[data-ui-theme='holo'] .legend .cyan {
  background: var(--holo-friendly);
}

:root[data-ui-theme='holo'] .legend .red {
  background: var(--holo-hostile);
}

/* Battlefield tags and floating overlays. */
:root[data-ui-theme='holo'] .map-label {
  position: absolute;
  z-index: 2;
  top: calc(var(--hud-header, var(--holo-header)) + var(--hud-mission, 0px) + 12px);
  left: max(clamp(230px, 18vw, 340px), calc(var(--hud-roster-right, var(--holo-sidebar)) + 12px));
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--holo-line-soft);
  border-radius: 0.65rem;
  background: rgba(7, 15, 28, 0.45);
  box-shadow: none;
  text-shadow: 0 1px 4px #000;
}

:root[data-ui-theme='holo'] .map-label small {
  margin: 3px 0 0 15px;
  color: var(--holo-secondary);
  font-size: 0.85em;
  letter-spacing: 0.08em;
}

:root[data-ui-theme='holo'] .view-controls {
  z-index: 3;
  top: calc(var(--hud-header, var(--holo-header)) + var(--hud-mission, 0px) + 20px);
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--holo-line-soft);
  border-radius: 0.8rem;
  background: rgba(7, 15, 28, 0.48);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
:root[data-ui-theme='holo'] .viewport.has-mission-bar #mission-bar {
  z-index: 5;
}

:root[data-ui-theme='holo'] .view-controls button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: var(--holo-text-size);
}

:root[data-ui-theme='holo'] #mission-bar,
:root[data-ui-theme='holo'] #target-bar,
:root[data-ui-theme='holo'] #presentation-panel,
:root[data-ui-theme='holo'] #photo-toolbar,
:root[data-ui-theme='holo'] #bridge-callouts,
:root[data-ui-theme='holo'] #last-ditch-banner,
:root[data-ui-theme='holo'] #terrain-legend,
:root[data-ui-theme='holo'] #terrain-tooltip,
:root[data-ui-theme='holo'] .battle-console,
:root[data-ui-theme='holo'] #banner,
:root[data-ui-theme='holo'] #result {
  border: 1px solid var(--holo-line);
  border-radius: 1.15rem;
  background: var(--holo-glass);
  color: var(--holo-ice);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(232, 244, 255, 0.12),
    0 14px 38px rgba(0, 0, 0, 0.28);
}

:root[data-ui-theme='holo'] #mission-bar {
  top: calc(var(--hud-header, var(--holo-header)) + 8px);
  left: 50%;
  width: min(1500px, calc(100% - 2rem));
  transform: translateX(-50%);
  padding: 0.65rem 1rem;
}
:root[data-ui-theme='holo'] #hold-line-controls {
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr) auto auto;
}

:root[data-ui-theme='holo']
  #mission-bar
  :is(small, .mission-bar-clock b, #rescue-count, #hold-line-hull, #hold-line-waves) {
  color: var(--holo-cyan);
}
:root[data-ui-theme='holo'] :is(#rescue-controls, #hold-line-controls) button {
  border-color: var(--holo-line);
  background: rgba(15, 35, 54, 0.8);
  color: var(--holo-ice);
}

:root[data-ui-theme='holo'] .mission-track {
  height: 2px;
  background: rgba(160, 210, 255, 0.18);
}

:root[data-ui-theme='holo'] .mission-track i {
  background: var(--holo-cyan);
  box-shadow: 0 0 8px rgba(111, 211, 255, 0.55);
}

:root[data-ui-theme='holo'] #last-ditch-banner {
  top: calc(var(--hud-header, var(--holo-header)) + 68px);
  padding: 0.6rem 0.85rem;
  border-color: rgba(255, 179, 71, 0.55);
  color: var(--holo-amber);
}

:root[data-ui-theme='holo'] #last-ditch-banner strong {
  font:
    500 1em/1.3 Inter,
    sans-serif;
}

:root[data-ui-theme='holo'] .viewport.has-mission-bar #last-ditch-banner {
  top: calc(var(--hud-header, var(--holo-header)) + var(--hud-mission, 0px) + 68px);
}

:root[data-ui-theme='holo'] #presentation-panel {
  top: calc(var(--hud-header, var(--holo-header)) + var(--hud-mission, 0px) + 60px);
  right: 14px;
  z-index: 6;
  width: min(390px, calc(100% - 28px));
  max-height: min(52vh, 540px);
  overflow: auto;
  padding: 1rem;
}

:root[data-ui-theme='holo'] #photo-toolbar {
  top: auto;
  right: 14px;
  bottom: 42px;
  left: auto;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  max-width: min(900px, calc(100% - 28px));
  padding: 0.8rem;
}

:root[data-ui-theme='holo'] #bridge-callouts {
  top: max(18%, calc(var(--hud-header, var(--holo-header)) + var(--hud-mission, 0px) + 80px));
  left: 50%;
  width: min(760px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 0.75rem 1rem;
  text-align: center;
}

:root[data-ui-theme='holo'] #bridge-callouts .callout-station {
  color: var(--holo-cyan);
}

:root[data-ui-theme='holo'] #bridge-callouts.urgent .callout-station {
  color: var(--holo-hostile);
}

:root[data-ui-theme='holo'] #banner,
:root[data-ui-theme='holo'] #result {
  border-radius: 1.25rem;
  background: rgba(7, 15, 28, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(232, 244, 255, 0.14),
    0 20px 65px #000b;
}

:root[data-ui-theme='holo'] #banner h1 {
  color: var(--holo-ice);
  font-weight: 200;
}

:root[data-ui-theme='holo'] #banner > small {
  color: var(--holo-cyan);
  letter-spacing: 0.17em;
}

:root[data-ui-theme='holo'] #engage,
:root[data-ui-theme='holo'] #result > button {
  border-color: rgba(111, 211, 255, 0.76) !important;
  background: rgba(70, 163, 211, 0.22) !important;
  color: var(--holo-ice);
  box-shadow: 0 0 18px rgba(111, 211, 255, 0.12) !important;
}

:root[data-ui-theme='holo'] .map-footer {
  z-index: 2;
  bottom: calc(var(--hud-footer, 36px) + 4px);
  left: max(clamp(230px, 18vw, 340px), calc(var(--hud-roster-right, var(--holo-sidebar)) + 12px));
  right: 14px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--holo-line-soft);
  border-radius: 0.65rem;
  background: rgba(7, 15, 28, 0.47);
  color: var(--holo-secondary);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

:root[data-ui-theme='holo'] #terrain-legend {
  top: calc(var(--hud-header, var(--holo-header)) + var(--hud-mission, 0px) + 60px);
}

:root[data-ui-theme='holo'] #terrain-legend,
:root[data-ui-theme='holo'] #terrain-tooltip {
  background: var(--holo-glass-strong);
}

/* Command console and target intelligence. */
:root[data-ui-theme='holo'] .viewport:has(#last-ditch-banner:not([hidden])) {
  --holo-order-space: 70px;
}

:root[data-ui-theme='holo'] .battle-console {
  --holo-console-width: min(
    calc(78vw * var(--gui-size, 1)),
    calc(3000px * var(--gui-size, 1)),
    calc(100vw - var(--hud-roster-right, var(--holo-sidebar)) - 32px)
  );
  bottom: calc(
    max(calc(42px * var(--gui-size, 1)), calc(var(--hud-footer, 36px) + var(--hud-map-footer, 28px) + 16px)) /
      var(--gui-size, 1)
  );
  left: calc(
    max(calc(var(--hud-roster-right, var(--holo-sidebar)) + 16px), calc((100vw - var(--holo-console-width)) / 2)) /
      var(--gui-size, 1)
  );
  right: auto;
  transform: none;
  width: calc(var(--holo-console-width) / var(--gui-size, 1));
  max-width: 3000px;
  min-height: 0;
  padding: 1rem;
  border-radius: 1.2rem;
  font-size: max(var(--holo-type-floor), var(--hud-font));
}

:root[data-ui-theme='holo'] .battle-console :not(svg):not(svg *) {
  font-size: var(--holo-text-size) !important;
}

:root[data-ui-theme='holo']
  .battle-console
  :is(#ship-name, #hull-number, #shield-number, #ammo-number, #condition, #command-access) {
  font-size: var(--holo-text-size) !important;
}

:root[data-ui-theme='holo'] .battle-console button {
  min-height: 30px;
  line-height: 1.35;
}

:root[data-ui-theme='holo'] .battle-console .section-title {
  margin: 4px 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--holo-cyan);
  font:
    600 1em/16px Inter,
    sans-serif;
  letter-spacing: 0.1em;
}

:root[data-ui-theme='holo'] .own-controls .command-title,
:root[data-ui-theme='holo'] .own-controls .stats,
:root[data-ui-theme='holo'] #target-bar {
  color: var(--holo-ice);
}

:root[data-ui-theme='holo'] .own-controls .stats strong,
:root[data-ui-theme='holo'] #battle-console :is(#hull-number, #shield-number, #ammo-number),
:root[data-ui-theme='holo'] #target-bar #target-hull-number {
  color: var(--holo-ice);
  font:
    300 1.5em/1.1 'Exo 2',
    sans-serif;
  font-size: 1.5em !important;
}

:root[data-ui-theme='holo'] .own-controls .stats {
  line-height: 1.4;
}

:root[data-ui-theme='holo'] #ship-diagram {
  filter: drop-shadow(0 0 9px rgba(111, 211, 255, 0.18));
}

:root[data-ui-theme='holo'] .battle-console .meter {
  height: 2px;
  background: rgba(160, 210, 255, 0.18);
}

:root[data-ui-theme='holo'] .battle-console .meter > div {
  background: var(--holo-cyan);
  box-shadow: 0 0 8px rgba(111, 211, 255, 0.55);
}

:root[data-ui-theme='holo'] .battle-console .segmented {
  border-color: var(--holo-line-soft);
  border-radius: 0.7rem;
  background: rgba(5, 10, 20, 0.3);
}

:root[data-ui-theme='holo'] .battle-console .segmented button {
  border-radius: 0.5rem;
}

:root[data-ui-theme='holo'] #command-tabs button {
  border-radius: 0.55rem;
}

:root[data-ui-theme='holo'] #torpedo:not(:disabled) {
  border-color: rgba(111, 211, 255, 0.7);
  color: var(--holo-cyan);
}

:root[data-ui-theme='holo'] .hud-target {
  top: calc(
    (var(--hud-header, var(--holo-header)) + var(--hud-mission, 0px) + var(--holo-order-space) + 76px) /
      var(--gui-size, 1)
  );
  left: auto;
  right: 14px;
  transform: none;
  width: min(340px, calc(100% - 2rem));
  max-height: min(48vh, 620px, var(--hud-target-room, 100dvh));
  overflow: auto;
  padding: 1rem;
  background: rgba(8, 16, 30, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-color: rgba(255, 93, 108, 0.42);
}

:root[data-ui-theme='holo'] .cs-map svg.chart :is(text, .node-label, .node-tag, .region) {
  font-size: 8px !important;
}

:root[data-ui-theme='holo'] .cs-map svg.chart .you-label {
  font-size: 7px !important;
}

:root[data-ui-theme='holo'] .hud-target :not(svg):not(svg *) {
  font-size: var(--holo-text-size) !important;
}

:root[data-ui-theme='holo']
  .hud-target
  :is(
    #target-name,
    #target-class,
    #target-captain,
    #target-faction,
    #target-hull-number,
    #target-range,
    #target-motion
  ) {
  font-size: var(--holo-text-size) !important;
}

/* Reflow the game's horizontal target strip into a compact intelligence card. */
:root[data-ui-theme='holo'] #target-bar.has-target {
  width: min(380px, calc(100% - 2rem));
  max-height: min(38vh, 620px, var(--hud-target-room, 100dvh));
}

:root[data-ui-theme='holo'] #target-body {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 0;
}

:root[data-ui-theme='holo'] .target-identity {
  grid-column: 1 / -1;
}

:root[data-ui-theme='holo'] .target-heading,
:root[data-ui-theme='holo'] .target-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: normal;
}

:root[data-ui-theme='holo'] #target-motion {
  white-space: normal;
  line-height: 1.35;
}

:root[data-ui-theme='holo'] #target-bar #target-name {
  flex-basis: 100%;
  font-size: max(1.45em, 18px) !important;
  font-weight: 300;
  line-height: 1.25;
  white-space: normal;
}

:root[data-ui-theme='holo'] .hud-target .meter > div {
  background: var(--holo-hostile);
  box-shadow: 0 0 8px rgba(255, 93, 108, 0.48);
}

:root[data-ui-theme='holo'] .map-label,
:root[data-ui-theme='holo'] .map-footer,
:root[data-ui-theme='holo'] .battle-console,
:root[data-ui-theme='holo'] #target-bar {
  --holo-edge-highlight: rgba(232, 244, 255, 0.12);
}

/* Combat log ribbon. */
:root[data-ui-theme='holo'] footer {
  position: relative;
  z-index: 4;
  flex: 0 0 36px;
  height: 36px;
  min-height: 36px;
  gap: 12px;
  padding: 4px 14px;
  border: 0;
  background: rgba(5, 11, 22, 0.75);
  box-shadow: inset 0 1px 0 var(--holo-line-soft);
  color: var(--holo-secondary);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

:root[data-ui-theme='holo'] .comms-label {
  flex: 0 0 auto;
  font-size: max(var(--holo-type-floor), 0.68em);
}

:root[data-ui-theme='holo'] #log {
  min-width: 0;
  color: var(--holo-secondary);
}

:root[data-ui-theme='holo'] footer #help {
  min-height: 25px;
  padding: 2px 9px;
  font-size: var(--holo-text-size);
}

/* All native dialogs and their generated campaign, refit, setup and Almanac content. */
:root[data-ui-theme='holo'] dialog {
  max-width: calc((100vw - 24px) / var(--gui-size, 1));
  max-height: calc((100dvh - 24px) / var(--gui-size, 1));
  border: 1px solid var(--holo-line);
  border-radius: 1.2rem;
  padding: 0;
  background: var(--holo-dialog);
  color: var(--holo-ice);
  box-shadow:
    inset 0 1px 0 rgba(232, 244, 255, 0.14),
    0 24px 80px #000c;
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  font:
    400 1em/1.5 Inter,
    sans-serif;
}

:root[data-ui-theme='holo'] dialog::backdrop {
  background: rgba(1, 5, 12, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

:root[data-ui-theme='holo']
  :is(
    #campaign-dialog,
    #market-dialog,
    #setup-dialog,
    #almanac-dialog,
    #captain-trait-dialog,
    #last-ditch-dialog,
    #help-dialog,
    #display-dialog
  )::backdrop {
  background: rgba(2, 7, 16, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

:root[data-ui-theme='holo']
  :is(
    #campaign-dialog,
    #market-dialog,
    #setup-dialog,
    #almanac-dialog,
    #captain-trait-dialog,
    #last-ditch-dialog,
    #help-dialog,
    #display-dialog
  )
  :not(svg):not(svg *) {
  font-size: var(--holo-text-size) !important;
}

:root[data-ui-theme='holo']
  :is(
    #campaign-dialog,
    #market-dialog,
    #setup-dialog,
    #almanac-dialog,
    #captain-trait-dialog,
    #last-ditch-dialog,
    #help-dialog,
    #display-dialog
  )
  :is(h1, h2, h3, h4) {
  font-family: 'Exo 2', Inter, sans-serif;
}

:root[data-ui-theme='holo']
  :is(
    #campaign-dialog,
    #market-dialog,
    #setup-dialog,
    #almanac-dialog,
    #captain-trait-dialog,
    #last-ditch-dialog,
    #help-dialog,
    #display-dialog
  )
  h1 {
  font-size: clamp(26px, 1.25vw, 42px) !important;
}

:root[data-ui-theme='holo']
  :is(
    #campaign-dialog,
    #market-dialog,
    #setup-dialog,
    #almanac-dialog,
    #captain-trait-dialog,
    #last-ditch-dialog,
    #help-dialog,
    #display-dialog
  )
  h2 {
  font-size: clamp(21px, 0.9vw, 32px) !important;
}

:root[data-ui-theme='holo']
  :is(
    #campaign-dialog,
    #market-dialog,
    #setup-dialog,
    #almanac-dialog,
    #captain-trait-dialog,
    #last-ditch-dialog,
    #help-dialog,
    #display-dialog
  )
  h3 {
  font-size: clamp(16px, 0.62vw, 23px) !important;
}

:root[data-ui-theme='holo']
  :is(
    #campaign-dialog,
    #market-dialog,
    #setup-dialog,
    #almanac-dialog,
    #captain-trait-dialog,
    #last-ditch-dialog,
    #help-dialog,
    #display-dialog
  )
  h4 {
  font-size: max(14px, 0.82em) !important;
}

:root[data-ui-theme='holo']
  :is(#campaign-dialog, #market-dialog, #setup-dialog, #almanac-dialog)
  :is(.cs-ledger b, .rb-stat b, .rb-row-num b, .cs-stat strong, #almanac-count) {
  font-size: max(16px, 1.15em) !important;
  font-variant-numeric: tabular-nums;
}

:root[data-ui-theme='holo'] dialog :is(h1, h2, h3, h4, legend) {
  color: var(--holo-ice);
  font-family: 'Exo 2', Inter, sans-serif;
  font-weight: 300;
}

:root[data-ui-theme='holo'] dialog :is(p, label, dd, dt, li, small, summary) {
  color: var(--holo-secondary);
}

:root[data-ui-theme='holo'] dialog :is(p, li, .hint, .rb-hint, .fine, small) {
  line-height: 1.45;
}

:root[data-ui-theme='holo'] dialog button {
  border-color: var(--holo-line);
  background: rgba(111, 211, 255, 0.08);
}

:root[data-ui-theme='holo'] #display-dialog {
  width: min(860px, calc(100vw - 24px));
  padding: 1rem 1.25rem 1.2rem;
}

:root[data-ui-theme='holo'] .display-settings-head {
  min-height: 0;
  height: auto;
  margin: 0 0 1rem;
  padding: 0 0 0.8rem;
  border-bottom: 1px solid var(--holo-line-soft);
  background: transparent;
}

:root[data-ui-theme='holo'] .display-settings-head small,
:root[data-ui-theme='holo'] .theme-choices legend,
:root[data-ui-theme='holo'] .gui-size-setting > label {
  color: var(--holo-cyan);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:root[data-ui-theme='holo'] .display-settings-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.7em;
}

:root[data-ui-theme='holo'] .theme-choices {
  border-color: var(--holo-line-soft);
}

:root[data-ui-theme='holo'] .theme-card {
  border-color: var(--holo-line-soft);
  border-radius: 0.8rem;
  background: rgba(5, 13, 25, 0.62);
}

:root[data-ui-theme='holo'] .theme-choice:has(input:checked) .theme-card {
  border-color: rgba(111, 211, 255, 0.72);
  background: rgba(48, 132, 174, 0.18);
  box-shadow: 0 0 14px rgba(111, 211, 255, 0.1);
}

:root[data-ui-theme='holo'] .theme-card b {
  color: var(--holo-ice);
}

:root[data-ui-theme='holo'] .theme-card small {
  color: var(--holo-secondary);
}

:root[data-ui-theme='holo'] :is(.cs, .rb, .almanac-layout, .display-settings) {
  color: var(--holo-ice);
}

:root[data-ui-theme='holo'] :is(.cs, .rb, .almanac-layout) :is(h1, h2, h3, h4, .section-title) {
  color: var(--holo-ice);
  font-family: 'Exo 2', Inter, sans-serif;
  font-weight: 300;
}

:root[data-ui-theme='holo'] :is(.cs, .rb, .almanac-layout) :is(p, small, label, dt, .hint, .fine) {
  color: var(--holo-secondary);
}

:root[data-ui-theme='holo']
  :is(.cs, .rb, .almanac-layout)
  :is(button, .cs-card, .rb-ship, .rb-tile, .rb-chip, .rb-row, .captain-card, .almanac-class) {
  border-color: var(--holo-line-soft);
  background-color: rgba(8, 18, 32, 0.58);
  color: var(--holo-ice);
}

:root[data-ui-theme='holo'] :is(.cs, .rb, .almanac-layout) button:hover:not(:disabled) {
  border-color: rgba(111, 211, 255, 0.66);
  background-color: rgba(48, 132, 174, 0.2);
}

:root[data-ui-theme='holo'] :is(.cs, .rb, .almanac-layout) :is(.is-blue, .blue, .friendly, .is-friendly) {
  color: var(--holo-friendly);
}

:root[data-ui-theme='holo'] :is(.cs, .rb, .almanac-layout) :is(.is-red, .red, .hostile, .is-hostile) {
  color: var(--holo-hostile);
}

:root[data-ui-theme='holo']
  :is(.cs, .rb, .almanac-layout)
  :is(.is-selected, .is-active, .is-on, [aria-pressed='true']) {
  border-color: rgba(111, 211, 255, 0.7);
  background-color: rgba(44, 126, 169, 0.2);
  box-shadow: 0 0 12px rgba(111, 211, 255, 0.08);
}

:root[data-ui-theme='holo'] .cs :is(.cs-head, .cs-foot) {
  border-color: var(--holo-line-soft);
  background: rgba(5, 12, 24, 0.72);
}

:root[data-ui-theme='holo'] .cs-launch,
:root[data-ui-theme='holo'] .cs .cs-launch:hover {
  border-color: rgba(111, 211, 255, 0.76);
  background: rgba(70, 163, 211, 0.22);
  color: var(--holo-ice);
}

:root[data-ui-theme='holo'] #market-dialog,
:root[data-ui-theme='holo'] #setup-dialog,
:root[data-ui-theme='holo'] #almanac-dialog {
  width: min(96vw, 1700px);
}

:root[data-ui-theme='holo'] #campaign-dialog {
  width: min(96vw, 1740px);
}

:root[data-ui-theme='holo'] #captain-trait-dialog,
:root[data-ui-theme='holo'] #last-ditch-dialog,
:root[data-ui-theme='holo'] #help-dialog {
  width: min(720px, calc(100vw - 24px));
  padding: 1.4rem;
}

:root[data-ui-theme='holo'] #help-dialog h2 {
  margin-bottom: 0.8rem;
}

:root[data-ui-theme='holo'] #help-dialog p + p {
  margin-top: 0.75rem;
}

:root[data-ui-theme='holo'] #help-dialog #close-help {
  margin-top: 1rem;
}

:root[data-ui-theme='holo'] .last-ditch-dialog-form {
  padding: 1.4rem;
}

:root[data-ui-theme='holo'] .last-ditch-dialog-form > div {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

:root[data-ui-theme='holo'] #almanac-list button[aria-pressed='true'],
:root[data-ui-theme='holo'] .almanac-states button[aria-pressed='true'] {
  border-color: var(--holo-cyan);
  color: var(--holo-cyan);
}

/* One blurred shell, with lightly tinted data wells rather than stacked opaque panes. */
:root[data-ui-theme='holo'] :is(#campaign-dialog, #market-dialog, #setup-dialog, #almanac-dialog) {
  background: var(--holo-dialog);
}

:root[data-ui-theme='holo'] :is(.cs, .rb) {
  --well: rgba(10, 24, 40, 0.4);
  --mono: Inter, sans-serif;
  --display: 'Exo 2', Inter, sans-serif;
}

:root[data-ui-theme='holo'] :is(.cs-orders, .cs-ready, .rb-body) {
  background: transparent;
}

:root[data-ui-theme='holo'] .cs-map svg.chart {
  background: radial-gradient(ellipse at 30% 40%, rgba(23, 58, 78, 0.3), transparent 70%);
}

:root[data-ui-theme='holo'] .cs-hero-art {
  background: radial-gradient(ellipse at center, rgba(70, 151, 196, 0.2), transparent 75%);
}

:root[data-ui-theme='holo'] .almanac-stage {
  background-color: rgba(8, 18, 32, 0.3);
}

:root[data-ui-theme='holo'] .roster-copy {
  height: auto;
  grid-template-rows: minmax(1.3em, auto) minmax(1.3em, auto) 2px;
}

:root[data-ui-theme='holo'] :is(.ship-card strong, .roster-state, .roster-health) {
  line-height: 1.3;
}

/* Smaller displays preserve the same controls while reducing chrome and columns. */
@media (min-width: 1700px) {
  :root[data-ui-theme='holo'] :is(#campaign-dialog, #market-dialog, #setup-dialog) {
    width: calc(95vw / var(--gui-size, 1));
    max-width: calc((100vw - 24px) / var(--gui-size, 1));
    height: calc(94dvh / var(--gui-size, 1));
    max-height: calc((100dvh - 24px) / var(--gui-size, 1));
  }

  :root[data-ui-theme='holo'] #almanac-dialog {
    width: calc(min(84vw, 3200px) / var(--gui-size, 1));
    max-width: calc((100vw - 24px) / var(--gui-size, 1));
    height: calc(92dvh / var(--gui-size, 1));
    max-height: calc((100dvh - 24px) / var(--gui-size, 1));
  }

  :root[data-ui-theme='holo'] .cs-body {
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.8fr) minmax(400px, 0.9fr);
  }

  :root[data-ui-theme='holo'] .rb-body {
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 2fr) minmax(380px, 1fr);
  }

  :root[data-ui-theme='holo'] .almanac-layout {
    grid-template-columns: minmax(360px, 26%) minmax(0, 1fr);
  }

  :root[data-ui-theme='holo'] .cs-hero-art {
    height: clamp(280px, 27vh, 440px);
  }

  :root[data-ui-theme='holo'] .almanac-stage {
    height: clamp(340px, 36vh, 600px);
  }
}

@media (max-width: 1500px) {
  :root[data-ui-theme='holo'] {
    --holo-sidebar: calc(clamp(180px, 20vw, 250px) * var(--gui-size, 1));
    --holo-header: 132px;
  }

  :root[data-ui-theme='holo'] header:not(.display-settings-head) {
    display: grid;
    flex-basis: 124px;
    height: 124px;
    min-height: 124px;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: 48px 64px;
    gap: 0 0.65rem;
    margin: 8px 8px 0;
    padding: 4px 10px 0;
  }

  :root[data-ui-theme='holo'] header:not(.display-settings-head) > .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  :root[data-ui-theme='holo'] header:not(.display-settings-head) > .sector-power {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
  }

  :root[data-ui-theme='holo'] header:not(.display-settings-head) > .time-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;
    min-width: 0;
  }

  :root[data-ui-theme='holo'] .brand {
    font-size: 0.88em;
  }

  :root[data-ui-theme='holo'] .sector-power {
    max-width: none;
    margin: 0;
    gap: 0.5rem;
  }

  :root[data-ui-theme='holo'] .sector-power .sector {
    min-width: 0;
    gap: 0.35rem;
    font-size: max(var(--holo-type-floor), 0.7em);
  }

  :root[data-ui-theme='holo'] .sector-power .power-balance {
    min-width: 0;
    max-width: 220px;
  }

  :root[data-ui-theme='holo'] .time-controls {
    width: 100%;
    justify-content: flex-end;
    gap: 3px;
  }

  :root[data-ui-theme='holo'] .time-controls button {
    min-height: 30px;
    padding: 2px 6px;
    font-size: max(var(--holo-type-floor), 0.72em);
  }

  :root[data-ui-theme='holo'] main {
    grid-template-columns: var(--holo-sidebar) minmax(0, 1fr);
  }

  :root[data-ui-theme='holo'] #mission-bar {
    left: calc(var(--holo-sidebar) + 12px);
    right: 14px;
    width: auto;
    transform: none;
  }

  :root[data-ui-theme='holo'] .map-label,
  :root[data-ui-theme='holo'] .map-footer {
    left: max(clamp(190px, 22vw, 270px), calc(var(--hud-roster-right, var(--holo-sidebar)) + 12px));
  }

  :root[data-ui-theme='holo'] .view-controls {
    top: calc(var(--hud-header, var(--holo-header)) + var(--hud-mission, 0px) + 20px);
    left: auto;
    max-width: calc(100% - 205px);
  }

  :root[data-ui-theme='holo'] .map-label {
    top: calc(var(--hud-header, var(--holo-header)) + var(--hud-mission, 0px) + 12px);
  }

  :root[data-ui-theme='holo'] :is(#campaign-dialog, #market-dialog, #setup-dialog) {
    width: calc(95vw / var(--gui-size, 1));
    max-width: calc((100vw - 24px) / var(--gui-size, 1));
    height: calc(94dvh / var(--gui-size, 1));
    max-height: calc((100dvh - 24px) / var(--gui-size, 1));
  }

  :root[data-ui-theme='holo'] #almanac-dialog {
    width: calc(min(84vw, 3200px) / var(--gui-size, 1));
    max-width: calc((100vw - 24px) / var(--gui-size, 1));
    height: calc(92dvh / var(--gui-size, 1));
    max-height: calc((100dvh - 24px) / var(--gui-size, 1));
  }
}

@media (max-width: 760px) {
  :root[data-ui-theme='holo'] {
    --holo-header: 120px;
  }

  :root[data-ui-theme='holo'] header:not(.display-settings-head) {
    flex-basis: 112px;
    height: 112px;
    min-height: 112px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 44px 58px;
  }

  :root[data-ui-theme='holo'] .brand {
    display: none;
  }

  :root[data-ui-theme='holo'] .sector-power {
    grid-column: 1;
    grid-row: 1;
    flex-basis: 100%;
  }

  :root[data-ui-theme='holo'] .time-controls {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }

  :root[data-ui-theme='holo'] main {
    display: block;
  }

  :root[data-ui-theme='holo'] aside.left {
    width: min(210px, 45vw);
    max-height: 48vh;
    margin: 8px;
    padding: 8px;
  }

  :root[data-ui-theme='holo'] .map-label {
    top: 148px;
    left: 8px;
  }

  :root[data-ui-theme='holo'] .view-controls {
    top: auto;
    bottom: 78px;
    left: 8px;
    right: 8px;
    justify-content: flex-start;
  }

  :root[data-ui-theme='holo'] .view-controls button {
    font-size: 0.72em;
  }

  :root[data-ui-theme='holo'] .map-footer {
    left: 8px;
    right: 8px;
  }

  :root[data-ui-theme='holo'] .battle-console {
    bottom: 48px;
    left: calc(min(45vw, 210px) + 8px);
    width: calc(100vw - min(45vw, 210px) - 16px);
    max-width: none;
    max-height: 40vh;
    overflow: auto;
  }

  :root[data-ui-theme='holo'] .hud-target {
    right: 8px;
    width: min(260px, calc(100% - 16px));
    max-height: 36vh;
    padding: 0.7rem;
  }

  :root[data-ui-theme='holo'] footer {
    flex-basis: 40px;
    height: 40px;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-ui-theme='holo'] button {
    transition: none;
  }
}

:root[data-ui-theme='holo'] #crew-workspace-root .crew-workspace :not(svg):not(svg *) {
  font-size: max(14px, var(--holo-text-size)) !important;
}
:root[data-ui-theme='holo'] #crew-workspace-root .crew-workspace h1 {
  font-size: 28px !important;
}
:root[data-ui-theme='holo'] #crew-workspace-root .crew-workspace h2 {
  font-size: 30px !important;
}
:root[data-ui-theme='holo'] #crew-workspace-root .crew-workspace h3 {
  font-size: 22px !important;
}
