/* Fleet builder visual layer. Load after fleet-builder.css and ui-theme.css. */
.fleet-builder {
  --fb-cyan: var(--ui-cyan, #63e5ef);
  --fb-line: var(--ui-line, #244855);
  --fb-line-strong: var(--ui-line-strong, #397b8b);
  --fb-panel: var(--ui-panel, #0b1b27);
  --fb-raised: var(--ui-panel-raised, #102b38);
  --fb-muted: var(--ui-muted, #91acba);
  --fb-ink: #e5f4f7;
  --fb-soft: #bdd3da;
  position: fixed;
  inset: 0;
  overflow: auto;
  color: var(--fb-ink);
  background:
    radial-gradient(ellipse at 50% -22%, #123748 0, transparent 55%),
    rgba(3, 10, 17, .98);
  font-family: "Segoe UI", sans-serif;
  color-scheme: dark;
  scrollbar-color: #315866 #07131c;
}

.fleet-builder.online-fleet-builder {
  position: relative;
  inset: auto;
  overflow: visible;
  background: transparent;
}

.fleet-builder[hidden] { display: none; }

.fleet-builder .fb-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 1580px);
  max-width: 1580px;
  min-height: 100%;
  margin-inline: auto;
  overflow: visible;
  background: linear-gradient(180deg, #0a1822 0%, #08141e 40%, #091720 100%);
  box-shadow: 0 0 90px #0009;
}

.fleet-builder.online-fleet-builder .fb-shell { min-height: 0; }

.fleet-builder .fb-header {
  position: relative;
  padding: clamp(22px, 3vw, 38px) clamp(18px, 3.2vw, 48px) 25px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--fb-line-strong);
  background: linear-gradient(105deg, #102b38, #0b1d29 62%, #0b1924);
}

.fleet-builder .fb-header::before,
.fleet-builder .fb-header::after {
  position: absolute;
  z-index: 0;
  width: 32px;
  height: 32px;
  border-color: var(--fb-cyan);
  border-style: solid;
  content: "";
  opacity: .72;
  pointer-events: none;
}

.fleet-builder .fb-header > * { position: relative; z-index: 1; }

.fleet-builder .fb-header::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.fleet-builder .fb-header::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
}

.fleet-builder .fb-header .eyebrow {
  margin: 0 0 7px;
  color: var(--fb-cyan);
  font: 600 11px/1.3 "Rajdhani", "Segoe UI", sans-serif;
  letter-spacing: .19em;
}

.fleet-builder .fb-header h1,
.fleet-builder .fb-validation h2,
.fleet-builder .fb-fleet-preview h2,
.fleet-builder .fb-scenario-heading h2,
.fleet-builder .fb-campaign-carry h2 {
  color: #e8fbfd;
  font-family: var(--ui-heading, "GFA Command", "Rajdhani", "Segoe UI", sans-serif);
  font-weight: 600;
  letter-spacing: .045em;
}

.fleet-builder .fb-header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  text-shadow: 0 0 22px #63e5ef30;
}

.fleet-builder .fb-header p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--fb-muted);
  line-height: 1.55;
}

.fleet-builder .fb-settings {
  grid-template-columns: minmax(220px, 2fr) minmax(190px, 1.5fr) repeat(2, minmax(145px, 1fr));
  gap: 14px 18px;
  padding: 19px clamp(18px, 3.2vw, 48px);
  border-bottom: 1px solid #1d3945;
  background: #0c202b;
}

.fleet-builder .fb-settings + .fb-settings { background: #0a1c27; }

.fleet-builder .fb-settings label,
.fleet-builder label {
  color: #b9d0d8;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: .015em;
}

.fleet-builder .fb-settings .fb-help { align-self: center; margin: 0; }

.fleet-builder .fb-tabs {
  gap: 8px;
  padding: 15px clamp(18px, 3.2vw, 48px) 0;
  border-bottom: 1px solid var(--fb-line);
  background: #0b1a24;
}

.fleet-builder .fb-tabs button {
  position: relative;
  min-width: 0;
  padding: 14px 17px;
  color: var(--fb-muted);
  text-align: left;
  background: #0d202b;
  border: 1px solid #1c3945;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.fleet-builder .fb-tabs button.active {
  color: #effcfd;
  background: linear-gradient(180deg, #123541, #0e2530);
  box-shadow: inset 0 2px var(--fb-cyan);
}

.fleet-builder .fb-tabs strong {
  color: var(--fb-cyan);
  font: 600 15px "Rajdhani", "Segoe UI", sans-serif;
  letter-spacing: .035em;
}

.fleet-builder .fb-scenario-preview {
  position: relative;
  margin: 20px clamp(18px, 3.2vw, 48px);
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--fb-line-strong);
  border-radius: 4px;
  background: linear-gradient(125deg, #0d222e, #091923 75%);
  box-shadow: inset 0 0 28px #06101990;
}

.fleet-builder .fb-scenario-preview::before,
.fleet-builder .fb-fleet-preview::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 32px;
  height: 22px;
  border-top: 2px solid var(--fb-cyan);
  border-left: 2px solid var(--fb-cyan);
  content: "";
  opacity: .75;
  pointer-events: none;
}

.fleet-builder .fb-scenario-heading h2,
.fleet-builder .fb-fleet-preview h2 { margin: 0 0 6px; font-size: 19px; }

.fleet-builder .fb-scenario-heading p,
.fleet-builder .fb-fleet-preview header p {
  color: var(--fb-muted);
  line-height: 1.55;
}

.fleet-builder .fb-scenario-heading > span { color: var(--fb-cyan); }
.fleet-builder .fb-scenario-content { gap: 20px; }

.fleet-builder .fb-scenario-content > svg {
  border-color: #315460;
  border-radius: 3px;
  background: #06131c;
}

.fleet-builder .fb-scenario-board { stroke: #88b5c0; }
.fleet-builder .fb-scenario-link { stroke: var(--fb-cyan); }
.fleet-builder .fb-scenario-marker circle { stroke: #f0c77c; }
.fleet-builder .fb-scenario-key { color: #c4d9df; }
.fleet-builder .fb-scenario-index { border-color: #e6c27e; color: #f6d99e; }
.fleet-builder .fb-scenario-key strong { color: #f0d393; }
.fleet-builder .fb-scenario-key small { color: #a7c1cb; line-height: 1.55; }

.fleet-builder .fb-body {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  align-items: start;
  gap: 22px;
  padding: 24px clamp(18px, 3.2vw, 48px) 34px;
}

.fleet-builder .fb-roster { min-width: 0; }

.fleet-builder .fb-player {
  grid-template-columns: minmax(130px, 1fr) minmax(190px, 1.55fr) minmax(84px, .5fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--fb-line);
  border-radius: 4px;
  background: linear-gradient(110deg, #0d222d, #0a1a24);
}

.fleet-builder .fb-player > button { min-height: 42px; white-space: nowrap; }
.fleet-builder input[type="color"] { min-width: 62px; min-height: 42px; padding: 4px; }

.fleet-builder .fb-source,
.fleet-builder .fb-commands {
  margin: 13px 0;
  padding: 13px 15px;
  border: 1px solid var(--fb-line);
  border-radius: 4px;
  background: #0b1d28;
}

.fleet-builder .fb-source > summary,
.fleet-builder .fb-commands > summary {
  color: #d5e9ee;
  font-size: 13px;
  font-weight: 650;
}

.fleet-builder .fb-source pre {
  max-height: 330px;
  overflow: auto;
  color: #b4cbd3;
  font: 13px/1.6 "Segoe UI", sans-serif;
}

.fleet-builder .fb-help,
.fleet-builder .fb-source p,
.fleet-builder .fb-commands p {
  color: var(--fb-muted);
  font-size: 12px;
  line-height: 1.6;
}

.fleet-builder .fb-art-legend,
.fleet-builder .fb-faction-guide {
  border-color: var(--fb-line);
  border-left-color: var(--fb-cyan);
  background: #0d222d;
  color: var(--fb-soft);
}

.fleet-builder .fb-faction-guide strong { color: #e0f4f7; }
.fleet-builder .fb-faction-guide b { color: var(--fb-cyan); }

.fleet-builder .fb-fleet-preview {
  position: relative;
  margin: 18px 0;
  padding: 17px;
  border: 1px solid var(--fb-line-strong);
  border-radius: 4px;
  background-color: #081721;
  background-image: linear-gradient(#24485526 1px, transparent 1px), linear-gradient(90deg, #24485526 1px, transparent 1px);
  background-size: 25px 25px;
  box-shadow: inset 0 0 32px #06101980;
}

.fleet-builder .fb-fleet-preview header p { margin: 0 0 12px; font-size: 12px; }
.fleet-builder .fb-fleet-preview .fb-preview-toggle { gap: 9px; color: #bfd4dc; }

.fleet-builder .fb-preview-groups {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 340px));
  gap: 12px;
}

.fleet-builder .fb-preview-group {
  min-width: 0;
  padding: 12px !important;
  border: 1px solid #294955 !important;
  border-radius: 4px;
  background: #0a1b26e8 !important;
  color: #d9edf1;
  transition: border-color .16s ease, background-color .16s ease;
}

.fleet-builder .fb-preview-group:hover {
  border-color: var(--fb-line-strong) !important;
  background: #102733 !important;
}

.fleet-builder .fb-preview-name { color: #e5f6f8; font-size: 13px; }
.fleet-builder .fb-preview-group small { color: #a4bec8; line-height: 1.45; }
.fleet-builder .fb-token-name { fill: #e2f5f8; }
.fleet-builder .fb-token-stats { fill: #b4d8e2; }

.fleet-builder .fb-ship-source {
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.fleet-builder .fb-ship-source button[aria-pressed="true"] {
  color: #e8fcfd;
  background: #123541;
  border-color: var(--fb-cyan);
  box-shadow: inset 0 0 0 1px #63e5ef25;
}

.fleet-builder .fb-groups { display: grid; gap: 12px; }

.fleet-builder .fb-group {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--fb-line-strong);
  border-radius: 4px;
  background: #0a1a24;
  box-shadow: 0 8px 22px #020a1040;
}

.fleet-builder .fb-group > summary {
  position: relative;
  min-height: 54px;
  align-items: center;
  padding: 14px 17px 14px 20px;
  border-radius: 3px;
  background: linear-gradient(100deg, #102b37, #0d222d);
  color: #e3f5f7;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .035em;
}

.fleet-builder .fb-group > summary::before {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 2px;
  background: var(--fb-cyan);
  content: "";
  opacity: .8;
  pointer-events: none;
}

.fleet-builder .fb-group > summary > span:last-child {
  color: #a9c3cc;
  font: 500 12px/1.45 "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.fleet-builder .fb-group[open] > summary { border-bottom: 1px solid var(--fb-line); }
.fleet-builder .fb-group-content { padding: clamp(12px, 2vw, 19px); }

.fleet-builder .fb-fields { gap: 12px; }
.fleet-builder .fb-fields > label { min-width: min(130px, 100%); }
.fleet-builder .fb-fields .fb-check { min-width: auto; color: #c5d8de; }

/* The editor follows the same setup → command → payload order as its controls.
   Use two generous columns instead of squeezing four selects onto one line. */
.fleet-builder .fb-group-editor { display: grid; gap: 22px; }
.fleet-builder .fb-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.fleet-builder .fb-section-heading h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 700 18px/1.3 var(--ui-heading);
  letter-spacing: .045em;
  color: #e5f4f7;
}
.fleet-builder .fb-section-heading h3 > span {
  color: var(--fb-cyan);
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--fb-line-strong);
  background: #102d38;
}
.fleet-builder .fb-section-heading .fb-remove { min-height: 36px; padding: 8px 12px; }
.fleet-builder .fb-setup-fields,
.fleet-builder .fb-command-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.fleet-builder .fb-setup-fields > label,
.fleet-builder .fb-command-fields > label { min-width: 0; }
.fleet-builder .fb-group-editor input:not([type=checkbox]),
.fleet-builder .fb-group-editor select { min-height: 44px; }
.fleet-builder .fb-group-setup > .fb-help { margin: 10px 0 14px; }
.fleet-builder .fb-group-flags { display: flex; flex-wrap: wrap; gap: 9px; }
.fleet-builder .fb-group-flags .fb-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--fb-line);
  background: #0d222d;
  border-radius: 2px;
  cursor: pointer;
}
.fleet-builder .fb-group-flags .fb-check:has(input:checked) { border-color: var(--fb-line-strong); background: #13313b; }
.fleet-builder .fb-group-editor > .fb-commander { margin: 0; padding: 18px; }
.fleet-builder .fb-group-editor > .fb-commander > .fb-statline { margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--fb-line); }
.fleet-builder .fb-roster-count { font-size: 12px; color: var(--fb-muted); }
.fleet-builder .fb-group-roster > .fb-help { margin: -4px 0 14px; }
.fleet-builder .fb-group-roster .fb-ships { display: grid; gap: 9px; }
.fleet-builder .fb-group-roster .fb-ship { margin: 0; }
.fleet-builder .fb-group-roster .fb-add-ship { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--fb-line); }
@media (max-width: 600px) {
  .fleet-builder .fb-group-editor { gap: 18px; }
  .fleet-builder .fb-setup-fields,
  .fleet-builder .fb-command-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fleet-builder .fb-group-editor > .fb-commander { padding: 13px; }
  .fleet-builder .fb-section-heading h3 { font-size: 17px; }
}

.fleet-builder .fb-commander {
  margin: 14px 0;
  padding: 15px;
  border: 1px solid var(--fb-line);
  border-left: 2px solid var(--fb-cyan);
  border-radius: 3px;
  background: linear-gradient(110deg, #0e222c, #0a1a24);
}

.fleet-builder .fb-statline {
  color: #d2c49e;
  font: 600 13px/1.6 "Rajdhani", "Segoe UI", sans-serif;
  letter-spacing: .025em;
}

.fleet-builder .fb-ship {
  min-width: 0;
  border: 1px solid #29434f;
  border-radius: 3px;
  background: #091923;
}

.fleet-builder .fb-ship > summary {
  min-height: 46px;
  align-items: center;
  padding: 11px 13px;
  color: #d9edf1;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .025em;
}

.fleet-builder .fb-ship > summary > span:last-child {
  color: #a9c2cb;
  font: 500 12px/1.4 "Segoe UI", sans-serif;
}

.fleet-builder .fb-ship[open] > summary { border-bottom: 1px solid #1b3742; }
.fleet-builder .fb-ship-icon { color: var(--fb-cyan); }
.fleet-builder .fb-ship-content { padding: 4px 14px 15px; }
.fleet-builder .fb-add-ship { margin-top: 14px; }

.fleet-builder .fb-loadout {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #1b3742;
}

.fleet-builder .fb-loadout h4 {
  margin: 0 0 9px;
  color: #dceff2;
  font: 650 16px "Rajdhani", "Segoe UI", sans-serif;
  letter-spacing: .03em;
}

.fleet-builder .fb-loadout h4 small { color: var(--fb-muted); font: 11px/1.4 "Segoe UI", sans-serif; }

.fleet-builder .fb-loadout-row {
  min-width: 0;
  gap: 12px;
  padding: 7px 2px;
  color: #c9dde2;
}

.fleet-builder .fb-loadout-row > span { min-width: 0; line-height: 1.45; }
.fleet-builder .fb-loadout-row small { color: #9ab5bf; }
.fleet-builder .fb-loadout-row input { flex: 0 0 76px; }

.fleet-builder .fb-trait-grid { gap: 9px; }

.fleet-builder .fb-trait-grid label {
  min-width: 0;
  padding: 11px;
  border: 1px solid #29434f;
  border-radius: 3px;
  background: #0a1d27;
}

.fleet-builder .fb-trait-grid label:has(input:checked) {
  border-color: #397b8b;
  background: #0e2731;
}

.fleet-builder .fb-trait-grid strong { color: #dceef2; line-height: 1.4; }
.fleet-builder .fb-trait-grid small { color: #a4bbc4; line-height: 1.5; }

.fleet-builder .fb-checks { gap: 9px 15px; }
.fleet-builder .fb-checks label { color: #c5d9df; line-height: 1.4; }

.fleet-builder .fb-validation {
  position: sticky;
  top: 16px;
  align-self: start;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--fb-line-strong);
  border-radius: 4px;
  background: linear-gradient(150deg, #102630, #0b1a23 72%);
  box-shadow: 0 12px 28px #02090f65;
}

.fleet-builder .fb-validation h2 { margin: 0 0 10px; font-size: 20px; }
.fleet-builder .fb-validation > p { line-height: 1.5; }
.fleet-builder .fb-validation .fb-ready { color: #91d1a8; }
.fleet-builder .fb-validation .danger,
.fleet-builder .fb-validation li { color: #f0b4a5; }
.fleet-builder .fb-validation ul { max-height: none; overflow: visible; padding-left: 18px; }
.fleet-builder .fb-validation li { font-size: 12px; line-height: 1.55; }
.fleet-builder .fb-validation details { color: #b1c8d0; }
.fleet-builder .fb-validation details li { color: #c2d5db; }
.fleet-builder .fb-validation details p { line-height: 1.55; }

.fleet-builder .fb-totals {
  gap: 12px;
  margin-top: 17px;
  padding-top: 14px;
  border-top-color: var(--fb-line);
}

.fleet-builder .fb-totals > div {
  padding: 10px;
  border: 1px solid #203d48;
  border-radius: 3px;
  background: #0a1c25;
}

.fleet-builder .fb-totals span { color: #d4e7eb; font-size: 12px; }
.fleet-builder .fb-totals strong { color: var(--fb-cyan); font: 650 17px "Rajdhani", "Segoe UI", sans-serif; }
.fleet-builder .fb-totals small { color: #9eb8c1; line-height: 1.45; }

.fleet-builder .fb-message {
  padding: 10px 12px;
  border: 1px solid #397080;
  border-left: 2px solid var(--fb-cyan);
  border-radius: 3px;
  background: #102a35;
  color: #daf0f3;
  line-height: 1.55;
}

.fleet-builder .fb-coverage {
  padding: 10px 12px;
  border-left: 2px solid #d5ad63;
  background: #2b2519;
  color: #f0d29c;
  font-size: 12px;
  line-height: 1.55;
}

.fleet-builder .fb-campaign-carry {
  position: relative;
  padding: 19px clamp(18px, 3.2vw, 48px);
  border: 0;
  border-bottom: 1px solid var(--fb-line-strong);
  background: linear-gradient(105deg, #102a34, #0c2029);
}

.fleet-builder .fb-campaign-carry h2 { margin: 0 0 7px; font-size: 18px; }
.fleet-builder .fb-campaign-carry p { max-width: 1000px; color: #b5cbd1; font-size: 13px; line-height: 1.6; }
.fleet-builder .fb-campaign-carry details { margin: 12px 0; color: #d4e6ea; }
.fleet-builder .fb-campaign-carry details p { margin: 8px 0 0; }

.fleet-builder .fb-footer {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px clamp(18px, 3.2vw, 48px);
  border: 0;
  border-top: 1px solid var(--fb-line-strong);
  background: #091923f5;
  box-shadow: 0 -10px 30px #02090f70;
  backdrop-filter: none;
}

.fleet-builder .fb-footer > div { align-items: center; gap: 8px; }
.fleet-builder .fb-footer > div > small { max-width: 230px; color: var(--fb-muted); line-height: 1.4; }
.fleet-builder .fb-deploy {
  min-width: 164px;
  background: linear-gradient(110deg, #67e7ed, #48bfd4) !important;
  color: #031a25 !important;
  border-color: #8af3f6 !important;
}

.fleet-builder .fb-no-art { color: #ff8585; }
.fleet-builder .fb-loaded-craft { border-top-color: #294955; }

.fleet-builder :where(button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--fb-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #63e5ef24;
}

.fleet-builder summary { cursor: pointer; }
.fleet-builder :disabled { cursor: not-allowed; }

@media (max-width: 1120px) {
  .fleet-builder .fb-body { grid-template-columns: minmax(0, 1fr); }
  .fleet-builder .fb-validation { position: static; order: -1; }
  .fleet-builder .fb-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-builder .fb-scenario-content { grid-template-columns: minmax(0, 1.6fr) minmax(210px, 1fr); }
}

@media (max-width: 760px) {
  .fleet-builder .fb-player { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-builder .fb-player .fb-faction-guide { grid-column: 1 / -1; }
  .fleet-builder .fb-scenario-content { grid-template-columns: minmax(0, 1fr); }
  .fleet-builder .fb-scenario-key ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .fleet-builder .fb-header { padding: 25px 17px 21px; gap: 10px; }
  .fleet-builder .fb-header h1 { font-size: 34px; }
  .fleet-builder .fb-settings { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 15px 17px; }
  .fleet-builder .fb-tabs { gap: 5px; padding: 12px 17px 0; }
  .fleet-builder .fb-tabs button { padding: 11px 9px; font-size: 12px; }
  .fleet-builder .fb-tabs strong { display: block; float: none; margin-top: 5px; font-size: 13px; }
  .fleet-builder .fb-scenario-preview { margin: 14px 17px; padding: 13px; }
  .fleet-builder .fb-scenario-heading { display: block; }
  .fleet-builder .fb-scenario-heading > span { display: block; margin: 0 0 10px; }
  .fleet-builder .fb-scenario-key ol { grid-template-columns: minmax(0, 1fr); }
  .fleet-builder .fb-body { gap: 15px; padding: 16px 17px 24px; }
  .fleet-builder .fb-player { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .fleet-builder .fb-player > * { min-width: 0; }
  .fleet-builder .fb-player .fb-faction-guide { grid-column: auto; }
  .fleet-builder .fb-preview-groups { grid-template-columns: minmax(0, 1fr); }
  .fleet-builder .fb-group > summary,
  .fleet-builder .fb-ship > summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .fleet-builder .fb-group > summary > span:last-child { text-align: left; }
  .fleet-builder .fb-fields { align-items: stretch; }
  .fleet-builder .fb-fields > label { flex-basis: 100%; }
  .fleet-builder .fb-fields .fb-check { flex-basis: auto; }
  .fleet-builder .fb-trait-grid,
  .fleet-builder .fb-checks { grid-template-columns: minmax(0, 1fr); }
  .fleet-builder .fb-loadout-row { align-items: center; }
  .fleet-builder .fb-loadout-row > span { overflow-wrap: anywhere; }
  .fleet-builder .fb-validation { padding: 14px; }
  .fleet-builder .fb-totals { grid-template-columns: minmax(0, 1fr); }
  .fleet-builder .fb-footer { align-items: stretch; flex-direction: column; gap: 10px; padding: 11px 17px max(11px, env(safe-area-inset-bottom)); }
  .fleet-builder .fb-footer > div { display: flex; justify-content: flex-start; }
  .fleet-builder .fb-footer > div > small { flex-basis: 100%; max-width: none; }
  .fleet-builder .fb-footer button { min-height: 40px; font-size: 12px; }
  .fleet-builder .fb-footer .fb-deploy { width: 100%; }
  .fleet-builder .fb-campaign-carry { padding: 16px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-builder *,
  .fleet-builder *::before,
  .fleet-builder *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
