/*
 * Report subviews, second pass.
 *
 * This layer deliberately leaves the overview alone. It gives the dense analysis
 * workspaces a calmer editorial hierarchy, flatter data regions, and a shared
 * chart language without changing their markup or behavior.
 */

.report-shell [data-report-panel] {
  --subview-surface: color-mix(in srgb, var(--color-surface) 88%, var(--color-canvas));
  --subview-surface-raised: color-mix(in srgb, var(--color-surface-raised) 82%, var(--color-canvas));
  --subview-line: color-mix(in srgb, var(--color-border) 82%, transparent);
  --subview-line-strong: color-mix(in srgb, var(--color-border-strong) 88%, transparent);
  --subview-chart-bg: #10161a;
  --subview-chart-grid: rgba(204, 216, 222, 0.105);
  --subview-chart-axis: rgba(204, 216, 222, 0.28);
  --subview-guild-a: var(--color-brand-strong);
  --subview-guild-b: #b7c2c9;
  --subview-health: #78c39f;
  --subview-pressure: var(--color-brand);
  --subview-energy: #aaa1d6;
  --subview-danger: #dc7772;
  display: flow-root;
  min-inline-size: 0;
}

/* Editorial section rhythm ------------------------------------------------ */

.report-shell [data-report-panel] > :first-child {
  margin-block-start: 0;
}

.report-shell [data-report-panel] > :where(.panel, .combat-table-panel, .player-profile-view, .skill-player-view) +
  :where(.panel, .combat-table-panel, .player-profile-view, .skill-player-view) {
  margin-block-start: var(--section-gap, var(--space-6));
}

.report-shell [data-report-panel] > .panel,
.report-shell [data-report-panel] > .combat-table-panel,
.report-shell [data-report-panel] > .player-summary-subtabs-panel {
  background: var(--subview-surface);
  border-color: var(--subview-line);
  border-radius: var(--radius-lg);
}

.report-shell [data-report-panel] .panel-head {
  align-items: flex-start;
  border-bottom-color: var(--subview-line);
  gap: var(--space-4);
  min-block-size: 4rem;
  padding: var(--space-4) var(--space-5);
}

.report-shell [data-report-panel] .panel-head > :first-child {
  min-inline-size: 0;
}

.report-shell [data-report-panel] .panel-head h2,
.report-shell [data-report-panel] .panel-head h3 {
  color: var(--color-text);
  font-size: var(--text-lg);
  letter-spacing: -0.012em;
  line-height: var(--line-tight);
}

.report-shell [data-report-panel] .panel-head .muted {
  color: var(--color-text-secondary);
  display: block;
  font-size: var(--text-xs);
  line-height: var(--line-normal);
  margin-block-start: var(--space-1);
  max-inline-size: 68ch;
}

.report-shell [data-report-panel] .notice {
  background: color-mix(in srgb, var(--color-brand-soft) 56%, transparent);
  border-color: var(--color-brand-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--line-normal);
}

/* Shared contextual tabs and controls ------------------------------------ */

.report-shell [data-report-panel] :where(
  .damage-view-tabs,
  .effect-view-tabs,
  .condition-view-tabs,
  .condition-player-tabs,
  .objective-subtabs,
  .segmented-control
) {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.report-shell [data-report-panel] :where(
  .damage-view-button,
  .effect-view-button,
  .condition-view-button,
  .condition-player-button,
  .segmented-control button,
  .advanced-columns-toggle,
  .interrupt-filter-button,
  .match-timeline-reset,
  .match-timeline-zoom-buttons button
) {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  min-block-size: 2.25rem;
  padding: 0.45rem 0.7rem;
  text-transform: none;
  transition:
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease;
}

.report-shell [data-report-panel] :where(
  .damage-view-button,
  .effect-view-button,
  .condition-view-button,
  .condition-player-button,
  .segmented-control button,
  .advanced-columns-toggle,
  .interrupt-filter-button,
  .match-timeline-reset,
  .match-timeline-zoom-buttons button
):hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border);
  color: var(--color-text);
}

.report-shell [data-report-panel] :where(
  .damage-view-button,
  .effect-view-button,
  .condition-view-button,
  .condition-player-button,
  .segmented-control button,
  .interrupt-filter-button
).active,
.report-shell [data-report-panel] .advanced-columns-toggle[aria-pressed="true"] {
  background: var(--color-brand-soft);
  border-color: var(--color-brand-border);
  box-shadow: none;
  color: var(--color-brand-strong);
}

.report-shell [data-report-panel] :where(.effect-view-button, .condition-view-button) em,
.report-shell [data-report-panel] .interrupt-filter-button span {
  background: color-mix(in srgb, var(--color-surface-strong) 78%, transparent);
  color: currentColor;
  font-variant-numeric: tabular-nums;
}

.report-shell [data-report-panel] :where(button, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

/* Tables: one reading surface, not a grid of boxes ----------------------- */

.report-shell [data-report-panel] :where(.table-wrap, .combat-table-wrap) {
  background: color-mix(in srgb, var(--color-canvas-raised) 68%, transparent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  scrollbar-color: var(--color-border-strong) transparent;
}

.report-shell [data-report-panel] :where(.combat-lines-table, .damage-table, .condition-uptime-table, .condition-event-table) {
  border-collapse: separate;
  border-spacing: 0;
}

.report-shell [data-report-panel] :where(.combat-lines-table, .damage-table, .condition-uptime-table, .condition-event-table) thead th {
  background: color-mix(in srgb, var(--color-surface-raised) 96%, var(--color-canvas));
  border-bottom: 1px solid var(--subview-line-strong);
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  letter-spacing: 0.045em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 3;
}

.report-shell [data-report-panel] :where(.combat-lines-table, .damage-table, .condition-uptime-table, .condition-event-table) :is(th, td) {
  border-bottom-color: var(--subview-line);
}

.report-shell [data-report-panel] :where(.combat-lines-table, .damage-table, .condition-uptime-table, .condition-event-table) tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.012);
}

.report-shell [data-report-panel] :where(.combat-lines-table, .damage-table, .condition-uptime-table, .condition-event-table) tbody tr:hover td {
  background: color-mix(in srgb, var(--color-brand-soft) 42%, var(--color-surface));
}

.report-shell [data-report-panel] :where(.combat-lines-table, .damage-table, .condition-uptime-table, .condition-event-table) tbody tr:is(.team-blue, .team-red) td:first-child {
  box-shadow: 1px 0 0 var(--subview-line);
}

.report-shell [data-report-panel] .combat-lines-table tfoot :is(th, td) {
  background: color-mix(in srgb, var(--color-brand-soft) 46%, var(--color-surface));
  border-top-color: var(--color-brand-border);
  color: var(--color-text);
}

.report-shell [data-report-panel] .table-sort {
  color: inherit;
  min-block-size: 2.25rem;
}

.report-shell [data-report-panel] .table-sort.active {
  color: var(--color-brand-strong);
}

/* Players and skill workspaces ------------------------------------------- */

.report-shell .player-roster-selector-panel {
  background: transparent;
  border-color: var(--subview-line);
  border-radius: var(--radius-lg);
  margin-block-end: var(--space-3);
  overflow: visible;
  padding: var(--space-2);
}

.report-shell .player-roster-selector {
  display: grid;
  gap: var(--space-2);
}

.report-shell .player-roster-team {
  align-items: center;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 5.75rem minmax(0, 1fr);
  min-inline-size: 0;
}

.report-shell .player-roster-team-head {
  border-inline-end: 1px solid var(--subview-line);
  display: grid;
  gap: 0.1rem;
  min-inline-size: 0;
  padding-inline: var(--space-2);
}

.report-shell .player-roster-team-head strong,
.report-shell .player-roster-team-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-shell .player-roster-team-head strong {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.report-shell .player-roster-team-head span {
  color: var(--color-text-subtle);
  font-size: 0.625rem;
  text-transform: uppercase;
}

.report-shell .player-roster-options {
  display: grid;
  gap: 0.375rem;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  min-inline-size: 0;
}

.report-shell .player-roster-option {
  align-items: center;
  background: var(--subview-surface-raised);
  border: 1px solid var(--subview-line-strong);
  border-radius: var(--radius-md);
  color: var(--color-text);
  display: grid;
  gap: 0.375rem;
  grid-template-columns: auto minmax(0, 1fr);
  min-block-size: 2.5rem;
  min-inline-size: 0;
  padding: 0.25rem 0.375rem;
  text-align: start;
}

.report-shell .player-roster-option:hover {
  background: var(--color-brand-soft);
  border-color: var(--color-brand-border);
  color: var(--color-text);
}

.report-shell .player-roster-option.active {
  background: color-mix(in srgb, var(--color-brand-soft) 72%, var(--subview-surface-raised));
  border-color: var(--color-brand-strong);
  box-shadow: inset 2px 0 0 var(--color-brand-strong);
}

.report-shell .player-roster-option strong {
  font-size: 0.6875rem;
  line-height: 1.15;
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-shell .player-roster-option .player-tab-professions {
  gap: 0.125rem;
}

.report-shell .player-roster-option .player-tab-profession-icon {
  block-size: 1.125rem;
  inline-size: 1.125rem;
}

@media (max-width: 64rem) {
  .report-shell .player-roster-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.report-shell[data-destination="players"] .player-loadout-workspace {
  min-inline-size: 0;
}

.report-shell[data-destination="players"] :where(.player-profile-view, .skill-player-view) {
  min-inline-size: 0;
}

.report-shell[data-destination="players"] .player-summary-subtabs-panel {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--subview-line);
  border-radius: 0;
  padding: 0 0 var(--space-4);
}

/* Statistics -------------------------------------------------------------- */

.report-shell[data-destination="statistics"] .combat-lines-card,
.report-shell[data-destination="statistics"] .damage-table-panel {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  overflow: clip;
}

.report-shell[data-destination="statistics"] .combat-lines-head,
.report-shell[data-destination="statistics"] .damage-table-head {
  background: var(--subview-surface);
  border-bottom-color: var(--subview-line);
}

.report-shell[data-destination="statistics"] :where(.combat-head-controls, .damage-table-head) {
  align-items: center;
}

.report-shell[data-destination="statistics"] .damage-team-key {
  background: var(--subview-surface-raised);
  border-bottom: 1px solid var(--subview-line);
  margin: 0;
  padding: var(--space-3) var(--space-5);
}

.report-shell[data-destination="statistics"] .damage-team-key > .muted {
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
}

.report-shell[data-destination="statistics"] .damage-graph-layout {
  background: var(--subview-chart-bg);
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: var(--space-5);
}

.report-shell[data-destination="statistics"] .damage-graph-card {
  background: transparent;
  border: 0;
  border-inline-end: 1px solid var(--subview-line);
  border-radius: 0;
  padding: 0 var(--space-5);
}

.report-shell[data-destination="statistics"] .damage-graph-card:first-child {
  padding-inline-start: 0;
}

.report-shell[data-destination="statistics"] .damage-graph-card:last-child {
  border-inline-end: 0;
  padding-inline-end: 0;
}

.report-shell[data-destination="statistics"] .damage-graph-card h3 {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  letter-spacing: 0.055em;
  margin-block-end: var(--space-4);
  text-transform: uppercase;
}

.report-shell[data-destination="statistics"] .damage-graph-pair {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--subview-line);
  border-radius: 0;
  padding: var(--space-3) 0;
}

.report-shell[data-destination="statistics"] .damage-graph-pair:is(.team-blue, .team-red) {
  background: transparent;
}

.report-shell[data-destination="statistics"] .damage-graph-row b {
  background: rgba(255, 255, 255, 0.065);
  block-size: 0.4rem;
}

.report-shell[data-destination="statistics"] .damage-graph-row b::after {
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-strong));
}

