/* Command Table: flat, disciplined CIC surfaces over the existing game DOM. */
:root[data-ui-theme='cic'] {
  color-scheme: dark;
  --bg: #0b0d0f;
  --panel: #111417;
  --line: #262b31;
  --muted: #6b7682;
  --cyan: #4cc9f0;
  --red: #ff4d4d;
  --error: var(--cic-red);
  --success: var(--cic-green);
  --gold: #ffb000;
  --cic-header: #161a1e;
  --cic-text: #c9d1d9;
  --cic-dim: #6b7682;
  --cic-amber: #ffb000;
  --cic-cyan: #4cc9f0;
  --cic-red: #ff4d4d;
  --cic-yellow: #e9d758;
  --cic-green: #7bd88f;
  --cic-type-floor: max(12px, calc(12px / var(--gui-size, 1)));
  --cic-text-size: max(var(--cic-type-floor), clamp(12px, 0.47vw, 18px));
  --shield-healthy: #4cc9f0;
  --shield-damaged: #ffb000;
  --shield-critical: #ff4d4d;
  --shield-collapsed: #71353a;
  --console-face: #111417;
  --console-edge: #262b31;
  --console-active: #292317;
  --console-hover: #1b2025;
  --console-bevel: none;
  --hud-font: var(--cic-text-size);
  --own-art-size: 72px;
  --own-diagram-width: 136px;
  --own-diagram-height: 108px;
  --own-label-width: 48px;
  --target-art-size: 44px;
  --target-shield-width: 136px;
  --target-shield-height: 54px;
  --target-label-width: 46px;
  color: var(--cic-text);
  font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  font-size: var(--cic-text-size);
}

:root[data-ui-theme='cic'] *,
:root[data-ui-theme='cic'] *::before,
:root[data-ui-theme='cic'] *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
}

:root[data-ui-theme='cic'] body {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--cic-text);
  font:
    400 var(--cic-text-size)/1.4 'IBM Plex Sans Condensed',
    'Arial Narrow',
    sans-serif;
}

:root[data-ui-theme='cic'] :is(button, input, select, textarea) {
  min-width: 0;
  color: inherit;
  font: inherit;
}

:root[data-ui-theme='cic'] button {
  min-height: 26px;
  padding: 0.28em 0.58em;
  border: 1px solid var(--line);
  background: var(--cic-header);
  color: var(--cic-text);
  cursor: pointer;
  line-height: 1.2;
  transition:
    color 100ms linear,
    border-color 100ms linear,
    background-color 100ms linear;
}

:root[data-ui-theme='cic'] button:hover:not(:disabled) {
  border-color: #69727b;
  background: #1d2227;
  color: #fff;
}

:root[data-ui-theme='cic'] :is(button[aria-pressed='true'], button.selected, button.active, button.on, .selected) {
  border-color: var(--cic-amber);
  background: #292317;
  color: var(--cic-amber);
}

:root[data-ui-theme='cic'] button:disabled {
  color: #59616a;
  opacity: 0.65;
  cursor: not-allowed;
}

:root[data-ui-theme='cic'] .crew-workspace {
  --crew-panel: #111417;
  --crew-line: var(--line);
  --crew-ink: var(--cic-text);
  --crew-accent: var(--cic-amber);
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] #crew-workspace-root .crew-workspace :is(button, select) {
  min-height: 42px;
  font-size: max(14px, var(--cic-text-size)) !important;
}
:root[data-ui-theme='cic'] #crew-workspace-root .crew-workspace button:disabled {
  color: var(--cic-text);
  opacity: 1;
  background: #161a1e;
}
:root[data-ui-theme='cic'] #crew-workspace-root .crew-workspace :focus-visible {
  outline: 3px solid var(--cic-amber);
  outline-offset: 2px;
}

:root[data-ui-theme='cic'] :is(input:not([type='checkbox']):not([type='radio']):not([type='range']), select, textarea) {
  border: 1px solid var(--line);
  background: #0b0d0f;
  color: var(--cic-text);
  padding: 0.35em 0.5em;
}

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

:root[data-ui-theme='cic'] :focus-visible {
  outline: 2px solid var(--cic-amber);
  outline-offset: 1px;
}
/* Explicit pixel sizes in the shared HUD/refit CSS must not shrink table data. SVG
   labels retain their viewBox coordinate sizes. */
