/* Real game level shields are shared by the roster and the quick march view. */
.level-badge {
  --level-shield: url('/level-badges/bronze.png');
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 46px;
  min-width: 0;
  margin: 0;
  padding: 0 3px 6px;
  border: 0;
  border-radius: 0;
  background: var(--level-shield) center / contain no-repeat;
  box-shadow: none;
  color: #fff;
  font: 750 15px/1 var(--sans, Arial, sans-serif);
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-shadow: 0 1px 1px #000, 0 0 3px #000a;
  filter: drop-shadow(0 2px 2px #0006);
}
.level-badge.level-band-bronze { --level-shield: url('/level-badges/bronze.png'); }
.level-badge.level-band-silver { --level-shield: url('/level-badges/silver.png'); }
.level-badge.level-band-gold { --level-shield: url('/level-badges/gold.png'); }
.level-badge.level-band-green { --level-shield: url('/level-badges/green.png'); }
.level-badge.level-band-blue { --level-shield: url('/level-badges/blue.png'); }
.level-badge.level-band-purple { --level-shield: url('/level-badges/purple.png'); }
.level-badge.level-band-unknown { --level-shield: url('/level-badges/silver.png'); filter: grayscale(1) drop-shadow(0 2px 2px #0006); }

#captain-edit-dialog .hero-front-link {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  margin: 7px 0 0;
  padding: 5px 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #d7b66e;
  font: 400 12px/1.5 var(--sans, Arial, sans-serif);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#captain-edit-dialog .hero-front-link:hover { color: #ffe4a2; }
#captain-edit-dialog .hero-front-link:focus-visible { outline: 2px solid #e3bb60; outline-offset: 3px; }

#captain-roster-page .captain-gallery-card .captain-inline-level.level-badge {
  top: 9px;
  right: 10px;
  width: 49px;
  height: 50px;
  padding: 0 3px 7px;
  border: 0;
  background: var(--level-shield) center / contain no-repeat;
}
#captain-roster-page .captain-gallery-card .captain-inline-level.level-badge input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: 750 16px/1 var(--sans, Arial, sans-serif);
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-shadow: 0 1px 1px #000, 0 0 3px #000a;
}
#captain-roster-page .captain-gallery-card .captain-inline-level.level-badge:has(input:focus-visible) {
  outline: 2px solid #efd49a;
  outline-offset: 2px;
}
#captain-roster-page .captain-gallery-card .captain-inline-level.level-badge input:focus-visible {
  outline: none;
  background: #00000015;
}
#hero-collection-dialog .hero-collection-tile > .level-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
  width: 38px;
  height: 40px;
  font-size: 13px;
}

