:root {
  --bg: #07111c;
  --bg-2: #0d1d2d;
  --panel: rgba(9, 22, 36, 0.88);
  --panel-border: rgba(103, 180, 255, 0.14);
  --text: #eef5fb;
  --muted: #91a6bb;
  --accent: #69d2ff;
  --accent-2: #8cffbc;
  --danger: #ff7e78;
  --gold: #ffd45c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 210, 255, 0.18), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(140, 255, 188, 0.08), transparent 22%),
    linear-gradient(180deg, #07111c 0%, #06111a 48%, #091b2c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
}

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hidden {
  display: none !important;
}

.site-header,
.hero,
.section-heading,
.brand-lockup,
.site-topbar,
.header-meta,
.hero-actions,
.toolbar,
.table-team,
.event-row,
.metric-card,
.team-card-header,
.methodology-card,
.stack-item-top,
.side-meter {
  display: flex;
  align-items: center;
}

.site-header,
.site-topbar,
.section-heading,
.team-card-header,
.stack-item-top {
  justify-content: space-between;
}

.section-heading {
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading-spacious {
  margin-bottom: 28px;
}

.site-header {
  margin-bottom: 22px;
  gap: 16px;
}

.site-topbar {
  width: 100%;
  gap: 24px;
}

.brand-lockup {
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(105, 210, 255, 0.2), rgba(140, 255, 188, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1, h2, h3, strong {
  margin: 0;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.02;
  max-width: 15ch;
}

h3 {
  font-size: 1.6rem;
}

.eyebrow,
.meta-label,
th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.accent {
  color: var(--accent);
}

.header-meta {
  gap: 28px;
  margin-left: auto;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav-link:hover,
.site-nav-link.active {
  color: var(--text);
  background: rgba(105, 210, 255, 0.12);
}

.team-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 24, 38, 0.82), rgba(8, 18, 29, 0.82));
}

.team-nav-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.header-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}

.meta-detail {
  display: block;
  max-width: 34ch;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(11, 26, 41, 0.92), rgba(8, 20, 31, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(105, 210, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.hero {
  justify-content: space-between;
  gap: 24px;
  min-height: 280px;
  margin-bottom: 22px;
}

.hero-copy {
  max-width: 760px;
  z-index: 1;
}

.hero-text {
  max-width: 52ch;
  color: #c5d5e5;
  line-height: 1.65;
}

.hero-actions {
  gap: 12px;
  margin-top: 18px;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary-btn,
.ghost-btn {
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
}

.primary-btn {
  color: #04121d;
  background: linear-gradient(135deg, var(--accent), #9af5ff);
}

.ghost-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 14px;
  min-width: min(32vw, 360px);
  z-index: 1;
}

.metric-card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.home-grid {
  grid-template-columns: minmax(0, 1fr);
}

.section-span-2 {
  grid-column: span 2;
}

.toolbar {
  gap: 10px;
  flex-wrap: wrap;
}

input,
select {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sortable-th {
  cursor: pointer;
  user-select: none;
}

.sortable-th.active {
  color: var(--accent);
}

td {
  font-size: 0.95rem;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.interactive-row {
  cursor: pointer;
}

.rank-pill,
.trend-pill,
.projection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.rank-pill {
  justify-content: center;
  color: #02131f;
  background: linear-gradient(135deg, var(--gold), #fff0a0);
}

.trend-pill {
  background: rgba(105, 210, 255, 0.12);
  color: var(--accent);
}

.trend-pill.down {
  background: rgba(255, 126, 120, 0.14);
  color: var(--danger);
}

.projection-pill {
  color: #06141e;
  background: linear-gradient(135deg, var(--accent-2), #d9ffe9);
}

.table-team {
  gap: 12px;
}

.team-link {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.team-link,
.opponent-link,
.school-link,
.judge-link {
  text-decoration: none;
}

.school-link,
.judge-link {
  color: var(--text);
}

.school-link:hover,
.judge-link:hover {
  color: var(--accent);
}

.team-badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(105, 210, 255, 0.16);
  color: var(--accent);
  font-weight: 800;
}

.team-school {
  color: var(--muted);
  font-size: 0.84rem;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.compact {
  gap: 10px;
}

.stack-item,
.team-card,
.methodology-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stack-item p,
.team-card p,
.methodology-card p {
  margin: 0;
}

.stack-item-top {
  margin-bottom: 10px;
  gap: 12px;
}

.stack-item-title {
  font-weight: 800;
}

.stack-item-copy {
  line-height: 1.55;
  color: #d6e1eb;
}

.stack-item-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
}

.micro-value {
  font-size: 1.1rem;
  font-weight: 800;
}

.cards-grid,
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-panel {
  margin-top: 22px;
}

.team-card {
  min-height: 240px;
}

.team-card-header {
  margin-bottom: 16px;
}

.team-card h4 {
  margin: 0;
  font-size: 1.1rem;
}

.team-card .team-school {
  margin-top: 2px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-box {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-box span {
  display: block;
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-value {
  margin-top: 4px;
  font-size: 1.3rem;
  font-weight: 800;
}

.mini-chart {
  width: 100%;
  height: 54px;
  display: block;
}

.bar-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.side-meter {
  gap: 12px;
}

.methodology-grid {
  margin-top: 10px;
}

.methodology-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.team-shell {
  width: min(1500px, calc(100% - 32px));
}

.team-header {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.back-mark {
  text-decoration: none;
  color: var(--text);
}

.team-meta {
  gap: 22px;
  align-items: stretch;
  margin-left: auto;
}

.meta-chip {
  min-width: 168px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 28px 12px 10px;
}

.team-hero-mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(105, 210, 255, 0.24), rgba(140, 255, 188, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.team-hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.94;
  margin-top: 8px;
}

.team-hero-copy .meta-detail {
  margin-top: 14px;
  max-width: none;
  font-size: 1rem;
}

.team-hero-copy .school-link {
  font-weight: 700;
}

.team-main {
  display: grid;
  gap: 22px;
}

.team-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.summary-box {
  min-height: 118px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-value {
  display: block;
  margin-top: 6px;
  font-size: 1.7rem;
  font-weight: 800;
}

.team-notes-panel {
  align-self: start;
}

.team-main {
  display: grid;
  gap: 24px;
}

.stack-list.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stack-item {
  min-height: 138px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stack-item-title {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.18rem;
}

.stack-item-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline-chart-wrap {
  display: grid;
  gap: 18px;
}

.timeline-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.chart-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-toggle-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.chart-toggle-btn.active {
  color: #06141e;
  background: linear-gradient(135deg, var(--accent), #9af5ff);
}

.chart-expand-btn {
  min-width: 96px;
}

.timeline-chart-shell {
  overflow: auto;
  padding: 4px 0 2px;
}

.timeline-chart-shell.compact {
  overflow: hidden;
}

.timeline-chart {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.timeline-chart.expanded {
  min-width: 100%;
}

.timeline-axis {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.timeline-break {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.timeline-break-label {
  fill: var(--muted);
  font-size: 10px;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.04em;
}

.timeline-break-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.timeline-chart-shell.expanded .timeline-break-legend {
  margin-top: 18px;
}

.timeline-break-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-line {
  fill: none;
  stroke: url(#timelineGradient);
  stroke: #7ee6ff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-dot {
  fill: #89f0ff;
  stroke: #07111c;
  stroke-width: 3;
  transition: transform 140ms ease, fill 140ms ease, stroke 140ms ease;
}

.timeline-dot.loss {
  fill: #ff7e78;
}

.timeline-hit {
  fill: transparent;
  cursor: pointer;
}

.timeline-point:focus-visible .timeline-hit,
.timeline-point.active .timeline-hit {
  fill: rgba(105, 210, 255, 0.12);
}

.timeline-point.loss:focus-visible .timeline-hit,
.timeline-point.active .timeline-hit.loss {
  fill: rgba(255, 126, 120, 0.12);
}

.timeline-point:hover .timeline-dot,
.timeline-point:focus-visible .timeline-dot,
.timeline-point.active .timeline-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.18);
  stroke: rgba(255, 255, 255, 0.95);
}

.timeline-value {
  fill: var(--text);
  font-size: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.timeline-axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-family: "Manrope", sans-serif;
}

.timeline-caption {
  color: var(--muted);
  line-height: 1.55;
}

.timeline-caption-spacious {
  padding-top: 2px;
}

.timeline-toolbar-modal {
  margin-bottom: 18px;
}

.chart-inspector {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-inspector-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
}

.chart-inspector-heading strong {
  font-size: 1.4rem;
}

.chart-inspector-heading span {
  color: var(--muted);
}

.chart-inspector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.chart-inspector-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.section-heading-stack {
  align-items: flex-end;
  gap: 20px;
}

.tournament-list {
  display: grid;
  gap: 30px;
}

.tournament-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(105, 210, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.tournament-summary-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 20px;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
  cursor: pointer;
}

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

.tournament-summary-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.tournament-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

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

.tournament-summary-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
}

.tournament-card-body {
  padding: 26px 32px 30px;
}

.round-log-panel .toolbar {
  width: min(100%, 520px);
  margin-top: 14px;
}

.round-log-panel .toolbar input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 60px;
  padding: 0 22px;
  border-radius: 20px;
  font-size: clamp(0.98rem, 1.4vw, 1.18rem);
  line-height: 1.1;
  text-overflow: ellipsis;
}

.collapse-indicator {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.collapse-indicator::before,
.collapse-indicator::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 12px;
  height: 2px;
  background: #ff7e78;
  border-radius: 999px;
  transition: transform 180ms ease;
}

.collapse-indicator::before {
  left: 0;
  transform: rotate(45deg);
}

.collapse-indicator::after {
  right: 0;
  transform: rotate(-45deg);
}

.tournament-card[open] .collapse-indicator::before {
  transform: rotate(-45deg);
}

.tournament-card[open] .collapse-indicator::after {
  transform: rotate(45deg);
}

.tournament-card-body {
  padding: 18px 0 8px;
}

.round-table th,
.round-table td {
  padding: 18px 18px;
}

.round-table tbody tr {
  height: 74px;
}

.result-pill {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.result-pill.win {
  color: #052013;
  background: #8cffbc;
}

.result-pill.loss {
  color: #2d0502;
  background: #ff9a93;
}

.opponent-link {
  color: var(--text);
}

.opponent-link:hover {
  color: var(--accent);
}

.empty-state {
  color: var(--muted);
  line-height: 1.6;
}

.chart-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.chart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 15, 0.72);
  backdrop-filter: blur(10px);
}

.chart-modal-dialog {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: auto;
}

@media (max-width: 1080px) {
  .hero,
  .site-header,
  .site-topbar,
  .tournament-summary-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-metrics,
  .dashboard-grid,
  .tournament-summary-grid {
    grid-template-columns: 1fr;
  }

  .timeline-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .section-span-2 {
    grid-column: auto;
  }

  .header-meta,
  .team-meta {
    margin-left: 0;
  }

  .team-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    flex-wrap: wrap;
  }

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

@media (max-width: 720px) {
  .page-shell,
  .team-shell {
    width: min(100% - 20px, 100%);
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  h2 {
    max-width: none;
  }

  .tournament-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-summary-row,
  .tournament-card-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .round-log-panel .toolbar input {
    min-width: 0;
    width: 100%;
    height: 62px;
    padding: 0 20px;
    border-radius: 22px;
    font-size: 1rem;
  }

  .chart-modal-dialog {
    width: min(100% - 20px, 100%);
    margin: 10px auto;
  }

  .meta-chip {
    min-width: 0;
    width: 100%;
  }

  .team-hero-mark {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    font-size: 1.7rem;
  }
}

.methodology-card strong {
  font-size: 1.1rem;
}

.detail-view {
  display: grid;
  gap: 18px;
}

.detail-heading {
  align-items: flex-start;
}

.detail-meta,
.detail-copy p,
.detail-submeta {
  color: var(--muted);
}

.detail-meta {
  margin: 8px 0 0;
}

.detail-summary,
.detail-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

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

.chart-data,
.data-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.data-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.status-warn {
  color: var(--gold);
}

.status-ok {
  color: var(--accent-2);
}

.status-bad {
  color: var(--danger);
}

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

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

  .section-span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 20px, 1400px);
    padding-top: 16px;
  }

  .site-header,
  .hero,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-meta {
    margin-left: 0;
  }

  .hero-metrics,
  .dashboard-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .section-span-2 {
    grid-column: span 1;
  }
}