:root[data-ui-theme='cic']
  :is(body > header, aside.left, .battle-console, #target-bar, #mission-bar, body > footer, dialog)
  :not(svg):not(svg *):not(h1):not(h2):not(h3) {
  font-size: var(--cic-text-size) !important;
}
:root[data-ui-theme='cic'] dialog :is(h1, h2) {
  font-size: clamp(24px, 1vw, 38px) !important;
}
:root[data-ui-theme='cic'] dialog h3 {
  font-size: clamp(18px, 0.65vw, 25px) !important;
}
:root[data-ui-theme='cic'] :is(#log, .map-label, .map-label small, .map-footer, .view-controls button, #mission-bar) {
  font-size: var(--cic-text-size) !important;
}

:root[data-ui-theme='cic']
  :is(
    table,
    .roster-health,
    .rb-facts,
    .rb-stat,
    .cs-stats,
    #almanac-facts,
    kbd,
    time,
    output,
    #clock,
    #battle-state,
    #balance-blue,
    #balance-red,
    .power-balance-label,
    .stats strong,
    .command-title strong,
    .map-footer,
    .comms-label,
    .rb-num,
    .rb-row-num,
    .rb-stat b,
    .er-stat,
    .cs-stat,
    .cs-ledger,
    .almanac-rating
  ) {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
}

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

:root[data-ui-theme='cic'] :is(.cyan, .friendly, .is-blue, .is-up, .good, .er-good) {
  color: var(--cic-cyan);
}
:root[data-ui-theme='cic'] :is(.red, .hostile, .enemy, .is-red, .is-down, .danger, .er-down) {
  color: var(--cic-red);
}
:root[data-ui-theme='cic'] :is(.amber, .gold, .is-warn, .mid, .current, .here, .cs-current) {
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] :is(.yellow, .unknown) {
  color: var(--cic-yellow);
}
:root[data-ui-theme='cic'] :is(.green, .high, .ok, .ready, .er-good) {
  color: var(--cic-green);
}

/* Header, power balance, audio and display controls. */
:root[data-ui-theme='cic'] body > header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(210px, 1fr) minmax(500px, 2.7fr);
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--cic-header);
}
:root[data-ui-theme='cic'] .brand {
  gap: 9px;
  color: var(--cic-text);
  font:
    600 18px/1 'IBM Plex Sans Condensed',
    sans-serif;
  letter-spacing: 0.07em;
}
:root[data-ui-theme='cic'] .brand b,
:root[data-ui-theme='cic'] .insignia {
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .brand small {
  margin-top: 4px;
  color: var(--cic-dim);
  font:
    10px 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.07em;
}
:root[data-ui-theme='cic'] .insignia {
  font-size: 26px;
}
:root[data-ui-theme='cic'] .sector-power {
  min-width: 0;
  max-width: none;
  margin: 0;
}
:root[data-ui-theme='cic'] .sector {
  gap: 7px;
  color: var(--cic-text);
  font:
    10px 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.045em;
}
:root[data-ui-theme='cic'] .sector #sector-title {
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .live {
  background: var(--cic-green);
}
:root[data-ui-theme='cic'] .power-balance {
  margin-top: 6px;
}
:root[data-ui-theme='cic'] .power-balance-label {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: var(--cic-dim);
  font-size: 9px;
}
:root[data-ui-theme='cic'] .power-balance-label b {
  color: var(--cic-text);
  font-weight: 500;
}
:root[data-ui-theme='cic'] .power-balance-track {
  height: 4px;
  margin-top: 4px;
  background: #31373e;
}
:root[data-ui-theme='cic'] #balance-fill {
  background: var(--cic-cyan);
}
:root[data-ui-theme='cic'] .time-controls {
  justify-content: flex-end;
  gap: 4px;
}
:root[data-ui-theme='cic'] .time-controls button {
  min-height: 30px;
  padding: 0.3em 0.55em;
  font-size: 11px;
  white-space: nowrap;
}
:root[data-ui-theme='cic'] #pause {
  min-width: 74px;
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] #audio-settings {
  position: absolute;
  z-index: 8;
  top: calc(100% + 1px);
  right: 60px;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 9px 14px;
  width: min(440px, 90vw);
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
:root[data-ui-theme='cic'] #audio-settings[hidden] {
  display: none;
}
:root[data-ui-theme='cic'] #audio-settings label {
  display: flex;
  align-items: center;
  gap: 6px;
}
:root[data-ui-theme='cic'] #audio-settings p,
:root[data-ui-theme='cic'] #audio-settings a {
  grid-column: 1 / -1;
}

/* Tiled command board and roster tables. */
:root[data-ui-theme='cic'] main {
  display: grid;
  grid-template-columns: clamp(280px, 21vw, 410px) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  height: auto;
  gap: 0;
  padding: 0;
  background: var(--bg);
}
:root[data-ui-theme='cic'] aside.left {
  min-width: 0;
  padding: 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
  scrollbar-color: #3d454d var(--panel);
  scrollbar-width: thin;
}
:root[data-ui-theme='cic'] .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 7px;
  color: var(--cic-amber);
  font:
    500 11px/1.2 'IBM Plex Sans Condensed',
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
:root[data-ui-theme='cic'] .section-title:first-child {
  margin-top: 0;
}
:root[data-ui-theme='cic'] .section-title span {
  color: var(--cic-dim);
  font:
    10px 'IBM Plex Mono',
    monospace;
}
:root[data-ui-theme='cic'] .hostile-title,
:root[data-ui-theme='cic'] #enemies + .section-title {
  color: var(--cic-red);
}
:root[data-ui-theme='cic'] #squadron-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: 8px;
  color: var(--cic-dim);
}
:root[data-ui-theme='cic'] #squadron-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
}
:root[data-ui-theme='cic'] #squadron-toolbar select {
  width: auto;
  flex: 1;
}
:root[data-ui-theme='cic'] #squadron-toolbar button {
  text-align: left;
}
:root[data-ui-theme='cic'] #squadron-leader {
  color: var(--cic-dim);
  font-size: 11px;
}
:root[data-ui-theme='cic'] #fleet-filters {
  display: flex;
  gap: 4px;
  margin: 7px 0;
}
:root[data-ui-theme='cic'] #fleet-filters button {
  flex: 1;
  min-height: 25px;
  padding: 2px 4px;
  font-size: 10px;
}
:root[data-ui-theme='cic'] :is(#friendlies, #enemies) {
  display: grid;
  gap: 0;
}
:root[data-ui-theme='cic'] :is(.fleet-entry, .ship-card) {
  margin: 0;
}
:root[data-ui-theme='cic'] .fleet-entry .ship-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  width: 100%;
  height: calc(2.8 * var(--cic-text-size) + 8px);
  min-height: calc(2.8 * var(--cic-text-size) + 8px);
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
:root[data-ui-theme='cic'] .ship-card canvas {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}
:root[data-ui-theme='cic'] .roster-copy {
  min-width: 0;
}
:root[data-ui-theme='cic'] #friendlies > .fleet-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, 28%);
  grid-template-rows: auto auto;
  gap: 2px 5px;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
