.workbench-page { padding-top: 30px; }
.workbench-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.workbench-heading h1 { margin-bottom: 5px; }
.workbench-eyebrow { margin-bottom: 7px; color: var(--green); font-size: 12px; font-weight: 700; }
.workbench-arena-link { flex: none; }
.workbench-section { margin-top: 27px; }
.workbench-section:first-of-type { margin-top: 0; }
.workbench-section-heading { align-items: center; margin: 0 0 13px; }
.workbench-section-heading p { margin-top: 3px; }
.demo-source { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.demo-source-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.bomber-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.bomber-card { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 16px; min-width: 0; min-height: 218px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.bomber-portrait-frame { display: grid; place-items: center; width: 144px; height: 188px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #e8eef0; }
.bomber-card-a .bomber-portrait-frame { background: #e7effb; }
.bomber-card-b .bomber-portrait-frame { background: #f8e9e6; }
.bomber-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.portrait-failed::after { content: "预览加载失败"; padding: 10px; color: var(--ink-muted); font-size: 12px; text-align: center; }
.bomber-card-content { display: flex; align-items: flex-start; flex-direction: column; min-width: 0; }
.bomber-slot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 24px; }
.team-mark { color: var(--ink-muted); font-size: 12px; }
.bomber-name { display: block; max-width: 100%; margin: 7px 0 6px; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.bomber-name:hover { color: var(--green); }
.bomber-strategy { width: 100%; margin: 7px 0 5px; overflow: hidden; color: var(--ink-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.readiness-row { display: flex; align-items: baseline; gap: 7px; min-width: 0; margin-top: 2px; color: var(--ink-muted); font-size: 12px; }
.readiness-mark { color: var(--red); font-weight: 680; white-space: nowrap; }
.readiness-copy { min-width: 0; overflow-wrap: anywhere; }
.bomber-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: auto; padding-top: 12px; }
.bomber-actions .button { min-width: 0; }
.match-section { padding-top: 23px; border-top: 1px solid var(--line); }
.match-all-link { flex: none; }
.match-row { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(330px, 1.6fr) minmax(165px, 1fr) minmax(190px, 1.05fr) auto; align-items: center; gap: 16px; min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.match-meta { display: grid; justify-items: start; gap: 7px; min-width: 0; }
.match-meta-item { max-width: 100%; color: var(--ink-muted); font-size: 12px; overflow-wrap: anywhere; }
.match-participants { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: 7px; min-width: 0; }
.match-participant { display: flex; align-items: center; gap: 8px; min-width: 0; padding-top: 18px; }
.match-portrait-frame { position: relative; flex: none; }
.match-win-badge { position: absolute; top: -18px; left: 0; display: grid; place-items: center; width: 100%; height: 14px; border-radius: 3px; background: var(--green); color: white; font-size: 9px; font-weight: 800; line-height: 1; }
.match-portrait { flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 5px; object-fit: cover; }
.match-portrait-fallback { display: grid; place-items: center; color: var(--ink-muted); background: var(--surface-muted); font-size: 12px; }
.match-participant-identity { display: grid; min-width: 0; }
.match-slot { color: var(--ink-muted); font-size: 10px; }
.match-name { min-width: 0; color: var(--ink); font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.match-score { margin-left: auto; font-size: 15px; font-variant-numeric: tabular-nums; }
.match-versus { color: var(--ink-muted); font-size: 10px; text-align: center; }
.match-participant-a .match-score { color: var(--team-a); }
.match-participant-b .match-score { color: var(--team-b); }
.match-outcome { display: grid; gap: 3px; min-width: 0; }
.match-winner { color: var(--ink); font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.match-result-detail { color: var(--ink-muted); font-size: 12px; }
.match-winner.team-a-text { color: var(--team-a); }
.match-winner.team-b-text { color: var(--team-b); }
.match-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 11px; min-width: 0; color: var(--ink-muted); font-size: 12px; }
.match-fact { white-space: nowrap; }
.match-source { width: 100%; color: var(--ink-muted); }
.match-replay-link { min-height: 38px; padding-inline: 10px; }
.noscript-notice { width: min(calc(100% - 32px), var(--content-width)); margin: 24px auto; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-muted); }

@media (max-width: 1120px) {
  .match-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); }
  .match-facts { grid-column: 1 / 3; }
  .match-replay-link { grid-column: 3; grid-row: 2; justify-self: end; }
}

@media (max-width: 760px) {
  .workbench-page { padding-top: 23px; }
  .workbench-heading { align-items: flex-start; margin-bottom: 25px; }
  .workbench-heading h1 { font-size: 23px; }
  .bomber-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .bomber-card { min-height: 206px; }
  .match-row { grid-template-columns: minmax(0, 1fr) auto; gap: 11px 14px; padding: 13px; }
  .match-meta { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
  .match-participants { grid-column: 1 / -1; }
  .match-outcome { grid-column: 1; }
  .match-facts { grid-column: 1; }
  .match-replay-link { grid-column: 2; grid-row: 3 / 5; align-self: center; }
}

@media (max-width: 430px) {
  .workbench-heading { flex-direction: column; gap: 13px; }
  .workbench-arena-link { min-height: 40px; }
  .workbench-section-heading { align-items: flex-end; }
  .demo-source { align-items: flex-start; max-width: 126px; white-space: normal; }
  .bomber-card { grid-template-columns: 98px minmax(0, 1fr); gap: 12px; min-height: 190px; padding: 11px; }
  .bomber-portrait-frame { width: 98px; height: 156px; }
  .bomber-name { font-size: 16px; }
  .bomber-slot-row .tag { padding-inline: 5px; font-size: 10px; }
  .bomber-actions { gap: 6px; }
  .bomber-actions .button { padding-inline: 6px; }
  .match-participants { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 4px; }
  .match-participant { gap: 5px; }
  .match-portrait { width: 34px; height: 34px; }
  .match-name { font-size: 11px; }
  .match-score { font-size: 13px; }
  .match-replay-link { align-self: start; min-height: 42px; padding-inline: 8px; }
}