/* The calculator's active commanders and smaller reserves share one quiet strip. */
#quick-commanders { margin: 20px 0 23px; }
.commander-overview {
  min-width: 0;
  border: 1px solid #75603d;
  border-radius: 7px;
  background: linear-gradient(125deg, #46351e26, #1d191f 65%);
  box-shadow: 0 4px 16px #0002;
}
.commander-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #69533655;
}
.commander-overview-heading h2 {
  margin: 0;
  color: #e8cfa1;
  font: 550 17px/1.4 var(--sans, Arial, sans-serif);
}
.commander-overview-heading p { margin: 3px 0 0; color: #b9a98e; font: 400 12px/1.45 var(--sans, Arial, sans-serif); }
.commander-overview-heading button,
.commander-overview a:not(.commander-active-card) {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #93744177;
  border-radius: 4px;
  background: #b08b3b0c;
  color: #d6b984;
  font: 500 12px/1.4 var(--sans, Arial, sans-serif);
}
.commander-overview-heading button:hover,
.commander-overview a:not(.commander-active-card):hover { border-color: #cda968; background: #b08b3b20; color: #f0d6a4; }
.commander-overview-body {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.6fr);
  gap: 0 22px;
  min-width: 0;
  padding: 13px 16px 15px;
}
.quick-hero-zone, .quick-captain-zone { min-width: 0; }
.quick-captain-zone { padding-left: 20px; border-left: 1px solid #69533655; }
.quick-hero-zone > h3, .quick-captain-zone > h3 {
  margin: 0 0 7px;
  color: #c1ac88;
  font: 600 12px/1.4 var(--sans, Arial, sans-serif);
}
.quick-hero-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  min-width: 0;
}
.quick-hero-current, .commander-active-card {
  position: relative;
  display: flex;
  flex: 0 0 96px;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 3px 4px;
  border-bottom: 2px solid #c29b54;
  border-radius: 4px;
  background: radial-gradient(ellipse at 50% 45%, #b88b3826, transparent 75%);
}
.quick-hero-current { width: 104px; }
.quick-hero-current.is-not-in-march .commander-portrait img { filter: grayscale(1) drop-shadow(0 3px 3px #0004); opacity: .55; }
.commander-excluded {
  display: block;
  width: 100%;
  max-width: 15ch;
  margin: 5px auto 0;
  color: #ac9f8b;
  font: 400 11px/1.4 var(--sans, Arial, sans-serif);
  text-align: center;
  overflow-wrap: normal;
}
.commander-portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 100%;
  min-width: 0;
  height: 104px;
  min-height: 0;
  padding: 4px 3px 5px;
  overflow: visible;
}
.commander-portrait img {
  display: block;
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 3px 3px #0006);
  pointer-events: none;
}
.commander-name {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 4px 0 0;
  color: #e4cda5;
  font: 550 12px/1.35 var(--sans, Arial, sans-serif);
  text-align: center;
  overflow-wrap: anywhere;
}
.commander-stars {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  color: #796f5b;
  font: 550 11px/1.2 var(--sans, Arial, sans-serif);
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
}
.commander-stars .is-filled { color: #dfb75e; }
.quick-hero-current > .level-badge,
.commander-active-card > .level-badge {
  position: absolute;
  top: 1px;
  right: 0;
  z-index: 2;
  width: 35px;
  height: 37px;
  font-size: 12px;
}
.quick-hero-choices, .commander-reserve-list {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 3px 2px 7px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #8c7045 #1c181b;
  overscroll-behavior-x: contain;
}
.quick-hero-choice, .commander-reserve-card {
  position: relative;
  display: flex;
  flex: 0 0 64px;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 3px 2px 4px;
  border: 1px solid #6d5d4144;
  border-radius: 4px;
  background: #a38a5a05;
}
.quick-hero-choice { cursor: pointer; }
.quick-hero-choice .commander-portrait,
.commander-reserve-card .commander-portrait { height: 64px; padding: 3px 1px; }
.quick-hero-choice .commander-portrait img { filter: drop-shadow(0 3px 3px #0005); opacity: 1; }
.commander-reserve-card .commander-portrait img { filter: grayscale(1) drop-shadow(0 2px 2px #0004); opacity: .58; }
.quick-hero-choice .commander-name,
.commander-reserve-card .commander-name { min-height: 28px; font-size: 11px; line-height: 1.3; color: #b3a58f; }
.quick-hero-choice > .level-badge,
.commander-reserve-card > .level-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 29px;
  height: 32px;
  font-size: 10px;
}
.quick-hero-choice:is(:hover, :focus-visible) { border-color: #c9a469; background: #b18a3814; }
.quick-hero-choice:is(:hover, :focus-visible) .commander-portrait img { opacity: .9; }
.quick-hero-choices .quick-hero-manage { flex: 0 0 88px; min-height: 64px; justify-content: center; text-align: center; }
.commander-captain-line { display: flex; align-items: flex-end; gap: 13px; min-width: 0; }
.commander-active-list { display: flex; flex: 0 1 auto; align-items: stretch; gap: 9px; min-width: 0; }
.commander-reserve-list { flex: 1 1 140px; }
.commander-reserve-card .commander-stars { font-size: 10px; color: #71695a; }
.commander-reserve-card .commander-stars .is-filled { color: #b8a274; }
.commander-empty {
  flex: 0 1 245px;
  min-width: 0;
  margin: 0;
  padding: 13px 12px;
  border: 1px dashed #79613b66;
  border-radius: 4px;
  color: #b7a78f;
  font: 400 12px/1.6 var(--sans, Arial, sans-serif);
}

/* The roster also keeps the active Hero large and the other owned avatars beside it. */
#captain-roster-page .hero-front-selection {
  display: grid;
  grid-template-columns: minmax(240px, 306px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  min-width: 0;
}
#captain-roster-page .hero-front-primary { min-width: 0; }
#captain-roster-page .hero-front-primary .captain-gallery-card { width: 100%; }
#captain-roster-page .hero-quick-choices {
  min-width: 0;
  padding: 17px;
  border: 1px solid #79613b66;
  border-radius: 7px;
  background: #c9a35a06;
}
#captain-roster-page .hero-quick-choices > h4 {
  margin: 0 0 13px;
  color: #d1ba90;
  font: 550 14px/1.5 var(--sans, Arial, sans-serif);
}
#captain-roster-page .hero-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  align-items: start;
  gap: 12px 10px;
  min-width: 0;
  max-height: 330px;
  padding: 4px 2px 5px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #8c7045 #1c181b;
}
#captain-roster-page .hero-quick-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 130px;
  margin: 0;
  padding: 6px 5px;
  overflow: visible;
  border: 1px solid #7b674844;
  border-radius: 5px;
  background: #a58b5407;
}
#captain-roster-page .hero-quick-portrait {
  display: block;
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 93px;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) drop-shadow(0 3px 3px #0005);
  opacity: .58;
  pointer-events: none;
}
#captain-roster-page .hero-quick-name {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  color: #b9ac96;
  font: 550 12px/1.35 var(--sans, Arial, sans-serif);
  text-align: center;
  overflow-wrap: anywhere;
}
#captain-roster-page .hero-quick-choice > .level-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  z-index: 2;
  width: 35px;
  height: 37px;
  font-size: 12px;
}
#captain-roster-page .hero-quick-choice:is(:hover, :focus-visible) {
  border-color: #d1af72;
  background: #b4945115;
}
#captain-roster-page .hero-quick-choice:is(:hover, :focus-visible) .hero-quick-portrait { opacity: .9; }

@media (max-width: 1100px) {
  .commander-overview-body { grid-template-columns: minmax(245px, .9fr) minmax(0, 1.3fr); gap: 0 16px; }
  .quick-captain-zone { padding-left: 15px; }
  .commander-captain-line { flex-wrap: wrap; }
  .commander-active-list { flex: 1 1 100%; }
  .commander-active-card { flex-basis: 84px; }
  .commander-active-card .commander-portrait { height: 94px; }
  .commander-reserve-list { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .commander-overview-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .quick-captain-zone { padding: 14px 0 0; border-left: 0; border-top: 1px solid #69533655; }
  .commander-captain-line { flex-wrap: nowrap; }
  .commander-active-list { flex: 0 1 auto; }
  .commander-active-card { flex-basis: 82px; }
  .commander-reserve-list { flex: 1 1 140px; }
  #captain-roster-page .hero-front-selection { grid-template-columns: minmax(220px, .9fr) minmax(0, 1fr); gap: 17px; }
  #captain-roster-page .hero-quick-choices { padding: 13px; }
  #captain-roster-page .hero-quick-grid { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); }
}
@media (max-width: 600px) {
  #captain-roster-page .captain-gallery-card .captain-inline-level.level-badge { top: -17px; right: 8px; width: 40px; height: 38px; padding-bottom: 5px; }
  #captain-roster-page .captain-gallery-card .captain-inline-level.level-badge input { font-size: 13px; }
  #captain-roster-page .hero-front-selection { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px; }
  #captain-roster-page .hero-quick-choices { padding: 11px 8px; }
  #captain-roster-page .hero-quick-choices > h4 { font-size: 12px; margin-bottom: 9px; }
  #captain-roster-page .hero-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 5px; max-height: 335px; }
  #captain-roster-page .hero-quick-choice { min-height: 100px; padding: 5px 2px; }
  #captain-roster-page .hero-quick-portrait { height: 66px; }
  #captain-roster-page .hero-quick-name { margin-top: 6px; font-size: 11px; }
  #captain-roster-page .hero-quick-choice > .level-badge { width: 29px; height: 31px; font-size: 10px; }
}
@media (max-width: 480px) {
  #quick-commanders { margin: 16px 0 19px; }
  .commander-overview-heading { padding: 10px 12px; }
  .commander-overview-heading h2 { font-size: 15px; }
  .commander-overview-body { padding: 12px; gap: 13px; }
  .quick-hero-line { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .quick-hero-current { width: 92px; }
  .quick-hero-current .commander-portrait { height: 96px; }
  .commander-captain-line { flex-wrap: nowrap; gap: 10px; }
  .commander-active-list { flex: 0 1 auto; max-width: calc(100% - 74px); gap: 6px; }
  .commander-active-card { flex: 0 1 76px; }
  .commander-reserve-list { flex: 1 1 64px; min-width: 64px; }
  .commander-empty { flex-basis: 100%; }
}

.quick-captain-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 9px; }
.quick-captain-heading h3 { margin: 0; color: #c1ac88; font: 600 12px/1.4 var(--sans, Arial, sans-serif); }
.quick-setup-control { display: flex; align-items: center; gap: 8px; flex: 0 1 340px; min-width: 0; max-width: 100%; }
.quick-setup-control label { flex: none; color: #cbb68f; font-size: 12px; }
.quick-setup-control select { min-width: 0; width: 100%; min-height: 34px; padding: 5px 25px 5px 9px; border: 1px solid #887044; border-radius: 4px; background: #17141a; color: #efdbb6; font: 500 12px/1.4 var(--sans, Arial, sans-serif); }
.commander-captain-line { flex-wrap: nowrap; }
.commander-active-list { flex: 1 1 65%; max-width: calc(100% - 74px); min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 3px 2px 7px; scrollbar-width: thin; scrollbar-color: #8c7045 #1c181b; }
.commander-active-card { flex: 0 0 96px; }
.commander-reserve-list { flex: 1 1 30%; min-width: 64px; }
.fill-up-position { align-items: center; }
.fill-up-position > span { margin-right: auto; color: #d6bd8c; font-size: 11px; }
.march-row.is-march-current .fill-up-position > span { color: #5b431e; }
.march-unit.is-fill-up.zero-count { opacity: 1; }
.result-group[data-march-category] .march-row.is-march-current .march-unit.is-fill-up.zero-count { opacity: 1; }
.march-unit.is-fill-up.zero-count .unit-portrait, .march-unit.is-fill-up.zero-count .stack-amount { opacity: .55; }

/* Ownership is colour; the active avatar gets its own gold outline. */
.quick-hero-choice.is-owned .commander-portrait img,
#captain-roster-page .hero-quick-choice.is-owned .hero-quick-portrait { filter: drop-shadow(0 4px 4px #0006); opacity: 1; }
.quick-hero-choice.is-unowned .commander-portrait img,
#captain-roster-page .hero-quick-choice.is-unowned .hero-quick-portrait { filter: grayscale(1) drop-shadow(0 2px 3px #0005); opacity: .42; }
.quick-hero-choice.is-unowned > .level-badge,
#captain-roster-page .hero-quick-choice.is-unowned > .level-badge { filter: grayscale(1); opacity: .6; }
#captain-roster-page .hero-quick-choice.is-owned { border-color: #9b814c80; background: radial-gradient(ellipse at 50% 35%,#ba8d4025,transparent 85%); }
#captain-roster-page .hero-quick-choice.is-active { border-color: #f0c67b; box-shadow: inset 0 0 0 1px #e8c57c55; background-color: #b38b4320; }
#captain-roster-page .hero-quick-choice.is-owned .hero-quick-name { color: #efdbb6; }
#captain-roster-page .hero-quick-grid { max-height: 460px; }
.hero-tile-state { color: #c5d7a4; font-size: 10px; line-height: 1.4; }
.hero-section-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-left: auto; }
.hero-switch-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 33px; padding: 5px 9px; border: 1px solid #77643e60; border-radius: 5px; background: #b99d4010; color: #d2c09a; font: 500 12px/1.4 var(--sans); }
.hero-switch-status > span:first-child { color: #bda264; font-size: 20px; line-height: 1; }
.hero-switch-status.is-ready { color: #bdd69c; }
.hero-switch-status:hover { border-color: #d2ad6f; background: #b99d4022; }
.hero-switch-dialog { width: min(540px,calc(100vw - 28px)); max-height: calc(100dvh - 36px); overflow: auto; padding: 0; border: 1px solid #a9864e; border-radius: 7px; background: #201d23; color: #eadcc4; box-shadow: 0 18px 65px #000a; }
.hero-switch-dialog::backdrop { background: #08070bc9; backdrop-filter: blur(5px); }
.hero-switch-dialog .dialog-heading { margin: 0; }
.hero-switch-body { padding: 18px 22px; }
.hero-switch-preview { display: flex; align-items: center; gap: 18px; }
.hero-switch-preview img { width: 95px; height: 135px; flex: none; object-fit: contain; filter: drop-shadow(0 5px 7px #0007); }
.hero-switch-preview p { margin: 0; color: #c9b697; font-size: 13px; line-height: 1.7; }
.hero-switch-readout { margin: 13px 0; padding: 11px 13px; border: 1px solid #9d7c4140; border-radius: 4px; color: #eed09a; background: #e4ba5b09; font-size: 14px; font-variant-numeric: tabular-nums; }
.hero-switch-readout.is-ready { color: #bcd59d; }
.hero-timer-editor { margin-top: 16px; border-top: 1px solid #755d3b60; padding-top: 12px; }
.hero-timer-editor summary { color: #d7bc85; font-size: 13px; cursor: pointer; }
.hero-timer-editor summary::after { content: '⌄'; float: right; }
.hero-timer-editor p { margin: 9px 0 12px; color: #b8aa95; font-size: 12px; line-height: 1.6; }
.hero-timer-fields { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.hero-timer-fields label { display: grid; gap: 5px; flex: 1 1 80px; min-width: 0; color: #cabb9f; font-size: 12px; }
.hero-timer-fields input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #8d7045; border-radius: 4px; background: #121217; color: #f0dfbd; font-size: 17px; }
.hero-timer-fields button { min-height: 40px; }
.hero-switch-message, .hero-management-status { min-height: 0; margin: 10px 0 0; color: #d5ba81; font-size: 12px; line-height: 1.6; }
.hero-switch-message:empty, .hero-management-status:empty { display: none; }
.hero-switch-footer, .hero-management-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 15px 22px; border-top: 1px solid #715a3b60; }
.hero-switch-footer .button-primary, .hero-management-footer .button-primary { width: auto; min-width: 140px; }
#hero-collection-dialog { width: min(830px,calc(100vw - 28px)); padding: 0; }
#hero-collection-dialog .hero-collection-heading { padding: 12px 18px; }
#hero-collection-dialog .hero-collection-help { margin: 16px 20px 0; font-size: 13px; }
#hero-collection-dialog .hero-collection-count { margin: 8px 20px 0; }
.hero-management-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; padding: 15px 20px; }
.hero-management-choice { position: relative; display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 0; padding: 9px 5px; border: 1px solid #75613c70; border-radius: 4px; background: #ab894509; color: #e4cfa9; cursor: pointer; }
.hero-management-choice img { width: 100%; height: 75px; object-fit: contain; filter: drop-shadow(0 3px 3px #0005); pointer-events: none; }
.hero-management-choice > span { font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.hero-management-choice > input { position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; accent-color: #c5a464; }
.hero-management-choice.is-unowned { border-color: #625d5640; color: #aba497; }
.hero-management-choice.is-unowned img { filter: grayscale(1); opacity: .45; }
.hero-management-choice:has(:focus-visible) { outline: 2px solid #f0d193; outline-offset: 2px; }
.hero-management-fields { padding: 0 20px 16px; }
.hero-management-fields > label:first-child { display: grid; gap: 6px; color: #d4c1a0; font-size: 13px; }
.hero-management-fields select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #8d7045; border-radius: 4px; background: #151318; color: #efdfbe; }
.hero-management-fields > p { margin: 6px 0 12px; color: #a99c88; font-size: 12px; line-height: 1.5; }
.hero-management-clear { display: flex; align-items: center; gap: 8px; color: #d4c1a0; font-size: 13px; }
.hero-management-status { margin: 0 20px 12px; }
@media (max-width: 600px) {
  .hero-section-tools { justify-content: flex-start; margin-left: 0; gap: 7px; width: 100%; }
  .hero-switch-status { font-size: 11px; }
  .hero-management-grid { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 14px; gap: 6px; }
  .hero-management-choice img { height: 68px; }
  .hero-management-choice > span { font-size: 11px; }
  .hero-switch-body { padding: 15px 17px; }
  .hero-switch-preview { gap: 12px; }
  .hero-switch-preview img { width: 80px; height: 115px; }
  .hero-switch-footer, .hero-management-footer { padding: 13px 16px; }
  #captain-roster-page .hero-quick-grid { max-height: 360px; }
}
@media (max-width: 600px) {
  .quick-setup-control { flex-basis: 100%; }
  .commander-active-card { flex-basis: 76px; }
}