:root[data-ui-theme='cic'] #friendlies > .fleet-entry:not(:has(.squadron-stance)) {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
:root[data-ui-theme='cic'] .fleet-entry .ship-card {
  grid-column: 1;
  grid-row: 1;
}
:root[data-ui-theme='cic'] .fleet-entry .squadron-stance {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  margin: 0;
}
:root[data-ui-theme='cic'] .fleet-entry .squadron-intent {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  overflow: hidden;
  color: var(--cic-dim);
  font-size: var(--cic-type-floor);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root[data-ui-theme='cic'] .fleet-entry:has(.squadron-resume:not([hidden])) .squadron-intent {
  grid-column: 1;
}
:root[data-ui-theme='cic'] .fleet-entry .squadron-resume {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-height: 22px;
  margin: 0;
  padding: 1px 3px;
}
:root[data-ui-theme='cic'] #enemies > .fleet-entry {
  display: block;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
:root[data-ui-theme='cic'] .roster-copy {
  height: auto;
  grid-template-rows: auto auto 2px;
}
:root[data-ui-theme='cic'] .roster-health {
  line-height: 1.35;
}
:root[data-ui-theme='cic'] .ship-card strong,
:root[data-ui-theme='cic'] .roster-state {
  line-height: 1.35;
}
:root[data-ui-theme='cic'] .ship-card:hover:not(:disabled) {
  background: #1a1f24;
}
:root[data-ui-theme='cic'] .ship-card.selected,
:root[data-ui-theme='cic'] .fleet-entry.selected > .ship-card {
  border-left: 2px solid var(--cic-amber);
  background: #211d15;
}
:root[data-ui-theme='cic'] .ship-card.target,
:root[data-ui-theme='cic'] .ship-card.enemy.target {
  border-left: 2px solid var(--cic-red);
}
:root[data-ui-theme='cic'] .ship-card strong {
  color: var(--cic-text);
  font-size: 12px;
  font-weight: 500;
}
:root[data-ui-theme='cic'] .ship-card small {
  color: var(--cic-dim);
  font-family: 'IBM Plex Mono', monospace;
}
:root[data-ui-theme='cic'] .ship-card .bar {
  height: 3px;
  margin-top: 4px;
  background: #30363d;
}
:root[data-ui-theme='cic'] .ship-card .bar i {
  background: var(--cic-cyan);
}
:root[data-ui-theme='cic'] .ship-card.enemy .bar i {
  background: var(--cic-red);
}
:root[data-ui-theme='cic'] .legend {
  justify-content: space-between;
  margin-top: 9px;
  color: var(--cic-dim);
}
:root[data-ui-theme='cic'] .legend i {
  width: 7px;
  height: 7px;
}

/* Tactical plot frame, contact overlays, banners and view controls. */
:root[data-ui-theme='cic'] .viewport {
  /* Reserve the right-hand controls in actual screen pixels at every GUI size.
     The renderer and HUD both measure the remaining canvas, not this outer pane. */
  --cic-rail: min(calc(620px * var(--gui-size, 1)), calc(var(--hud-width, 100vw) * 0.36));
  --cic-target-height: min(calc(260px * var(--gui-size, 1)), calc(var(--hud-height, 100dvh) * 0.36));
  padding-right: calc(var(--cic-rail) + 8px);
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  background-color: #090b0d;
  background-image:
    linear-gradient(#20262c55 1px, transparent 1px), linear-gradient(90deg, #20262c55 1px, transparent 1px);
  background-size: 32px 32px;
}
:root[data-ui-theme='cic'] .viewport::after {
  z-index: 0;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(#262b3138 1px, transparent 1px), linear-gradient(90deg, #262b3138 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  pointer-events: none;
  box-shadow: none;
}
:root[data-ui-theme='cic'] body.photo-mode .viewport {
  padding-right: 0;
}
:root[data-ui-theme='cic'] #battle {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}
:root[data-ui-theme='cic'] .map-label,
:root[data-ui-theme='cic'] .map-footer {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--line);
  background: #111417;
  color: var(--cic-amber);
  font:
    10px 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.05em;
}
:root[data-ui-theme='cic'] .map-label {
  top: 0;
}
:root[data-ui-theme='cic'] .map-label small {
  margin-left: auto;
  color: var(--cic-dim);
}
:root[data-ui-theme='cic'] .map-footer {
  top: auto;
  bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--cic-dim);
}
:root[data-ui-theme='cic'] .view-controls {
  position: absolute;
  z-index: 3;
  top: 35px;
  right: calc(min(620px, 36%) + 14px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: 70%;
}
:root[data-ui-theme='cic'] .view-controls button {
  min-height: 25px;
  padding: 2px 6px;
  font-size: 10px;
}
:root[data-ui-theme='cic'] #mission-bar,
:root[data-ui-theme='cic'] #last-ditch-banner,
:root[data-ui-theme='cic'] #banner,
:root[data-ui-theme='cic'] #result,
:root[data-ui-theme='cic'] #presentation-panel,
:root[data-ui-theme='cic'] #photo-toolbar,
:root[data-ui-theme='cic'] #bridge-callouts {
  border: 1px solid var(--line);
  background: #111417;
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] #mission-bar {
  top: 34px;
  left: 10px;
  right: auto;
  width: calc(100% - 20px);
  max-width: none;
  height: auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr) auto auto;
  gap: 8px 16px;
  padding: 8px;
}
:root[data-ui-theme='cic'] #mission-objective {
  white-space: normal;
  overflow-wrap: break-word;
}
:root[data-ui-theme='cic'] .mission-bar-where {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
:root[data-ui-theme='cic'] .mission-bar-where b {
  white-space: normal;
}
:root[data-ui-theme='cic'] .mission-bar-goal {
  grid-column: 2;
  grid-row: 1;
}
:root[data-ui-theme='cic'] .mission-bar-clock {
  grid-column: 3;
  grid-row: 1;
}
:root[data-ui-theme='cic'] #campaign-withdraw {
  grid-column: 4;
  grid-row: 1;
}
:root[data-ui-theme='cic'] :is(#rescue-controls, #hold-line-controls) {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}
:root[data-ui-theme='cic'] :is(#rescue-controls, #hold-line-controls) button {
  border-color: var(--cic-amber);
  background: #20262b;
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] #rescue-count {
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] #hold-line-controls {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}
:root[data-ui-theme='cic'] #campaign-alert {
  grid-column: 1 / -1;
  grid-row: 2;
}
:root[data-ui-theme='cic'] .viewport.has-mission-bar {
  --mission-bar: 160px;
}
:root[data-ui-theme='cic'] .viewport.has-mission-bar :is(.map-label, .view-controls) {
  transform: none;
}
:root[data-ui-theme='cic'] .viewport.has-mission-bar .view-controls {
  top: calc(var(--hud-header, 0px) + var(--hud-mission, 0px) + 54px);
  right: 8px;
}
:root[data-ui-theme='cic'] .viewport.has-mission-bar #mission-bar {
  z-index: 5;
}
:root[data-ui-theme='cic'] .viewport.has-mission-bar #target-bar {
  top: 202px;
}
:root[data-ui-theme='cic'] .viewport.has-mission-bar #last-ditch-banner {
  top: 158px;
}
:root[data-ui-theme='cic'] #mission-name,
:root[data-ui-theme='cic'] #mission-clock {
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] #last-ditch-banner {
  border-color: var(--cic-red);
  color: var(--cic-red);
}
:root[data-ui-theme='cic'] #banner,
:root[data-ui-theme='cic'] #result {
  max-width: min(620px, 88vw);
  padding: 18px;
}
:root[data-ui-theme='cic'] #banner h1,
:root[data-ui-theme='cic'] #result h1 {
  color: var(--cic-amber);
  font:
    600 22px 'IBM Plex Sans Condensed',
    sans-serif;
}
:root[data-ui-theme='cic'] #banner small {
  color: var(--cic-amber);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.1em;
}
:root[data-ui-theme='cic'] #engage {
  border-color: var(--cic-amber);
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] #presentation-panel,
:root[data-ui-theme='cic'] #photo-toolbar {
  z-index: 7;
  padding: 9px;
}
:root[data-ui-theme='cic'] #bridge-callouts {
  border-left: 2px solid var(--cic-cyan);
}
:root[data-ui-theme='cic'] #target-bar {
  top: calc(34px / var(--gui-size, 1));
  right: calc(8px / var(--gui-size, 1));
  left: auto;
  width: calc(var(--cic-rail) / var(--gui-size, 1));
  max-width: 620px;
  transform: none;
  z-index: 4;
  color: var(--cic-text);
  border: 1px solid var(--line);
  background: #111417;
}
:root[data-ui-theme='cic'] .hud-target.has-target {
  max-height: calc(var(--cic-target-height) / var(--gui-size, 1));
  overflow: auto;
}
:root[data-ui-theme='cic'] #target-body {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}
:root[data-ui-theme='cic'] .target-identity {
  grid-column: 1 / -1;
  min-width: 0;
}
:root[data-ui-theme='cic'] .target-heading {
  flex-wrap: wrap;
  white-space: normal;
}
:root[data-ui-theme='cic'] .target-metrics {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 6px;
}
:root[data-ui-theme='cic'] #target-badges {
  flex-wrap: wrap;
}
:root[data-ui-theme='cic'] #target-motion {
  white-space: normal;
}
:root[data-ui-theme='cic'] .target-shields {
  width: var(--target-shield-width);
}
:root[data-ui-theme='cic'] .hud-target :is(h2, strong) {
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .meter {
  height: 4px;
  border: 0;
  background: #333a41;
}
:root[data-ui-theme='cic'] .meter > div {
  background: var(--cic-green);
}
:root[data-ui-theme='cic'] #target-hull-fill {
  background: var(--cic-red);
}