.report-shell[data-destination="statistics"] .damage-graph-row.incoming b::after {
  background: linear-gradient(90deg, #87949b, #c2cbd0);
}

.report-shell[data-destination="statistics"] .dashboard-grid {
  gap: 1px;
  overflow: hidden;
}

.report-shell[data-destination="statistics"] .dashboard-grid > .panel {
  border-radius: 0;
  margin: 0;
}

/* Effects: matrix first, visual exploration second ----------------------- */

.report-shell .effect-tabs-panel,
.report-shell .condition-tabs-panel,
.report-shell .condition-player-tabs-panel {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--subview-line);
  border-radius: 0;
  margin-block: 0;
}

.report-shell .effect-tabs-panel .panel-head {
  border: 0;
  padding-inline: 0;
}

.report-shell :where(.effect-view-tabs, .condition-view-tabs, .condition-player-tabs) {
  border: 0;
  padding: 0 0 var(--space-4);
}

.report-shell .condition-tabs-panel,
.report-shell .condition-player-tabs-panel {
  padding-block-start: var(--space-4);
}

.report-shell .effect-uptime-scope-control,
.report-shell .effect-uptime-scope-tabs {
  gap: var(--space-1);
}

.report-shell .effect-uptime-graph-panel {
  background: var(--subview-chart-bg);
  border: 1px solid var(--subview-line-strong);
  border-radius: var(--radius-lg);
  gap: var(--space-4);
  margin: var(--space-6) var(--space-5) var(--space-5);
  overflow: clip;
  padding: 0;
}

.report-shell .effect-uptime-graph-divider {
  background: var(--subview-surface-raised);
  border-bottom: 1px solid var(--subview-line);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  letter-spacing: 0.055em;
  padding: var(--space-3) var(--space-5);
}

.report-shell .effect-uptime-graph-divider::after {
  display: none;
}

.report-shell .effect-uptime-graph-head,
.report-shell :where(.effect-uptime-graph-skill-selector, .effect-uptime-graph-player-selector, .effect-uptime-graph-legend) {
  margin-inline: var(--space-5);
}

.report-shell .effect-uptime-graph-head {
  align-items: center;
  padding-block-start: var(--space-1);
}

.report-shell :where(.effect-uptime-graph-skill, .effect-uptime-graph-player) {
  background: transparent;
  border-color: var(--subview-line-strong);
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  min-block-size: 2.25rem;
  padding: 0.35rem 0.7rem;
}

.report-shell :where(.effect-uptime-graph-skill, .effect-uptime-graph-player):is(:hover, .active) {
  background: var(--color-brand-soft);
  border-color: var(--color-brand-border);
  color: var(--color-text);
}

.report-shell .effect-uptime-graph-canvas {
  background:
    linear-gradient(var(--subview-chart-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--subview-chart-grid) 1px, transparent 1px),
    radial-gradient(circle at 52% 0%, color-mix(in srgb, var(--color-brand) 6.5%, transparent), transparent 42%),
    var(--subview-chart-bg);
  background-size: 100% 25%, 10% 100%, auto, auto;
  border: 0;
  border-radius: 0;
  margin-block-start: var(--space-1);
}

.report-shell .effect-uptime-graph-svg {
  min-block-size: 25rem;
}

.report-shell .effect-uptime-graph-axis {
  stroke: var(--subview-chart-axis);
}

.report-shell .effect-uptime-graph-grid {
  stroke: var(--subview-chart-grid);
}

.report-shell .effect-uptime-graph-line {
  opacity: 0.9;
  stroke-width: 1.5;
}

.report-shell .effect-uptime-graph-area {
  opacity: 0.09;
}

.report-shell .effect-uptime-graph-hover,
.report-shell .match-timeline-tooltip {
  background: color-mix(in srgb, var(--color-surface-strong) 96%, black);
  border-color: var(--subview-line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  color: var(--color-text);
  padding: var(--space-3);
}

/* Replay telemetry -------------------------------------------------------- */

.report-shell .game-story-panel,
.report-shell .match-timeline-panel,
.report-shell .guild-lord-chart-panel {
  background: var(--subview-chart-bg);
  border-color: var(--subview-line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.18);
  overflow: clip;
}

.report-shell :where(.game-story-panel, .match-timeline-panel, .guild-lord-chart-panel) .panel-head {
  background: var(--subview-surface);
  border-bottom-color: var(--subview-line);
}

.report-shell .game-story-legend,
.report-shell .guild-lord-chart-legend {
  gap: var(--space-1);
}

.report-shell .game-story-legend span,
.report-shell .guild-lord-chart-legend span {
  background: transparent;
  border-color: transparent;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  min-block-size: 2rem;
  padding: 0.35rem 0.5rem;
  text-transform: none;
}

.report-shell .game-story-legend span:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border);
}

.report-shell .game-story-legend .metric-health_percent i {
  background: var(--subview-health);
}

.report-shell .game-story-legend .metric-dps i {
  background: var(--subview-pressure);
}

.report-shell .game-story-legend .metric-energy_delta i {
  background: var(--subview-energy);
}

.report-shell .game-story-legend :is(.team-blue, .team-red) b,
.report-shell .guild-lord-chart-legend :is(.team-blue, .team-red) i {
  background: currentColor;
  box-shadow: none;
}

.report-shell .game-story-legend .team-blue,
.report-shell .guild-lord-chart-legend .team-blue {
  color: var(--subview-guild-a);
}

.report-shell .game-story-legend .team-red,
.report-shell .guild-lord-chart-legend .team-red {
  color: var(--subview-guild-b);
}

.report-shell :where(.game-story-chart, .match-timeline-chart) {
  background:
    linear-gradient(var(--subview-chart-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--subview-chart-grid) 1px, transparent 1px),
    radial-gradient(circle at 50% -18%, color-mix(in srgb, var(--color-brand) 8.5%, transparent), transparent 44%),
    var(--subview-chart-bg);
  background-size: 100% 25%, 10% 100%, auto, auto;
  border-color: var(--subview-line);
  min-block-size: 25rem;
}

.report-shell :where(.game-story-chart, .match-timeline-chart) svg {
  min-block-size: 25rem;
}

.report-shell :where(.game-story-axis, .match-timeline-axis) {
  stroke: var(--subview-chart-axis);
}

.report-shell :where(.game-story-grid, .match-timeline-grid) {
  stroke: var(--subview-chart-grid);
}

.report-shell :where(.game-story-x-label, .game-story-y-label, .game-story-lane-label, .match-timeline-axis-label, .match-timeline-lane-label, .match-timeline-y-label) {
  fill: var(--color-text-subtle);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--weight-medium);
}

.report-shell .game-story-lane-label,
.report-shell .match-timeline-lane-label {
  fill: var(--color-text-secondary);
  font-size: 12px;
}

/* Guilds are named in the legend. Color and stroke are only secondary cues. */
.report-shell .game-story-line.team-blue,
.report-shell .match-timeline-line.team-blue {
  stroke: var(--subview-guild-a);
}

.report-shell .game-story-line.team-red,
.report-shell .match-timeline-line.team-red {
  stroke: var(--subview-guild-b);
}

.report-shell .game-story-line.team-red,
.report-shell .guild-lord-damage-line.team-red {
  stroke-dasharray: 10 5;
}

.report-shell .game-story-line {
  opacity: 0.88;
  stroke-width: 2;
}

.report-shell .match-timeline-line {
  stroke-width: 2.5;
}

.report-shell .guild-lord-damage-line {
  stroke-width: 3;
}

.report-shell .game-story-cursor {
  background: var(--color-brand-strong);
  box-shadow: 0 0 0 1px var(--subview-chart-bg), 0 0 16px rgba(239, 209, 138, 0.28);
  width: 1px;
}

.report-shell .game-story-scrubber {
  background: var(--subview-surface);
  border-top: 1px solid var(--subview-line);
  gap: 1px;
  padding: 0;
}

.report-shell :where(.game-story-readout, .game-story-time) {
  background: transparent;
  border: 0;
  border-inline-end: 1px solid var(--subview-line);
  border-radius: 0;
  min-block-size: 5rem;
  padding: var(--space-4) var(--space-5);
}

.report-shell .game-story-scrubber > :last-child {
  border-inline-end: 0;
}

.report-shell .game-story-readout :is(.team-blue, .team-red),
.report-shell .game-story-readout strong:is(.team-blue, .team-red) {
  color: var(--color-text);
}

.report-shell .game-story-time output {
  color: var(--color-brand-strong);
}

.report-shell .match-timeline-controls {
  background: var(--subview-surface);
  border-bottom-color: var(--subview-line);
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}

.report-shell .match-timeline-layer-controls label {
  background: transparent;
  border-color: var(--subview-line-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  min-block-size: 2.25rem;
}

.report-shell .match-timeline-layer-controls label.active {
  background: var(--color-brand-soft);
  border-color: var(--color-brand-border);
  color: var(--color-text);
}

.report-shell .match-timeline-window div {
  background: linear-gradient(90deg, var(--subview-guild-a), var(--subview-guild-b));
  border: 0;
  block-size: 0.35rem;
}

.report-shell .match-timeline-selection,
.report-shell .effect-uptime-graph-selection {
  background: color-mix(in srgb, var(--color-brand) 10%, transparent);
  border-color: var(--color-brand-border);
}

.report-shell .match-timeline-tooltip-head strong,
.report-shell .match-timeline-tooltip-deaths b {
  color: var(--color-brand-strong);
}

/* Objectives and Guild Lord ---------------------------------------------- */

.report-shell .objective-subtabs-panel {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--subview-line);
  border-radius: 0;
  margin-block-end: var(--space-6);
  padding-block-end: var(--space-4);
}

.report-shell .guild-lord-intro-panel {
  gap: var(--space-5);
}

.report-shell .guild-lord-rules {
  gap: var(--space-2);
}

.report-shell .guild-lord-rules span,
.report-shell .guild-lord-defenders span {
  background: transparent;
  border-color: var(--subview-line-strong);
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  padding: 0.3rem 0.55rem;
  text-transform: none;
}

.report-shell :where(.guild-lord-score-grid, .guild-lord-lord-grid) {
  gap: 1px;
  overflow: hidden;
}

.report-shell :where(.guild-lord-score-card, .guild-lord-lord-card) {
  background: var(--subview-surface-raised);
  border: 0;
  border-radius: 0;
  padding: var(--space-5);
}

.report-shell :where(.guild-lord-score-card, .guild-lord-lord-card):is(.team-blue, .team-red) {
  border-left: 0;
}

.report-shell .guild-lord-table-panel {
  background: var(--subview-surface);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-lg);
  overflow: clip;
}

.report-shell .guild-lord-table-panel .combat-column-head {
  background: var(--subview-surface);
  border-bottom-color: var(--subview-line);
  padding: var(--space-4) var(--space-5);
}

.report-shell .guild-lord-table-panel .combat-column-head span {
  color: var(--color-text);
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-transform: none;
}

.report-shell .guild-lord-table-panel .combat-column-head strong {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.report-shell .objective-row {
  background: transparent;
  border-color: var(--subview-line);
  border-left-color: var(--subview-line-strong);
  border-radius: var(--radius-md);
}

/* Interrupts: matchup analysis, reads, and compact ledger ---------------- */

.report-shell .interrupt-overview {
  background:
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--color-brand-soft) 46%, transparent), transparent 48%),
    var(--subview-surface);
  overflow: hidden;
  padding: var(--space-5);
}

