:root {
  --page: #241f2a;
  --page-deep: #15131a;
  --panel: #302b35;
  --panel-dark: #211e27;
  --line: #61586a;
  --gold: #e2bf72;
  --bronze: #4b3673;
  --marble: #efe0bd;
  --text: #faf2de;
  --muted: #d2c8d8;
  --green: #77a76a;
  --red: #b86f4f;
  --blue: #8f65d8;
  --purple: #8f65d8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(226, 191, 114, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(143, 101, 216, 0.22), transparent 22rem),
    linear-gradient(180deg, var(--page) 0%, var(--page-deep) 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.top-menu {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 20px;
}

.brand,
.top-menu nav {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand-icon {
  display: block;
  height: 40px;
  object-fit: contain;
  width: 40px;
}

.top-menu nav {
  background: rgba(24, 21, 30, 0.78);
  border: 1px solid rgba(226, 191, 114, 0.24);
  border-radius: 8px;
  gap: 6px;
  padding: 4px;
}

.top-menu nav a {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #dddddd;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.top-menu nav a:hover {
  background: #3b3347;
  color: #ffffff;
}

.top-menu nav a.discord-button {
  background: #5865f2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.top-menu nav a.discord-button:hover {
  background: #4752c4;
  color: #ffffff;
}

main {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px 42px;
}

.hero {
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(226, 191, 114, 0.045), transparent 42%),
    var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  overflow: hidden;
}

.hero-copy {
  align-content: center;
  display: grid;
  padding: 28px;
}

.hero-media {
  align-items: center;
  background: #262626;
  border-left: 2px solid var(--line);
  display: flex;
  min-height: 260px;
}

.hero-media img {
  display: block;
  filter: brightness(0.72) saturate(0.82) contrast(0.96);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.eyebrow {
  color: var(--marble);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  color: var(--marble);
  font-size: clamp(48px, 8vw, 76px);
  line-height: 0.95;
  text-shadow: 0 4px 0 #5b407b, 0 12px 28px rgba(226, 191, 114, 0.2);
}

.hero p,
.panel-heading p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.summary-panel,
.panel {
  background:
    linear-gradient(180deg, rgba(226, 191, 114, 0.045), transparent 42%),
    var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.summary-panel {
  overflow: hidden;
}

.summary-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}

.summary-panel summary::-webkit-details-marker {
  display: none;
}

.summary-panel summary span {
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 2px 2px 0 #171717;
}

.summary-panel summary strong {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.summary-panel summary::after {
  color: var(--gold);
  content: "Hide";
  font-size: 12px;
  font-weight: 900;
}

.summary-panel:not([open]) summary::after {
  content: "Show";
}

.summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 14px 14px;
}

.summary-grid article {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.summary-grid article {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
}

.summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-grid strong {
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  text-shadow: 2px 2px 0 #171717;
}

.tool-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.panel {
  padding: 22px;
}

.panel-heading {
  align-items: start;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.panel-action {
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
}

.panel-action:hover {
  background: var(--bronze);
  border-color: rgba(255, 232, 166, 0.4);
}

h2 {
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
  text-shadow: 2px 2px 0 #171717;
}

.bingo-board {
  display: grid;
  background: #c79b35;
  border: 3px solid #7d5a1d;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(255, 241, 207, 0.35);
  gap: 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px;
}

.bingo-tile {
  aspect-ratio: 1;
  background: #d8ad2f;
  border: 2px solid #b9861e;
  border-radius: 7px;
  box-shadow: inset 0 -5px 0 rgba(157, 100, 14, 0.18);
  color: #2f2412;
  cursor: pointer;
  display: grid;
  gap: 0;
  grid-template-rows: 1fr;
  min-width: 0;
  overflow: hidden;
  padding: 10px 7px 24px;
  place-items: center;
  position: relative;
  text-align: center;
}

.bingo-tile:hover,
.bingo-tile.selected {
  border-color: #ffffff;
  outline: 3px solid rgba(226, 191, 114, 0.5);
}

.bingo-tile.done {
  background: #72b774;
  border-color: #9bd49b;
}

.bingo-tile.done::after {
  align-items: center;
  background: rgba(46, 101, 48, 0.92);
  border: 2px solid rgba(239, 224, 189, 0.92);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  content: "✓";
  display: grid;
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 900;
  height: clamp(24px, 3.5vw, 34px);
  left: 8px;
  line-height: 1;
  place-items: center;
  position: absolute;
  top: 8px;
  width: clamp(24px, 3.5vw, 34px);
  z-index: 2;
}

.bingo-tile.reserved {
  background: #5aaeb0;
  border-color: #8bcfd1;
}

.bingo-tile.closed {
  background: #979797;
  border-color: #505050;
  color: #ffffff;
}

.bingo-board.has-plan-lines .bingo-tile {
  background: #77756f;
  border-color: #5e5b55;
  box-shadow: none;
  color: #2e2d2a;
  filter: grayscale(0.82);
  opacity: 0.46;
}

.bingo-board.has-plan-lines .bingo-tile.plan-primary {
  background: #5f77b8;
  border-color: #aab8f0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
  color: #12373b;
  filter: none;
  opacity: 1;
}

.bingo-board.has-plan-lines .bingo-tile.plan-backup {
  background: #8f65d8;
  border-color: #cdb7ff;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.14);
  color: #332414;
  filter: none;
  opacity: 1;
}

.bingo-board.has-plan-lines .bingo-tile.plan-third {
  background: #d5ad58;
  border-color: #f0d99a;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.14);
  color: #332414;
  filter: none;
  opacity: 1;
}

.bingo-board.has-plan-lines .bingo-tile.plan-fallback {
  background: #a86b3f;
  border-color: #ddb18b;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.14);
  color: #2f1711;
  filter: none;
  opacity: 1;
}

.bingo-board.has-plan-lines .bingo-tile.completed-plan,
.bingo-board.has-plan-lines .bingo-tile.done {
  background: #74b86e;
  border-color: #a7d79f;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16);
  color: #193b18;
  filter: none;
  opacity: 1;
}

.bingo-board.has-plan-lines .bingo-tile.done::after {
  background: rgba(38, 96, 41, 0.95);
}

.bingo-board.has-plan-lines .bingo-tile.plan-primary,
.bingo-board.has-plan-lines .bingo-tile.plan-backup,
.bingo-board.has-plan-lines .bingo-tile.plan-third,
.bingo-board.has-plan-lines .bingo-tile.plan-fallback,
.bingo-board.has-plan-lines .bingo-tile.completed-plan {
  outline: 2px solid rgba(255, 255, 255, 0.13);
  position: relative;
  z-index: 1;
}

.board-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  margin-top: 14px;
  text-align: center;
}

.board-legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  text-transform: uppercase;
}

.legend-swatch {
  border: 1px solid rgba(255, 241, 207, 0.5);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  display: inline-block;
  height: 16px;
  width: 16px;
}

.legend-swatch.completed {
  background: #74b86e;
}

.legend-swatch.primary {
  background: #5f77b8;
}

.legend-swatch.backup {
  background: #8f65d8;
}

.legend-swatch.third {
  background: #d5ad58;
}

.legend-swatch.fallback {
  background: #a86b3f;
}

.legend-swatch.dimmed {
  background: #77756f;
  filter: grayscale(0.82);
  opacity: 0.55;
}

.legend-swatch.closed {
  background: #979797;
}

.board-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.board-export-actions button {
  background: var(--bronze);
  border: 1px solid rgba(255, 232, 166, 0.42);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  min-height: 40px;
  padding: 0 14px;
}

.board-export-actions button:hover {
  border-color: var(--marble);
}

.board-export-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.tile-icon,
.tile-icon-img {
  align-items: center;
  display: grid;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
  min-height: clamp(72px, 11vw, 112px);
  place-items: center;
}

.tile-icon-img {
  height: min(72%, 112px);
  object-fit: contain;
  width: min(72%, 112px);
}

.tile-progress {
  color: #ffffff;
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 900;
  line-height: 1;
  bottom: 6px;
  position: absolute;
  right: 7px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.42);
  z-index: 1;
}

.tile-workers {
  background: rgba(39, 39, 43, 0.82);
  border: 1px solid rgba(239, 224, 189, 0.55);
  border-radius: 999px;
  bottom: 6px;
  color: var(--marble);
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 900;
  left: 7px;
  line-height: 1;
  overflow: hidden;
  padding: 5px 8px;
  position: absolute;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

.editor-panel {
  display: grid;
  gap: 14px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
}

input {
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  max-width: 100%;
  min-height: 42px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

input:focus {
  border-color: var(--gold);
  outline: none;
}

.status-buttons {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amount-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amount-grid label {
  min-width: 0;
}

.stepper-control {
  align-items: stretch;
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-height: 42px;
  overflow: hidden;
}

.stepper-control:focus-within {
  border-color: var(--gold);
}

.stepper-control input {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  border-right: 1px solid var(--line);
  appearance: textfield;
  min-height: 40px;
  padding: 0 8px;
  text-align: center;
}

.stepper-control input::-webkit-outer-spin-button,
.stepper-control input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.stepper-control button {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  padding: 0;
}

.stepper-control button:hover {
  background: rgba(216, 182, 106, 0.14);
  color: var(--marble);
}

.task-suggestions {
  background: var(--panel-dark);
  border: 2px solid var(--gold);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  max-height: 330px;
  overflow: auto;
  padding: 8px;
}

.task-suggestions[hidden] {
  display: none;
}

.task-suggestions button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 9px;
  text-align: left;
}

.task-suggestions button:hover {
  background: #3b3347;
}

.task-suggestions img {
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.task-suggestions span {
  display: grid;
  gap: 2px;
}

.task-suggestions strong {
  color: #ffffff;
}

.planning-card {
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.planning-card strong {
  color: var(--gold);
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 2px 2px 0 #171717;
}

.planning-card small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 5px;
}

.task-suggestions small {
  color: var(--muted);
  font-weight: 800;
}

.status-buttons button,
.secondary-action {
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  min-height: 42px;
}

.status-buttons button.active,
.secondary-action:hover {
  background: var(--bronze);
  border-color: rgba(255, 232, 166, 0.4);
}

.line-suggestions {
  display: grid;
  gap: 10px;
}

.recommendations {
  padding: 0;
}

.recommendations summary {
  cursor: pointer;
  list-style: none;
  padding: 22px;
}

.recommendations summary::-webkit-details-marker {
  display: none;
}

.recommendations summary::after {
  color: var(--gold);
  content: "Hide";
  float: right;
  font-size: 12px;
  font-weight: 900;
  margin-top: -26px;
}

.recommendations:not([open]) summary::after {
  content: "Show";
}

.recommendations summary h2 {
  margin-bottom: 8px;
}

.recommendations summary p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  max-width: 820px;
}

.recommendations .line-suggestions {
  padding: 0 22px 22px;
}

.line-card {
  align-items: stretch;
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 180px;
  padding: 14px;
}

.line-card.complete {
  border-left-color: var(--green);
}

.line-card.primary {
  border-color: #46c8d0;
  border-left-color: #46c8d0;
  box-shadow: 0 0 0 1px rgba(70, 200, 208, 0.35) inset;
}

.line-card.backup {
  border-color: #b988b1;
  border-left-color: #b988b1;
  box-shadow: 0 0 0 1px rgba(185, 136, 177, 0.35) inset;
}

.line-card.third {
  border-color: #e2b843;
  border-left-color: #e2b843;
  box-shadow: 0 0 0 1px rgba(226, 184, 67, 0.38) inset;
}

.line-card.fallback {
  border-color: #cf7658;
  border-left-color: #cf7658;
  box-shadow: 0 0 0 1px rgba(207, 118, 88, 0.38) inset;
}

.line-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.line-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.line-card strong {
  color: var(--text);
  font-size: 17px;
}

.line-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-title b {
  background: rgba(216, 182, 106, 0.14);
  border: 1px solid rgba(216, 182, 106, 0.3);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  padding: 4px 8px;
}

.line-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.line-actions button,
.line-card-actions button {
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  min-height: 34px;
  padding: 0 10px;
}

.line-actions button {
  margin: 0;
}

.line-advice {
  background: rgba(216, 182, 106, 0.12);
  border: 1px solid rgba(216, 182, 106, 0.32);
  border-radius: 6px;
  color: var(--marble);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px;
}

.line-actions button:hover,
.line-card-actions button:hover,
.line-card.primary [data-plan-kind="primary"],
.line-card.backup [data-plan-kind="backup"],
.line-card.third [data-plan-kind="third"],
.line-card.fallback [data-plan-kind="fallback"] {
  background: var(--bronze);
  border-color: rgba(255, 232, 166, 0.42);
}

.line-card-actions {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.line-card-actions button {
  margin: 0;
  width: 100%;
}

footer {
  color: #a9a9a9;
  font-size: 13px;
  font-weight: 700;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px 30px;
}

@media (max-width: 860px) {
  .top-menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .top-menu nav {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    border-left: 0;
    border-top: 2px solid var(--line);
    min-height: 190px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    position: relative;
  }

  .summary-panel summary strong {
    text-align: left;
  }

  .summary-panel summary::after {
    position: absolute;
    right: 12px;
    top: 14px;
  }

  .summary-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px 10px;
  }

  .summary-grid article {
    min-height: 56px;
    padding: 10px;
  }

  .summary-grid article:first-child {
    grid-column: 1 / -1;
  }

  .summary-grid span {
    font-size: 10px;
  }

  .summary-grid strong {
    font-size: 18px;
  }

  .bingo-board {
    gap: 4px;
    padding: 4px;
  }

  .panel {
    padding: 14px;
  }

  .bingo-tile {
    border-radius: 6px;
    min-height: 74px;
    padding: 7px 4px 18px;
  }

  .bingo-tile.done::after {
    border-width: 1px;
    height: 24px;
    left: 5px;
    top: 5px;
    width: 24px;
  }

  .line-card {
    grid-template-columns: 1fr;
  }

  .line-card span {
    white-space: normal;
  }

  .tile-icon,
  .tile-icon-img {
    font-size: clamp(42px, 13vw, 60px);
    min-height: clamp(50px, 14vw, 64px);
  }

  .tile-icon-img {
    height: clamp(50px, 14vw, 64px);
    width: clamp(50px, 14vw, 64px);
  }

  .tile-progress {
    bottom: 4px;
    font-size: clamp(14px, 4vw, 17px);
    position: absolute;
    right: 5px;
  }

  .tile-workers {
    bottom: 5px;
    font-size: 10px;
    left: 5px;
    padding: 4px 5px;
  }
}

@media (max-width: 430px) {
  .panel.board-panel {
    padding: 10px;
  }

  .bingo-board {
    border-width: 2px;
    gap: 3px;
    padding: 3px;
  }

  .bingo-tile {
    border-width: 1px;
    min-height: 68px;
    padding: 7px 3px 15px;
  }

  .tile-icon,
  .tile-icon-img {
    font-size: clamp(44px, 15vw, 58px);
    min-height: clamp(50px, 16vw, 62px);
  }

  .tile-icon-img {
    height: clamp(50px, 16vw, 62px);
    width: clamp(50px, 16vw, 62px);
  }
}

/* Final summary override: keep Bingo aligned with the stacker summary. */
main > .summary-panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  display: block;
  overflow: hidden;
}

main > .summary-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}

main > .summary-panel > summary::marker,
main > .summary-panel > summary::-webkit-details-marker {
  content: "";
  display: none;
}

main > .summary-panel > summary span {
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 2px 2px 0 #171717;
}

main > .summary-panel > summary strong {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

main > .summary-panel > summary::after {
  color: var(--gold);
  content: "Hide";
  font-size: 12px;
  font-weight: 900;
}

main > .summary-panel:not([open]) > summary::after {
  content: "Show";
}

main > .summary-panel > .summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 14px 14px;
}

main > .summary-panel > .summary-grid article {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
}

@media (max-width: 860px) {
  main > .summary-panel > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    position: relative;
  }

  main > .summary-panel > summary strong {
    text-align: left;
  }

  main > .summary-panel > summary::after {
    position: absolute;
    right: 12px;
    top: 14px;
  }

  main > .summary-panel > .summary-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px 10px;
  }

  main > .summary-panel > .summary-grid article {
    min-height: 56px;
    padding: 10px;
  }

  main > .summary-panel > .summary-grid article:first-child {
    grid-column: 1 / -1;
  }

  main > .summary-panel > .summary-grid span {
    font-size: 10px;
  }

  main > .summary-panel > .summary-grid strong {
    font-size: 18px;
  }
}