/* Selected ship command console, all three diagnostics drawers and captain data. */
:root[data-ui-theme='cic'] .battle-console {
  z-index: 6;
  top: auto;
  right: calc(8px / var(--gui-size, 1));
  bottom: calc(28px / var(--gui-size, 1));
  left: auto;
  width: calc(var(--cic-rail) / var(--gui-size, 1));
  max-width: 620px;
  height: fit-content;
  max-height: calc((100% - 62px - var(--cic-target-height)) / var(--gui-size, 1));
  overflow: auto;
  transform: none;
  border: 1px solid var(--line);
  background: #111417;
  color: var(--cic-text);
  --console-face: #111417;
  --console-edge: var(--line);
  --console-active: #292317;
  --console-hover: #1b2025;
}
:root[data-ui-theme='cic'] .console-main {
  grid-template-columns: 1fr;
}
:root[data-ui-theme='cic'] .own-body {
  grid-template-columns: 136px minmax(0, 1fr);
}
:root[data-ui-theme='cic'] .own-wing,
:root[data-ui-theme='cic'] .firing-spine {
  border-top-width: 1px;
  border-top-color: var(--line);
}
:root[data-ui-theme='cic'] .own-wing {
  border-top-color: var(--cic-cyan);
}
:root[data-ui-theme='cic'] #command-content {
  position: static;
  right: 0;
  left: auto;
  width: 100%;
  max-height: min(55vh, 620px);
  transform: none;
  border-color: var(--line);
  background: #111417;
  scrollbar-color: #46505a #111417;
}
:root[data-ui-theme='cic'] .battle-console .section-title {
  margin: 7px 0 5px;
}
:root[data-ui-theme='cic'] .command-title :is(#ship-name, #hull-number) {
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
:root[data-ui-theme='cic'] .stats small {
  color: var(--cic-dim);
  font-family: 'IBM Plex Mono', monospace;
}
:root[data-ui-theme='cic'] .stats strong {
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] #command-tabs button[aria-selected='true'],
:root[data-ui-theme='cic'] #command-tabs button.active {
  color: var(--cic-amber);
  border-color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .order-grid button,
:root[data-ui-theme='cic'] #power button {
  min-height: 28px;
}
:root[data-ui-theme='cic'] .command-section,
:root[data-ui-theme='cic'] .weapon-row,
:root[data-ui-theme='cic'] .system,
:root[data-ui-theme='cic'] .captain-card,
:root[data-ui-theme='cic'] #captain-panel > * {
  border-color: var(--line);
}
:root[data-ui-theme='cic'] .weapon-row {
  padding: 6px 0;
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] .weapon-row span {
  color: var(--cic-amber);
  font-family: 'IBM Plex Mono', monospace;
}
:root[data-ui-theme='cic'] .system {
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] #weapon-readiness,
:root[data-ui-theme='cic'] #systems,
:root[data-ui-theme='cic'] #captain-trait-console,
:root[data-ui-theme='cic'] #captain-panel,
:root[data-ui-theme='cic'] #target-info,
:root[data-ui-theme='cic'] #campaign-mounts {
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] .reactor-telemetry summary {
  border-bottom: 1px solid var(--line);
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .squadron-console,
:root[data-ui-theme='cic'] #squadron-picker {
  border-color: var(--line);
}

