/* Isolated styles for 2026-12-04 EN inner-page expansion (Legendaries, 59 TMs & Tutors, Elite Four).
   Inherits Monomyth Pikachu-yellow (#ffdc24) and charcoal (#171711) identity without touching frozen legacy CSS. */

.ex1204-page,
.ex1204-page *,
.ex1204-page *::before,
.ex1204-page *::after {
  box-sizing: border-box;
}

.ex1204-page {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3.5rem;
  overflow-wrap: anywhere;
}

.ex1204-page > *,
.ex1204-tool > *,
.ex1204-tool-top > *,
.ex1204-progress-strip > *,
.ex1204-controls > *,
.ex1204-leg-grid > *,
.ex1204-leg-card > *,
.ex1204-slot-grid > *,
.ex1204-slot-card > *,
.ex1204-heatmap > *,
.ex1204-boss-list > *,
.ex1204-boss-card > *,
.ex1204-boss-audit > *,
.ex1204-figure-pair > *,
.ex1204-related > * {
  min-width: 0;
  max-width: 100%;
}

.ex1204-page img {
  max-width: 100%;
  height: auto;
}

/* Header Card */
.ex1204-header {
  background: linear-gradient(135deg, #2a2618f2, #1b1b15fc);
  border: 2px solid #9f8a40;
  border-bottom: 4px solid #ffdc24;
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 0 #0a0a07;
}

.ex1204-header h1 {
  margin: 0.45rem 0 0.75rem;
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  line-height: 1.15;
  color: #ffe348;
  text-shadow: 2px 2px 0 #15140c;
}

.ex1204-lead {
  font-size: 1.04rem;
  line-height: 1.62;
  color: #f3edd9;
  margin: 0 0 1rem;
  max-width: 78ch;
}

.ex1204-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.ex1204-facts span {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: #232015;
  border: 1px solid #b59a3e;
  color: #fae69a;
  font-size: 0.84rem;
  font-weight: 700;
  max-width: 100%;
}

.ex1204-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0.9rem;
}

.ex1204-actions .button,
.ex1204-toolbar .button,
.ex1204-btn-stack .button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}

.ex1204-byline {
  margin: 0;
  font-size: 0.88rem;
  color: #cfc5a0;
}

/* Hero Figure */
.ex1204-hero-figure {
  margin: 0 0 1.6rem;
  background: #222119;
  border: 2px solid #8d7b3c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 3px 4px 0 #080906;
}

.ex1204-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.ex1204-hero-figure figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  color: #d6cda9;
  border-top: 1px solid #6b5e32;
  background: #1c1b14;
}

/* Interactive Tool Shell */
.ex1204-tool {
  background: linear-gradient(145deg, #2d291cf5, #1d1e18fc);
  border: 2px solid #b89e43;
  border-radius: 14px;
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
  margin: 0 0 1.75rem;
  box-shadow: inset 0 0 0 3px #171712, 4px 5px 0 #090906;
  scroll-margin-top: 5.5rem;
}

.ex1204-tool-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #6c6035;
}

.ex1204-tool-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: #ffe34d;
  font-weight: 800;
}

.ex1204-live-pill {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffe992;
  background: #191913;
  border: 1px solid #8c7a3d;
  border-radius: 999px;
  padding: 0.35rem 0.78rem;
}

.ex1204-progress-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ex1204-stat-box {
  background: #1a1a14;
  border: 1px solid #7f703a;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.ex1204-stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c8be99;
  margin-bottom: 0.25rem;
}

.ex1204-stat-value {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
  color: #ffdf48;
}

.ex1204-stat-value--danger {
  color: #ff7a7a;
}

.ex1204-stat-value--safe {
  color: #9be378;
}

.ex1204-progress-bar {
  width: 100%;
  height: 12px;
  accent-color: #ffdc24;
  margin: 0.3rem 0 1rem;
}

/* Controls & Opaque High-Contrast Select/Option */
.ex1204-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  align-items: end;
}

.ex1204-controls label,
.ex1204-slot-label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ebe0bc;
  min-width: 0;
  max-width: 100%;
}

