.results-page {
  min-height: 100vh;
  background: var(--bg);
}

.results-masthead {
  border-bottom: 1px solid rgba(212, 168, 67, 0.28);
  color: #f4faf7;
  background: linear-gradient(165deg, var(--emerald-950) 0%, var(--emerald-900) 55%, var(--emerald-800) 100%);
}

.results-masthead .eyebrow {
  padding: 3px 9px;
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(212, 168, 67, 0.14);
}

.results-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  align-items: end;
  gap: 32px;
  width: min(var(--page-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 28px;
}

.results-intro h1 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.results-intro-copy {
  margin: 0;
  color: rgba(226, 240, 233, 0.84);
  font-size: 0.94rem;
  line-height: 1.55;
}

.results-main {
  width: min(var(--page-max), calc(100% - 48px));
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 0 80px;
}
.results-main > * {
  min-width: 0;
  max-width: 100%;
}

.privacy-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--emerald-900);
  background: var(--gold-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}
.privacy-strip svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 2;
}
.privacy-strip p { margin: 0; }
.privacy-strip strong { color: var(--emerald-950); }

/* Summary Strip */
.result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.result-summary div {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.result-summary div:last-child { border-right: 0; }
.result-summary strong {
  display: block;
  color: var(--emerald-900);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.result-summary div:nth-child(2) strong {
  color: var(--gold-deep);
}
.result-summary span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Sub-navigation Tabs (My Feis) */
.section-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: var(--radius-sm);
  background: var(--emerald-900);
  box-shadow: var(--shadow-sm);
}
.section-tabs a {
  padding: 6px 13px;
  border-radius: 4px;
  color: rgba(235, 245, 240, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.section-tabs a:hover {
  color: var(--emerald-950);
  background: var(--gold-bright);
}

/* My Feis Profile Board */
.profile-board {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  scroll-margin-top: 16px;
}
.dancer-context {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(212, 168, 67, 0.38);
  border-radius: var(--radius-md);
  color: #f4faf7;
  background: linear-gradient(160deg, var(--emerald-950) 0%, var(--emerald-800) 100%);
  box-shadow: var(--shadow-md);
}
.dancer-context > .eyebrow { color: var(--gold-bright); }
.dancer-context-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dancer-context-top .eyebrow {
  margin: 0;
  color: var(--gold-bright);
}
.dancer-picker { display: grid; gap: 6px; }
.dancer-picker > span,
.tracking-controls legend {
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dancer-picker select {
  width: 100%;
  height: 40px;
  line-height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--emerald-950);
  background-color: var(--surface-elevated);
  font-size: 0.95rem;
  font-weight: 700;
}
.tracking-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.tracking-controls legend { margin-bottom: 6px; }
.tracking-controls label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(240, 248, 244, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
}
.tracking-controls input {
  width: 15px;
  height: 15px;
  accent-color: var(--gold-bright);
}
.tracking-controls label:has(input:disabled) { opacity: 0.45; }
.dancer-context > p:last-child {
  min-height: 1em;
  margin: -4px 0 0;
  color: var(--gold-bright);
  font-size: 0.75rem;
}
.profile-board .result-summary { grid-template-columns: 1fr 1fr; }
.profile-board .result-summary div:nth-child(2) { border-right: 0; }
.profile-board .result-summary div:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }

/* Dashboard Sections */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-top: 36px;
}
.plan-section,
.activity-section,
.insights-section,
.progress-section,
#history { scroll-margin-top: 18px; }
.dashboard-grid .result-section-heading { margin-top: 0; padding-top: 0; border-top: 0; }
.dashboard-grid .plan-grid { grid-template-columns: 1fr; }
.dashboard-grid .activity-layout { grid-template-columns: 1fr; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.plan-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}
.plan-card time {
  color: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-card h3 {
  margin: 0;
  color: var(--emerald-900);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}
.plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.plan-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.plan-actions select {
  min-width: 0;
  height: 32px;
  line-height: 30px;
  padding: 0 26px 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background-color: var(--surface);
  font-size: 0.8rem;
  font-weight: 700;
}
.plan-remove {
  margin-left: auto;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}
.plan-remove:hover {
  color: #b91c1c;
  text-decoration: underline;
}
.plan-reminders {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.plan-reminders input { accent-color: var(--emerald-700); }

/* Activity & Quiet Hours */
.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 12px;
}
.notification-feed { min-width: 0; }
.notification-list {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.notification-list li {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
}
.notification-list li.is-unread {
  border-color: var(--gold-border);
  background: var(--gold-soft);
}
.notification-list li > div { flex: 1; }
.notification-list strong { display: block; color: var(--emerald-900); font-size: 0.86rem; font-weight: 700; }
.notification-list p { margin: 3px 0; color: var(--ink-secondary); font-size: 0.8rem; }
.notification-list time { color: var(--muted); font-family: var(--font-mono); font-size: 0.68rem; }

.quiet-card {
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
}
.quiet-card h3 { margin: 0 0 12px; color: var(--emerald-900); font-size: 1rem; font-weight: 700; }
.quiet-toggle { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; }
.quiet-toggle input { accent-color: var(--emerald-700); }
.quiet-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.quiet-times label {
  display: grid;
  gap: 4px;
  color: var(--emerald-800);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.quiet-times input {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.quiet-card > p:not(.eyebrow) { color: var(--muted); font-size: 0.74rem; }

/* Performance Chart & Feedback */
.insight-control {
  display: grid;
  gap: 4px;
  color: var(--emerald-800);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.insight-control select {
  height: 36px;
  line-height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background-color: var(--surface-elevated);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
}
.insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.45fr);
  gap: 14px;
}
.career-card,
.feedback-card {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}
.career-card svg {
  display: block;
  width: 100%;
  min-height: 230px;
  overflow: visible;
}
.career-card figcaption { margin-top: 10px; color: var(--muted); font-size: 0.76rem; }
.chart-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-label { fill: var(--emerald-800); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.chart-line { fill: none; stroke: var(--emerald-700); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--gold-bright); stroke: var(--emerald-900); stroke-width: 2.5; }
.chart-series-1 { stroke: #b88418; }
.chart-point.chart-series-1 { fill: #fae6a8; stroke: #855c08; }
.chart-series-2 { stroke: #0f6b73; }
.chart-point.chart-series-2 { fill: #aee6eb; stroke: #0a494f; }
.chart-series-3 { stroke: #1e5f36; }
.chart-point.chart-series-3 { fill: #b8eccb; stroke: #0d3b1e; }
.chart-series-4 { stroke: #9a4412; }
.chart-point.chart-series-4 { fill: #f8ccb0; stroke: #6e2c07; }
.chart-series-5 { stroke: #335c81; }
.chart-point.chart-series-5 { fill: #c2dcf2; stroke: #1d3a54; }

.feedback-card h3 { margin: 0 0 16px; color: var(--emerald-900); font-size: 1.05rem; font-weight: 700; }
.feedback-signal {
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.feedback-bar { height: 7px; overflow: hidden; border-radius: 999px; background: var(--surface-subtle); }
.feedback-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald-700) 0%, var(--gold) 100%);
}
.feedback-empty { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

.dance-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.dance-stat {
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
}
.dance-stat strong { display: block; color: var(--emerald-900); font-size: 0.92rem; font-weight: 700; }
.dance-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }

/* Filter Toolbars */
.result-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 0.5fr));
  gap: 12px;
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}
.result-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--emerald-800);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.result-toolbar :is(input, select) {
  width: 100%;
  height: 38px;
  line-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background-color: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
}
.result-toolbar select { padding-right: 28px; }

.competition-toolbar {
  grid-template-columns: minmax(190px, 1fr) 104px minmax(170px, 0.55fr) auto;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 12px;
}
.competition-toolbar label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.competition-toolbar label:focus-within {
  border-color: var(--emerald-700);
  background: var(--surface-elevated);
}
.competition-toolbar label span { white-space: nowrap; }
.competition-toolbar :is(input, select) {
  height: 36px;
  line-height: 36px;
  padding: 0;
  border: 0;
  outline: 0;
  background-color: transparent;
  font-size: 0.88rem;
  text-transform: none;
}
.competition-toolbar select { padding-right: 24px; }
.competition-toolbar input::placeholder { color: var(--muted); opacity: 1; }
.competition-toolbar .number-filter input { font-family: var(--font-mono); text-align: center; }

.filter-clear {
  align-self: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--gold-deep);
  background: var(--gold-soft);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}
.filter-clear:hover { background: var(--gold-bright); color: var(--emerald-950); }

/* Section Headings */
.result-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}
.result-section-heading h2 {
  margin: 0;
  color: var(--emerald-900);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.result-section-heading p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.result-section-heading p.eyebrow { margin-bottom: 6px; color: var(--gold-deep); }

/* Advancement Tracker & Grade Map */
.progress-heading { align-items: end; }
.progress-heading > p { max-width: 320px; text-align: right; }
.progress-trackers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.progress-card {
  min-width: 0;
  max-width: 100%;
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}
.progress-card-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.progress-card-header h3 {
  margin: 2px 0 0;
  color: var(--emerald-900);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.progress-controls { display: flex; align-items: end; gap: 10px; }
.progress-control,
.level-control { display: grid; gap: 5px; }
.progress-control select,
.level-control select {
  height: 36px;
  line-height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background-color: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
}
.field-label {
  color: var(--emerald-800);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rule-notice {
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  color: var(--warning-ink);
  background: var(--warning-bg);
  font-size: 0.82rem;
  line-height: 1.45;
}

.progress-map-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 18px 0 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.progress-map { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 6px; }
.progress-map th { padding: 6px 8px; color: var(--emerald-900); font-size: 0.72rem; font-weight: 700; text-align: center; }
.progress-map tbody th { color: var(--emerald-950); font-size: 0.88rem; font-weight: 700; text-align: left; }
.grade-code { display: block; margin-top: 2px; color: var(--gold-deep); font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700; }
.grade-cell {
  display: grid;
  align-content: center;
  place-items: center;
  width: 100%;
  min-height: 60px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--surface);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.08s ease;
}
button.grade-cell { cursor: pointer; }
.grade-cell.is-current {
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  background: linear-gradient(160deg, var(--emerald-950) 0%, var(--emerald-800) 100%);
  box-shadow: 0 3px 10px rgba(7, 31, 22, 0.18);
}
.grade-cell.is-complete {
  color: var(--emerald-900);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.grade-cell.is-complete:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.grade-cell.is-observed { cursor: help; }
.milestone-date,
.milestone-feis { display: block; }
.milestone-date { font-size: 0.66rem; font-weight: 700; line-height: 1.2; }
.milestone-feis {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.championship-meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 0;
}
.championship-meters label {
  display: grid;
  gap: 6px;
  padding: 13px 16px;
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: var(--radius-sm);
  background: var(--emerald-900);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 700;
}
.championship-meters progress {
  width: 100%;
  height: 9px;
  accent-color: var(--gold-bright);
}

.evidence-dialog { max-height: min(720px, calc(100vh - 32px)); overflow: auto; }
.evidence-explanation { color: var(--muted); line-height: 1.5; }
.evidence-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.evidence-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.evidence-list span { color: var(--muted); font-size: 0.8rem; }

/* Public Competition Rows & Placement Tables */
.performance-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.competition-row {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
  contain-intrinsic-size: 130px;
}
.competition-row-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
}
.competition-row-summary h3 {
  margin: 6px 0 4px;
  color: var(--emerald-900);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.performance-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.performance-event {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
}
.row-metrics { display: flex; gap: 8px; margin: 0; }
.row-metrics div {
  min-width: 76px;
  padding: 8px 12px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.row-metrics dt {
  color: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.row-metrics dd {
  margin: 2px 0 0;
  color: var(--emerald-950);
  font-size: 1.05rem;
  font-weight: 700;
}
.competition-detail {
  margin: 0;
  padding: 10px 20px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}
.competition-detail > summary {
  color: var(--emerald-800);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}
.compact-empty { margin-top: 12px; padding: 20px; }
.load-more { display: flex; margin: 20px auto 0; }
.placement-more { margin: 12px auto 0; }

/* Tables */
.placement-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.placement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.placement-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-bright);
  background: var(--emerald-900);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}
.placement-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.placement-table tbody tr:last-child td { border-bottom: 0; }
.placement-table tbody tr:hover td { background: var(--surface-muted); }
.placement-place {
  color: var(--emerald-900);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
}
.table-rank {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--emerald-900);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
}
.placement-name { font-weight: 700; color: var(--emerald-950); }
.track-inline-link {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--emerald-900);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  vertical-align: middle;
}
.track-inline-link:hover {
  background: var(--gold-bright);
  border-color: var(--gold);
  color: var(--emerald-950);
}

/* Add Dancer Modal */
.add-dancer-search-box {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.add-dancer-search-box input,
.add-dancer-form :is(input, select) {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
}
.add-dancer-results {
  display: grid;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}
.add-dancer-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.add-dancer-hit strong {
  display: block;
  color: var(--emerald-900);
  font-size: 0.88rem;
}
.add-dancer-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.add-dancer-form .eyebrow { margin-bottom: 0; }
.add-dancer-form label {
  display: grid;
  gap: 5px;
  color: var(--emerald-800);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.add-dancer-form :is(input, select) {
  text-transform: none;
  letter-spacing: normal;
}
.add-dancer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 10px;
}
.add-dancer-form .dialog-actions {
  align-items: center;
  margin-top: 4px;
  padding-top: 12px;
}
#add-dancer-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.personal-results-table strong,
.personal-results-table time,
.table-subvalue { display: block; }
.personal-results-table td:first-child strong.table-rank { display: inline-block; }
.table-subvalue {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}
.personal-results-table details { min-width: 170px; }
.personal-results-table summary {
  color: var(--emerald-800);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.judge-note,
.benchmark {
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.82rem;
  line-height: 1.45;
}
.judge-note h4 { margin: 0 0 4px; color: var(--emerald-900); font-size: 0.78rem; font-weight: 700; }
.judge-note p { margin: 0 0 6px; color: var(--ink-secondary); }
.semantic-rounds { margin: 6px 0 0; padding-left: 16px; color: var(--muted); font-size: 0.76rem; }

/* Connected Sources & Identity Cards */
.source-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.source-status {
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}
.source-status strong { display: block; color: var(--emerald-900); font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.source-status span { display: block; color: var(--muted); font-size: 0.8rem; }
.source-status p { margin: 8px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.4; }

.notification-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.notification-controls p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.results-empty {
  padding: 44px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}
.results-footer {
  width: 100%;
  margin: 0;
}

@media (max-width: 860px) {
  .results-intro,
  .profile-board,
  .dashboard-grid,
  .insight-layout,
  .activity-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .results-intro { padding: 20px 0; }
  .results-intro h1 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
  .result-summary { grid-template-columns: 1fr 1fr; }
  .result-summary div { padding: 13px 15px; }
  .result-summary strong { font-size: 1.45rem; }
  .result-summary div:nth-child(2) { border-right: 0; }
  .result-summary div:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .result-toolbar,
  .competition-toolbar { grid-template-columns: 1fr; }
  .result-toolbar input,
  .competition-toolbar input,
  .add-dancer-search-box input,
  .add-dancer-form input { font-size: 16px; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .competition-row-summary,
  .progress-card-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .row-metrics { width: 100%; }
  .row-metrics div { flex: 1 1 0; }
  .progress-heading,
  .result-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .progress-heading > p { text-align: left; }
  .progress-map-wrap { -webkit-overflow-scrolling: touch; }
  .progress-map th:first-child,
  .progress-map tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface-elevated);
    box-shadow: 1px 0 0 var(--border);
  }
}

@media (max-width: 680px) {
  .results-intro,
  .results-main { width: calc(100% - 32px); }
  .section-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .section-tabs::-webkit-scrollbar { display: none; }
  .section-tabs a { flex: 1 0 auto; text-align: center; white-space: nowrap; }
  .personal-table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .personal-results-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .personal-results-table,
  .personal-results-table tbody { display: block; }
  .personal-results-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-sm);
  }
  .personal-results-table tbody td {
    padding: 0;
    border: 0;
  }
  .personal-results-table tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .personal-results-table tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
  .personal-results-table tbody td:nth-child(2),
  .personal-results-table tbody td:nth-child(3) {
    grid-column: 1 / -1;
  }
  .personal-results-table tbody td:nth-child(5) {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .personal-results-table details { min-width: 0; }
}

@media (max-width: 560px) {
  .section-tabs {
    gap: 2px;
    padding: 4px;
  }
  .section-tabs a {
    padding: 6px 6px;
    font-size: 0.74rem;
  }
  .tracking-controls,
  .plan-grid,
  .championship-meters,
  .add-dancer-row { grid-template-columns: 1fr; }
  .dancer-context,
  .progress-card,
  .career-card,
  .feedback-card { padding: 16px; }
  .placement-table th,
  .placement-table td { padding: 9px 10px; font-size: 0.8rem; }
}