/* Combat log and help. */
:root[data-ui-theme='cic'] body > footer {
  display: flex;
  height: auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--cic-header);
  font:
    10px 'IBM Plex Mono',
    monospace;
}
:root[data-ui-theme='cic'] .comms-label {
  color: var(--cic-amber);
  white-space: nowrap;
}
:root[data-ui-theme='cic'] #log {
  max-height: 30px;
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] #help {
  margin-left: auto;
  white-space: nowrap;
}

/* Native dialogs share the same opaque pane and disciplined rule treatment. */
:root[data-ui-theme='cic'] dialog {
  max-width: calc((100vw - 24px) / var(--gui-size, 1));
  max-height: calc((100dvh - 24px) / var(--gui-size, 1));
  padding: 0;
  overflow: auto;
  border: 1px solid #46505a;
  background: #111417;
  color: var(--cic-text);
  scrollbar-color: #46505a #111417;
}
:root[data-ui-theme='cic'] dialog::backdrop {
  background: #03040580;
  backdrop-filter: none;
}
:root[data-ui-theme='cic']
  :is(
    #campaign-dialog,
    #market-dialog,
    #setup-dialog,
    #almanac-dialog,
    #captain-trait-dialog,
    #last-ditch-dialog,
    #help-dialog,
    #display-dialog
  )::backdrop {
  background: #03040580;
  backdrop-filter: none;
}
:root[data-ui-theme='cic']
  :is(
    #campaign-dialog,
    #market-dialog,
    #setup-dialog,
    #almanac-dialog,
    #captain-trait-dialog,
    #last-ditch-dialog,
    #help-dialog,
    #display-dialog
  ) {
  max-width: calc((100vw - 24px) / var(--gui-size, 1));
  max-height: calc((100dvh - 24px) / var(--gui-size, 1));
  background: #111417;
  color: var(--cic-text);
  border-color: var(--line);
}
:root[data-ui-theme='cic']
  dialog
  :is(p, small, label, button, input, select, textarea, th, td, dt, dd, li, summary, output) {
  font-size: var(--cic-text-size) !important;
}
:root[data-ui-theme='cic'] #crew-workspace-root .crew-workspace :not(svg):not(svg *):not(h1):not(h2):not(h3) {
  font-size: max(14px, var(--cic-text-size)) !important;
}
:root[data-ui-theme='cic'] dialog :is(h1, h2, h3, legend) {
  color: var(--cic-amber);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
}
:root[data-ui-theme='cic'] dialog :is(table, th, td) {
  border-color: var(--line);
}
:root[data-ui-theme='cic'] dialog :is(th, .section-title, .cs-kicker, .rb-label, .almanac-heading) {
  color: var(--cic-amber);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
}
:root[data-ui-theme='cic'] dialog :is(tr:nth-child(even), .cs-record:nth-child(even), .rb-row:nth-child(even)) {
  background: #161a1e;
}
:root[data-ui-theme='cic'] #campaign-dialog {
  width: min(3000px, calc((100vw - 32px) / var(--gui-size, 1)));
  height: min(1400px, calc((100dvh - 24px) / var(--gui-size, 1)));
  background: #111417;
}
:root[data-ui-theme='cic'] #campaign-screen {
  min-height: 0;
  background: #111417;
}
:root[data-ui-theme='cic'] .cs {
  --well: #0b0d0f;
  --up: var(--cic-green);
  --mono: 'IBM Plex Mono', monospace;
  --display: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  color: var(--cic-text);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
}
:root[data-ui-theme='cic']
  .cs
  :is(
    .cs-head,
    .cs-main,
    .cs-body,
    .cs-hero,
    .cs-hero-art,
    .cs-orders,
    .cs-map,
    .cs-sector,
    .cs-record,
    .cs-site,
    .cs-socket,
    .cs-picker,
    .cs-foot,
    .cs-save,
    .cs-choices,
    .cs-prizes,
    .cs-captain,
    .cs-traits
  ) {
  background: #111417;
  border-color: var(--line);
  box-shadow: none;
}
:root[data-ui-theme='cic'] .cs-hero-art :is(canvas, img) {
  filter: none;
}
:root[data-ui-theme='cic'] .cs :is(.cs-head, .cs-foot, .cs-title, .cs-record, .cs-site) {
  background: #161a1e;
}
:root[data-ui-theme='cic'] .cs :is(.cs-title, .cs-label, .cs-kicker, .cs-stat strong, .cs-ledger b) {
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .cs :is(.cs-link, a, .cs-plain) {
  color: var(--cic-cyan);
}
:root[data-ui-theme='cic'] .cs :is(.cs-lead, .cs-notice, .cs-condition, .cs-record-note) {
  color: var(--cic-text);
}
:root[data-ui-theme='cic']
  .cs
  :is(.cs-head, .cs-foot, .cs-main, .cs-body, .cs-picker, .cs-map, .cs-sector, .cs-record, .cs-ledger) {
  border-color: var(--line);
}
:root[data-ui-theme='cic'] .cs :is(.cs-head, .cs-foot, .cs-title, .cs-record, .cs-site, .cs-stat) {
  background-color: #161a1e;
}
:root[data-ui-theme='cic'] .cs :is(.cs-title, .cs-label, .cs-kicker, .cs-stat strong) {
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .cs :is(.cs-locked, .cs-notice, .cs-ready, .cs-current, .cs-condition) {
  border-color: var(--line);
}
:root[data-ui-theme='cic'] .cs button.is-active,
:root[data-ui-theme='cic'] .cs button[aria-pressed='true'] {
  border-color: var(--cic-amber);
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] #market-dialog {
  width: min(3000px, calc((100vw - 32px) / var(--gui-size, 1)));
  height: min(1400px, calc((100dvh - 24px) / var(--gui-size, 1)));
}
:root[data-ui-theme='cic'] #setup-dialog {
  width: min(3000px, calc((100vw - 32px) / var(--gui-size, 1)));
  height: min(1400px, calc((100dvh - 24px) / var(--gui-size, 1)));
  padding: 20px 24px;
}
:root[data-ui-theme='cic'] :is(#market-bay, #setup-dialog) {
  background: #111417;
  color: var(--cic-text);
}
:root[data-ui-theme='cic']
  #setup-dialog
  :is(.terrain-picker, .captain-picker, .setup-header, .setup-footer, .setup-content) {
  background-color: #111417;
  border-color: var(--line);
}
:root[data-ui-theme='cic'] #setup-dialog :is(input, select, textarea) {
  border-color: var(--line);
  background: #0b0d0f;
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] #setup-dialog :is(.setup-tabs button.active, .setup-tabs button[aria-pressed='true']) {
  border-color: var(--cic-amber);
  background: #292317;
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] #setup-dialog :is(.fleet-row, .armory article, .terrain-picker, .captain-picker) {
  background: #111417;
  border-color: var(--line);
}
:root[data-ui-theme='cic']
  #setup-dialog
  :is(.fleet-add input, .fleet-add select, .terrain-picker select, .terrain-picker input) {
  background: #0b0d0f;
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] #setup-apply {
  border-color: var(--cic-amber);
  background: #292317;
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .rb {
  --well: #0b0d0f;
  --up: var(--cic-green);
  --panel: #111417;
  --line: #262b31;
  --muted: #6b7682;
  --cyan: #4cc9f0;
  --gold: #ffb000;
  --red: #ff4d4d;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  color: var(--cic-text);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
}
:root[data-ui-theme='cic']
  .rb
  :is(
    .rb-head,
    .rb-foot,
    .rb-body,
    .rb-center,
    .rb-stage,
    .rb-list,
    .rb-picker,
    .rb-details,
    .rb-ledger,
    .rb-figures,
    .rb-row,
    .rb-chip,
    .rb-group,
    .rb-facts,
    .rb-actions,
    .rb-socket-head,
    .rb-stat,
    .rb-card
  ) {
  background-color: #111417;
  border-color: var(--line);
}
:root[data-ui-theme='cic'] .rb :is(.rb-head, .rb-foot, .rb-chip-head, .rb-socket-head, .rb-stat) {
  background: #161a1e;
}
:root[data-ui-theme='cic'] .rb :is(.rb-roster, .rb-fitted, .rb-facts div, .rb-toggle, .rb-list h4, .rb-toast) {
  background: #111417;
  border-color: var(--line);
}
:root[data-ui-theme='cic']
  .rb
  :is(
    .rb-seg button.is-on,
    .rb-ship.is-active,
    .rb-tile,
    .rb-tile.is-selected,
    .rb-chip,
    .rb-chip.is-selected,
    .rb-row.is-current,
    .rb-row:hover:not(:disabled)
  ) {
  background: #161a1e;
}
:root[data-ui-theme='cic'] .rb-stage {
  background-color: #0b0d0f;
  background-image:
    linear-gradient(#262b3144 1px, transparent 1px), linear-gradient(90deg, #262b3144 1px, transparent 1px);
  background-size: 34px 34px;
}
:root[data-ui-theme='cic']
  .rb
  :is(button[aria-pressed='true'], .rb-grade.is-selected, .rb-chip.is-selected, .rb-choice.is-selected) {
  border-color: var(--cic-amber);
  background: #292317;
  color: var(--cic-amber);
}
:root[data-ui-theme='cic']
  :is(
    .rb,
    .rb-head,
    .rb-body,
    .rb-foot,
    .rb-list,
    .rb-picker,
    .rb-details,
    .rb-ledger,
    .rb-figures,
    .rb-row,
    .rb-chip,
    .rb-group,
    .rb-facts,
    .rb-actions,
    .rb-socket-head
  ) {
  border-color: var(--line);
}
:root[data-ui-theme='cic'] :is(.rb-head, .rb-foot, .rb-chip-head, .rb-socket-head) {
  background: #161a1e;
}
:root[data-ui-theme='cic'] :is(.rb-selected, .rb-grade.is-selected, .rb-chip.is-selected, .rb-choice.is-selected) {
  background: #292317;
  border-color: var(--cic-amber);
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] #almanac-dialog {
  width: min(2800px, calc((100vw - 32px) / var(--gui-size, 1)));
  height: min(1400px, calc((100dvh - 24px) / var(--gui-size, 1)));
  padding: 20px;
}
:root[data-ui-theme='cic'] #almanac-dialog :is(input, select, textarea) {
  border-color: var(--line);
  background: #0b0d0f;
  color: var(--cic-text);
}
:root[data-ui-theme='cic'] #almanac-dialog button[aria-pressed='true'] {
  border-color: var(--cic-amber);
  background: #292317;
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] .almanac-layout,
:root[data-ui-theme='cic'] .almanac-catalog,
:root[data-ui-theme='cic'] .almanac-detail,
:root[data-ui-theme='cic'] .almanac-stage {
  border-color: var(--line);
  background: #111417;
}
:root[data-ui-theme='cic'] .almanac-stage {
  background-color: #0b0d0f;
  background-image:
    linear-gradient(#262b3144 1px, transparent 1px), linear-gradient(90deg, #262b3144 1px, transparent 1px);
  background-size: 24px 24px;
}
:root[data-ui-theme='cic'] .almanac-layout :is(button, .current, .is-selected) {
  border-color: var(--line);
}
:root[data-ui-theme='cic'] .almanac-layout .is-selected {
  border-color: var(--cic-amber);
  color: var(--cic-amber);
}
:root[data-ui-theme='cic'] #display-dialog {
  width: min(820px, calc(100vw - 24px));
}
:root[data-ui-theme='cic'] .display-settings {
  padding: 18px;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
}
:root[data-ui-theme='cic'] .display-settings-head {
  border-bottom: 1px solid var(--line);
  background: var(--cic-header);
}
:root[data-ui-theme='cic'] .theme-choice {
  border-color: var(--line);
  background: #161a1e;
}
:root[data-ui-theme='cic'] .theme-choice:has(input:checked) {
  border-color: var(--cic-amber);
}
:root[data-ui-theme='cic'] :is(#help-dialog, #last-ditch-dialog, #captain-trait-dialog) {
  width: min(660px, calc(100vw - 24px));
  padding: 20px;
}
:root[data-ui-theme='cic'] #help-dialog p {
  margin: 12px 0;
  line-height: 1.5;
}
:root[data-ui-theme='cic'] #last-ditch-dialog h2 {
  margin: 0 0 12px;
}
:root[data-ui-theme='cic'] .last-ditch-dialog-form > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
:root[data-ui-theme='cic'] #captain-trait-dialog :is(.captain-card, .choice, button) {
  border-color: var(--line);
  background: #161a1e;
}
:root[data-ui-theme='cic'] #captain-trait-dialog .choice.selected {
  border-color: var(--cic-amber);
  color: var(--cic-amber);
}

