:root {
  --ink: #151515;
  --muted: #686c72;
  --line: #d9dee5;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --red: #da291c;
  --red-soft: #ffe0e3;
  --blue: #004b87;
  --blue-soft: #dfeaff;
  --green: #0b7c64;
  --yellow: #f2b84b;
  --shadow: 0 14px 40px rgba(19, 25, 34, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 3vw, 32px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.club-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-credit {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

h2 {
  font-size: 20px;
}

.tabs,
.setup-actions,
.timer-buttons,
.export-actions,
.section-actions,
.finish-controls,
.edit-actions,
.timeline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab,
.segmented,
.ghost-button,
.icon-button,
.primary-action,
.logout-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 800;
}

.tab.is-active,
.segmented.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.primary-action {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.danger-button {
  border-color: var(--red);
  color: var(--red);
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.setup-band,
.video-panel,
.action-pad,
dashboard-band,
.compare-controls,
.export-band,
.report-shell,
.admin-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.setup-band {
  padding: 16px;
}

.setup-summary-toggle {
  display: none;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

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

.setup-summary-toggle strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-summary-toggle em {
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.setup-collapsible-content {
  display: block;
}

.setup-grid,
.fighters-grid,
.saved-match-bar,
.workbench,
.dashboard-band,
.compare-controls,
.comparison-grid {
  display: grid;
  gap: 14px;
}

.setup-grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.fighters-grid,
.dashboard-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.saved-match-bar {
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.6fr) auto auto;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.workbench {
  grid-template-columns: minmax(170px, 230px) minmax(380px, 1fr) minmax(170px, 230px);
  margin-top: 14px;
}

@media (min-width: 1100px) {
  body[data-match-active="true"]:not([data-show-setup="true"]) .workbench,
  .workbench.video-mode {
    grid-template-columns: minmax(128px, 170px) minmax(340px, 1fr) minmax(128px, 170px) minmax(300px, 360px);
    gap: 10px;
    margin-top: 10px;
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .control-panel,
  .workbench.video-mode .control-panel {
    grid-column: 4;
    grid-row: 1;
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .action-pad,
  .workbench.video-mode .action-pad {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .action-group,
  .workbench.video-mode .action-group {
    gap: 6px;
    padding: 8px;
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .action-group h3,
  .workbench.video-mode .action-group h3 {
    font-size: 11px;
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .choice,
  .workbench.video-mode .choice {
    min-height: 36px;
    padding: 5px;
    font-size: 12px;
    line-height: 1.1;
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .four-choice .choice,
  .workbench.video-mode .four-choice .choice {
    font-size: 14px;
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .choice-row.points-row,
  body[data-match-active="true"]:not([data-show-setup="true"]) .choice-row.points-row:has(.choice:nth-child(3)),
  .workbench.video-mode .choice-row.points-row,
  .workbench.video-mode .choice-row.points-row:has(.choice:nth-child(3)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .video-panel video,
  body[data-match-active="true"]:not([data-show-setup="true"]) .video-panel .youtube-player,
  .workbench.video-mode .video-panel video,
  .workbench.video-mode .video-panel .youtube-player {
    max-height: calc(100vh - 220px);
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .quick-action-log,
  .workbench.video-mode .quick-action-log {
    max-height: calc(100vh - 250px);
  }
}

label,
.fighter-form {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

.fighter-form {
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.fighter-form strong {
  display: block;
  margin: -12px -12px 0;
  padding: 10px 12px;
  border-radius: 7px 7px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.fighter-form.red-side {
  border-color: var(--red);
  background: var(--red-soft);
}

.fighter-form.blue-side {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.fighter-form.red-side strong,
.fighter-form.blue-side strong {
  color: white;
}

.fighter-form.red-side strong {
  background: var(--red);
}

.fighter-form.blue-side strong {
  background: var(--blue);
}

.logout-button {
  flex: 0 0 auto;
  border-color: var(--red);
  color: var(--red);
}

.logout-button:hover,
.logout-button:focus-visible {
  background: var(--red);
  color: white;
}

.manual-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.manual-grid article {
  border-top: 4px solid var(--blue);
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.manual-grid article:nth-child(even) {
  border-top-color: var(--red);
}

.manual-grid article > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.manual-grid h3,
.manual-grid p {
  margin: 8px 0 0;
}

.manual-grid p,
.manual-notes p {
  color: var(--muted);
  line-height: 1.55;
}

.manual-notes {
  margin-top: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .manual-grid {
    grid-template-columns: 1fr;
  }
}

.competitor-photo-control {
  width: 92px;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 2px dashed currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  cursor: pointer;
}

.competitor-photo-control img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.competitor-photo-control input,
.manage-photo-input {
  display: none;
}

.competitor-photo-control span {
  font-weight: 900;
}

.photo-help {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.red-side {
  background: var(--red-soft);
}

.blue-side {
  background: var(--blue-soft);
}

.workbench {
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
}

.video-panel {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.control-panel {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
}

.timer-strip {
  display: grid;
  grid-template-columns: 88px 110px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.video-panel.video-mode .timer-strip {
  grid-template-columns: 88px 1fr;
}

.video-panel.video-mode .timer-buttons {
  display: none;
}

.video-panel.video-mode #time-display {
  font-size: 34px;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

#round-display,
#time-display {
  font-size: 28px;
  line-height: 1;
}

.icon-button {
  min-width: 48px;
}

.icon-button.wide {
  min-width: 86px;
}

.video-loader {
  margin: 12px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  place-items: center;
  text-align: center;
}

.video-loader input {
  display: none;
}

.youtube-loader {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.youtube-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.youtube-status.is-error {
  color: var(--red);
}

.video-panel.video-mode .youtube-loader {
  display: grid;
}

.youtube-player {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101010;
}

.youtube-player.has-youtube {
  display: block;
}

.youtube-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

video {
  display: none;
  width: 100%;
  max-height: 420px;
  background: #101010;
}

video.has-video {
  display: block;
}

.video-review-controls {
  display: flex;
  justify-content: center;
  padding: 8px 12px 10px;
}

.video-review-controls .mini-button {
  min-height: 34px;
  padding: 6px 14px;
}

.score-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 118px;
  border: 3px solid transparent;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
}

.score-side span,
.score-side small {
  display: block;
  grid-column: 1;
  min-width: 0;
}

.score-side strong {
  display: block;
  grid-column: 1;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.95;
}

.score-photo {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 52px;
  height: 65px;
  border: 2px solid currentColor;
  border-radius: 6px;
  object-fit: cover;
}

.red-score {
  background: var(--red);
  color: #ffffff;
}

.blue-score {
  background: var(--blue);
  color: #ffffff;
}

.score-side.is-selected {
  border-color: currentColor;
}

.quick-action-log {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.quick-action-log h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-action-log > div {
  display: grid;
  gap: 6px;
}

.quick-action-item {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-left: 5px solid currentColor;
  border-radius: 6px;
  background: #fbfcfd;
  padding: 8px;
  text-align: left;
}

.quick-action-item.red {
  color: var(--red);
}

.quick-action-item.blue {
  color: var(--blue);
}

.quick-action-item.is-latest {
  background: #fff8e8;
  border-color: currentColor;
}

.quick-action-item span,
.quick-action-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.quick-action-item strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
}

.quick-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.action-pad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.action-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.action-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.score-action-group {
  grid-column: 1 / -1;
}

.technique-action-group {
  grid-column: span 1;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.choice-row:has(.choice:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-choice,
.choice-row.four-choice:has(.choice:nth-child(3)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-row.points-row,
.choice-row.points-row:has(.choice:nth-child(3)) {
  grid-template-columns: repeat(7, minmax(42px, 1fr));
}

.choice {
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
  color: var(--ink);
  padding: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.four-choice .choice {
  font-size: 18px;
}

.choice.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

body[data-match-active="true"] #analysis-view .setup-band {
  padding: 8px 10px;
}

body[data-match-active="true"] #analysis-view .setup-summary-toggle {
  display: grid;
}

body[data-match-active="true"]:not([data-show-setup="true"]) #analysis-view .setup-collapsible-content {
  display: none;
}

body[data-match-active="true"][data-show-setup="true"] #analysis-view .setup-collapsible-content {
  margin-top: 10px;
}

.points-row .choice {
  background: #fff3cf;
  border-color: #ecc663;
  color: #4e3900;
}

.choice-row[data-choice="weapon"] .choice,
.choice-row[data-choice="correction"] .choice,
.choice-row[data-choice="combo"] .choice,
.choice-row[data-choice="spin"] .choice,
.technique-field,
.counter-field,
.clinch-field {
  background: #eef7ee;
  border-color: #a9d8af;
  color: #173f22;
}

.choice-row[data-choice="guardRelation"] .choice,
.choice-row[data-choice="stance"] .choice {
  background: #f3eefb;
  border-color: #cbb8e8;
  color: #352050;
}

.choice-row[data-choice="type"] .choice {
  background: #edf4ff;
  border-color: #a9c8f7;
  color: #12345e;
}

.choice-row[data-choice="type"] .choice[data-value="Amonestacion"] {
  background: #fff0e7;
  border-color: #efb082;
  color: #733300;
}

.choice-row[data-choice="zone"] .choice {
  background: #f5f6f8;
  border-color: #d1d7e0;
  color: #252a31;
}

.choice.is-active,
.choice-row[data-choice="type"] .choice.is-active,
.choice-row[data-choice="type"] .choice[data-value="Amonestacion"].is-active,
.points-row .choice.is-active,
.choice-row[data-choice="weapon"] .choice.is-active,
.choice-row[data-choice="correction"] .choice.is-active,
.choice-row[data-choice="combo"] .choice.is-active,
.choice-row[data-choice="spin"] .choice.is-active,
.choice-row[data-choice="guardRelation"] .choice.is-active,
.choice-row[data-choice="stance"] .choice.is-active,
.choice-row[data-choice="zone"] .choice.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.penalty-field,
.technique-field,
.counter-field,
.clinch-field,
.combo-detail-field {
  display: none;
  margin: 0;
}

.penalty-field.is-visible,
.technique-field.is-visible,
.counter-field.is-visible,
.clinch-field.is-visible,
.combo-detail-field.is-visible {
  display: grid;
}

.combo-detail-field {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.is-hidden {
  display: none !important;
}

.edit-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.edit-actions .register-button {
  flex: 1 1 240px;
}

.edit-cancel {
  display: none;
}

.edit-cancel.is-visible {
  display: inline-flex;
  align-items: center;
}

.register-button {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #2d210b;
  font-size: 20px;
  font-weight: 950;
}

.dashboard-band {
  padding: 16px;
}

.section-title,
.wide-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wide-title {
  margin-top: 4px;
}

.timeline {
  display: grid;
  gap: 8px;
  min-height: 120px;
  max-height: 460px;
  overflow: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline-action {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--ink);
  border-radius: 8px;
  background: white;
  padding: 9px 12px;
  text-align: left;
}

.timeline-action small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-response {
  margin-left: 22px;
  width: calc(100% - 22px);
}

.timeline-important .timeline-action {
  border-width: 2px;
  border-color: #9a6700;
  background: #fff8c5;
}

.timeline-action.red {
  border-left-color: var(--red);
}

.timeline-action.blue {
  border-left-color: var(--blue);
}

.timeline strong {
  display: block;
}

.timeline-tools {
  margin-top: 6px;
}

.timeline-tools button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.timeline-tools .delete-action {
  border-color: var(--red);
  color: var(--red);
}

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

.metric,
.profile-card,
.compare-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.metric span,
.profile-card span,
.compare-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric-win {
  border-color: rgba(11, 124, 100, 0.45);
  background: #edf8f3;
}

.metric-win strong {
  color: var(--green);
}

.metric-loss {
  border-color: rgba(224, 0, 22, 0.32);
  background: #fff0f1;
}

.metric-loss strong {
  color: var(--red);
}

.profiles-list {
  margin-top: 16px;
}

.round-score-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.round-score-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--muted);
  border-radius: 8px;
  background: white;
  padding: 9px 10px;
}

.round-score-card.red {
  border-left-color: var(--red);
}

.round-score-card.blue {
  border-left-color: var(--blue);
}

.round-score-card.is-current {
  box-shadow: inset 0 0 0 2px rgba(21, 21, 21, 0.08);
}

.round-score-card span,
.round-score-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.round-score-card strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
  font-size: 24px;
}

.round-score-card em {
  color: var(--muted);
  font-style: normal;
}

.round-score-card.red strong b:first-child,
.round-score-card.tie strong b:first-child {
  color: var(--red);
}

.round-score-card.blue strong b:last-child,
.round-score-card.tie strong b:last-child {
  color: var(--blue);
}

.profile-card {
  display: grid;
  gap: 10px;
}

.profile-card.is-open {
  grid-column: 1 / -1;
  gap: 14px;
  border-top: 4px solid var(--ink);
  padding: 16px;
}

.profile-card h3 {
  margin: 0;
  font-size: 22px;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-summary-grid .metric {
  padding: 9px 10px;
}

.profile-summary-grid .metric strong {
  font-size: 16px;
}

.profile-identity small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.profile-card.is-open .profile-summary-grid {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.profile-chapters {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.profile-overview-panel {
  display: grid;
  gap: 12px;
}

.profile-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-overview-metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.profile-overview-metric.metric-win {
  border-top-color: var(--green);
}

.profile-overview-metric.metric-loss {
  border-top-color: var(--red);
}

.profile-overview-metric span,
.profile-overview-metric strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-overview-metric span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-overview-metric strong {
  margin-top: 4px;
  font-size: 19px;
}

.profile-dna-panel {
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
  background: #eef7f4;
}

.profile-dna-panel span {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-dna-panel p {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.profile-chapters .report-chapter-body {
  padding-inline: 2px;
}

.profile-heading,
.management-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-heading .toggle-profile-detail {
  margin-left: auto;
  white-space: nowrap;
}

.profile-heading > div,
.management-identity > div {
  min-width: 0;
}

.profile-photo,
.management-photo,
.report-competitor-photo {
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid var(--line);
  background: #eef1f5;
}

.profile-photo {
  display: grid;
  width: 72px;
  height: 90px;
  border-radius: 8px;
  place-items: center;
}

.management-photo {
  display: grid;
  width: 44px;
  height: 55px;
  border-radius: 6px;
  place-items: center;
}

.profile-photo-placeholder,
.photo-initials,
.report-photo-placeholder {
  color: var(--ink) !important;
  font-weight: 900;
  text-align: center;
}

.manage-photo-button {
  cursor: pointer;
}

.dna {
  line-height: 1.45;
}

.compare-controls {
  grid-template-columns: 1fr;
  padding: 16px;
}

.compare-title,
.compare-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.compare-title h2,
.compare-section-title h3 {
  margin: 2px 0 0;
}

.compare-title > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.comparison-shell {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.compare-competitor-headings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-competitor-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.compare-competitor-heading.compare-b {
  border-left-color: var(--green);
}

.compare-competitor-heading img,
.compare-photo-placeholder {
  display: grid;
  width: 64px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  place-items: center;
}

.compare-photo-placeholder {
  background: #eef1f5;
  font-weight: 900;
}

.compare-competitor-heading h3 {
  margin: 2px 0;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.compare-competitor-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compare-competitor-heading > div > span,
.compare-section-title span,
.compare-insight-grid article > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-reliability-warning {
  border: 1px solid #d5a22c;
  border-left: 5px solid #d5a22c;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff8e8;
}

.compare-reliability-warning p,
.compare-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compare-insights,
.compare-game-plan-section,
.compare-table-section,
.compare-direct-section,
.compare-patterns-section,
.compare-empty {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.compare-section-title em {
  max-width: 430px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.compare-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.compare-insight-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: white;
}

.compare-insight-grid article strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.compare-insight-grid article p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.compare-game-plan-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.compare-game-plan-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.compare-game-plan-card.compare-b {
  border-top-color: var(--green);
}

.compare-game-plan-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-game-plan-heading h4 {
  margin: 3px 0 10px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.compare-game-plan-list {
  display: grid;
  gap: 7px;
}

.compare-game-plan-list > article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: #fbfcfd;
}

.compare-game-plan-list > article > span {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 900;
  place-items: center;
}

.compare-game-plan-list strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.compare-game-plan-list p,
.compare-plan-empty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.compare-plan-empty {
  border-left: 4px solid #d5a22c;
  padding: 10px 12px;
  background: #fff8e8;
}

.compare-table {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.compare-table-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) repeat(2, minmax(150px, 1fr)) minmax(170px, 0.9fr);
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.compare-table-row:last-child {
  border-bottom: 0;
}

.compare-table-row > * {
  min-width: 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.compare-table-row > span,
.compare-table-row > em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.compare-table-row > strong {
  border-left: 1px solid var(--line);
  font-size: 14px;
}

.compare-table-row > em {
  border-left: 1px solid var(--line);
}

.compare-table-header {
  background: #f3f5f7;
}

.compare-table-header > * {
  font-size: 11px !important;
  text-transform: uppercase;
}

.compare-table-row .is-leading {
  background: #eaf7f2;
  color: #087259;
}

.compare-direct-list {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.compare-direct-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.compare-direct-list article span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.compare-direct-list article > div:last-child {
  display: flex;
  gap: 6px;
}

.tactical-pattern-panel.compare-a {
  border-top-color: var(--ink);
}

.tactical-pattern-panel.compare-b {
  border-top-color: var(--green);
}

.comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.compare-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.export-band {
  padding: 18px;
}

.report-shell {
  padding: 18px;
}

.report-browser {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
  box-shadow: var(--shadow);
}

.report-browser input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
}

.report-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.report-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.report-list-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-list-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-empty {
  display: grid;
  gap: 8px;
  min-height: 220px;
  place-content: center;
  text-align: center;
  color: var(--muted);
}

.report-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.report-header-compact {
  align-items: center;
}

.report-heading-copy {
  display: grid;
  gap: 3px;
}

.report-heading-copy h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.report-meta-primary {
  color: var(--ink);
}

.report-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.report-competitor-photos {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.report-competitor-photo {
  display: grid;
  width: 48px;
  height: 60px;
  border-radius: 6px;
  place-items: center;
}

.report-competitor-photo.red {
  border-color: var(--red);
}

.report-competitor-photo.blue {
  border-color: var(--blue);
}

.report-match-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 6px;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}

.report-name {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: break-word;
  white-space: normal;
  word-break: normal;
}

.report-name-red {
  border: 1px solid rgba(229, 57, 53, 0.35);
  background: rgba(229, 57, 53, 0.08);
  color: var(--red);
}

.report-name-blue {
  border: 1px solid rgba(2, 102, 204, 0.35);
  background: rgba(2, 102, 204, 0.08);
  color: var(--blue);
}

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

.report-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.report-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
}

.report-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.report-chapter {
  min-width: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.report-chapter > summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 4px;
  cursor: pointer;
  list-style: none;
}

.report-chapter > summary::-webkit-details-marker {
  display: none;
}

.report-chapter > summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  place-items: center;
}

.report-chapter[open] > summary::after {
  content: "-";
}

.report-chapter[open] > summary {
  border-bottom: 1px solid var(--line);
}

.report-chapter-index {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.report-chapter > summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-chapter > summary strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.report-chapter > summary small,
.report-chapter > summary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.report-chapter > summary em {
  white-space: nowrap;
}

.report-chapter-body {
  display: grid;
  gap: 10px;
  padding: 14px 0 4px;
}

.report-chapter-highlight {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.report-chapter-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 900;
}

.report-chapter-section-title em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.report-chapter .report-overview {
  padding-top: 4px;
}

@media (max-width: 760px) {
  .report-chapter > summary {
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    gap: 8px;
    min-height: 62px;
  }

  .report-chapter > summary > em {
    grid-column: 2;
    grid-row: 2;
  }

  .report-chapter > summary::after {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .report-chapter > summary strong {
    font-size: 16px;
  }

  .report-chapter > summary small {
    font-size: 10px;
  }

  .report-chapter-body {
    padding-top: 10px;
  }
}

.report-overview {
  display: grid;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.report-overview-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.report-overview-title > div {
  display: grid;
  gap: 2px;
}

.report-overview-title span,
.report-overview-competitor span,
.report-overview-metric > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-overview-title strong {
  font-size: 18px;
}

.report-overview-title em {
  border: 1px solid #acd7c8;
  border-radius: 6px;
  background: #edf8f4;
  padding: 7px 10px;
  color: #08735b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.report-overview-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.report-overview-competitor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.report-overview-competitor.red {
  border-top-color: var(--red);
}

.report-overview-competitor.blue {
  border-top-color: var(--blue);
}

.report-overview-competitor > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-overview-competitor strong,
.report-overview-competitor small {
  overflow-wrap: anywhere;
}

.report-overview-competitor strong {
  font-size: 17px;
}

.report-overview-competitor small,
.report-overview-result small,
.report-overview-metric small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.report-overview-competitor > b {
  font-size: 36px;
  line-height: 1;
}

.report-overview-competitor.red > b {
  color: var(--red);
}

.report-overview-competitor.blue > b {
  color: var(--blue);
}

.report-overview-result {
  display: grid;
  gap: 2px;
  place-content: center;
  border-block: 1px solid var(--line);
  text-align: center;
}

.report-overview-result span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-overview-result strong {
  font-size: 34px;
  line-height: 1;
}

.report-overview-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.report-overview-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  background: #f8fafc;
}

.report-overview-metric + .report-overview-metric {
  border-left: 1px solid var(--line);
}

.report-overview-metric > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.report-overview-metric strong {
  font-size: 20px;
}

.report-overview-metric strong.red {
  color: var(--red);
}

.report-overview-metric strong.blue {
  color: var(--blue);
}

.report-overview-metric em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.report-keys {
  border-left: 4px solid var(--green);
}

.report-points-section {
  border-left: 4px solid #1f2937;
}

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

.report-points-side {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 16px;
  min-width: 0;
  border-top: 4px solid;
  border-bottom: 1px solid var(--line);
  padding: 12px 4px 14px;
}

.report-points-side.red {
  border-top-color: var(--red);
}

.report-points-side.blue {
  border-top-color: var(--blue);
}

.report-points-heading {
  display: grid;
  gap: 2px;
}

.report-points-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-points-heading strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.report-breakdown-group {
  display: grid;
  gap: 8px;
}

.report-breakdown-group h4 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
}

.report-breakdown-list {
  display: grid;
  gap: 12px;
}

.report-breakdown-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.report-breakdown-label,
.report-breakdown-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.report-breakdown-label strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.report-breakdown-label span,
.report-breakdown-meta > span,
.report-breakdown-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.report-breakdown-bar {
  height: 9px;
  overflow: hidden;
  background: #e8edf2;
}

.report-breakdown-bar > span {
  display: block;
  width: var(--bar-width);
  height: 100%;
}

.report-breakdown-row.red .report-breakdown-bar > span {
  background: var(--red);
}

.report-breakdown-row.blue .report-breakdown-bar > span {
  background: var(--blue);
}

.report-breakdown-meta > div {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.report-breakdown-meta .mini-button {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 10px;
}

.report-breakdown-empty {
  margin: 0;
}

.report-received-section {
  border-left: 4px solid #1f2937;
}

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

.report-received-side {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 16px;
  min-width: 0;
  border-top: 4px solid;
  border-bottom: 1px solid var(--line);
  padding: 12px 4px 14px;
}

.report-received-side.red {
  border-top-color: var(--red);
}

.report-received-side.blue {
  border-top-color: var(--blue);
}

.report-received-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.report-received-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-received-heading span,
.report-received-factor span,
.report-received-zone article span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-received-heading strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.report-received-heading > b {
  font-size: 30px;
}

.report-received-side.red .report-received-heading > b {
  color: var(--red);
}

.report-received-side.blue .report-received-heading > b {
  color: var(--blue);
}

.report-received-zone {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 150px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: #f8fafc;
}

.report-received-zone svg {
  display: block;
  width: 116px;
  height: 145px;
}

.report-received-zone.red svg {
  color: var(--red);
}

.report-received-zone.blue svg {
  color: var(--blue);
}

.report-received-zone .zone-body-outline,
.report-received-zone .zone-arm {
  fill: none;
  stroke: #aab3bd;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-received-zone .zone-helmet,
.report-received-zone .zone-protector {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3;
}

.report-received-zone .zone-helmet-opening {
  fill: white;
  stroke: currentColor;
  stroke-width: 2;
}

.report-received-zone > div {
  display: grid;
  gap: 8px;
}

.report-received-zone article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.report-received-zone article strong {
  font-size: 14px;
}

.report-received-zone article small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-received-factors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.report-received-factor {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 10px;
}

.report-received-factor strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.report-received-factor small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-effectiveness-section {
  border-left: 4px solid var(--green);
}

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

.report-effectiveness-side {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 14px;
  min-width: 0;
  border-top: 4px solid;
  padding: 12px 4px 14px;
}

.report-effectiveness-side.red {
  border-top-color: var(--red);
}

.report-effectiveness-side.blue {
  border-top-color: var(--blue);
}

.report-effectiveness-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.report-effectiveness-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-effectiveness-heading span,
.report-effectiveness-primary span,
.report-effectiveness-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-effectiveness-heading strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.report-effectiveness-heading > b {
  font-size: 30px;
}

.report-effectiveness-side.red .report-effectiveness-heading > b {
  color: var(--red);
}

.report-effectiveness-side.blue .report-effectiveness-heading > b {
  color: var(--blue);
}

.report-effectiveness-primary {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 12px;
  background: #f8fafc;
}

.report-effectiveness-primary > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.report-effectiveness-primary strong {
  font-size: 13px;
}

.report-effectiveness-primary small,
.report-effectiveness-metrics small,
.report-effectiveness-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-effectiveness-bar {
  height: 11px;
  overflow: hidden;
  background: #e8edf2;
}

.report-effectiveness-bar > span {
  display: block;
  width: var(--effectiveness-width);
  height: 100%;
}

.report-effectiveness-side.red .report-effectiveness-bar > span,
.report-effectiveness-row.red .report-effectiveness-bar > span {
  background: var(--red);
}

.report-effectiveness-side.blue .report-effectiveness-bar > span,
.report-effectiveness-row.blue .report-effectiveness-bar > span {
  background: var(--blue);
}

.report-effectiveness-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.report-effectiveness-metrics article {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px;
}

.report-effectiveness-metrics article + article {
  border-left: 1px solid var(--line);
}

.report-effectiveness-metrics article:nth-child(4) {
  border-left: 0;
  border-top: 1px solid var(--line);
}

.report-effectiveness-metrics article:nth-child(5) {
  grid-column: span 2;
  border-top: 1px solid var(--line);
}

.report-effectiveness-metrics strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.report-effectiveness-detail {
  display: grid;
  gap: 12px;
}

.report-effectiveness-detail h4 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
}

.report-effectiveness-row {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.report-effectiveness-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-effectiveness-row > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.report-effectiveness-row strong,
.report-effectiveness-row > div:first-child span {
  font-size: 12px;
  font-weight: 900;
}

.report-initiative-section {
  border-left: 4px solid #1f2937;
}

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

.report-initiative-side {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 14px;
  min-width: 0;
  border-top: 4px solid;
  padding: 12px 4px 14px;
}

.report-initiative-side.red {
  border-top-color: var(--red);
}

.report-initiative-side.blue {
  border-top-color: var(--blue);
}

.report-initiative-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.report-initiative-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-initiative-heading span,
.report-initiative-dominant span,
.report-initiative-rate span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-initiative-heading strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.report-initiative-heading > b {
  font-size: 30px;
}

.report-initiative-side.red .report-initiative-heading > b {
  color: var(--red);
}

.report-initiative-side.blue .report-initiative-heading > b {
  color: var(--blue);
}

.report-initiative-dominant {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 12px;
  background: #f8fafc;
}

.report-initiative-dominant strong {
  font-size: 17px;
}

.report-initiative-dominant small,
.report-initiative-row p,
.report-initiative-row-body > small {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-initiative-distribution {
  display: grid;
  gap: 10px;
}

.report-initiative-distribution article {
  display: grid;
  gap: 5px;
}

.report-initiative-distribution article > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-initiative-distribution strong,
.report-initiative-distribution span {
  font-size: 11px;
  font-weight: 900;
}

.report-initiative-bar {
  height: 9px;
  overflow: hidden;
  background: #e8edf2;
}

.report-initiative-bar > span {
  display: block;
  width: var(--initiative-width);
  height: 100%;
}

.report-initiative-side.red .report-initiative-bar > span,
.report-initiative-row.red .report-initiative-bar > span {
  background: var(--red);
}

.report-initiative-side.blue .report-initiative-bar > span,
.report-initiative-row.blue .report-initiative-bar > span {
  background: var(--blue);
}

.report-initiative-detail {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.report-initiative-detail h4 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
}

.report-initiative-row {
  border: 1px solid var(--line);
  background: white;
}

.report-initiative-row summary {
  display: grid;
  gap: 4px;
  padding: 10px 38px 10px 10px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.report-initiative-row summary::-webkit-details-marker {
  display: none;
}

.report-initiative-row summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  text-align: center;
  line-height: 20px;
  transform: translateY(-50%);
}

.report-initiative-row[open] summary::after {
  content: "-";
}

.report-initiative-row summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-initiative-row summary strong,
.report-initiative-row summary span {
  font-size: 11px;
  font-weight: 900;
}

.report-initiative-row-body {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.report-initiative-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-initiative-rate strong {
  font-size: 13px;
}

.report-initiative-row-body .attack-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.report-technique-section {
  border-left: 4px solid #1f2937;
}

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

.report-technique-side {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border-top: 4px solid;
  padding: 12px 4px 4px;
}

.report-technique-side.red {
  border-top-color: var(--red);
}

.report-technique-side.blue {
  border-top-color: var(--blue);
}

.report-technique-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.report-technique-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-technique-heading span,
.report-technique-insights span,
.report-technique-insights small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.report-technique-heading span,
.report-technique-insights span {
  text-transform: uppercase;
}

.report-technique-heading strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.report-technique-heading > b {
  font-size: 30px;
}

.report-technique-side.red .report-technique-heading > b {
  color: var(--red);
}

.report-technique-side.blue .report-technique-heading > b {
  color: var(--blue);
}

.report-technique-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #f8fafc;
}

.report-technique-insights article {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px;
}

.report-technique-insights article + article {
  border-left: 1px solid var(--line);
}

.report-technique-insights article:nth-child(4) {
  border-left: 0;
}

.report-technique-insights article:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

.report-technique-insights strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.report-technique-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.report-technique-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: white;
}

.report-technique-table th,
.report-technique-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 7px;
  text-align: right;
  vertical-align: middle;
}

.report-technique-table th:first-child,
.report-technique-table td:first-child {
  text-align: left;
}

.report-technique-table th {
  background: #f2f4f7;
}

.report-technique-table th button,
.report-technique-table th > span {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-technique-table th button {
  cursor: pointer;
}

.report-technique-table th[aria-sort] button {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.report-technique-table td {
  font-size: 11px;
  font-weight: 800;
}

.report-technique-table td:first-child strong,
.report-technique-table td:first-child small {
  display: block;
}

.report-technique-table td:first-child strong {
  font-size: 11px;
}

.report-technique-table td:first-child small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.report-technique-side.red .report-technique-table td b {
  color: var(--red);
}

.report-technique-side.blue .report-technique-table td b {
  color: var(--blue);
}

.report-technique-detail-row td {
  background: #f8fafc;
  padding: 9px;
}

.report-technique-detail-row[hidden] {
  display: none !important;
}

.report-technique-detail-row .attack-video-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
}

@media (max-width: 1100px) {
  .report-technique-columns {
    grid-template-columns: 1fr;
  }
}

.report-leg-section {
  border-left: 4px solid #334155;
}

.report-cloud-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #d7dee7;
  background: #f7f9fb;
}

.report-cloud-notice strong {
  color: #171717;
  white-space: nowrap;
}

.report-cloud-notice span {
  color: #626a74;
  font-size: 13px;
  font-weight: 700;
}

.report-cloud-notice.is-loading {
  border-left: 4px solid #f0ad24;
}

.report-cloud-notice.is-error {
  border-left: 4px solid #e32820;
  background: #fff7f6;
}

@media (max-width: 700px) {
  .report-cloud-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .report-cloud-notice strong {
    white-space: normal;
  }
}

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

.report-leg-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border-top: 4px solid;
  padding: 12px 4px 4px;
}

.report-leg-side.red {
  border-top-color: var(--red);
}

.report-leg-side.blue {
  border-top-color: var(--blue);
}

.report-leg-heading,
.report-leg-cell-title,
.report-leg-cross summary,
.report-leg-cross-body > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-leg-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-leg-heading span,
.report-leg-leaders,
.report-leg-context dt,
.report-leg-cross summary span,
.report-leg-cross-body > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.report-leg-heading span,
.report-leg-context dt {
  text-transform: uppercase;
}

.report-leg-heading strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.report-leg-heading > b {
  font-size: 30px;
}

.report-leg-side.red .report-leg-heading > b,
.report-leg-side.red .report-leg-cell-title > b {
  color: var(--red);
}

.report-leg-side.blue .report-leg-heading > b,
.report-leg-side.blue .report-leg-cell-title > b {
  color: var(--blue);
}

.report-leg-leaders {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.report-leg-leaders span {
  display: inline-flex;
  gap: 5px;
}

.report-leg-leaders strong {
  color: var(--ink);
}

.report-leg-leaders small {
  margin-left: auto;
  color: #9a3412;
  font-weight: 900;
}

.report-leg-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #f8fafc;
}

.report-leg-cell {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.report-leg-cell + .report-leg-cell {
  border-left: 1px solid var(--line);
}

.report-leg-cell-title strong {
  font-size: 13px;
}

.report-leg-cell-title b {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
}

.report-leg-cell-title b small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-leg-bar {
  height: 7px;
  overflow: hidden;
  background: #e2e8f0;
}

.report-leg-bar span {
  display: block;
  width: var(--leg-width);
  height: 100%;
  background: #64748b;
}

.report-leg-side.red .report-leg-bar span {
  background: var(--red);
}

.report-leg-side.blue .report-leg-bar span {
  background: var(--blue);
}

.report-leg-usage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.report-leg-usage b {
  color: var(--ink);
  font-size: 11px;
}

.report-leg-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.report-leg-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-leg-metrics b {
  color: var(--ink);
  font-size: 13px;
}

.report-leg-context {
  display: grid;
  gap: 6px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.report-leg-context > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px;
}

.report-leg-context dt,
.report-leg-context dd {
  margin: 0;
}

.report-leg-context dd {
  font-size: 10px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.report-leg-crosses {
  display: grid;
  gap: 6px;
}

.report-leg-crosses h4 {
  margin: 2px 0;
  font-size: 12px;
}

.report-leg-cross {
  border: 1px solid var(--line);
  background: white;
}

.report-leg-cross summary {
  cursor: pointer;
  padding: 9px;
  list-style-position: inside;
}

.report-leg-cross summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-leg-cross summary strong,
.report-leg-cross summary span {
  overflow-wrap: anywhere;
}

.report-leg-cross summary strong,
.report-leg-cross summary > b {
  font-size: 10px;
}

.report-leg-cross summary > b {
  max-width: 190px;
  text-align: right;
}

.report-leg-cross-body {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 9px;
}

.report-leg-cross-body .attack-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.report-zone-section {
  border-left: 4px solid #0f766e;
}

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

.report-zone-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border-top: 4px solid;
  padding: 12px 4px 4px;
}

.report-zone-side.red {
  border-top-color: var(--red);
}

.report-zone-side.blue {
  border-top-color: var(--blue);
}

.report-zone-heading,
.report-zone-row summary,
.report-zone-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-zone-heading > div:first-child,
.report-zone-row-title,
.report-zone-score,
.report-zone-total {
  display: grid;
  gap: 2px;
}

.report-zone-heading span,
.report-zone-heading small,
.report-zone-leaders,
.report-zone-row-title span,
.report-zone-score small,
.report-zone-total small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.report-zone-heading span,
.report-zone-score small,
.report-zone-total small {
  text-transform: uppercase;
}

.report-zone-heading strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.report-zone-total,
.report-zone-score {
  justify-items: end;
}

.report-zone-total b {
  font-size: 26px;
  line-height: 1;
}

.report-zone-side.red .report-zone-total b,
.report-zone-side.red .report-zone-score b {
  color: var(--red);
}

.report-zone-side.blue .report-zone-total b,
.report-zone-side.blue .report-zone-score b {
  color: var(--blue);
}

.report-zone-leaders {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.report-zone-leaders span {
  display: inline-flex;
  gap: 5px;
}

.report-zone-leaders strong {
  color: var(--ink);
}

.report-zone-leaders > small {
  width: 100%;
  color: #9a3412;
}

.report-zone-list {
  display: grid;
  gap: 8px;
}

.report-zone-row {
  border: 1px solid var(--line);
  background: #f8fafc;
}

.report-zone-row summary {
  cursor: pointer;
  padding: 11px;
  list-style-position: inside;
}

.report-zone-row-title {
  min-width: 0;
}

.report-zone-row-title strong {
  font-size: 14px;
}

.report-zone-score b {
  font-size: 20px;
  line-height: 1;
}

.report-zone-row-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 11px;
  background: white;
}

.report-zone-bar {
  height: 7px;
  overflow: hidden;
  background: #e2e8f0;
}

.report-zone-bar span {
  display: block;
  width: var(--zone-width);
  height: 100%;
}

.report-zone-row.red .report-zone-bar span {
  background: var(--red);
}

.report-zone-row.blue .report-zone-bar span {
  background: var(--blue);
}

.report-zone-metrics {
  align-items: stretch;
}

.report-zone-metrics span {
  flex: 1 1 90px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-zone-metrics b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.report-zone-metrics .received b {
  color: #9a3412;
}

.report-zone-videos {
  display: grid;
  gap: 9px;
}

.report-zone-videos > div {
  display: grid;
  gap: 5px;
}

.report-zone-videos > div > strong {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.report-zone-videos .attack-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.report-guard-section {
  border-left: 4px solid #7c3aed;
}

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

.report-guard-side {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border-top: 4px solid;
  padding: 12px 4px 4px;
}

.report-guard-side.red {
  border-top-color: var(--red);
}

.report-guard-side.blue {
  border-top-color: var(--blue);
}

.report-guard-heading,
.report-guard-row summary,
.report-guard-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-guard-heading > div:first-child,
.report-guard-total,
.report-guard-row-title,
.report-guard-score {
  display: grid;
  gap: 2px;
}

.report-guard-heading span,
.report-guard-heading small,
.report-guard-leaders,
.report-guard-row-title span,
.report-guard-score small,
.report-guard-total small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.report-guard-heading span,
.report-guard-score small,
.report-guard-total small {
  text-transform: uppercase;
}

.report-guard-heading strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.report-guard-total,
.report-guard-score {
  justify-items: end;
}

.report-guard-total b {
  font-size: 26px;
  line-height: 1;
}

.report-guard-side.red .report-guard-total b,
.report-guard-side.red .report-guard-score b {
  color: var(--red);
}

.report-guard-side.blue .report-guard-total b,
.report-guard-side.blue .report-guard-score b {
  color: var(--blue);
}

.report-guard-leaders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.report-guard-leaders span {
  display: inline-flex;
  gap: 5px;
}

.report-guard-leaders strong {
  color: var(--ink);
}

.report-guard-leaders > small {
  width: 100%;
  color: #9a3412;
}

.report-guard-group {
  display: grid;
  gap: 7px;
}

.report-guard-group h4 {
  margin: 0;
  font-size: 12px;
}

.report-guard-list {
  display: grid;
  gap: 7px;
}

.report-guard-row {
  border: 1px solid var(--line);
  background: #f8fafc;
}

.report-guard-row summary {
  cursor: pointer;
  padding: 11px;
  list-style-position: inside;
}

.report-guard-row-title {
  min-width: 0;
}

.report-guard-row-title strong {
  font-size: 14px;
}

.report-guard-score b {
  font-size: 20px;
  line-height: 1;
}

.report-guard-row-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 11px;
  background: white;
}

.report-guard-bar {
  height: 7px;
  overflow: hidden;
  background: #e2e8f0;
}

.report-guard-bar span {
  display: block;
  width: var(--guard-width);
  height: 100%;
}

.report-guard-row.red .report-guard-bar span {
  background: var(--red);
}

.report-guard-row.blue .report-guard-bar span {
  background: var(--blue);
}

.report-guard-metrics {
  align-items: stretch;
}

.report-guard-metrics span {
  flex: 1 1 90px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-guard-metrics b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.report-guard-metrics .received b {
  color: #9a3412;
}

.report-sample-warning {
  margin: 0;
  border-left: 3px solid #f59e0b;
  padding: 7px 9px;
  color: #92400e;
  background: #fffbeb;
  font-size: 10px;
  font-weight: 800;
}

.report-guard-videos {
  display: grid;
  gap: 9px;
}

.report-guard-videos > div {
  display: grid;
  gap: 5px;
}

.report-guard-videos > div > strong {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.report-guard-videos .attack-video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.report-temporal-section {
  border-left: 4px solid #111827;
}

.report-temporal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-temporal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.report-temporal-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.report-temporal-legend i.red {
  background: var(--red);
}

.report-temporal-legend i.blue {
  background: var(--blue);
}

.report-temporal-legend i.warning {
  background: #f59e0b;
}

.report-temporal-chart-block {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  padding: 10px;
  background: white;
}

.report-temporal-chart-heading,
.report-temporal-round-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.report-temporal-chart-heading strong,
.report-temporal-round-heading strong {
  font-size: 13px;
}

.report-temporal-chart-heading span,
.report-temporal-round-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-temporal-chart {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.report-temporal-chart svg {
  display: block;
  width: 100%;
  min-width: 1120px;
  height: auto;
}

.report-temporal-round-heading {
  margin-bottom: 8px;
}

.report-temporal-rounds {
  display: grid;
  gap: 9px;
}

.report-temporal-round {
  border: 1px solid var(--line);
  background: #f8fafc;
}

.report-temporal-round > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  list-style-position: inside;
}

.report-temporal-round-title,
.report-temporal-round-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.report-temporal-round-title strong {
  font-size: 15px;
}

.report-temporal-round-title span,
.report-temporal-round-score small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-temporal-round-score b {
  font-size: 22px;
}

.report-temporal-round-score b.red,
.report-temporal-event > b .red {
  color: var(--red);
}

.report-temporal-round-score b.blue,
.report-temporal-event > b .blue {
  color: var(--blue);
}

.report-temporal-round-score em {
  color: var(--muted);
  font-style: normal;
}

.report-temporal-round-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px;
  background: white;
}

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

.report-temporal-side {
  display: grid;
  gap: 7px;
  border-top: 4px solid;
  padding: 10px;
  background: #f8fafc;
}

.report-temporal-side.red {
  border-top-color: var(--red);
}

.report-temporal-side.blue {
  border-top-color: var(--blue);
}

.report-temporal-side > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
}

.report-temporal-side span,
.report-temporal-side small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.report-temporal-side b {
  font-size: 12px;
}

.report-temporal-events {
  position: relative;
  display: grid;
  gap: 7px;
  padding-left: 12px;
}

.report-temporal-events::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 2px;
  background: #dbe1e8;
}

.report-temporal-event {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 58px auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 5px solid #64748b;
  padding: 8px;
  background: white;
}

.report-temporal-event::before {
  content: "";
  position: absolute;
  left: -14px;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 1px #cbd5e1;
}

.report-temporal-event.red {
  border-left-color: var(--red);
}

.report-temporal-event.blue {
  border-left-color: var(--blue);
}

.report-temporal-event.red::before {
  background: var(--red);
}

.report-temporal-event.blue::before {
  background: var(--blue);
}

.report-temporal-event time {
  font-size: 11px;
  font-weight: 900;
}

.report-temporal-event > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-temporal-event > div strong,
.report-temporal-event > div span {
  overflow-wrap: anywhere;
}

.report-temporal-event > div strong {
  font-size: 11px;
}

.report-temporal-event > div span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.report-temporal-event > b {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
}

.report-temporal-event > b i {
  font-style: normal;
}

@media (max-width: 1100px) {
  .report-leg-columns {
    grid-template-columns: 1fr;
  }

  .report-zone-columns {
    grid-template-columns: 1fr;
  }

  .report-guard-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .report-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-overview-metric + .report-overview-metric {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .report-overview-metric:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .report-points-columns {
    grid-template-columns: 1fr;
  }

  .report-received-columns {
    grid-template-columns: 1fr;
  }

  .report-effectiveness-columns {
    grid-template-columns: 1fr;
  }

  .report-initiative-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .report-overview-title {
    display: grid;
    align-items: start;
  }

  .report-overview-title em {
    justify-self: start;
  }

  .report-overview-scoreboard {
    grid-template-columns: 1fr;
  }

  .report-overview-result {
    min-height: 74px;
    border: 1px solid var(--line);
    order: -1;
  }

  .report-overview-competitor > b {
    font-size: 30px;
  }

  .report-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-breakdown-meta {
    display: grid;
  }

  .report-breakdown-meta > div {
    flex-wrap: wrap;
  }

  .report-received-factors {
    grid-template-columns: 1fr;
  }

  .report-effectiveness-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-effectiveness-metrics article:nth-child(n) {
    grid-column: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .report-effectiveness-metrics article:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .report-technique-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-technique-insights article:nth-child(n) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .report-technique-insights article:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .report-technique-table-wrap {
    overflow: visible;
    border: 0;
  }

  .report-technique-table,
  .report-technique-table tbody,
  .report-technique-table tr,
  .report-technique-table td {
    display: block;
    width: 100%;
  }

  .report-technique-table {
    min-width: 0;
  }

  .report-technique-table thead {
    display: none;
  }

  .report-technique-main-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
    border: 1px solid var(--line);
  }

  .report-technique-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }

  .report-technique-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .report-technique-table td:first-child,
  .report-technique-table td:last-child {
    grid-column: 1 / -1;
  }

  .report-technique-table td:first-child {
    text-align: right;
  }

  .report-technique-detail-row:not([hidden]) {
    display: block;
    border: 1px solid var(--line);
    border-top: 0;
  }

  .report-technique-detail-row td {
    display: block;
    border-bottom: 0;
  }

  .report-technique-detail-row td::before {
    content: none;
  }

  .report-leg-comparison {
    grid-template-columns: 1fr;
  }

  .report-leg-cell + .report-leg-cell {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .report-leg-leaders small {
    width: 100%;
    margin-left: 0;
  }

  .report-leg-cross summary {
    align-items: flex-start;
  }

  .report-leg-cross summary > b {
    max-width: 120px;
  }

  .report-zone-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-zone-metrics .received {
    grid-column: 1 / -1;
  }

  .report-guard-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-guard-metrics .received {
    grid-column: 1 / -1;
  }

  .report-temporal-round > summary,
  .report-temporal-round-title,
  .report-temporal-round-score {
    align-items: flex-start;
  }

  .report-temporal-round > summary {
    flex-direction: column;
  }

  .report-temporal-round-score small {
    align-self: center;
  }

  .report-temporal-chart-heading,
  .report-temporal-round-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .report-temporal-side-comparison {
    grid-template-columns: 1fr;
  }

  .report-temporal-event {
    grid-template-columns: 44px minmax(0, 1fr) 48px;
  }

  .report-temporal-event .mini-button {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* Directorios administrativos escalables */
.admin-directory-section {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: clip;
}

.admin-directory-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.admin-directory-section > summary::-webkit-details-marker {
  display: none;
}

.admin-directory-section > summary::after {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  content: "+";
  display: grid;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  place-items: center;
}

.admin-directory-section[open] > summary::after {
  content: "-";
}

.admin-directory-section > summary > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-directory-section > summary strong {
  color: var(--ink);
  font-size: 16px;
}

.admin-directory-section > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section-count {
  margin-left: auto;
  border-radius: 4px;
  background: #edf1f5;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.section-count.has-alerts {
  background: #fff0cc;
  color: #704c00;
}

.admin-directory-body {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.directory-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.directory-toolbar input {
  width: min(100%, 360px);
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 0 12px;
}

.organization-admin-actions {
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) 100px auto auto;
}

.club-directory-actions {
  grid-template-columns: auto minmax(170px, 1fr) minmax(130px, 0.65fr) auto auto;
}

.duplicate-review-list {
  display: grid;
  gap: 10px;
}

.duplicate-review-card {
  border: 1px solid var(--line);
  border-left: 4px solid #e0a11d;
  border-radius: 6px;
  background: #fffdf6;
  padding: 12px;
}

.duplicate-review-card header,
.duplicate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.duplicate-review-card header strong {
  font-size: 12px;
}

.duplicate-type {
  color: #704c00;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.duplicate-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.duplicate-comparison > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 10px;
}

.duplicate-comparison strong,
.duplicate-comparison span {
  overflow-wrap: anywhere;
}

.duplicate-comparison > div span,
.duplicate-empty-state span {
  color: var(--muted);
  font-size: 11px;
}

.duplicate-versus {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.duplicate-actions {
  justify-content: flex-end;
}

.duplicate-empty-state {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 18px;
  text-align: center;
}

@media (max-width: 760px) {
  .admin-directory-section > summary {
    align-items: flex-start;
    gap: 8px;
    padding: 11px 12px;
  }

  .admin-directory-section > summary small {
    display: none;
  }

  .admin-directory-section > summary .section-count {
    margin-left: 0;
  }

  .admin-directory-body {
    padding: 12px;
  }

  .duplicate-comparison {
    grid-template-columns: 1fr;
  }

  .duplicate-versus {
    text-align: center;
  }

  .duplicate-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .duplicate-actions button,
  .directory-toolbar input {
    width: 100%;
  }

  .organization-admin-actions,
  .club-directory-actions {
    grid-template-columns: 1fr;
  }

  .club-directory-actions .status-pill {
    grid-column: auto;
  }
}

.report-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.report-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.collapsible-section {
  overflow: hidden;
}

.collapsible-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  list-style: none;
}

.collapsible-section > summary::-webkit-details-marker {
  display: none;
}

.collapsible-section > summary::after {
  content: "+";
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  place-items: center;
}

.collapsible-section[open] > summary::after {
  content: "-";
}

.collapsible-section > summary em {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.collapsible-body {
  margin-top: 12px;
}

.profile-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

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

.tactical-pattern-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.tactical-pattern-panel.red {
  border-top-color: var(--red);
}

.tactical-pattern-panel.blue {
  border-top-color: var(--blue);
}

.tactical-pattern-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tactical-pattern-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tactical-pattern-heading > div > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.tactical-pattern-heading > div > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.pattern-confidence {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.pattern-confidence.is-high {
  border-color: #0f8a6b;
  color: #087259;
}

.pattern-confidence.is-medium {
  border-color: #b47a00;
  color: #805700;
}

.pattern-confidence.is-initial {
  border-color: #637083;
  color: #4c5665;
}

.tactical-pattern-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.tactical-pattern-overview span {
  border: 1px solid var(--line);
  padding: 7px 8px;
  background: white;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.tactical-pattern-overview b {
  color: var(--ink);
  font-size: 14px;
}

.tactical-pattern-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tactical-pattern-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: white;
}

.tactical-pattern-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tactical-pattern-card-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.tactical-pattern-card-heading em {
  flex: 0 0 auto;
  min-width: 25px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.tactical-pattern-card > strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.tactical-pattern-usage {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  background: #e7ebf0;
}

.tactical-pattern-usage span {
  display: block;
  width: var(--pattern-width);
  height: 100%;
  background: var(--ink);
}

.tactical-pattern-panel.red .tactical-pattern-usage span {
  background: var(--red);
}

.tactical-pattern-panel.blue .tactical-pattern-usage span {
  background: var(--blue);
}

.tactical-pattern-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.tactical-pattern-metrics b {
  margin-left: auto;
  color: var(--ink);
}

.tactical-pattern-card p,
.pattern-empty,
.pattern-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.report-conclusion-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.report-conclusion-roadmap > span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 8px;
  min-width: 0;
  padding: 10px 12px;
  background: #f7f8fa;
}

.report-conclusion-roadmap b {
  grid-row: 1 / span 2;
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 12px;
  place-items: center;
}

.report-conclusion-roadmap strong,
.report-conclusion-roadmap small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-conclusion-roadmap strong {
  font-size: 13px;
}

.report-conclusion-roadmap small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.tactical-recommendation-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.tactical-recommendation-panel.red {
  border-top-color: var(--red);
}

.tactical-recommendation-panel.blue {
  border-top-color: var(--blue);
}

.tactical-recommendation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tactical-recommendation-heading > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.recommendation-group + .recommendation-group {
  margin-top: 12px;
}

.recommendation-group h4 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.recommendation-group > div {
  display: grid;
  gap: 6px;
}

.recommendation-group article {
  min-width: 0;
  border-left: 4px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
}

.recommendation-group.strength article {
  border-left-color: var(--green);
}

.recommendation-group.improvement article {
  border-left-color: #d5a22c;
}

.recommendation-group.recommendation article {
  border-left-color: var(--ink);
}

.recommendation-group article strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.recommendation-group article p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.conclusion-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conclusion-card-heading em {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.pattern-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.pattern-evidence .mini-button,
.pattern-evidence-missing {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 10px;
}

.pattern-evidence-missing {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.pattern-note {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 8px;
}

.profile-card .report-header,
.profile-card .report-actions {
  grid-template-columns: 1fr;
}

.profile-card .report-actions {
  justify-content: stretch;
}

.report-visual {
  width: 100%;
  min-height: 250px;
  overflow: auto;
}

.report-visual svg {
  width: 100%;
  min-width: 760px;
  height: auto;
  display: block;
}

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

.conclusion-card {
  border-left: 5px solid var(--ink);
  border-radius: 8px;
  background: #f7f7f4;
  padding: 12px 14px;
}

.conclusion-card.red {
  border-left-color: var(--red);
}

.conclusion-card.blue {
  border-left-color: var(--blue);
}

.conclusion-card span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.conclusion-card h4 {
  font-size: 18px;
  margin: 4px 0 8px;
}

.conclusion-card p {
  color: #333;
  line-height: 1.45;
  margin: 0;
}

.export-band p {
  max-width: 760px;
  margin: 8px 0 14px;
  color: var(--muted);
}

.finish-controls {
  align-items: center;
}

.finish-controls select {
  width: auto;
  min-width: 150px;
}

.admin-shell {
  display: grid;
  gap: 16px;
  padding: 16px;
  min-width: 0;
}

.admin-shell > *,
.admin-section,
.account-shell,
.report-shell,
.management-card,
.championship-division,
.organization-list,
.table-wrap {
  min-width: 0;
}

.pending-alert-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid #f1c36d;
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: #fff8e8;
  padding: 12px 14px;
}

.pending-alert-panel strong,
.pending-alert-panel span {
  display: block;
}

.pending-alert-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.alert-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 11px;
  line-height: 20px;
  place-items: center;
}

.admin-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.admin-analysis-row {
  grid-template-columns: minmax(220px, 1fr) minmax(280px, auto);
}

.admin-analysis-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto auto;
  gap: 8px;
  align-items: center;
}

.admin-analysis-actions select,
.admin-analysis-actions button,
.sync-actions button,
.admin-form-actions button,
.organization-admin-actions input,
.organization-admin-actions select,
.organization-admin-actions button {
  min-width: 0;
}

.access-gate {
  display: grid;
  min-height: calc(100vh - 130px);
  place-items: center;
}

.access-gate[hidden],
.tabs[hidden],
.view[hidden] {
  display: none !important;
}

.access-card {
  display: grid;
  grid-template-columns: auto minmax(220px, 420px);
  gap: 16px;
  width: min(760px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.access-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.password-login-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
}

.password-login-form p {
  grid-column: 1 / -1;
}

.password-recovery-trigger {
  grid-column: 1 / -1;
  justify-self: start;
}

.password-recovery-dialog {
  width: min(520px, calc(100% - 32px));
}

.password-recovery-dialog label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.access-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.access-actions p {
  flex: 1 1 240px;
}

.google-json-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f7f7f4;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
}

.muted-copy {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.admin-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1.1fr) minmax(130px, 0.7fr) minmax(160px, 0.8fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
}

.user-permissions-field {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.user-permissions-field legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-permissions-field .check-row {
  min-height: 28px;
}

.sync-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7f4;
}

.sync-panel[hidden] {
  display: none !important;
}

.sync-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.sync-actions,
.manual-sync-list,
.profile-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sync-actions {
  justify-content: flex-end;
}

.manual-sync-links {
  margin-top: 10px;
}

.manual-sync-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.report-action-table-wrap {
  overflow: auto;
}

.report-action-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.report-action-table th,
.report-action-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.report-action-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.report-action-table tr.red td:first-child {
  border-left: 4px solid var(--red);
}

.report-action-table tr.blue td:first-child {
  border-left: 4px solid var(--blue);
}

.report-action-type-summary {
  display: grid;
  gap: 10px;
}

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

.report-action-type-legend span {
  min-width: 0;
  border-top: 4px solid var(--ink);
  padding: 7px 2px 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
}

.report-action-type-legend .red {
  border-color: var(--red);
  color: var(--red);
}

.report-action-type-legend .blue {
  border-color: var(--blue);
  color: var(--blue);
}

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

.report-action-type-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) repeat(2, minmax(0, 1fr));
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fa;
}

.report-action-type-row h4 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 12px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.report-action-type-side {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1px 5px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 10px;
  background: white;
}

.report-action-type-side strong {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 24px;
  line-height: 1;
}

.report-action-type-side.red strong {
  color: var(--red);
}

.report-action-type-side.blue strong {
  color: var(--blue);
}

.report-action-type-side span,
.report-action-type-side small,
.report-action-type-side em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-action-type-side span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-action-type-side small,
.report-action-type-side em {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.report-action-type-side em {
  margin-top: 0;
  color: var(--ink);
}

.report-action-timeline,
.report-history-list {
  display: grid;
}

.report-action-timeline {
  gap: 16px;
}

.report-history-round {
  min-width: 0;
}

.report-history-round-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 8px;
}

.report-history-round-heading strong {
  font-size: 15px;
}

.report-history-round-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.report-history-list {
  padding-top: 8px;
}

.report-history-action {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  position: relative;
  padding: 0 0 10px;
}

.report-history-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px;
  gap: 6px;
  align-items: start;
  position: relative;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.report-history-time time {
  padding-top: 7px;
  text-align: right;
}

.report-history-time span {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: white;
  z-index: 1;
}

.report-history-action.red .report-history-time span {
  border-color: var(--red);
}

.report-history-action.blue .report-history-time span {
  border-color: var(--blue);
}

.report-history-action:not(:last-child) .report-history-time::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 4px;
  bottom: -8px;
  width: 2px;
  background: var(--line);
}

.report-history-content {
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 8px;
  padding: 9px 10px;
  background: white;
}

.report-history-action.red .report-history-content {
  border-left-color: var(--red);
}

.report-history-action.blue .report-history-content {
  border-left-color: var(--blue);
}

.report-history-meta,
.report-history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.report-history-meta span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-history-meta strong,
.report-history-title strong,
.report-history-content p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-history-meta strong {
  font-size: 11px;
}

.report-history-title {
  margin-top: 5px;
}

.report-history-title strong {
  font-size: 13px;
}

.report-history-title b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  background: #eef1f4;
  font-size: 10px;
}

.report-history-action.red .report-history-title b {
  color: var(--red);
}

.report-history-action.blue .report-history-title b {
  color: var(--blue);
}

.report-history-content p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.report-history-video {
  align-self: center;
}

.profile-history {
  display: grid;
  gap: 8px;
}

.profile-match-list {
  display: grid;
  gap: 8px;
}

.profile-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--ink);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfd;
}

.profile-match-row.red {
  border-left-color: var(--red);
}

.profile-match-row.blue {
  border-left-color: var(--blue);
}

.profile-match-row strong,
.profile-match-row small {
  display: block;
}

.profile-match-row small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

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

.management-club-membership {
  margin: 0 0 16px;
}

.management-club-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.4fr);
  align-items: end;
  gap: 20px;
  border-left: 4px solid #13866f;
}

.management-club-card > .status-pill {
  justify-self: end;
  align-self: center;
}

.management-club-join-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.management-club-join-form .youtube-status {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 760px) {
  .management-club-card,
  .management-club-join-form {
    grid-template-columns: 1fr;
  }

  .management-club-card > .status-pill,
  .management-club-join-form .youtube-status {
    grid-column: 1;
    justify-self: start;
  }
}

.management-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  box-shadow: var(--shadow);
}

.management-card.full-span {
  grid-column: 1 / -1;
}

.compact-title h3 {
  margin: 0;
  font-size: 18px;
}

.compact-title input {
  max-width: 320px;
}

.management-list,
.championship-list {
  display: grid;
  gap: 8px;
}

.management-row,
.championship-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.management-row strong,
.management-row small,
.championship-row strong,
.championship-row small {
  display: block;
}

.management-row small,
.championship-row small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.danger-mini {
  border-color: var(--red);
  color: var(--red);
}

.championship-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.championship-participants span {
  border-radius: 999px;
  background: #eef1f5;
  padding: 6px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
}

.check-row input {
  width: auto;
  min-height: 0;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.users-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: white;
}

.users-table th,
.users-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.users-table th {
  background: #f1f2f4;
  font-size: 12px;
  text-transform: uppercase;
}

.users-table td {
  font-size: 13px;
  font-weight: 700;
}

.users-table .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-subtitle {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.mini-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e8f5ef;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.status-pill.is-off {
  background: #f3e4e2;
  color: var(--red);
}

pre {
  overflow: auto;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: #f7f7f4;
  font-size: 12px;
}

.conclusions-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.conclusions-dialog::backdrop {
  background: rgba(21, 21, 21, 0.62);
}

.conclusions-dialog form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.dialog-heading,
.dialog-actions,
.inline-video-heading,
.attack-video-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.conclusion-input-grid label {
  display: grid;
  gap: 8px;
  border-top: 4px solid var(--line);
  padding-top: 12px;
}

.conclusion-input-grid .red-conclusion-input {
  border-top-color: var(--red);
}

.conclusion-input-grid .blue-conclusion-input {
  border-top-color: var(--blue);
}

.conclusion-input-grid textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  line-height: 1.45;
}

.dialog-actions {
  justify-content: flex-end;
}

.top-attacks {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.top-attacks h4 {
  margin: 0;
  font-size: 16px;
}

.top-attacks .compact-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.top-attack-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.top-attack-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(210px, 1fr) minmax(230px, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.top-attack-row > *,
.profile-match-row > *,
.report-header > * {
  min-width: 0;
}

.top-attack-row strong,
.top-attack-row span,
.profile-card h3,
.profile-heading span,
.profile-match-row strong,
.profile-match-row small,
.report-header h2,
.report-meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.top-attack-row > span,
.top-attack-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.report-scoring-side {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: #f7f8fa;
}

.report-scoring-side.red {
  border-top-color: var(--red);
}

.report-scoring-side.blue {
  border-top-color: var(--blue);
}

.report-scoring-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.report-scoring-heading > span {
  grid-column: 1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-scoring-heading > strong {
  grid-column: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.report-scoring-heading > div {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  justify-items: end;
}

.report-scoring-heading b {
  font-size: 28px;
  line-height: 1;
}

.report-scoring-side.red .report-scoring-heading b {
  color: var(--red);
}

.report-scoring-side.blue .report-scoring-heading b {
  color: var(--blue);
}

.report-scoring-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
}

.report-scoring-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.profile-scoring-list {
  margin-top: 0;
}

.report-scoring-action {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 7px;
  padding: 8px;
  background: white;
}

.report-scoring-action.red {
  border-left-color: var(--red);
}

.report-scoring-action.blue {
  border-left-color: var(--blue);
}

.report-scoring-points {
  display: grid;
  justify-items: center;
  border-right: 1px solid var(--line);
  padding-right: 8px;
}

.report-scoring-points strong {
  font-size: 20px;
  line-height: 1;
}

.report-scoring-action.red .report-scoring-points strong {
  color: var(--red);
}

.report-scoring-action.blue .report-scoring-points strong {
  color: var(--blue);
}

.report-scoring-points span,
.report-scoring-content > span,
.report-scoring-content small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.report-scoring-content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-scoring-content > span,
.report-scoring-content strong,
.report-scoring-content small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-scoring-content strong {
  font-size: 12px;
}

.report-scoring-video {
  justify-self: end;
}

.report-scoring-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.attack-video-links {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.inline-video-viewer {
  scroll-margin-top: 16px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f7faf9;
  padding: 12px;
}

.inline-video-viewer[hidden] {
  display: none;
}

.inline-video-heading {
  margin-bottom: 10px;
}

.inline-video-heading span,
.inline-video-heading strong {
  display: block;
}

.inline-video-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inline-video-media {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  background: #111;
  aspect-ratio: 16 / 9;
}

.inline-video-media iframe,
.inline-video-media video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.video-unavailable {
  display: grid;
  place-items: center;
  gap: 12px;
  color: white;
  text-align: center;
}

.action-video-button {
  min-height: 34px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: white;
  color: inherit;
  padding: 0 9px;
  font-weight: 900;
}

.report-action-marker {
  cursor: pointer;
}

.report-action-marker:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.championship-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr));
  gap: 10px;
  padding: 14px clamp(14px, 3vw, 32px);
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.championship-filters label,
.report-picker {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.championship-dashboard {
  display: grid;
  gap: 16px;
  padding: 18px clamp(14px, 3vw, 32px) 36px;
}

.championship-empty {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.championship-empty p {
  margin-top: 6px;
  color: var(--muted);
}

.championship-division-list {
  display: grid;
  gap: 16px;
}

.championship-division {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.championship-division > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.championship-division header span,
.championship-division header p,
.division-highlight span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.championship-division header h3 {
  margin: 3px 0;
  font-size: 20px;
}

.division-highlight {
  display: grid;
  gap: 3px;
  min-width: 160px;
  text-align: right;
}

.standings-wrap {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.standings-table th,
.standings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.standings-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.division-matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  padding: 12px;
  background: #f7f8fa;
}

.championship-report-button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.championship-report-button:hover {
  border-color: var(--ink);
}

.championship-report-button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.profile-evolution,
.training-goals {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.evolution-list,
.goal-list,
.backup-list {
  display: grid;
  gap: 7px;
}

.evolution-row,
.goal-row,
.backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--line);
  background: #f7f8fa;
}

.evolution-row.is-win { border-left-color: #13946f; }
.evolution-row.is-loss { border-left-color: var(--red); }

.evolution-row > div,
.goal-row > div,
.backup-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.evolution-row span,
.evolution-row small,
.goal-row span,
.backup-row span {
  color: var(--muted);
  font-size: 12px;
}

.evolution-row b { font-size: 20px; }

.goal-source {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--yellow);
  background: #fff8e8;
  line-height: 1.45;
}

.goal-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.goal-suggestion {
  padding: 7px 9px;
  border: 1px solid #b8c2cf;
  border-radius: 6px;
  background: white;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.goal-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(145px, 190px) auto;
  align-items: end;
  gap: 8px;
  margin-bottom: 10px;
}

.goal-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.goal-row.is-complete {
  border-left-color: var(--green);
  opacity: 0.72;
}

.goal-row.is-complete strong { text-decoration: line-through; }

.backup-band {
  padding: 18px clamp(14px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.report-picker select { max-width: 320px; }
body[data-readonly-report="true"] .topbar { position: static; }
body[data-readonly-report="true"] #report-view { display: block; }

@media (max-width: 980px) {
  .topbar,
  .brand-block,
  .section-title,
  .wide-title {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-grid,
  .fighters-grid,
  .saved-match-bar,
  .workbench,
  .action-pad,
  .dashboard-band,
  .admin-form,
  .admin-analysis-row,
  .admin-analysis-actions,
  .password-login-form,
  .sync-panel,
  .access-card,
  .compare-controls,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    padding: 12px;
    gap: 12px;
    overflow-x: hidden;
  }

  .admin-section {
    padding: 12px;
  }

  .admin-analysis-row,
  .organization-admin-row,
  .organization-row,
  .club-member-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-analysis-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-analysis-actions select,
  .admin-analysis-actions button,
  .sync-actions button,
  .admin-form-actions button,
  .organization-admin-actions input,
  .organization-admin-actions select,
  .organization-admin-actions button,
  .member-role-select {
    width: 100%;
  }

  .sync-actions,
  .admin-form-actions {
    justify-content: stretch;
  }

  .users-table,
  .report-action-table,
  .standings-table {
    min-width: 720px;
  }

  .profile-match-row {
    grid-template-columns: 1fr;
  }

  .profiles-list {
    grid-template-columns: 1fr;
  }

  .report-shell {
    padding: 14px;
  }

  .report-header {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }

  .report-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .report-list-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .report-actions .ghost-button,
  .report-picker,
  .report-picker select {
    width: 100%;
    max-width: none;
  }

  .report-logo {
    width: 64px;
    height: 64px;
  }

  .report-grid {
    gap: 12px;
  }

  .report-visual svg {
    min-width: 620px;
  }

  .profile-card {
    padding: 12px;
  }

  .profile-card h3 {
    font-size: 20px;
  }

  .management-grid,
  .management-row,
  .championship-row {
    grid-template-columns: 1fr;
  }

  .championship-participants {
    justify-content: flex-start;
  }

  .championship-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .championship-filters label:first-child {
    grid-column: 1 / -1;
  }

  .timer-strip {
    grid-template-columns: 1fr 1fr;
  }

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

  .red-side-panel {
    grid-column: 1;
    order: 2;
  }

  .blue-side-panel {
    grid-column: 2;
    order: 2;
  }

  .control-panel {
    grid-column: 1 / -1;
    order: 3;
  }

  .side-panel,
  .video-panel {
    position: static;
  }

  .video-panel {
    grid-column: 1 / -1;
    order: 1;
  }

  .action-pad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .quick-action-log {
    max-height: 240px;
  }

  .timer-buttons {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .topbar {
    position: static;
    gap: 10px;
    padding: 10px;
    backdrop-filter: none;
  }

  .brand-block {
    flex-direction: row;
    align-items: center;
  }

  .club-logo {
    width: 44px;
    height: 44px;
  }

  .brand-block h1 {
    font-size: 24px;
  }

  .project-credit {
    display: none;
  }

  main {
    padding: 10px;
    overflow-x: hidden;
  }

  .admin-shell {
    margin-inline: -2px;
    padding: 10px;
  }

  .sync-panel {
    gap: 10px;
    padding: 12px;
  }

  .sync-actions,
  .admin-form-actions,
  .row-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-analysis-actions,
  .organization-admin-actions {
    grid-template-columns: 1fr;
  }

  .admin-section,
  .admin-form,
  .account-form,
  .subscription-form {
    padding: 10px;
  }

  .admin-form {
    gap: 10px;
  }

  .user-permissions-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .table-wrap {
    margin-inline: -2px;
    border-radius: 6px;
  }

  .users-table,
  .report-action-table,
  .standings-table {
    min-width: 640px;
    font-size: 12px;
  }

  .users-table th,
  .users-table td,
  .report-action-table th,
  .report-action-table td,
  .standings-table th,
  .standings-table td {
    padding: 8px;
  }

  .member-identity {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .member-photo {
    width: 42px;
    height: 52px;
  }

  .status-pill {
    justify-self: flex-start;
  }

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

  .red-side-panel,
  .blue-side-panel,
  .video-panel,
  .control-panel {
    grid-column: 1;
  }

  .red-side-panel {
    order: 2;
  }

  .blue-side-panel {
    order: 3;
  }

  .control-panel {
    order: 4;
  }

  .quick-action-log {
    max-height: 220px;
  }

  .tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: 3px;
  }

  .tab,
  .logout-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
  }

  .championship-filters {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }

  .championship-filters label:first-child {
    grid-column: 1 / -1;
  }

  .championship-dashboard {
    padding: 10px;
  }

  .championship-division > header,
  .evolution-row,
  .goal-row,
  .backup-row {
    align-items: stretch;
    flex-direction: column;
  }

  .division-highlight {
    min-width: 0;
    text-align: left;
  }

  .goal-form {
    grid-template-columns: 1fr;
  }

  .goal-form textarea,
  .goal-form input,
  .goal-form button {
    width: 100%;
  }

  .setup-band {
    padding: 10px;
  }

  .score-side {
    min-height: 86px;
    padding: 10px;
  }

  .score-side strong {
    font-size: 40px;
  }

  .action-pad {
    gap: 7px;
    padding: 10px;
  }

  .action-pad::before {
    grid-column: 1 / -1;
    min-height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  body[data-selected-competitor="red"] .action-pad::before {
    content: "Registrando rojo";
    background: var(--red);
  }

  body[data-selected-competitor="blue"] .action-pad::before {
    content: "Registrando azul";
    background: var(--blue);
  }

  .choice-row,
  .choice-row:has(.choice:nth-child(3)),
  .four-choice,
  .choice-row.four-choice:has(.choice:nth-child(3)),
  .combo-detail-field,
  .points-row,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profiles-list {
    grid-template-columns: 1fr;
  }

  .choice-row.points-row,
  .choice-row.points-row:has(.choice:nth-child(3)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .choice {
    min-height: 44px;
    padding: 6px;
    font-size: 12px;
    line-height: 1.1;
  }

  .four-choice .choice {
    font-size: 14px;
  }

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

  .conclusion-input-grid,
  .top-attack-row,
  .tactical-pattern-columns,
  .report-scoring-columns {
    grid-template-columns: 1fr;
  }

  .report-scoring-action {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .report-scoring-video {
    grid-column: 2;
    justify-self: start;
  }

  .tactical-pattern-grid {
    grid-template-columns: 1fr;
  }

  .tactical-pattern-overview {
    grid-template-columns: 1fr;
  }

  .attack-video-links {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .attack-video-links .mini-button,
  .attack-video-links small {
    width: 100%;
  }

  .report-shell {
    padding: 10px;
  }

  .report-browser {
    padding: 10px;
  }

  .report-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .report-logo {
    width: 54px;
    height: 54px;
  }

  .report-competitor-photos {
    flex-wrap: wrap;
  }

  .report-match-title {
    display: grid;
    grid-template-columns: 1fr;
    font-size: 15px;
  }

  .report-name {
    width: 100%;
    flex-basis: auto;
    font-size: 13px;
  }

  .report-vs {
    justify-self: start;
  }

  .report-actions {
    grid-template-columns: 1fr;
  }

  .report-list-row .row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-card {
    padding: 10px;
  }

  .report-card h3 {
    font-size: 16px;
  }

  .report-visual {
    min-height: 210px;
  }

  .report-visual svg {
    min-width: 520px;
  }

  .inline-video-media {
    max-width: 100%;
  }

  .profile-card {
    gap: 12px;
    padding: 10px;
  }

  .profile-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .profile-heading .toggle-profile-detail {
    grid-column: 1 / -1;
    margin-left: 0;
    width: 100%;
  }

  .profile-photo {
    width: 58px;
    height: 72px;
  }

  .profile-card h3 {
    font-size: 18px;
    line-height: 1.15;
  }

  .profile-card > .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-card.is-open {
    padding: 10px;
  }

  .profile-overview-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .profile-card .metric {
    padding: 10px;
  }

  .profile-card .metric strong {
    font-size: 18px;
  }

  .dna {
    font-size: 13px;
  }

  .dialog-heading,
  .inline-video-heading {
    align-items: flex-start;
  }
}

@media print {
  .action-pad.action-flow,
  .competitor-status-bar {
    display: none !important;
  }
}

.account-shell {
  display: grid;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.account-heading h2 {
  margin-top: 4px;
}

.account-shell > .stats-grid {
  padding: 16px 20px;
  background: #f4f6f8;
  border-bottom: 1px solid var(--line);
}

.account-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.account-section:last-child {
  border-bottom: 0;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.account-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-form input,
.account-form select {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 0 10px;
  color: var(--ink);
}

.share-form {
  grid-template-columns: minmax(180px, 2fr) minmax(180px, 1.5fr) minmax(140px, 1fr) auto;
}

.account-form .youtube-status {
  grid-column: 1 / -1;
}

.account-profile-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.account-professional-summary {
  grid-template-columns: minmax(0, 1fr);
}

.account-profile-summary span,
.account-profile-summary p,
.account-match-row span,
.account-match-row small,
.account-share-row span {
  color: var(--muted);
  font-size: 12px;
}

.account-photo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f4;
  font-weight: 900;
}

.account-profile-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.account-photo-button {
  position: relative;
  cursor: pointer;
}

.account-photo-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.account-match-list,
.account-share-list {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.trainer-invitation-form {
  grid-template-columns: minmax(200px, 1fr) minmax(240px, 2fr) auto;
  margin-top: 18px;
}

.organization-form,
.club-invitation-form {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
}

.subscription-title {
  margin-top: 24px;
}

.subscription-form {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.subscription-solo_lectura {
  background: #fff4cc;
  color: #6f5200;
}

.subscription-suspendida {
  background: #ffe1e1;
  color: #8b1111;
}

.organization-list {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.organization-row,
.club-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.organization-row > div,
.club-member-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.organization-row span,
.club-member-row span {
  color: var(--muted);
  font-size: 12px;
}

.organization-admin-row {
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.25fr);
}

.organization-admin-actions {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) 100px auto;
  gap: 8px;
  align-items: center;
}

.organization-admin-actions input,
.organization-admin-actions select {
  min-height: 34px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 0 8px;
}

.club-directory-row .status-pill {
  justify-self: end;
}

.directory-summary,
.directory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.directory-summary {
  padding: 9px 2px;
  color: var(--muted);
}

.directory-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.directory-summary span,
.directory-pagination span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.directory-pagination {
  justify-content: center;
  padding: 12px 0 4px;
}

.directory-pagination .mini-button {
  min-width: 92px;
}

.directory-pagination .mini-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.organization-compact-identity small,
.club-directory-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-admin-row,
.club-directory-row.is-editable {
  min-height: 64px;
  padding: 8px 0;
}

.club-directory-actions {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr) minmax(130px, 0.65fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.club-directory-actions select {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 0 8px;
}

.club-directory-row.is-editable {
  grid-template-columns: minmax(260px, 0.85fr) minmax(520px, 1.35fr);
}

.club-directory-row.is-editable .status-pill {
  justify-self: start;
  white-space: nowrap;
}

.member-role-select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 0 8px;
}

.member-identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.member-identity > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.member-photo {
  display: grid;
  width: 44px;
  height: 55px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #eef1f5;
  object-fit: cover;
  place-items: center;
  font-size: 12px;
}

.trainer-competitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.trainer-competitor-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.trainer-competitor-card img,
.trainer-competitor-card .account-photo {
  width: 54px;
  height: 66px;
  object-fit: cover;
}

.trainer-competitor-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.trainer-competitor-card span,
.trainer-competitor-card small {
  color: var(--muted);
  font-size: 12px;
}

.account-match-row,
.account-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.account-match-row > div:first-child,
.account-share-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-sync-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #edf8f4;
}

.account-sync-status > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-sync-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-sync-status strong {
  overflow-wrap: anywhere;
}

.account-sync-status.is-syncing {
  border-left-color: #d08a00;
  background: #fff7df;
}

.account-sync-status.has-pending,
.account-sync-status.has-error {
  border-left-color: var(--red);
  background: #fff0ef;
}

@media (max-width: 760px) {
  #account-view,
  #account-view * {
    box-sizing: border-box;
  }

  #account-view {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .account-shell,
  .account-section,
  .account-heading,
  .account-shell > .stats-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .account-heading {
    align-items: flex-start;
  }

  .account-sync-status {
    align-items: stretch;
    flex-direction: column;
  }

  .account-sync-status .ghost-button {
    width: 100%;
  }

  .account-form,
  .share-form,
  .trainer-invitation-form,
  .organization-form,
  .club-invitation-form,
  .subscription-form,
  .account-profile-summary,
  .account-match-row,
  .account-share-row,
  .trainer-competitor-card,
  .organization-row,
  .club-member-row {
    grid-template-columns: 1fr;
  }

  .account-profile-summary .ghost-button,
  .account-form .primary-action {
    width: 100%;
  }

  .account-profile-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .account-match-row .row-actions {
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }

  .account-form input,
  .account-form select,
  .account-form textarea,
  .account-form button,
  .account-profile-summary,
  .account-share-list,
  .account-match-list,
  .trainer-competitor-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .organization-admin-actions {
    grid-template-columns: 1fr;
  }

  .club-directory-row.is-editable {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .club-directory-actions {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.55fr) auto;
  }

  .club-directory-actions .status-pill {
    grid-column: 1 / -1;
  }

  .club-directory-row .status-pill {
    justify-self: flex-start;
  }
}

@media print {
  .topbar,
  .setup-band,
  .action-pad,
  .timer-buttons,
  .video-loader,
  video,
  .export-actions,
  .ghost-button,
  .tabs {
    display: none !important;
  }

  .inline-video-viewer {
    display: none !important;
  }

  .view {
    display: none !important;
  }

  #report-view {
    display: block !important;
  }

  .report-shell {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .report-header,
  .report-card h3 {
    display: none !important;
  }

  .report-grid {
    margin-top: 0;
    gap: 10px;
  }

  .report-chapter {
    border: 0;
    break-inside: auto;
  }

  .report-chapter > summary {
    min-height: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  .report-chapter > summary::after,
  .report-chapter > summary > em {
    display: none;
  }

  .report-chapter > .report-chapter-body,
  .collapsible-section > .collapsible-body,
  details:not([open]) > :not(summary) {
    display: block !important;
  }

  .report-chapter-body {
    padding: 8px 0 0;
  }

  .report-card {
    border: 0;
    padding: 0;
    break-inside: avoid;
  }

  .report-visual {
    min-height: 0;
    overflow: visible;
  }

  .report-visual svg {
    min-width: 0;
  }

  body {
    background: white;
  }
}

/* Phase 1: progressive tactical action registration. */
.competitor-status-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: sticky;
  top: 76px;
  z-index: 12;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(8px);
}

.competitor-status-bar .side-panel {
  position: static;
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(0, 1fr);
  gap: 8px;
}

.competitor-status-bar .score-side {
  min-height: 104px;
}

.competitor-status-bar .score-side strong {
  font-size: 44px;
}

.competitor-status-bar .score-side small:last-child {
  margin-top: 3px;
  font-size: 11px;
}

.competitor-status-bar .quick-action-log {
  max-height: 104px;
  padding: 7px;
}

.competitor-status-bar .quick-action-log h3 {
  font-size: 10px;
}

.score-photo {
  grid-row: 1 / 5;
}

.workbench {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  gap: 10px;
}

.workbench .video-panel {
  grid-column: 1;
}

.workbench .control-panel {
  grid-column: 2;
  position: sticky;
  top: 198px;
  max-height: calc(100vh - 212px);
  overflow: auto;
}

.action-pad.action-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: white;
}

.action-flow[data-side="red"] {
  border-color: var(--red);
}

.action-flow[data-side="blue"] {
  border-color: var(--blue);
}

.action-flow-header,
.action-flow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.action-flow-header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.action-flow-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.action-flow-header strong {
  font-size: 17px;
}

.action-flow[data-side="red"] .action-flow-header strong,
.action-flow[data-side="red"] .action-flow-header span {
  color: var(--red);
}

.action-flow[data-side="blue"] .action-flow-header strong,
.action-flow[data-side="blue"] .action-flow-header span {
  color: var(--blue);
}

.action-flow-summary {
  min-height: 38px;
  border-radius: 6px;
  background: #f1f3f5;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.action-correction-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid #d8b341;
  border-radius: 7px;
  background: #fff8c5;
  padding: 8px 10px;
  color: #604600;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.action-correction-control[hidden] {
  display: none;
}

.action-correction-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #9a6700;
}

.phase-two-toolbar,
.important-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phase-two-toolbar .mini-button {
  flex: 1 1 140px;
}

.action-favorites {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.action-favorites > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.action-favorites .mini-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.sequence-followup {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 2px solid #2f6f4e;
  border-radius: 8px;
  background: #edf8f2;
  padding: 10px;
}

.sequence-followup > div {
  display: grid;
  gap: 2px;
}

.sequence-followup span {
  color: #2f6f4e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sequence-followup strong {
  font-size: 13px;
}

.important-action-panel {
  display: grid;
  gap: 9px;
  border: 2px solid #9a6700;
  border-radius: 8px;
  background: #fff8c5;
  padding: 10px;
}

.important-side,
.importance-levels button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.important-side.red-choice.is-selected {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.important-side.blue-choice.is-selected {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.importance-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.importance-levels button.is-selected {
  border-color: #9a6700;
  background: #9a6700;
  color: white;
}

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

.important-window label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.important-window input {
  min-width: 0;
  width: 100%;
}

.important-report-list {
  display: grid;
  gap: 6px;
}

.important-report-row {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid #d8b341;
  border-radius: 6px;
  background: #fff8c5;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
}

.important-report-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tactical-report-list {
  display: grid;
  gap: 6px;
}

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

.tactical-context-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.tactical-context-panel.red {
  border-top-color: var(--red);
}

.tactical-context-panel.blue {
  border-top-color: var(--blue);
}

.tactical-context-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  margin-bottom: 10px;
}

.tactical-context-heading span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.tactical-context-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.tactical-context-heading em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.tactical-context-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.tactical-report-row {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-left: 5px solid #7a828b;
  border-radius: 6px;
  background: white;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
}

.tactical-report-row.red {
  border-left-color: var(--red);
}

.tactical-report-row.blue {
  border-left-color: var(--blue);
}

.tactical-report-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.action-favorites[hidden],
.sequence-followup[hidden],
.important-action-panel[hidden] {
  display: none !important;
}

.flow-step {
  display: none;
}

.flow-step.is-active {
  display: grid;
  gap: 10px;
}

.flow-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.flow-choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-choice-grid.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-choice-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-manual-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flow-manual-field[hidden] {
  display: none;
}

.flow-manual-field input {
  width: 100%;
  min-width: 0;
}

.combination-step {
  max-height: min(62vh, 620px);
  overflow-y: auto;
  padding-right: 4px;
}

.combination-count-field,
.combination-action-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.combination-count-field {
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 180px);
  align-items: center;
}

.combination-count-field select,
.combination-action-row select,
.combination-action-row input {
  width: 100%;
  min-width: 0;
}

.combination-action-list {
  display: grid;
  gap: 7px;
}

.combination-action-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1.5fr) minmax(105px, 0.8fr);
  align-items: end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafafa;
  padding: 8px;
}

.combination-action-row > strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 42px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 14px;
}

.combination-custom-technique {
  grid-column: 2 / -1;
}

.flow-choice {
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
  color: var(--ink);
  padding: 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.flow-choice:hover,
.flow-choice:focus-visible {
  border-color: var(--ink);
}

.flow-choice.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.tactical-context-step {
  max-height: min(62vh, 620px);
  overflow-y: auto;
  padding-right: 4px;
}

.tactical-context-group {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.tactical-context-group > strong {
  font-size: 12px;
}

.tactical-choice {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 7px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tactical-choice:hover,
.tactical-choice:focus-visible {
  border-color: var(--ink);
}

.tactical-choice.is-selected {
  background: #e5f3ee;
  border-color: var(--green);
  color: #075d47;
}

.tactical-comment-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tactical-comment-field textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
}

.tactical-context-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.flow-choice.red-choice {
  min-height: 76px;
  background: var(--red);
  border-color: var(--red);
  color: white;
  font-size: 19px;
}

.flow-choice.blue-choice {
  min-height: 76px;
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-size: 19px;
}

.action-flow[data-side="red"] .flow-choice.is-selected {
  background: var(--red);
  border-color: var(--red);
}

.action-flow[data-side="blue"] .flow-choice.is-selected {
  background: var(--blue);
  border-color: var(--blue);
}

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

.guard-choice-columns > div {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guard-choice-columns strong {
  font-size: 12px;
}

.action-review {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fa;
}

.action-review-list {
  display: grid;
  gap: 4px;
}

.action-review-row,
.action-review-time {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.action-review-row {
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 5px 6px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.action-review-row-static {
  cursor: default;
}

.action-review-row-static:hover {
  background: transparent;
}

.action-review-row-static::after {
  content: "";
}

.action-review-row:hover,
.action-review-row:focus-visible {
  background: #e8edf2;
}

.action-review-row span,
.action-review-time span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.action-review-row strong,
.action-review-time strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.action-review-row b {
  color: var(--muted);
  font-size: 16px;
  text-align: right;
}

.action-review-time {
  padding: 5px 6px;
}

.action-review-time::after {
  content: "";
}

.action-flow-footer {
  flex-wrap: wrap;
}

.action-flow-footer .ghost-button {
  flex: 1 1 120px;
}

@media (min-width: 1100px) {
  body[data-match-active="true"]:not([data-show-setup="true"]) .workbench,
  .workbench.video-mode {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .competitor-status-bar,
  .workbench.video-mode .competitor-status-bar {
    grid-column: 1 / -1;
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .video-panel,
  .workbench.video-mode .video-panel {
    grid-column: 1;
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .control-panel,
  .workbench.video-mode .control-panel {
    grid-column: 2;
    grid-row: auto;
    top: 198px;
    max-height: calc(100vh - 212px);
  }

  body[data-match-active="true"]:not([data-show-setup="true"]) .action-pad,
  .workbench.video-mode .action-pad {
    grid-template-columns: 1fr;
    padding: 10px;
  }
}

@media (max-width: 980px) {
  .compare-competitor-headings,
  .compare-insight-grid,
  .compare-game-plan-columns,
  .tactical-recommendation-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-competitor-heading {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .compare-competitor-heading img,
  .compare-photo-placeholder {
    width: 58px;
    height: 68px;
  }

  .compare-competitor-heading > .pattern-confidence {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .competitor-status-bar,
  .workbench .video-panel,
  .workbench .control-panel {
    grid-column: 1;
  }

  .competitor-status-bar {
    top: 0;
  }

  .competitor-status-bar .side-panel {
    grid-template-columns: 1fr;
  }

  .competitor-status-bar .quick-action-log {
    display: none;
  }

  .workbench .control-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .compare-title,
  .compare-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .compare-section-title em {
    text-align: left;
  }

  .compare-selector-grid,
  .compare-competitor-headings,
  .compare-insight-grid,
  .compare-game-plan-columns,
  .tactical-recommendation-columns,
  .tactical-context-columns,
  .report-conclusion-roadmap {
    grid-template-columns: 1fr;
  }

  .tactical-recommendation-heading,
  .conclusion-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-action-type-grid {
    grid-template-columns: 1fr;
  }

  .report-action-type-row {
    grid-template-columns: minmax(88px, 0.75fr) repeat(2, minmax(0, 1fr));
  }

  .report-action-type-row h4,
  .report-action-type-side {
    padding: 8px;
  }

  .report-action-type-side strong {
    font-size: 20px;
  }

  .report-history-action {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px;
  }

  .report-history-video {
    grid-column: 2;
    justify-self: start;
    margin-top: -5px;
  }

  .report-history-meta,
  .report-history-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .compare-table {
    border: 0;
    overflow: visible;
    background: transparent;
  }

  .compare-table-header {
    display: none;
  }

  .compare-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: white;
  }

  .compare-table-row > span {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
    background: #f3f5f7;
  }

  .compare-table-row > strong {
    border-left: 0;
  }

  .compare-table-row > strong + strong {
    border-left: 1px solid var(--line);
  }

  .compare-table-row > em {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .compare-direct-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .compare-direct-list article > div:last-child,
  .compare-direct-list .mini-button {
    width: 100%;
  }

  .competitor-status-bar {
    gap: 6px;
    padding: 5px;
  }

  .competitor-status-bar .score-side {
    min-height: 90px;
    padding: 8px;
  }

  .competitor-status-bar .score-side strong {
    font-size: 34px;
  }

  .competitor-status-bar .score-side small {
    font-size: 10px;
  }

  .score-photo {
    width: 38px;
    height: 48px;
  }

  .flow-choice-grid,
  .flow-choice-grid.four,
  .flow-choice-grid.six,
  .technique-grid,
  .result-grid,
  .penalty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guard-choice-columns {
    grid-template-columns: 1fr;
  }

  .combination-count-field {
    grid-template-columns: 1fr;
  }

  .combination-action-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .combination-action-row label,
  .combination-custom-technique {
    grid-column: 2;
  }

  .flow-choice {
    min-height: 58px;
  }

  .sequence-followup {
    grid-template-columns: 1fr;
  }

  .timeline-response {
    margin-left: 12px;
    width: calc(100% - 12px);
  }

  .tactical-pattern-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tactical-pattern-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact competitor directory */
.profiles-list {
  grid-template-columns: 1fr;
  gap: 6px;
}

.profile-directory-summary,
.profile-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.profile-directory-summary {
  padding: 3px 2px 7px;
  color: var(--muted);
}

.profile-directory-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.profile-directory-summary span,
.profile-pagination span {
  font-size: 11px;
  font-weight: 800;
}

.profile-card.is-compact {
  gap: 0;
  min-height: 62px;
  border-left: 4px solid #cfd6df;
  padding: 7px 10px;
}

.profile-card.is-compact:hover {
  border-left-color: var(--green);
  background: #fbfdfc;
}

.profile-card.is-compact .profile-heading {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.4fr) minmax(360px, 1fr) auto;
  gap: 10px;
}

.profile-card.is-compact .profile-photo {
  width: 42px;
  height: 48px;
  border-width: 1px;
  border-radius: 6px;
}

.profile-card.is-compact .profile-identity span {
  display: block;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card.is-compact h3 {
  overflow: hidden;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-compact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(62px, 0.7fr)) minmax(116px, 1.25fr);
  align-items: center;
  min-width: 0;
}

.profile-compact-stats > span {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 0 10px;
  text-transform: none;
}

.profile-compact-stats strong,
.profile-compact-stats small {
  display: block;
  min-width: 0;
}

.profile-compact-stats strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-compact-stats .is-win strong {
  color: var(--green);
}

.profile-compact-stats small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-card.is-compact .toggle-profile-detail {
  min-height: 34px;
  margin-left: 0;
}

.profile-pagination {
  justify-content: center;
  margin-top: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.profile-pagination .mini-button {
  min-width: 92px;
}

.profile-pagination .mini-button:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 980px) {
  .profile-card.is-compact .profile-heading {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .profile-card.is-compact .profile-compact-stats {
    grid-column: 2 / -1;
    width: 100%;
    padding-top: 5px;
  }

  .profile-card.is-compact .toggle-profile-detail {
    grid-column: auto;
    grid-row: 1;
    width: auto;
  }
}

@media (max-width: 620px) {
  .club-directory-actions,
  .directory-summary,
  .directory-pagination {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .club-directory-actions {
    display: grid;
    width: 100%;
    min-width: 0;
  }

  .club-directory-actions .status-pill {
    grid-column: auto;
  }

  .club-directory-actions select,
  .club-directory-actions button,
  .directory-pagination .mini-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .directory-summary,
  .directory-pagination {
    display: grid;
    text-align: center;
  }

  .profile-card.is-compact {
    min-height: 0;
    padding: 8px;
  }

  .profile-card.is-compact .profile-heading {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .profile-card.is-compact .profile-photo {
    width: 40px;
    height: 46px;
  }

  .profile-card.is-compact h3 {
    font-size: 14px;
  }

  .profile-card.is-compact .profile-compact-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 7px;
  }

  .profile-compact-stats .is-tactical {
    display: none;
  }

  .profile-compact-stats > span:first-child {
    border-left: 0;
  }

  .profile-card.is-compact .toggle-profile-detail {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .profile-directory-summary,
  .profile-pagination {
    flex-wrap: wrap;
  }

  .profile-pagination .mini-button {
    min-width: 84px;
  }
}

.organization-admin-actions {
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) 100px auto auto;
}

.club-directory-actions {
  grid-template-columns: auto minmax(170px, 1fr) minmax(130px, 0.65fr) auto auto;
}

@media (max-width: 760px) {
  .organization-admin-actions,
  .club-directory-actions {
    grid-template-columns: 1fr;
  }

  .club-directory-actions .status-pill {
    grid-column: auto;
  }
}