.report-shell .interrupt-overview-head,
.report-shell .interrupt-analysis-head {
  align-items: flex-start;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
}

.report-shell .interrupt-overview-head h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.035em;
  margin: 0;
}

.report-shell .interrupt-overview-head p,
.report-shell .interrupt-analysis-head p {
  line-height: var(--line-normal);
  margin-block-start: var(--space-1);
  max-inline-size: 64ch;
}

.report-shell .interrupt-observation-note {
  align-items: flex-end;
  color: var(--color-text-secondary);
  display: grid;
  flex: 0 0 auto;
  font-size: var(--text-xs);
  gap: var(--space-1);
  justify-items: end;
}

.report-shell .interrupt-guild-score {
  align-items: center;
  background: color-mix(in srgb, var(--subview-chart-bg) 88%, transparent);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  margin-block-start: var(--space-5);
  min-block-size: 6rem;
  overflow: hidden;
  padding: var(--space-4) var(--space-5);
}

.report-shell .interrupt-guild-score-side {
  align-items: baseline;
  display: grid;
  gap: 0 var(--space-3);
  grid-template-columns: minmax(0, 1fr) auto;
}

.report-shell .interrupt-guild-score-side > span {
  color: var(--color-brand-strong);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-shell .interrupt-guild-score-side > strong {
  color: var(--color-text);
  font-size: clamp(2rem, 5vw, 3rem);
  font-variant-numeric: tabular-nums;
  grid-row: 1 / span 2;
  grid-column: 2;
  letter-spacing: -0.055em;
  line-height: 1;
}

.report-shell .interrupt-guild-score-side > em {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-shell .interrupt-guild-score-side:last-child {
  text-align: right;
}

.report-shell .interrupt-score-versus {
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.report-shell .interrupt-overview-facts {
  border-top: 1px solid var(--subview-line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-block-start: var(--space-5);
  padding-block-start: var(--space-4);
}

.report-shell .interrupt-overview-facts > span {
  border-inline-end: 1px solid var(--subview-line);
  display: grid;
  gap: 0.15rem;
  min-inline-size: 0;
  padding-inline: var(--space-3);
}

.report-shell .interrupt-overview-facts > span:first-child {
  padding-inline-start: 0;
}

.report-shell .interrupt-overview-facts > span:last-child {
  border-inline-end: 0;
  padding-inline-end: 0;
}

.report-shell .interrupt-overview-facts strong {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
  line-height: var(--line-tight);
}

.report-shell .interrupt-overview-facts em {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  font-style: normal;
  line-height: 1.35;
}

.report-shell .interrupt-analysis-head {
  border-bottom: 0;
}

.report-shell .interrupt-analysis-head .eyebrow {
  color: var(--color-brand-strong);
  display: block;
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.055em;
  margin-block-end: var(--space-1);
  text-transform: uppercase;
}

.report-shell .interrupt-matchup-chart {
  block-size: clamp(22rem, 46vw, 38rem);
  border-block: 1px solid var(--subview-line);
}

.report-shell .interrupt-highlight-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.report-shell .interrupt-highlight {
  background: var(--subview-surface-raised);
  border: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-2);
  min-block-size: 8.75rem;
  min-inline-size: 0;
  padding: var(--space-4);
}

.report-shell .interrupt-highlight:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.report-shell .interrupt-highlight:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.report-shell .interrupt-highlight > span,
.report-shell .interrupt-mesmer-score > span:first-child,
.report-shell .interrupt-bait-callout > span:first-child,
.report-shell .interrupt-miss-outcomes > span:first-child {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.report-shell .interrupt-highlight-value {
  align-items: center;
  color: var(--color-text);
  display: flex;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  min-block-size: 2rem;
  min-inline-size: 0;
}

.report-shell .interrupt-highlight p {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  line-height: var(--line-normal);
  margin: 0;
}

.report-shell :where(.interrupt-highlight-pair, .interrupt-highlight-skills) {
  align-items: center;
  display: flex;
  gap: var(--space-2);
  min-inline-size: 0;
}

.report-shell :where(.interrupt-highlight-pair, .interrupt-highlight-skills) > b {
  color: var(--color-brand-strong);
  flex: 0 0 auto;
  font-size: var(--text-sm);
}

.report-shell .interrupt-identity {
  align-items: baseline;
  display: inline-flex;
  gap: 0.38rem;
  max-inline-size: 100%;
  min-inline-size: 0;
}

.report-shell .interrupt-identity > em {
  color: var(--color-brand-strong);
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: var(--weight-semibold);
}

.report-shell .interrupt-identity > strong {
  color: var(--color-text);
  font-size: var(--text-sm);
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-shell .interrupt-identity.compact > strong {
  font-size: var(--text-xs);
}

.report-shell .interrupt-player-table {
  padding: 0 var(--space-5) var(--space-4);
}

.report-shell .interrupt-player-row {
  align-items: center;
  border-bottom: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(9.5rem, 1.25fr) 0.65fr 0.75fr minmax(8rem, 1fr) minmax(7rem, 0.9fr) 0.75fr;
  min-block-size: 4.25rem;
  padding-block: var(--space-3);
}

.report-shell .interrupt-player-header {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.045em;
  min-block-size: 2.25rem;
  padding-block: var(--space-2);
  text-transform: uppercase;
}

.report-shell .interrupt-player-row > span[role="cell"] {
  display: grid;
  gap: 0.15rem;
  min-inline-size: 0;
}

.report-shell .interrupt-player-row > span[role="cell"] > strong {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-shell .interrupt-player-row > span[role="cell"] > em {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  font-style: normal;
  line-height: 1.3;
}

.report-shell .interrupt-player-row .skill-table-token {
  justify-self: start;
  max-inline-size: 100%;
}

.report-shell .interrupt-mesmer-summary {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(10rem, 0.72fr) minmax(12rem, 0.95fr) minmax(15rem, 1.35fr);
  padding: var(--space-5);
}

.report-shell :where(.interrupt-mesmer-score, .interrupt-bait-callout, .interrupt-miss-outcomes) {
  align-content: start;
  background: var(--subview-surface-raised);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
  padding: var(--space-4);
}

.report-shell .interrupt-mesmer-score > strong {
  color: var(--color-brand-strong);
  font-size: 2.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}

.report-shell :where(.interrupt-mesmer-score, .interrupt-bait-callout) > em {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-style: normal;
  line-height: var(--line-normal);
}

.report-shell .interrupt-mesmer-scorebar,
.report-shell .interrupt-accuracy-track,
.report-shell .interrupt-outcome-strip {
  background: color-mix(in srgb, var(--color-surface-strong) 82%, transparent);
  border-radius: 999px;
  display: flex;
  height: 0.42rem;
  margin-block-start: var(--space-1);
  overflow: hidden;
}

.report-shell .interrupt-mesmer-scorebar > i,
.report-shell .interrupt-accuracy-track > i.hits {
  background: var(--color-brand);
}

.report-shell .interrupt-accuracy-track > i.misses {
  background: var(--subview-guild-b);
  opacity: 0.42;
}

.report-shell .interrupt-bait-callout .interrupt-identity {
  margin-block-start: var(--space-2);
}

.report-shell .interrupt-outcome-strip > i,
.report-shell .interrupt-mesmer-scorebar > i,
.report-shell .interrupt-accuracy-track > i {
  display: block;
  height: 100%;
}

.report-shell .interrupt-outcome-strip > .cancel,
.report-shell .interrupt-outcome-legend .cancel > i {
  background: var(--color-brand);
}

.report-shell .interrupt-outcome-strip > .finished,
.report-shell .interrupt-outcome-legend .finished > i {
  background: var(--subview-guild-b);
}

.report-shell .interrupt-outcome-strip > .likely,
.report-shell .interrupt-outcome-legend .likely > i {
  background: var(--subview-health);
}

.report-shell .interrupt-outcome-strip > .random,
.report-shell .interrupt-outcome-legend .random > i,
.report-shell .interrupt-outcome-strip > .unknown,
.report-shell .interrupt-outcome-legend .unknown > i {
  background: var(--color-text-subtle);
}

.report-shell .interrupt-outcome-strip > .instant,
.report-shell .interrupt-outcome-legend .instant > i {
  background: var(--subview-energy);
}

.report-shell .interrupt-outcome-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}

.report-shell .interrupt-outcome-legend > span {
  align-items: center;
  color: var(--color-text-secondary);
  display: inline-flex;
  font-size: 0.6875rem;
  gap: 0.3rem;
}

.report-shell .interrupt-outcome-legend > span > i {
  border-radius: 999px;
  display: block;
  height: 0.42rem;
  width: 0.42rem;
}

.report-shell .interrupt-outcome-legend strong {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.report-shell .interrupt-accuracy-columns {
  border-top: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: var(--space-5);
}

.report-shell .interrupt-accuracy-columns h3 {
  font-size: var(--text-sm);
  margin-block-end: var(--space-3);
}

.report-shell .interrupt-accuracy-list {
  display: grid;
}

.report-shell .interrupt-accuracy-row {
  align-items: center;
  border-bottom: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(8rem, 1fr) minmax(5rem, 0.7fr) 5.5rem;
  min-block-size: 3.5rem;
  padding-block: var(--space-2);
}

.report-shell .interrupt-accuracy-row > span {
  display: grid;
  justify-items: end;
}

.report-shell .interrupt-accuracy-row > span strong {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.report-shell .interrupt-accuracy-row > span em {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  font-style: normal;
}

.report-shell .interrupt-accuracy-label {
  min-inline-size: 0;
}

.report-shell .interrupt-miss-review,
.report-shell .interrupt-ledger-more,
.report-shell .interrupt-player-more {
  border-top: 1px solid var(--subview-line);
}

.report-shell :where(.interrupt-miss-review, .interrupt-ledger-more, .interrupt-player-more) > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  list-style: none;
  min-block-size: 4.25rem;
  padding: var(--space-3) var(--space-5);
}

.report-shell :where(.interrupt-miss-review, .interrupt-ledger-more, .interrupt-player-more) > summary::-webkit-details-marker {
  display: none;
}

.report-shell :where(.interrupt-miss-review, .interrupt-ledger-more, .interrupt-player-more) > summary > span {
  display: grid;
  gap: 0.15rem;
}

.report-shell :where(.interrupt-miss-review, .interrupt-ledger-more, .interrupt-player-more) > summary em {
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  font-style: normal;
}

.report-shell :where(.interrupt-miss-review, .interrupt-ledger-more, .interrupt-player-more) > summary b {
  align-items: center;
  background: var(--color-brand-soft);
  border: 1px solid var(--color-brand-border);
  border-radius: 999px;
  color: var(--color-brand-strong);
  display: inline-flex;
  font-size: var(--text-xs);
  justify-content: center;
  min-block-size: 1.75rem;
  min-inline-size: 1.75rem;
}

.report-shell .interrupt-miss-review .interrupt-missed-attempts {
  background: color-mix(in srgb, var(--subview-chart-bg) 72%, transparent);
  border-top-color: var(--subview-line);
  gap: 0;
  padding: 0 var(--space-5) var(--space-4);
}

.report-shell .interrupt-miss-review .interrupt-missed-attempt {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--subview-line);
  border-radius: 0;
  padding-block: var(--space-3);
}

.report-shell .interrupt-filter-toolbar {
  align-items: end;
  background: var(--subview-surface-raised);
  border-block: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-3) var(--space-5);
  grid-template-columns: minmax(0, 1fr) auto;
  padding: var(--space-3) var(--space-5);
}

.report-shell .interrupt-filter-row {
  justify-content: flex-start;
}

.report-shell .interrupt-filter-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.report-shell .interrupt-filter-selects {
  display: flex;
  gap: var(--space-3);
}

.report-shell .interrupt-filter-selects label {
  display: grid;
  gap: var(--space-1);
  min-inline-size: 9rem;
}

.report-shell .interrupt-filter-selects label > span {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-shell .interrupt-filter-selects select {
  background: var(--color-surface-raised);
  border: 1px solid var(--subview-line-strong);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-xs);
  min-block-size: 2.25rem;
  padding: 0.4rem 2rem 0.4rem 0.65rem;
}

.report-shell .interrupt-ledger {
  display: grid;
  padding-inline: var(--space-5);
}

.report-shell .interrupt-ledger-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(8.5rem, auto);
  min-block-size: 4.5rem;
  padding-block: var(--space-3);
}

.report-shell .interrupt-ledger-row > time {
  color: var(--color-brand-strong);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-semibold);
}

.report-shell .interrupt-ledger-matchup {
  align-items: center;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-inline-size: 0;
}

.report-shell .interrupt-ledger-actor {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-inline-size: 0;
}

.report-shell .interrupt-ledger-actor.target {
  justify-content: flex-start;
}

.report-shell .interrupt-ledger-result {
  align-items: end;
  display: grid;
  gap: 0.25rem;
  justify-items: end;
}

.report-shell .interrupt-ledger-result > strong {
  color: var(--color-text);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
}

.report-shell .interrupt-basis {
  background: transparent;
  border-color: var(--subview-line-strong);
  color: var(--color-text-secondary);
  font-size: 0.625rem;
  padding: 0.2rem 0.45rem;
}

.report-shell .interrupt-basis.known {
  color: var(--subview-health);
}

.report-shell .interrupt-basis.area {
  color: var(--color-brand-strong);
}

.report-shell .interrupt-basis.knockdown {
  color: var(--subview-energy);
}

.report-shell .interrupt-ledger-evidence {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  text-align: right;
}

.report-shell .interrupt-ledger-evidence > summary {
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.2em;
}

.report-shell .interrupt-ledger-evidence > summary::-webkit-details-marker {
  display: none;
}

.report-shell .interrupt-ledger-evidence > div {
  display: grid;
  gap: 0.2rem;
  margin-block-start: var(--space-1);
  max-inline-size: 24rem;
}

.report-shell .interrupt-ledger-more > summary {
  justify-content: flex-start;
}

.report-shell :where(.interrupt-ledger-more, .interrupt-player-more) > summary span {
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
}

.report-shell .interrupt-player-more > .interrupt-player-table {
  border-top: 1px solid var(--subview-line);
}

/* Critical moments and death recaps -------------------------------------- */

.report-shell .death-recap-top {
  align-items: center;
  border-bottom: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
  margin-block-end: var(--space-5);
  padding-block: var(--space-5);
}

.report-shell .death-recap-title :is(h1, h2) {
  font-size: var(--text-2xl);
  letter-spacing: -0.035em;
  margin: var(--space-1) 0;
}

.report-shell .death-recap-title .eyebrow {
  color: var(--color-brand);
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-shell .death-recap-title .muted {
  margin: 0;
}

.report-shell .combat-recap-subtabs {
  background: var(--subview-surface-raised);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-md);
  padding: var(--space-1);
}

.report-shell .critical-moment-workspace {
  align-items: start;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(15.5rem, 17.5rem) minmax(0, 1fr);
}

.report-shell .critical-moment-navigator {
  background: var(--subview-surface);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-block-size: min(46rem, calc(100vh - 2rem));
  min-block-size: 0;
  overflow: hidden;
  position: sticky;
  top: var(--space-4);
}

.report-shell .critical-moment-nav-head {
  border-bottom: 1px solid var(--subview-line);
  display: block;
  padding: var(--space-2);
}

.report-shell .critical-moment-nav-head .combat-recap-subtabs {
  background: transparent;
  border: 0;
  display: grid;
  gap: var(--space-1);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  inline-size: 100%;
  padding: 0;
}

.report-shell .critical-moment-nav-head .damage-view-button {
  font-size: 0.6875rem;
  min-block-size: 2.5rem;
  min-inline-size: 0;
  padding: var(--space-2);
  text-align: center;
}

.report-shell .critical-moment-picker-empty {
  align-content: center;
  color: var(--color-text-subtle);
  display: grid;
  font-size: var(--text-xs);
  min-block-size: 8rem;
  padding: var(--space-4);
  text-align: center;
}

.report-shell .death-recap-picker {
  background: transparent;
  border: 0;
  display: grid;
  gap: 0;
  margin: 0;
  min-block-size: 0;
  overflow: auto;
  padding: var(--space-2);
}

.report-shell .death-recap-tab {
  align-items: center;
  background: transparent;
  border: 0;
  border-block-end: 1px solid var(--subview-line);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  min-block-size: 4.25rem;
  padding: var(--space-3);
  position: relative;
}

.report-shell .death-recap-tab.active {
  background: var(--color-brand-soft);
  border-color: var(--subview-line);
  box-shadow: inset 2px 0 0 var(--color-brand);
  color: var(--color-text);
}

.report-shell .death-recap-tab:last-child {
  border-block-end: 0;
}

.report-shell .death-recap-tab:hover {
  background: color-mix(in srgb, var(--subview-surface-raised) 82%, transparent);
}

.report-shell .death-recap-tab:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: -2px;
}

.report-shell .critical-moment-nav-index {
  align-items: center;
  background: var(--subview-surface-raised);
  border: 1px solid var(--subview-line);
  border-radius: 999px;
  color: var(--color-text-subtle);
  display: inline-flex;
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-bold);
  block-size: 1.35rem;
  inline-size: 1.35rem;
  justify-content: center;
}