/* Wide CIC uses a real reserved command rail; the plot keeps its own canvas
   dimensions so ship picking and camera coordinates follow the resized plot. */
@media (min-width: 1800px) {
  :root[data-ui-theme='cic'] main {
    grid-template-columns: clamp(440px, 19vw, 720px) minmax(0, 1fr);
  }
  :root[data-ui-theme='cic'] .fleet-entry .ship-card {
    height: 38px;
    min-height: 38px;
  }
  :root[data-ui-theme='cic'] .roster-copy {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto 2px;
    column-gap: 10px;
  }
  :root[data-ui-theme='cic'] .roster-health {
    grid-column: 2;
    grid-row: 1;
  }
  :root[data-ui-theme='cic'] .roster-state {
    grid-column: 3;
  }
  :root[data-ui-theme='cic'] .ship-card .bar {
    grid-row: 2;
  }
  :root[data-ui-theme='cic'] body > footer {
    min-height: 120px;
    align-items: flex-start;
    padding-top: 12px;
  }
  :root[data-ui-theme='cic'] #log {
    max-height: 96px;
  }
  :root[data-ui-theme='cic'] .viewport {
    --cic-rail: min(calc(580px * var(--gui-size, 1)), calc(var(--hud-width, 100vw) * 0.4));
    padding-right: var(--cic-rail);
  }
  :root[data-ui-theme='cic'] #target-bar {
    right: 0;
    top: calc(34px / var(--gui-size, 1));
    width: calc(var(--cic-rail) / var(--gui-size, 1));
    max-width: none;
    height: calc(var(--cic-target-height) / var(--gui-size, 1));
    max-height: calc(var(--cic-target-height) / var(--gui-size, 1));
    overflow: auto;
  }
  :root[data-ui-theme='cic'] .battle-console {
    right: 0;
    top: calc((34px + var(--cic-target-height)) / var(--gui-size, 1));
    bottom: calc(28px / var(--gui-size, 1));
    width: calc(var(--cic-rail) / var(--gui-size, 1));
    max-width: none;
    height: auto;
    max-height: none;
    border-top: 0;
  }
  :root[data-ui-theme='cic'] .view-controls {
    right: calc(var(--cic-rail) + 12px);
    max-width: calc(100% - var(--cic-rail) - 20px);
  }
  :root[data-ui-theme='cic'] #mission-bar {
    width: calc(100% - var(--cic-rail) - 20px);
  }
  :root[data-ui-theme='cic'] .viewport.has-mission-bar #target-bar {
    top: calc(34px / var(--gui-size, 1));
  }
  :root[data-ui-theme='cic'] .viewport.has-mission-bar .view-controls {
    right: calc(var(--cic-rail) + 12px);
    top: calc(var(--hud-header, 0px) + var(--hud-mission, 0px) + 54px);
  }
  :root[data-ui-theme='cic'] .cs-body {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 3fr) minmax(390px, 1fr);
  }
  :root[data-ui-theme='cic'] .rb-body {
    grid-template-columns: 300px minmax(0, 1fr) 520px;
  }
  :root[data-ui-theme='cic'] .cs-hero-art {
    height: 360px;
  }
  :root[data-ui-theme='cic'] .almanac-stage {
    height: min(54vh, 760px);
  }
  :root[data-ui-theme='cic'] .almanac-layout {
    grid-template-columns: 360px minmax(0, 1fr);
  }
}