.ex1204-controls input,
.ex1204-controls select,
.ex1204-slot-label select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.52rem 0.72rem;
  border-radius: 8px;
  border: 1.5px solid #9e8d4d;
  background-color: #171711;
  color: #fff3c4;
  font-size: 0.93rem;
  box-sizing: border-box;
}

.ex1204-page select {
  background-color: #171711;
  color: #fff3c4;
  color-scheme: dark;
  text-overflow: ellipsis;
}

.ex1204-page select option,
.ex1204-page select optgroup {
  background-color: #171711 !important;
  color: #fff3c4 !important;
}

.ex1204-btn-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ex1204-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.ex1204-pill {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #8e7c3e;
  background: #232118;
  color: #e9deb4;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
}

.ex1204-pill[aria-pressed="true"],
.ex1204-pill:hover {
  background: #ffdc24;
  color: #181814;
  border-color: #fff2a8;
}

.ex1204-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #6b5f35;
}

.ex1204-status-msg {
  min-height: 1.35rem;
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: #ffe785;
}

/* Red-Alert Lockout Gate (Legendaries) */
.ex1204-postgame-gate {
  background: #1c1a13;
  border: 1.5px solid #a88f3d;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  margin-bottom: 1.1rem;
}

.ex1204-gate-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  color: #fff0b8;
  font-size: 0.94rem;
  line-height: 1.45;
}

.ex1204-gate-toggle input {
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  flex: 0 0 22px;
  accent-color: #ffdc24;
}

.ex1204-alert {
  margin-top: 0.85rem;
  padding: 0.95rem 1.05rem;
  border-radius: 10px;
  background: #3d1212;
  border: 2px solid #ff5c5c;
  color: #ffe5e5;
}

.ex1204-alert--safe {
  background: #18321b;
  border-color: #79d46a;
  color: #e4fce0;
}

.ex1204-alert-title {
  display: block;
  font-size: 1rem;
  color: #ffd0d0;
  margin-bottom: 0.35rem;
}

.ex1204-alert--safe .ex1204-alert-title {
  color: #c2f8b8;
}

.ex1204-alert p {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ex1204-alert ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
}

.ex1204-fieldset {
  border: 1px solid #756737;
  border-radius: 12px;
  padding: 0.95rem 1rem 1rem;
  margin: 0 0 1.1rem;
  background: #181812;
}

.ex1204-fieldset legend {
  padding: 0 0.55rem;
  font-weight: 800;
  color: #ffe463;
  font-size: 0.95rem;
}

.ex1204-milestone-list {
  display: grid;
  gap: 0.65rem;
}

.ex1204-milestone-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: 9px;
  background: #222119;
  border: 1px solid #6b5f35;
  cursor: pointer;
}

.ex1204-milestone-row[data-done="true"] {
  border-color: #7cc45e;
  background: #1d2719;
}

.ex1204-milestone-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 0.15rem;
  accent-color: #ffdc24;
}

.ex1204-milestone-row strong {
  color: #faf0cc;
  font-size: 0.92rem;
}

.ex1204-milestone-row small {
  display: block;
  margin-top: 0.25rem;
  color: #cdc5a6;
  font-size: 0.83rem;
  line-height: 1.45;
}

.ex1204-tag-warn {
  display: inline-block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #5c1c1c;
  border: 1px solid #f07575;
  color: #ffd2d2;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Legendary & Boss Cards */
.ex1204-leg-grid,
.ex1204-boss-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 1rem;
}

.ex1204-leg-card,
.ex1204-boss-card {
  background: #1d1d16;
  border: 1.5px solid #8a793d;
  border-radius: 12px;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ex1204-leg-card[data-caught="true"] {
  border-color: #8cc25a;
  background: linear-gradient(160deg, #1f2819, #181a14);
}

.ex1204-leg-head,
.ex1204-boss-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.ex1204-leg-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ex1204-leg-identity img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  image-rendering: pixelated;
  background: #28271e;
  border-radius: 10px;
  border: 1px solid #7f703a;
}

.ex1204-leg-name,
.ex1204-boss-head h3 {
  margin: 0;
  font-size: 1.12rem;
  color: #ffe45c;
}

.ex1204-leg-name small {
  color: #c8be99;
  font-size: 0.8rem;
  font-weight: 600;
}

.ex1204-boss-role {
  display: inline-block;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  background: #ffdc24;
  color: #181814;
  font-size: 0.76rem;
  font-weight: 800;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.ex1204-badge-cap {
  flex-shrink: 0;
  padding: 0.24rem 0.6rem;
  border-radius: 8px;
  background: #352b16;
  border: 1px solid #c9a73b;
  color: #ffe98a;
  font-size: 0.84rem;
  font-weight: 800;
}

.ex1204-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: #d6ceb0;
}

.ex1204-meta-row strong {
  color: #f6ecc6;
}

.ex1204-card-note {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: #d9d2b8;
}

.ex1204-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid #494228;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffe680;
  cursor: pointer;
}