.report-shell .death-recap-tab.active .critical-moment-nav-index {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-bg);
}

.report-shell .critical-moment-nav-copy,
.report-shell .critical-moment-nav-value {
  display: grid;
  min-inline-size: 0;
}

.report-shell .critical-moment-nav-copy {
  gap: 0.1rem;
}

.report-shell .critical-moment-nav-copy .death-recap-tab-time {
  color: var(--color-text-subtle);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}

.report-shell .critical-moment-nav-copy > strong {
  color: var(--color-text);
  font-size: var(--text-sm);
  overflow: hidden;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-shell .critical-moment-nav-copy > em {
  color: var(--color-brand);
  font-size: 0.625rem;
  font-style: normal;
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  text-transform: none;
}

.report-shell .critical-moment-nav-value {
  gap: 0.1rem;
  justify-items: end;
}

.report-shell .critical-moment-nav-value strong {
  color: var(--color-text);
  font-size: var(--text-sm);
  padding: 0;
}

.report-shell .critical-moment-nav-value em {
  color: var(--color-text-subtle);
  font-size: 0.5625rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-shell .death-recap-tab-badges {
  inset-block-start: var(--space-1);
  inset-inline-end: var(--space-1);
}

.report-shell .critical-moment-nav-footer {
  align-items: center;
  background: var(--subview-surface-raised);
  border-top: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr auto 1fr;
  min-block-size: 3rem;
  padding: var(--space-2);
}

.report-shell .critical-moment-nav-footer button {
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  min-block-size: 2rem;
  padding-inline: var(--space-2);
}

.report-shell .critical-moment-nav-footer button:last-child {
  text-align: end;
}

.report-shell .critical-moment-nav-footer button:hover:not(:disabled) {
  background: var(--color-brand-soft);
  color: var(--color-text);
}

.report-shell .critical-moment-nav-footer button:disabled {
  cursor: default;
  opacity: 0.35;
}

.report-shell .critical-moment-nav-footer span {
  color: var(--color-text-subtle);
  font-size: 0.625rem;
  white-space: nowrap;
}

.report-shell .death-recap-list {
  margin: 0;
  min-inline-size: 0;
}

.report-shell .death-recap-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: var(--space-4);
  overflow: visible;
}

.report-shell .critical-moment-hero {
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--color-brand) 10%, transparent), transparent 34%),
    var(--subview-surface);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr);
  overflow: hidden;
  padding: var(--space-5);
}

.report-shell .critical-moment-hero-main {
  min-inline-size: 0;
}

.report-shell .critical-moment-kicker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-end: var(--space-3);
}