/* All header actions stay available without squeezing the plot at laptop size. */
@media (min-width: 761px) and (max-width: 1500px) {
  :root[data-ui-theme='cic'] body > header {
    grid-template-columns: minmax(180px, 1fr) minmax(210px, 1fr);
    min-height: 92px;
  }
  :root[data-ui-theme='cic'] .time-controls {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  :root[data-ui-theme='cic'] .sector-power {
    justify-self: end;
    width: min(100%, 400px);
  }
}

@media (max-width: 1150px) {
  :root[data-ui-theme='cic'] body > header {
    grid-template-columns: minmax(150px, 0.7fr) minmax(180px, 0.8fr) minmax(420px, 2fr);
    gap: 7px;
    padding: 6px 8px;
  }
  :root[data-ui-theme='cic'] .brand {
    font-size: 15px;
  }
  :root[data-ui-theme='cic'] .time-controls {
    gap: 3px;
  }
  :root[data-ui-theme='cic'] .time-controls button {
    padding: 0.25em 0.4em;
    font-size: 10px;
  }
  :root[data-ui-theme='cic'] main {
    grid-template-columns: clamp(250px, 26vw, 330px) minmax(0, 1fr);
  }
  :root[data-ui-theme='cic'] .view-controls {
    max-width: 80%;
  }
}

@media (max-width: 760px) {
  :root[data-ui-theme='cic'] body > header {
    grid-template-columns: minmax(120px, 0.7fr) minmax(150px, 1fr);
    min-height: 92px;
  }
  :root[data-ui-theme='cic'] .brand {
    font-size: 13px;
  }
  :root[data-ui-theme='cic'] .brand small {
    font-size: 8px;
  }
  :root[data-ui-theme='cic'] .sector-power {
    grid-column: 2;
    grid-row: 1;
  }
  :root[data-ui-theme='cic'] .time-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  :root[data-ui-theme='cic'] main {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  :root[data-ui-theme='cic'] aside.left {
    padding: 7px;
  }
  :root[data-ui-theme='cic'] .ship-card strong {
    font-size: 11px;
  }
  :root[data-ui-theme='cic'] .view-controls {
    top: 32px;
    right: 4px;
    max-width: 70%;
  }
  :root[data-ui-theme='cic'] .view-controls button {
    font-size: 9px;
  }
  :root[data-ui-theme='cic'] .map-label,
  :root[data-ui-theme='cic'] .map-footer {
    font-size: 9px;
  }
  :root[data-ui-theme='cic'] body > footer {
    min-height: 32px;
  }
}