.ex1204-check-label input {
  width: 20px;
  height: 20px;
  accent-color: #ffdc24;
}

/* Move Relearner Note & TM Table */
.ex1204-relearner-note,
.ex1204-mode-note {
  padding: 0.75rem 0.95rem;
  margin: 0 0 1rem;
  border-radius: 10px;
  background: #1b2217;
  border: 1px solid #759c54;
  color: #e4f2d8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ex1204-td-check {
  width: 44px;
  text-align: center;
}

.ex1204-td-check input {
  width: 19px;
  height: 19px;
  accent-color: #ffdc24;
  cursor: pointer;
}

.ex1204-table-scroll {
  max-height: 520px;
  overflow-y: auto;
}

.ex1204-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.ex1204-table tr[data-collected="true"] {
  background: #1e2818;
}

.ex1204-stage-chip {
  display: inline-block;
  font-size: 0.76rem;
  padding: 0.14rem 0.48rem;
  border-radius: 6px;
  background: #2b281c;
  border: 1px solid #756737;
  color: #efe3b5;
}

/* Type Badges (all 18 types, high readability) */
.ex1204-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.ex1204-type {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: #4e4e44;
}

.ex1204-type--normal { background: #6d6d5a; }
.ex1204-type--fire { background: #b5451d; }
.ex1204-type--water { background: #2264a8; }
.ex1204-type--electric { background: #947409; color: #fffbe6; }
.ex1204-type--grass { background: #2d7a36; }
.ex1204-type--ice { background: #257a8a; }
.ex1204-type--fighting { background: #962f26; }
.ex1204-type--poison { background: #7b3588; }
.ex1204-type--ground { background: #8a6427; }
.ex1204-type--flying { background: #4f64a8; }
.ex1204-type--psychic { background: #ad2f65; }
.ex1204-type--bug { background: #5e781f; }
.ex1204-type--rock { background: #7d6833; }
.ex1204-type--ghost { background: #543e78; }
.ex1204-type--dragon { background: #4838a6; }
.ex1204-type--dark { background: #4a3a30; }
.ex1204-type--steel { background: #536470; }
.ex1204-type--fairy { background: #9e4772; }

/* Elite Four 6-Slot Team Analyzer */
.ex1204-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.ex1204-slot-card {
  background: #181812;
  border: 1.5px solid #84733b;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ex1204-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ex1204-slot-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: #181814;
  background: #ffdc24;
  padding: 0.14rem 0.5rem;
  border-radius: 6px;
}

.ex1204-mini-btn {
  min-height: 32px;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #968341;
  background: #28261c;
  color: #ffe88a;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ex1204-mini-btn:hover {
  background: #3d3722;
}

.ex1204-slot-preview {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: #222119;
  border: 1px solid #574e2d;
}

.ex1204-slot-preview img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  image-rendering: pixelated;
}

.ex1204-slot-empty {
  font-size: 0.8rem;
  color: #b7ae8d;
}

.ex1204-analysis-block {
  background: #181812;
  border: 1px solid #756737;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
}

.ex1204-analysis-block h3 {
  margin: 0 0 0.45rem;
  font-size: 1.04rem;
  color: #ffe463;
}

.ex1204-analysis-sub {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: #d6ceb0;
}

.ex1204-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
  gap: 0.5rem;
}

.ex1204-heat-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #222119;
  border: 1px solid #635834;
}

.ex1204-heat-cell--danger {
  background: #3d1515;
  border-color: #f06e6e;
}

.ex1204-heat-cell--warn {
  background: #3a2b14;
  border-color: #e6a845;
}

.ex1204-heat-cell--good {
  background: #1b2c1a;
  border-color: #77bd60;
}

.ex1204-heat-stat {
  font-size: 0.77rem;
  color: #e6ddbc;
  font-weight: 700;
}

.ex1204-boss-audit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.75rem;
}

.ex1204-audit-card {
  background: #222119;
  border: 1px solid #6f6236;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: #e4dcc2;
}

.ex1204-audit-card--risk {
  border-color: #ef7474;
  background: #2f1a18;
}

.ex1204-audit-card--ok {
  border-color: #7ac462;
  background: #1b2718;
}

.ex1204-audit-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.94rem;
  color: #ffe366;
}

.ex1204-audit-card p {
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

/* Sprites */
.ex1204-sprites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ex1204-mon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.5rem 0.24rem 0.3rem;
  border-radius: 8px;
  background: #28271e;
  border: 1px solid #6f6235;
  font-size: 0.8rem;
  color: #f3ecd4;
  max-width: 100%;
}

.ex1204-mon img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  flex: 0 0 32px;
}

.ex1204-mon small {
  color: #c5bc97;
  font-size: 0.73rem;
}

/* Sections, Tables, Figures, FAQ, Related, Dialog */
.ex1204-section {
  background: #212019ee;
  border: 1px solid #7e6f3a88;
  border-radius: 12px;
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  margin-bottom: 1.35rem;
  scroll-margin-top: 5.5rem;
}

.ex1204-section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: #ffe24b;
}

.ex1204-section h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.06rem;
  color: #ffeb85;
}

.ex1204-section p,
.ex1204-section li {
  color: #e2dcc6;
  line-height: 1.65;
}

.ex1204-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.85rem 0;
  border: 1px solid #726434;
  border-radius: 10px;
}

.ex1204-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 600px;
}

.ex1204-table th,
.ex1204-table td {
  padding: 0.6rem 0.72rem;
  border-bottom: 1px solid #4e4527;
  text-align: left;
  vertical-align: top;
}

.ex1204-table thead th {
  background: #2c281b;
  color: #ffe35c;
  font-weight: 800;
}

.ex1204-table tbody tr:hover {
  background: #28261c;
}

.ex1204-figure-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.ex1204-diagram {
  margin: 0.9rem 0 0;
  background: #181812;
  border: 1.5px solid #8a783d;
  border-radius: 10px;
  overflow: hidden;
}

.ex1204-figure-pair .ex1204-diagram {
  margin: 0;
}

.ex1204-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.ex1204-diagram figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.83rem;
  color: #cfc6a4;
  border-top: 1px solid #594e2c;
}

.ex1204-faq details {
  border: 1px solid #7c6d3980;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  background: #1b1b15;
}

.ex1204-faq summary {
  font-weight: 700;
  color: #fae89e;
  cursor: pointer;
}

.ex1204-faq details p {
  margin: 0.65rem 0 0;
}

.ex1204-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.ex1204-related a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #1c1c15;
  border: 1px solid #8a793d;
  color: #ffe36b;
  font-weight: 700;
  text-decoration: none;
}

.ex1204-related a:hover {
  border-color: #ffdc24;
  background: #2b281c;
}

.ex1204-dialog {
  background: #23221a;
  color: #f5efdc;
  border: 2px solid #ffdc24;
  border-radius: 12px;
  padding: 1.25rem;
  max-width: min(420px, calc(100vw - 2rem));
}

.ex1204-dialog::backdrop {
  background: rgba(10, 10, 8, 0.72);
}

.ex1204-dialog-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .ex1204-page {
    padding: 1rem 0 2.75rem;
  }
  .ex1204-leg-head,
  .ex1204-boss-head {
    flex-direction: column;
  }
  .ex1204-table {
    min-width: 520px;
  }
}

@media (max-width: 360px) {
  .ex1204-controls,
  .ex1204-progress-strip,
  .ex1204-slot-grid,
  .ex1204-heatmap,
  .ex1204-boss-audit {
    grid-template-columns: 1fr;
  }
  .ex1204-header,
  .ex1204-tool,
  .ex1204-section {
    padding: 0.95rem 0.8rem;
  }
}