.report-shell .critical-moment-outcome,
.report-shell .critical-moment-time {
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

.report-shell .critical-moment-outcome.death {
  background: color-mix(in srgb, #cf7d78 14%, transparent);
  border: 1px solid color-mix(in srgb, #cf7d78 38%, transparent);
  color: #e5aaa6;
}

.report-shell .critical-moment-outcome.survived {
  background: color-mix(in srgb, #7eb38a 14%, transparent);
  border: 1px solid color-mix(in srgb, #7eb38a 38%, transparent);
  color: #a8d1b1;
}

.report-shell .critical-moment-time {
  background: var(--subview-surface-raised);
  border: 1px solid var(--subview-line);
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.report-shell .critical-moment-special-badges {
  align-items: center;
  display: inline-flex;
  gap: var(--space-1);
}

.report-shell .critical-moment-identity h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0;
}

.report-shell .critical-moment-summary {
  color: var(--color-text);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.5;
  margin: var(--space-4) 0 var(--space-2);
  max-inline-size: 48rem;
}

.report-shell .critical-moment-insight {
  color: var(--color-text-subtle);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0;
}

.report-shell .critical-moment-health-context {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block-start: var(--space-3);
}

.report-shell .critical-moment-health-context > span {
  background: var(--subview-surface-raised);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 0.15rem;
  min-inline-size: 8.5rem;
  padding: 0.55rem 0.7rem;
}

.report-shell .critical-moment-health-context small {
  color: var(--color-text-subtle);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-shell .critical-moment-health-context strong {
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.report-shell .critical-moment-hero .death-weapon-set {
  border-top: 1px solid var(--subview-line);
  margin-block-start: var(--space-4);
  padding-block-start: var(--space-3);
}

.report-shell .critical-moment-balance {
  align-self: stretch;
  background: color-mix(in srgb, var(--subview-surface-raised) 72%, transparent);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--space-4);
  min-inline-size: 0;
  padding: var(--space-4);
}

.report-shell .critical-moment-balance-row {
  align-content: center;
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
}

.report-shell .critical-moment-balance-row + .critical-moment-balance-row {
  border-block-start: 1px solid var(--subview-line);
  padding-block-start: var(--space-4);
}

.report-shell .critical-moment-balance-head {
  align-items: baseline;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  min-inline-size: 0;
}

.report-shell .critical-moment-balance-head span {
  color: var(--color-text-subtle);
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-shell .critical-moment-balance-row.damage .critical-moment-balance-head span {
  color: #d79a96;
}

.report-shell .critical-moment-balance-row.healing .critical-moment-balance-head span {
  color: #9bc6a5;
}

.report-shell .critical-moment-balance-head strong {
  color: var(--color-text);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.report-shell .critical-moment-balance-track {
  background: color-mix(in srgb, var(--subview-line) 48%, transparent);
  border: 1px solid color-mix(in srgb, var(--subview-line) 76%, transparent);
  border-radius: 999px;
  block-size: 0.72rem;
  display: flex;
  inline-size: 100%;
  overflow: hidden;
}

.report-shell .critical-moment-balance-segment {
  block-size: 100%;
  flex: 0 0 var(--balance-share, auto);
  inline-size: var(--balance-share, auto);
  min-inline-size: 0;
}

.report-shell .critical-moment-balance-segment.landed {
  background: linear-gradient(90deg, #b95f5b, #d5847f);
}

.report-shell .critical-moment-balance-segment.prevented {
  background: linear-gradient(90deg, #5f8f89, #83b3ac);
}

.report-shell .critical-moment-balance-segment.max-health {
  background: linear-gradient(90deg, #8468a7, #aa87cc);
}

.report-shell .critical-moment-balance-segment.healing {
  background: linear-gradient(90deg, #60966d, #86bc92);
}

.report-shell .critical-moment-balance-segment + .critical-moment-balance-segment {
  box-shadow: -1px 0 0 color-mix(in srgb, var(--color-bg) 58%, transparent);
}

.report-shell .critical-moment-balance-legend {
  align-items: center;
  color: var(--color-text-subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  gap: var(--space-2) var(--space-4);
  line-height: 1.35;
}

.report-shell .critical-moment-balance-legend > span {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.report-shell .critical-moment-balance-legend i {
  background: var(--subview-line);
  border-radius: 999px;
  block-size: 0.42rem;
  display: inline-block;
  inline-size: 0.42rem;
}

.report-shell .critical-moment-balance-legend .landed i {
  background: #cf7d78;
}

.report-shell .critical-moment-balance-legend .prevented i {
  background: #75a7a0;
}

.report-shell .critical-moment-balance-legend .max-health i {
  background: #9b7cbe;
}

.report-shell .critical-moment-balance-legend strong {
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.report-shell .critical-moment-exchange,
.report-shell .critical-moment-evidence-column,
.report-shell .critical-moment-context,
.report-shell .critical-moment-context-empty,
.report-shell .critical-moment-secondary > details {
  background: var(--subview-surface);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-lg);
}

.report-shell .critical-moment-exchange {
  overflow: hidden;
  padding: var(--space-5);
}

.report-shell .critical-moment-section-head {
  align-items: center;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  margin-block-end: var(--space-3);
}

.report-shell .critical-moment-section-head .eyebrow {
  color: var(--color-text-subtle);
  display: block;
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  margin-block-end: var(--space-1);
  text-transform: uppercase;
}

.report-shell .critical-moment-section-head h3 {
  font-size: var(--text-lg);
  margin: 0;
}

.report-shell .critical-exchange-chart,
.report-shell .critical-exchange-chart canvas,
.report-shell .critical-exchange-chart svg {
  block-size: var(--gvg-chart-height, 17.5rem);
  min-block-size: 17.5rem;
}

.report-shell .critical-moment-evidence {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-shell .critical-moment-evidence-column {
  min-inline-size: 0;
  overflow: visible;
  position: relative;
}

.report-shell .critical-moment-column-head {
  align-items: baseline;
  border-bottom: 1px solid var(--subview-line);
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  padding: var(--space-4);
}

.report-shell .critical-moment-column-head span {
  color: var(--color-brand);
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-shell .critical-moment-column-head strong {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.report-shell .critical-moment-evidence-column.response .critical-moment-column-head span {
  color: #8ebd99;
}

.report-shell .critical-moment-evidence-column .death-recap-block {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.report-shell .critical-moment-evidence-column .death-recap-block + .death-recap-block {
  border-top: 1px solid var(--subview-line);
}

.report-shell .critical-moment-evidence-column .death-recap-block-head {
  background: color-mix(in srgb, var(--subview-surface-raised) 74%, transparent);
  border-bottom-color: var(--subview-line);
}

.report-shell .critical-moment-evidence-column .death-recap-mini-row {
  background: transparent;
  border-color: var(--subview-line);
}

.report-shell .death-recap-source em {
  color: var(--color-brand);
}

.report-shell .death-recap-source-more {
  border-top: 1px solid var(--subview-line);
}

.report-shell .death-recap-source-more > summary {
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  list-style: none;
  padding: var(--space-3) var(--space-4);
}

.report-shell .death-recap-source-more > summary::-webkit-details-marker {
  display: none;
}

.report-shell .death-recap-source-more > summary::after {
  content: " +";
  color: var(--color-brand);
}

.report-shell .death-recap-source-more[open] > summary::after {
  content: " −";
}

.report-shell .critical-response-empty {
  min-block-size: 8rem;
  padding: var(--space-5);
}

.report-shell .critical-moment-context {
  overflow: visible;
  position: relative;
}

.report-shell .critical-moment-context > summary,
.report-shell .critical-replay-disclosure > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  list-style: none;
  padding: var(--space-4) var(--space-5);
}

.report-shell .critical-moment-context > summary::-webkit-details-marker,
.report-shell .critical-replay-disclosure > summary::-webkit-details-marker {
  display: none;
}

.report-shell .critical-moment-context > summary > span:first-child,
.report-shell .critical-replay-disclosure > summary > span:first-child {
  display: grid;
  gap: var(--space-1);
}

.report-shell .critical-moment-context > summary strong,
.report-shell .critical-replay-disclosure > summary strong {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.report-shell .critical-moment-context > summary em,
.report-shell .critical-replay-disclosure > summary em {
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  font-style: normal;
}

.report-shell .critical-moment-context-counts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.report-shell .critical-moment-context-counts b {
  background: var(--subview-surface-raised);
  border: 1px solid var(--subview-line);
  border-radius: 999px;
  color: var(--color-text-secondary);
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
}

.report-shell .critical-moment-context-grid {
  border-top: 1px solid var(--subview-line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-shell .critical-moment-context-grid .death-recap-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--subview-line);
}

.report-shell .critical-moment-context-grid .death-recap-block:nth-child(odd) {
  border-inline-end: 1px solid var(--subview-line);
}

.report-shell .critical-moment-context-grid > :only-child {
  border-inline-end: 0 !important;
  grid-column: 1 / -1;
}

.report-shell .critical-moment-context-empty {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
}

.report-shell .critical-moment-context-empty strong {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.report-shell .critical-moment-context-empty span {
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
}

.report-shell .critical-moment-secondary {
  display: grid;
  gap: var(--space-3);
}

.report-shell .critical-moment-secondary .death-timeline {
  background: var(--subview-surface);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
}

.report-shell :is(
  .critical-moment-evidence-column,
  .critical-moment-context,
  .critical-moment-secondary .death-timeline
):has(:is(.skill-token:hover, .skill-token:focus, .skill-token.is-open, .condition-token:hover, .condition-token:focus, .condition-token.is-open)) {
  z-index: 2;
}

.report-shell .critical-moment-secondary .death-timeline > summary {
  background: transparent;
  border: 0;
  padding: var(--space-4) var(--space-5);
}

.report-shell .critical-replay-disclosure > summary > span:last-child {
  color: var(--color-text-subtle);
  font-size: 0.625rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.report-shell .critical-replay-disclosure[open] > summary {
  border-bottom: 1px solid var(--subview-line);
}

.report-shell .critical-replay-disclosure .death-replay-panel {
  border: 0;
}

@media (max-width: 64rem) {
  .report-shell .critical-moment-workspace {
    grid-template-columns: 1fr;
  }

  .report-shell .critical-moment-navigator {
    max-block-size: none;
    position: static;
  }

  .report-shell .death-recap-picker {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .report-shell .death-recap-tab {
    border-block-end: 0;
    border-inline-end: 1px solid var(--subview-line);
    flex: 0 0 15rem;
    scroll-snap-align: start;
  }

  .report-shell .critical-moment-nav-footer {
    border-top: 1px solid var(--subview-line);
  }
}

@media (max-width: 45rem) {
  .report-shell .death-recap-top {
    grid-template-columns: 1fr;
  }

  .report-shell .combat-recap-subtabs {
    inline-size: 100%;
  }

  .report-shell .combat-recap-subtabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell .critical-moment-hero,
  .report-shell .critical-moment-evidence,
  .report-shell .critical-moment-context-grid {
    grid-template-columns: 1fr;
  }

  .report-shell .critical-moment-hero,
  .report-shell .critical-moment-exchange {
    padding: var(--space-4);
  }

  .report-shell .critical-moment-balance {
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .report-shell .critical-moment-balance-row + .critical-moment-balance-row {
    padding-block-start: var(--space-3);
  }

  .report-shell .critical-moment-balance-head strong {
    font-size: 1.2rem;
  }

  .report-shell .critical-moment-balance-legend {
    gap: var(--space-1) var(--space-3);
  }

  .report-shell .critical-moment-context-grid .death-recap-block:nth-child(odd) {
    border-inline-end: 0;
  }

  .report-shell .critical-moment-context > summary,
  .report-shell .critical-replay-disclosure > summary {
    align-items: flex-start;
    display: grid;
    padding: var(--space-4);
  }

  .report-shell .critical-moment-context-counts {
    justify-content: flex-start;
  }

  .report-shell .critical-moment-evidence-column .death-recap-mini-row,
  .report-shell .death-recap-source-more .death-recap-mini-row {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .report-shell .critical-moment-evidence-column .death-recap-source,
  .report-shell .death-recap-source-more .death-recap-source {
    grid-column: 1;
    grid-row: 1;
  }

  .report-shell .critical-moment-evidence-column .death-recap-skill,
  .report-shell .death-recap-source-more .death-recap-skill {
    grid-column: 1;
    grid-row: 2;
  }

  .report-shell .critical-moment-evidence-column .death-recap-mini-row > .num,
  .report-shell .death-recap-source-more .death-recap-mini-row > .num {
    grid-column: 2;
    grid-row: 1;
  }

  .report-shell .critical-moment-evidence-column .death-recap-mini-row > .muted,
  .report-shell .death-recap-source-more .death-recap-mini-row > .muted {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 70rem) {
  .report-shell[data-destination="statistics"] .damage-graph-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell[data-destination="statistics"] .damage-graph-card:nth-child(2) {
    border-inline-end: 0;
    padding-inline-end: 0;
  }

  .report-shell[data-destination="statistics"] .damage-graph-card:nth-child(n + 3) {
    border-block-start: 1px solid var(--subview-line);
    border-inline-end: 0;
    grid-column: 1 / -1;
    margin-block-start: var(--space-5);
    padding: var(--space-5) 0 0;
  }

  .report-shell .interrupt-player-header {
    display: none;
  }

  .report-shell .interrupt-player-table {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block-start: var(--space-4);
  }

  .report-shell .interrupt-player-row:not(.interrupt-player-header) {
    background: var(--subview-surface-raised);
    border: 1px solid var(--subview-line);
    border-radius: var(--radius-md);
    gap: var(--space-3) var(--space-5);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--space-4);
  }

  .report-shell .interrupt-player-row:not(.interrupt-player-header) > span:first-child {
    border-bottom: 1px solid var(--subview-line);
    grid-column: 1 / -1;
    padding-block-end: var(--space-3);
  }

  .report-shell .interrupt-player-row [data-label]::before {
    color: var(--color-text-subtle);
    content: attr(data-label);
    font-size: 0.625rem;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .report-shell .interrupt-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 56rem) {
  .report-shell [data-report-panel] .panel-head,
  .report-shell [data-report-panel] .damage-table-head,
  .report-shell [data-report-panel] .combat-lines-head,
  .report-shell .effect-uptime-graph-head {
    align-items: stretch;
    display: grid;
  }

  .report-shell [data-report-panel] :where(.combat-head-controls, .game-story-legend, .guild-lord-chart-legend) {
    justify-content: flex-start;
  }

  .report-shell [data-report-panel] :where(.combat-head-controls, .combat-main-tabs, .general-stats-team-tabs) {
    inline-size: 100%;
  }

  .report-shell .game-story-scrubber {
    grid-template-columns: 1fr;
  }

  .report-shell :where(.game-story-readout, .game-story-time) {
    border-bottom: 1px solid var(--subview-line);
    border-inline-end: 0;
  }

  .report-shell .game-story-scrubber > :last-child {
    border-bottom: 0;
  }

  .report-shell .match-timeline-controls {
    grid-template-columns: 1fr;
  }

  .report-shell .match-timeline-range,
  .report-shell .match-timeline-window {
    inline-size: 100%;
  }

  .report-shell [data-report-panel] .interrupt-analysis-head {
    align-items: flex-start;
    display: flex;
  }

  .report-shell :where(.guild-lord-score-grid, .guild-lord-lord-grid) {
    grid-template-columns: 1fr;
  }

  .report-shell .interrupt-overview-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-shell .interrupt-overview-facts > span {
    border-bottom: 1px solid var(--subview-line);
    padding-block: var(--space-3);
  }

  .report-shell .interrupt-overview-facts > span:nth-child(3n) {
    border-inline-end: 0;
  }

  .report-shell .interrupt-overview-facts > span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .report-shell .interrupt-mesmer-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell .interrupt-miss-outcomes {
    grid-column: 1 / -1;
  }

  .report-shell .interrupt-filter-toolbar {
    grid-template-columns: 1fr;
  }

  .report-shell .interrupt-filter-selects {
    inline-size: 100%;
  }

  .report-shell .interrupt-filter-selects label {
    flex: 1 1 12rem;
  }

  .report-shell .interrupt-ledger-row {
    align-items: start;
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .report-shell .interrupt-ledger-result {
    align-items: center;
    grid-column: 2;
    grid-template-columns: repeat(2, auto) minmax(0, 1fr);
    justify-items: start;
  }

  .report-shell .interrupt-ledger-evidence {
    justify-self: end;
  }
}

@media (max-width: 45rem) {
  .report-shell [data-report-panel] .panel-head {
    min-block-size: 0;
    padding: var(--space-4);
  }

  .report-shell .player-roster-team {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .report-shell .player-roster-team-head {
    align-items: center;
    border-block-end: 1px solid var(--subview-line);
    border-inline-end: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-1) var(--space-1);
  }

  .report-shell .player-roster-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell[data-destination="statistics"] .damage-graph-layout {
    display: block;
    padding: var(--space-4);
  }

  .report-shell[data-destination="statistics"] .damage-graph-card,
  .report-shell[data-destination="statistics"] .damage-graph-card:nth-child(2),
  .report-shell[data-destination="statistics"] .damage-graph-card:nth-child(n + 3) {
    border-block-start: 1px solid var(--subview-line);
    border-inline-end: 0;
    margin-block-start: var(--space-4);
    padding: var(--space-4) 0 0;
  }

  .report-shell[data-destination="statistics"] .damage-graph-card:first-child {
    border-block-start: 0;
    margin-block-start: 0;
    padding-block-start: 0;
  }

  .report-shell .effect-uptime-graph-panel {
    margin-inline: var(--space-3);
  }

  .report-shell .effect-uptime-graph-divider,
  .report-shell .effect-uptime-graph-head,
  .report-shell :where(.effect-uptime-graph-skill-selector, .effect-uptime-graph-player-selector, .effect-uptime-graph-legend) {
    margin-inline: var(--space-4);
  }

  .report-shell .effect-uptime-graph-divider {
    margin-inline: 0;
    padding-inline: var(--space-4);
  }

  .report-shell :where(.game-story-chart, .match-timeline-chart),
  .report-shell :where(.game-story-chart, .match-timeline-chart) svg,
  .report-shell .effect-uptime-graph-svg {
    min-block-size: 19rem;
  }

  .report-shell .match-timeline-controls {
    padding-inline: var(--space-4);
  }

  .report-shell .interrupt-overview {
    padding: var(--space-4);
  }

  .report-shell .interrupt-overview-head,
  .report-shell [data-report-panel] .interrupt-analysis-head {
    display: grid;
  }

  .report-shell .interrupt-observation-note {
    align-items: center;
    display: flex;
    justify-items: start;
  }

  .report-shell .interrupt-guild-score {
    padding-inline: var(--space-4);
  }

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

  .report-shell .interrupt-overview-facts > span,
  .report-shell .interrupt-overview-facts > span:first-child,
  .report-shell .interrupt-overview-facts > span:last-child {
    border-bottom: 1px solid var(--subview-line);
    border-inline-end: 1px solid var(--subview-line);
    padding: var(--space-3);
  }

  .report-shell .interrupt-overview-facts > span:nth-child(2n) {
    border-inline-end: 0;
  }

  .report-shell .interrupt-overview-facts > span:last-child {
    border-bottom: 0;
    grid-column: 1 / -1;
  }

  .report-shell .interrupt-highlight-grid,
  .report-shell .interrupt-mesmer-summary,
  .report-shell .interrupt-accuracy-columns {
    grid-template-columns: 1fr;
  }

  .report-shell .interrupt-highlight:first-child,
  .report-shell .interrupt-highlight:last-child {
    border-radius: var(--radius-md);
  }

  .report-shell .interrupt-miss-outcomes {
    grid-column: auto;
  }

  .report-shell .interrupt-player-row:not(.interrupt-player-header) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell .interrupt-player-table {
    grid-template-columns: 1fr;
  }

  .report-shell .interrupt-filter-selects {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell .interrupt-ledger,
  .report-shell .interrupt-player-table,
  .report-shell .interrupt-miss-review .interrupt-missed-attempts {
    padding-inline: var(--space-4);
  }

  .report-shell .interrupt-ledger-matchup {
    grid-template-columns: 1fr;
  }

  .report-shell .interrupt-ledger-matchup > .interrupt-arrow {
    justify-self: start;
    transform: rotate(90deg);
  }

  .report-shell .interrupt-ledger-result {
    grid-template-columns: 1fr;
  }

  .report-shell .interrupt-ledger-evidence {
    justify-self: start;
    text-align: left;
  }

  .report-shell .death-recap-top {
    align-items: stretch;
    display: grid;
    gap: var(--space-4);
  }

  .report-shell .combat-recap-subtabs,
  .report-shell .combat-recap-subtabs .damage-view-button {
    inline-size: 100%;
  }

  .report-shell .death-recap-statline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell .death-recap-statline > span {
    border-bottom: 1px solid var(--subview-line);
  }
}

@media (max-width: 30rem) {
  .report-shell [data-report-panel] :where(.damage-view-tabs, .effect-view-tabs, .condition-view-tabs, .condition-player-tabs, .segmented-control) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell [data-report-panel] :where(.damage-view-button, .effect-view-button, .condition-view-button, .condition-player-button, .segmented-control button) {
    justify-content: center;
    inline-size: 100%;
  }

  .report-shell .interrupt-guild-score {
    gap: var(--space-2);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding-inline: var(--space-3);
  }

  .report-shell .interrupt-guild-score-side {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-shell .interrupt-guild-score-side > strong {
    font-size: 2rem;
    grid-column: 1;
    grid-row: auto;
  }

  .report-shell .interrupt-filter-selects,
  .report-shell .interrupt-player-row:not(.interrupt-player-header) {
    grid-template-columns: 1fr;
  }

  .report-shell .interrupt-player-row:not(.interrupt-player-header) > span:first-child {
    grid-column: 1;
  }

  .report-shell .interrupt-accuracy-row {
    grid-template-columns: minmax(0, 1fr) 4.5rem;
  }

  .report-shell .interrupt-accuracy-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .report-shell .interrupt-ledger-row {
    grid-template-columns: 1fr;
  }

  .report-shell .interrupt-ledger-row > time,
  .report-shell .interrupt-ledger-result {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-shell [data-report-panel] *,
  .report-shell [data-report-panel] *::before,
  .report-shell [data-report-panel] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ECharts-backed analytical views ---------------------------------------- */

.report-shell .gvg-chart {
  background: var(--subview-chart-bg);
  border: 0;
  inline-size: 100%;
  min-block-size: 20rem;
  overflow: hidden;
  position: relative;
}

.report-shell .gvg-chart > :where(canvas, svg, div:not(.gvg-chart-loading)) {
  max-inline-size: none;
}

.report-shell .gvg-chart-loading {
  align-items: center;
  color: var(--color-text-subtle);
  display: flex;
  font-size: var(--text-xs);
  gap: var(--space-2);
  inset: 0;
  justify-content: center;
  letter-spacing: 0.035em;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
}

.report-shell .gvg-chart-loading span {
  animation: gvg-chart-pulse 1.2s ease-in-out infinite;
  background: var(--color-brand-strong);
  block-size: 0.5rem;
  border-radius: 50%;
  inline-size: 0.5rem;
}

.report-shell .gvg-chart[data-gvg-chart-status="ready"] .gvg-chart-loading,
.report-shell .gvg-chart:is([data-gvg-chart-status="error"], [data-gvg-chart-status="unavailable"]) .gvg-chart-loading span {
  display: none;
}

.report-shell .gvg-chart:is([data-gvg-chart-status="error"], [data-gvg-chart-status="unavailable"]) .gvg-chart-loading {
  color: var(--color-text-secondary);
  font-size: 0;
  text-transform: none;
}

.report-shell .gvg-chart:is([data-gvg-chart-status="error"], [data-gvg-chart-status="unavailable"]) .gvg-chart-loading::after {
  content: "Chart unavailable — the table remains available";
  font-size: var(--text-xs);
}

.report-shell .game-story-chart {
  block-size: clamp(30rem, 54vw, 38rem);
  min-block-size: 30rem;
}

.report-shell .effect-uptime-chart {
  block-size: clamp(20rem, 42vw, 32rem);
  min-block-size: 20rem;
}

.report-shell .guild-lord-damage-chart {
  block-size: clamp(20rem, 34vw, 26rem);
}

.report-shell .chain-combo-chart {
  block-size: clamp(20rem, 36vw, 27rem);
}

.report-shell .combat-ranking-block {
  background: var(--subview-chart-bg);
  border-bottom: 1px solid var(--subview-line);
  padding: var(--space-4) var(--space-5) var(--space-2);
}

.report-shell .combat-ranking-head,
.report-shell .match-timeline-event-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.report-shell .combat-ranking-head h3,
.report-shell .match-timeline-event-head h3 {
  color: var(--color-text);
  font-size: var(--text-md);
  margin: var(--space-1) 0 0;
}

.report-shell .combat-ranking-chart {
  block-size: clamp(18rem, 34vw, 24rem);
  min-block-size: 18rem;
}

.report-shell .chart-provenance {
  align-items: center;
  align-self: flex-start;
  background: color-mix(in srgb, var(--color-brand-soft) 62%, transparent);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-pill);
  color: var(--color-brand-strong);
  display: inline-flex;
  flex: none;
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.055em;
  min-block-size: 1.6rem;
  inline-size: max-content;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

.report-shell .match-timeline-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  min-block-size: 27rem;
}

.report-shell .match-timeline-workspace > .match-timeline-chart {
  block-size: 27rem;
  border-inline-end: 1px solid var(--subview-line);
  min-block-size: 27rem;
}

.report-shell .match-timeline-event-rail {
  background: color-mix(in srgb, var(--subview-surface) 92%, var(--subview-chart-bg));
  display: flex;
  flex-direction: column;
  min-block-size: 0;
  min-inline-size: 0;
}

.report-shell .match-timeline-event-head {
  border-bottom: 1px solid var(--subview-line);
  padding: var(--space-4);
}

.report-shell .match-timeline-event-head > strong {
  color: var(--color-brand-strong);
  font-variant-numeric: tabular-nums;
}

.report-shell .match-timeline-event-rail .match-timeline-events {
  display: block;
  margin: 0;
  max-block-size: 21.5rem;
  overflow: auto;
  padding: 0;
  scrollbar-color: var(--color-border-strong) transparent;
}

.report-shell .match-timeline-event-rail .timeline-row {
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--subview-line);
  border-radius: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 3.2rem minmax(0, 1fr);
  padding: var(--space-3) var(--space-4);
}

.report-shell .match-timeline-event-rail .timeline-row:hover {
  background: var(--color-surface-hover);
}

.report-shell .match-timeline-event-rail .timeline-row .pill {
  background: transparent;
  border: 0;
  color: var(--color-brand-strong);
  font-variant-numeric: tabular-nums;
  padding: 0.1rem 0;
}

.report-shell .match-timeline-event-rail .timeline-row strong,
.report-shell .match-timeline-event-rail .timeline-row small {
  display: block;
  line-height: var(--line-normal);
}

.report-shell .match-timeline-event-rail .timeline-row strong {
  color: var(--color-text);
  font-size: var(--text-xs);
}

.report-shell .match-timeline-event-rail .timeline-row small {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  margin-block-start: 0.15rem;
}

@keyframes gvg-chart-pulse {
  0%, 100% { opacity: 0.28; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 64rem) {
  .report-shell .match-timeline-workspace {
    grid-template-columns: 1fr;
  }

  .report-shell .match-timeline-workspace > .match-timeline-chart {
    border-block-end: 1px solid var(--subview-line);
    border-inline-end: 0;
  }

  .report-shell .match-timeline-event-rail .match-timeline-events {
    max-block-size: 18rem;
  }
}

@media (max-width: 45rem) {
  .report-shell .game-story-chart {
    block-size: 31rem;
    min-block-size: 31rem;
  }

  .report-shell .match-timeline-workspace > .match-timeline-chart {
    block-size: 23rem;
    min-block-size: 23rem;
  }

  .report-shell :where(.effect-uptime-chart, .guild-lord-damage-chart, .chain-combo-chart) {
    block-size: 22rem;
    min-block-size: 22rem;
  }

  .report-shell .combat-ranking-block {
    padding-inline: var(--space-4);
  }

  .report-shell .combat-ranking-chart {
    block-size: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-shell .gvg-chart-loading span {
    animation: none;
  }
}

/* Map replay: playback first, analysis layers on demand ------------------ */

.report-shell .movement-map-panel {
  background: var(--subview-chart-bg);
  border-color: var(--subview-line-strong);
  border-radius: var(--radius-lg);
}

.report-shell .movement-map-controls {
  background: var(--subview-surface);
  border-bottom-color: var(--subview-line);
  display: block;
  padding: 0;
}

.report-shell .movement-map-primary-controls {
  align-items: end;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(20rem, 1fr) minmax(11rem, 15rem) minmax(14rem, 18rem);
  padding: var(--space-4) var(--space-5);
}

.report-shell .movement-map-primary-controls .map-time-field {
  grid-column: auto;
}

.report-shell .movement-map-panel .map-field > span,
.report-shell .movement-map-analysis .map-range-control > span {
  color: var(--color-text-subtle);
  font-size: 0.625rem;
  letter-spacing: 0.055em;
}

.report-shell .movement-map-panel :where(.map-field select, .map-field input:not([type="range"]), .map-toggle) {
  background: var(--color-canvas-raised);
  border-color: var(--subview-line-strong);
  border-radius: var(--radius-md);
  color: var(--color-text);
}

.report-shell .movement-map-analysis {
  border-top: 1px solid var(--subview-line);
}

.report-shell .movement-map-analysis > summary,
.report-shell .guild-lord-details-panel summary,
.report-shell .quality-developer-details > summary {
  align-items: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-block-size: 3.5rem;
  padding: var(--space-3) var(--space-5);
}

.report-shell .movement-map-analysis > summary::-webkit-details-marker,
.report-shell .guild-lord-details-panel summary::-webkit-details-marker,
.report-shell .quality-developer-details > summary::-webkit-details-marker {
  display: none;
}

.report-shell .movement-map-analysis > summary::after,
.report-shell .guild-lord-details-panel summary::after,
.report-shell .quality-developer-details > summary::after {
  color: var(--color-brand-strong);
  content: "+";
  font-size: var(--text-lg);
  line-height: 1;
  margin-inline-start: var(--space-4);
}

.report-shell .movement-map-analysis[open] > summary::after,
.report-shell .guild-lord-details-panel details[open] > summary::after,
.report-shell .quality-developer-details[open] > summary::after {
  content: "−";
}

.report-shell .movement-map-analysis > summary span,
.report-shell .guild-lord-details-panel summary span,
.report-shell .quality-developer-details > summary span {
  display: grid;
  gap: 0.1rem;
}

.report-shell .movement-map-analysis > summary strong,
.report-shell .guild-lord-details-panel summary strong,
.report-shell .quality-developer-details > summary strong {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.report-shell .movement-map-analysis > summary small,
.report-shell .guild-lord-details-panel summary small,
.report-shell .quality-developer-details > summary small {
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
}

.report-shell .movement-map-analysis-grid {
  border-top: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.report-shell .movement-map-analysis-grid .map-range-control {
  border-top-color: var(--subview-line);
  grid-column: 1 / -1;
  padding-block-start: var(--space-3);
}

.report-shell .movement-map-analysis-grid .map-toggle-row {
  align-content: end;
}

.report-shell .movement-map-layout {
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
}

.report-shell .movement-map-stage {
  background: #0d1214;
  border-inline-end-color: var(--subview-line);
  height: min(68vh, 46rem);
  min-height: 34rem;
  top: 4rem;
}

.report-shell .movement-map-sidebar {
  background: var(--subview-surface);
  max-height: min(68vh, 46rem);
}

.report-shell .movement-side-card {
  border-bottom-color: var(--subview-line);
  padding: var(--space-4);
}

.report-shell .movement-side-card :where(.map-stat-grid span, .map-effect-placeholder, .map-ruler-readout) {
  background: transparent;
  border-color: var(--subview-line);
  border-radius: var(--radius-md);
}

.report-shell .guild-lord-details-panel {
  background: var(--subview-surface);
  border-color: var(--subview-line);
  overflow: clip;
}

.report-shell .guild-lord-details-panel summary em {
  color: var(--color-brand-strong);
  font-size: var(--text-xs);
  font-style: normal;
  margin-inline-start: auto;
}

.report-shell .guild-lord-details-content {
  border-top: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
}

.report-shell .quality-developer-panel {
  background: var(--subview-surface);
  border-color: var(--subview-line);
  overflow: clip;
}

.report-shell .quality-developer-content {
  border-top: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
}

.report-shell .quality-developer-content > :where(.panel, .quality-debug-panel, .quality-workbench) {
  margin: 0;
}

.report-shell .guild-lord-details-content > .panel {
  margin: 0;
}

@media (max-width: 64rem) {
  .report-shell .movement-map-primary-controls {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem);
  }

  .report-shell .movement-map-primary-controls .map-time-field {
    grid-column: 1 / -1;
  }

  .report-shell .movement-map-analysis-grid,
  .report-shell .movement-map-layout {
    grid-template-columns: 1fr;
  }

  .report-shell .movement-map-stage {
    border-block-end: 1px solid var(--subview-line);
    border-inline-end: 0;
    position: relative;
    top: auto;
  }

  .report-shell .movement-map-sidebar {
    max-height: none;
  }
}

@media (max-width: 45rem) {
  .report-shell .movement-map-primary-controls {
    grid-template-columns: 1fr;
    padding-inline: var(--space-4);
  }

  .report-shell .movement-map-primary-controls .map-time-field {
    grid-column: auto;
  }

  .report-shell .movement-map-analysis > summary,
  .report-shell .movement-map-analysis-grid {
    padding-inline: var(--space-4);
  }

  .report-shell .movement-map-stage {
    height: 30rem;
    min-height: 30rem;
  }
}

/* Gear Lab --------------------------------------------------------------- */

.report-shell .gear-detail-view {
  margin-block-start: var(--space-3);
}

.report-shell .gear-lab-card {
  background: var(--subview-surface);
  border-color: var(--subview-line);
  border-radius: var(--radius-lg);
  overflow: clip;
}

.report-shell .gear-lab-hero {
  align-items: center;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--color-brand-soft) 52%, transparent), transparent 42%),
    var(--subview-surface);
  border-block-end: 1px solid var(--subview-line);
  display: flex;
  gap: var(--space-5);
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
}

.report-shell .gear-lab-player {
  align-items: center;
  display: flex;
  gap: var(--space-3);
  min-inline-size: 0;
}

.report-shell .gear-lab-player .loadout-professions {
  display: flex;
  flex: 0 0 auto;
  gap: var(--space-1);
  margin: 0;
}

.report-shell .gear-lab-player .profession-piece-icon {
  block-size: 2rem;
  inline-size: 2rem;
}

.report-shell .gear-lab-player h2 {
  color: var(--color-text);
  font-size: var(--text-xl);
  line-height: var(--line-tight);
  margin: 0.1rem 0 0;
}

.report-shell .gear-lab-player h2 em {
  color: var(--color-brand-strong);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: var(--weight-medium);
}

.report-shell .gear-lab-player p {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  margin: 0.2rem 0 0;
}

.report-shell .gear-section-eyebrow {
  color: var(--color-brand-strong);
  display: block;
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-shell .gear-recommendation-outcome {
  align-items: baseline;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto auto;
  text-align: end;
}

.report-shell .gear-recommendation-outcome strong {
  color: var(--color-brand-strong);
  font-size: var(--text-xl);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.report-shell .gear-recommendation-outcome span {
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  margin-inline-start: var(--space-2);
}

.report-shell .gear-recommendation-outcome small {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
  grid-column: 1 / -1;
  margin-block-start: var(--space-1);
}

.report-shell .gear-lab-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
}

.report-shell .gear-recommendation-column {
  align-content: start;
  display: grid;
  gap: var(--space-5);
  min-inline-size: 0;
  padding: var(--space-5);
}

.report-shell .gear-section-head {
  align-items: center;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
}

.report-shell .gear-section-head h3 {
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: var(--line-tight);
  margin: 0.15rem 0 0;
}

.report-shell .gear-section-head > strong {
  background: var(--color-brand-soft);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-pill);
  color: var(--color-brand-strong);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
}

.report-shell .gear-section-head-compact h3 {
  font-size: var(--text-md);
}

.report-shell .gear-primary-recommendation {
  align-content: start;
  align-self: start;
  background: color-mix(in srgb, var(--subview-surface-raised) 78%, transparent);
  border: 1px solid var(--color-brand-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 3px 0 0 var(--color-brand);
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
}

.report-shell .gear-primary-recommendation .gear-recommendation {
  border: 0;
  gap: 0;
  padding: 0;
}

.report-shell .gear-recommended-set-grid {
  align-items: start;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.report-shell .gear-recommended-set {
  align-content: start;
  background: color-mix(in srgb, var(--subview-surface) 70%, transparent);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
  padding: var(--space-3);
}

.report-shell .gear-recommendation-warning {
  align-items: start;
  background: color-mix(in srgb, var(--color-warning) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-warning) 34%, transparent);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  display: grid;
  font-size: 0.6875rem;
  gap: var(--space-1);
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  padding: var(--space-2) var(--space-3);
}

.report-shell .gear-recommendation-warning strong {
  color: var(--color-warning);
}

.report-shell .gear-primary-recommendation .gear-compact-set,
.report-shell .gear-spike-alternative .gear-compact-set,
.report-shell .gear-adaptive-card .gear-compact-set {
  align-items: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-shell .gear-primary-recommendation .gear-compact-item,
.report-shell .gear-spike-alternative .gear-compact-item,
.report-shell .gear-adaptive-card .gear-compact-item {
  align-items: center;
  border-block-start: 0;
  border-inline-start: 1px solid var(--subview-line);
  gap: var(--space-2);
  grid-template-columns: 2.25rem minmax(0, 1fr);
  padding: var(--space-2) var(--space-3);
}

.report-shell .gear-primary-recommendation .gear-compact-item:first-child,
.report-shell .gear-spike-alternative .gear-compact-item:first-child,
.report-shell .gear-adaptive-card .gear-compact-item:first-child {
  border-inline-start: 0;
  padding-block-start: var(--space-2);
}

.report-shell .gear-primary-recommendation .gear-compact-item :where(.gear-equipment-icon, .gear-compact-insignia-icon),
.report-shell .gear-spike-alternative .gear-compact-item :where(.gear-equipment-icon, .gear-compact-insignia-icon),
.report-shell .gear-adaptive-card .gear-compact-item :where(.gear-equipment-icon, .gear-compact-insignia-icon) {
  block-size: 2rem;
  inline-size: 2rem;
}

.report-shell .gear-primary-recommendation .gear-compact-item b,
.report-shell .gear-spike-alternative .gear-compact-item b,
.report-shell .gear-adaptive-card .gear-compact-item b {
  font-size: var(--text-sm);
}

.report-shell .gear-primary-recommendation .gear-compact-item span,
.report-shell .gear-spike-alternative .gear-compact-item span,
.report-shell .gear-adaptive-card .gear-compact-item span {
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
}

.report-shell .gear-primary-recommendation .gear-compact-item .gear-compact-kind,
.report-shell .gear-spike-alternative .gear-compact-item .gear-compact-kind,
.report-shell .gear-adaptive-card .gear-compact-item .gear-compact-kind {
  color: var(--color-brand-strong);
  font-size: 0.625rem;
}

.report-shell .gear-compact-insignia-icons {
  align-items: center;
  display: flex;
  inline-size: 2.25rem;
  justify-content: center;
}

.report-shell .gear-compact-insignia-icons .gear-compact-insignia-icon + .gear-compact-insignia-icon {
  margin-inline-start: -1rem;
}

.report-shell .gear-compact-insignia-list {
  display: grid;
  gap: var(--space-1);
}

.report-shell .gear-compact-insignia-group {
  display: block;
  margin: 0;
}

.report-shell .gear-compact-insignia-group b,
.report-shell .gear-compact-insignia-group small {
  display: block;
}

.report-shell .gear-compact-insignia-group small {
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
  line-height: 1.25;
}

.report-shell .gear-alternatives {
  display: grid;
  gap: var(--space-3);
}

.report-shell .gear-alternative-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.report-shell .gear-alternative-card {
  background: color-mix(in srgb, var(--subview-surface-raised) 62%, transparent);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
  padding: var(--space-3);
}

.report-shell .gear-alternative-head {
  align-items: baseline;
  display: flex;
  gap: var(--space-2);
  justify-content: space-between;
}

.report-shell .gear-alternative-head strong {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.report-shell .gear-alternative-head span {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
}

.report-shell .gear-alternative-reason {
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
  line-height: 1.4;
  margin: 0;
}

.report-shell .gear-alternative-loadout {
  align-items: center;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 2.25rem minmax(0, 1fr);
}

.report-shell .gear-alternative-loadout .gear-equipment-icon {
  block-size: 2rem;
  inline-size: 2rem;
}

.report-shell .gear-alternative-loadout :where(span, b, small) {
  display: block;
}

.report-shell .gear-alternative-loadout span,
.report-shell .gear-alternative-loadout small {
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
}

.report-shell .gear-alternative-loadout b {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.report-shell .gear-condition-value {
  border-block-start: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-3);
  padding-block-start: var(--space-4);
}

.report-shell .gear-condition-value h3 {
  color: var(--color-text);
  font-size: var(--text-sm);
  margin: 0;
}

.report-shell .gear-evidence-panel {
  background: color-mix(in srgb, var(--subview-surface-raised) 48%, transparent);
  border-inline-start: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-4);
  min-inline-size: 0;
  padding: var(--space-5);
}

.report-shell .gear-damage-summary {
  display: grid;
  gap: var(--space-3);
}

.report-shell .gear-evidence-total {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.report-shell .gear-evidence-total strong {
  color: var(--color-text);
  font-size: var(--text-xl);
  font-variant-numeric: tabular-nums;
}

.report-shell .gear-evidence-total span {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
}

.report-shell .gear-damage-highlights {
  display: grid;
  gap: var(--space-2);
}

.report-shell .gear-damage-highlights .gear-damage-meter-head b {
  font-size: var(--text-xs);
}

.report-shell .gear-damage-highlights .gear-damage-meter-bar {
  block-size: 0.25rem;
}

.report-shell .gear-evidence-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}

.report-shell .gear-evidence-stat.gear-shield-discipline {
  background: var(--subview-surface-raised);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 0.1rem;
  padding: var(--space-3);
}

.report-shell .gear-evidence-stat.gear-shield-discipline > span {
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
}

.report-shell .gear-evidence-stat.gear-shield-discipline > strong {
  color: var(--color-text);
  font-size: var(--text-lg);
}

.report-shell .gear-evidence-stat.gear-shield-discipline > small {
  color: var(--color-text-subtle);
  font-size: 0.6875rem;
}

.report-shell .gear-evidence-stat.gear-shield-discipline > em {
  color: var(--color-brand-strong);
  font-size: 0.6875rem;
  font-style: normal;
  margin-block-start: var(--space-1);
}

.report-shell .gear-evidence-section {
  border-block-start: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-2);
  padding-block-start: var(--space-3);
}

.report-shell .gear-evidence-section h4 {
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}

.report-shell .gear-evidence-section .gear-window-row {
  gap: var(--space-2);
  grid-template-columns: 2.75rem minmax(0, 1fr);
  padding-block-start: var(--space-2);
}

.report-shell .gear-evidence-section .gear-window-total strong {
  font-size: var(--text-xs);
}

.report-shell .gear-evidence-section .gear-window-total em {
  font-size: 0.6875rem;
}

.report-shell .gear-coverage-row {
  gap: var(--space-1);
}

.report-shell .gear-coverage-pill {
  background: var(--subview-surface-raised);
  border-color: var(--subview-line);
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
  padding: 0.2rem 0.45rem;
}

.report-shell .gear-adaptive-section {
  border-block-start: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.report-shell .gear-adaptive-list {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 31rem), 1fr));
}

.report-shell .gear-adaptive-card {
  background: color-mix(in srgb, var(--subview-surface-raised) 68%, transparent);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-md);
  gap: var(--space-3);
  padding: var(--space-3);
}

.report-shell .gear-adaptive-card:first-child {
  border: 1px solid var(--subview-line);
  padding-block-start: var(--space-3);
}

.report-shell .gear-adaptive-card-head time {
  color: var(--color-brand-strong);
  font-size: var(--text-sm);
}

.report-shell .gear-adaptive-card-head strong {
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
}

.report-shell .gear-adaptive-card-head > span {
  color: var(--color-success);
  font-size: 0.6875rem;
}

.report-shell .gear-adaptive-card-body {
  gap: var(--space-3);
  grid-template-columns: minmax(0, 1.3fr) minmax(11rem, 0.7fr);
}

.report-shell .gear-adaptive-context {
  gap: var(--space-2);
}

.report-shell .gear-adaptive-stat-row {
  display: grid;
  gap: var(--space-1);
}

.report-shell .gear-adaptive-stat-row span,
.report-shell .gear-adaptive-source-summary {
  color: var(--color-text-secondary);
  font-size: 0.6875rem;
}

.report-shell .gear-adaptive-stat-row b,
.report-shell .gear-adaptive-source-summary b {
  color: var(--color-text);
  font-size: inherit;
}

.report-shell .gear-model-note {
  border-block-start: 1px solid var(--subview-line);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
}

.report-shell .gear-model-note summary {
  color: var(--color-text-secondary);
  cursor: pointer;
  font-weight: var(--weight-medium);
  list-style-position: inside;
  padding: var(--space-3) var(--space-5);
}

.report-shell .gear-model-note summary:hover {
  color: var(--color-text);
}

.report-shell .gear-model-note summary:focus-visible {
  border-radius: var(--radius-sm);
  outline: 2px solid var(--focus-color);
  outline-offset: -3px;
}

.report-shell .gear-model-note > div {
  border-block-start: 1px solid var(--subview-line);
  display: grid;
  gap: var(--space-2);
  max-inline-size: 72ch;
  padding: var(--space-4) var(--space-5);
}

.report-shell .gear-model-note :where(p, ul) {
  margin: 0;
}

.report-shell .gear-model-note ul {
  padding-inline-start: var(--space-5);
}

.report-shell .gear-low-sample-state {
  background: color-mix(in srgb, var(--subview-surface-raised) 65%, transparent);
  border: 1px solid var(--subview-line);
  border-radius: var(--radius-md);
  margin: var(--space-5);
  max-inline-size: 34rem;
  padding: var(--space-5);
}

.report-shell .gear-low-sample-state > span {
  color: var(--color-warning);
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-shell .gear-low-sample-state h3 {
  color: var(--color-text);
  font-size: var(--text-lg);
  margin: var(--space-1) 0 var(--space-2);
}

.report-shell .gear-low-sample-state p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin: 0;
}

@media (max-width: 64rem) {
  .report-shell .gear-lab-body {
    grid-template-columns: 1fr;
  }

  .report-shell .gear-evidence-panel {
    border-block-start: 1px solid var(--subview-line);
    border-inline-start: 0;
  }
}

@media (max-width: 45rem) {
  .report-shell .gear-lab-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: var(--space-4);
  }

  .report-shell .gear-recommendation-outcome {
    text-align: start;
  }

  .report-shell .gear-recommendation-column,
  .report-shell .gear-evidence-panel,
  .report-shell .gear-adaptive-section {
    padding: var(--space-4);
  }

  .report-shell .gear-primary-recommendation .gear-compact-set,
  .report-shell .gear-spike-alternative .gear-compact-set,
  .report-shell .gear-adaptive-card .gear-compact-set {
    grid-template-columns: 1fr;
  }

  .report-shell .gear-primary-recommendation .gear-compact-item,
  .report-shell .gear-spike-alternative .gear-compact-item,
  .report-shell .gear-adaptive-card .gear-compact-item {
    border-block-start: 1px solid var(--subview-line);
    border-inline-start: 0;
  }

  .report-shell .gear-primary-recommendation .gear-compact-item:first-child,
  .report-shell .gear-spike-alternative .gear-compact-item:first-child,
  .report-shell .gear-adaptive-card .gear-compact-item:first-child {
    border-block-start: 0;
  }

  .report-shell .gear-adaptive-card-body {
    grid-template-columns: 1fr;
  }

  .report-shell .gear-model-note summary,
  .report-shell .gear-model-note > div {
    padding-inline: var(--space-4);
  }
}
