:root {
  color-scheme: dark;
  --bg: #0c0e11;
  --panel: #17191d;
  --panel-soft: #1d2025;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f5f7fa;
  --muted: #a7b0bd;
  --muted-2: #7d8795;
  --green: #82d52b;
  --green-2: #35c759;
  --yellow: #ffd34e;
  --orange: #ff8a22;
  --red: #ff5b5f;
  --cyan: #5ac8fa;
  --blue: #64a8ff;
  --surface-raised: #1b1e23;
  --surface-hover: #22262c;
  --surface-inset: #111317;
  --hairline: rgba(255, 255, 255, 0.075);
  --accent-soft: rgba(130, 213, 43, 0.13);
  --accent-hover: rgba(130, 213, 43, 0.2);
  --shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
  --shadow-raised: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --radius-control: 12px;
  --radius-small: 9px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html {
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 50% -180px, rgba(93, 115, 138, 0.08), transparent 520px),
    var(--bg);
  font-size: 15px;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  letter-spacing: inherit;
}

button {
  border-color: var(--line);
  border-radius: var(--radius-control);
  background: var(--panel-soft);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-hover);
}

button:active {
  transform: scale(0.985);
}

:where(button, input, select, textarea, a, [role="button"]):focus-visible {
  outline: 3px solid rgba(90, 200, 250, 0.78);
  outline-offset: 3px;
}

.app-shell {
  width: min(1400px, calc(100vw - 48px));
  padding: 18px 0 56px;
}

.topbar {
  min-height: 62px;
  padding: 0 2px 18px;
  border-bottom-color: var(--hairline);
}

.brand-block {
  gap: 13px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, #20252b, #181b1f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-block h1 {
  font-size: 24px;
  font-weight: 740;
  letter-spacing: -0.035em;
}

.brand-block p {
  margin-top: 2px;
  font-size: 13px;
}

.toolbar {
  align-items: center;
  gap: 10px;
}

.toolbar button,
.toolbar select,
.ghost-btn {
  min-height: 42px;
  padding: 0 15px;
}

.primary-action {
  border-color: rgba(130, 213, 43, 0.72);
  border-radius: 12px;
  background: var(--accent-soft);
  color: #e6ffd0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-weight: 730;
}

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

.toolbar-secondary {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.toolbar-secondary:hover,
.toolbar-secondary.is-active {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.storage-pill {
  border-color: rgba(53, 199, 89, 0.38);
  background: rgba(53, 199, 89, 0.07);
}

.storage-pill.is-local {
  border-color: transparent;
  background: transparent;
}

.storage-pill.is-local:hover {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
}

.storage-pill.is-offline {
  border-color: rgba(255, 138, 34, 0.42);
  background: rgba(255, 138, 34, 0.08);
  color: var(--orange);
}

.section-nav {
  top: 0;
  z-index: 20;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 0;
  border-bottom-color: var(--hairline);
  background: rgba(12, 14, 17, 0.88);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

.section-nav a,
.view-nav button {
  min-height: 38px;
  padding: 0 15px;
  border-color: transparent;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.section-nav a:hover,
.view-nav button:hover {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
}

.section-nav a.is-active,
.view-nav button.is-active,
.view-nav button.is-active:hover {
  border-color: rgba(130, 213, 43, 0.54);
  background: var(--green);
  color: #0b1705;
  box-shadow: 0 5px 18px rgba(89, 167, 15, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

main {
  gap: var(--space-5);
  padding-top: var(--space-5);
}

.view-block {
  gap: var(--space-5);
}

.panel {
  border-color: var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 100px), var(--panel);
  box-shadow: var(--shadow);
}

.panel-head {
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.panel h2 {
  font-size: 19px;
  font-weight: 710;
  letter-spacing: -0.025em;
}

.panel p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.42;
}

.ghost-btn {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
  color: #dce3eb;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: var(--space-5);
  align-items: start;
}

.profile-panel {
  padding: 26px;
}

.athlete-row {
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom-color: var(--hairline);
}

.avatar {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(130, 213, 43, 0.12);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(130, 213, 43, 0.18), rgba(130, 213, 43, 0.08));
  color: #c9ff91;
  font-size: 29px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.name-input {
  min-height: 36px;
  border-radius: 0;
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.profile-meta {
  margin-top: 1px;
  font-size: 14px;
}

.archetype {
  margin-top: 6px;
  color: #d9e0e8;
  font-size: 13px;
}

.hero-score {
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.hero-ovr {
  gap: var(--space-3);
}

.hero-ovr > button {
  gap: var(--space-5);
  border-radius: 16px;
}

.hero-ovr > button:hover {
  background: transparent;
}

.hero-ovr-number {
  min-width: 112px;
  min-height: 104px;
  border-radius: 18px;
  font-size: 58px;
  letter-spacing: -0.055em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-ovr-number.is-estimate {
  border-width: 2px;
  background: rgba(255, 255, 255, 0.012);
  box-shadow: none;
  font-size: 48px;
}

.hero-ovr-copy {
  gap: 4px;
}

.hero-ovr-label {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero-ovr-tier {
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.028em;
}

.hero-ovr-sub {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.42;
}

.delta-chip {
  min-height: 30px;
  padding: 5px 11px;
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.confidence-band {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top-color: var(--hairline);
}

.band-copy {
  align-items: baseline;
  font-size: 14px;
}

.band-copy strong {
  color: #e5e9ee;
  font-size: 14px;
}

.progress-track {
  height: 6px;
  margin-top: 9px;
  background: #090a0c;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

.progress-fill {
  box-shadow: 0 0 14px rgba(130, 213, 43, 0.28);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease;
}

.range-text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.42;
}

.hero-caps {
  gap: 8px;
  margin-top: var(--space-5);
}

.cap-chip {
  gap: 10px;
  min-height: 62px;
  padding: 9px 11px;
  border-color: var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.cap-chip:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.cap-chip .mini-score {
  min-width: 38px;
  min-height: 28px;
  border-radius: 8px;
  font-size: 13px;
}

.cap-chip-copy {
  gap: 3px;
}

.cap-chip-label {
  overflow: visible;
  color: #e7ebf0;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.cap-chip-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.body-panel {
  min-height: 628px;
  padding: 22px;
}

.body-panel .panel-head {
  margin-bottom: 14px;
}

.body-panel .body-map {
  border-radius: 15px;
}

.body-map-stage {
  min-height: 518px;
  border-color: var(--line-soft);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 28%, rgba(94, 111, 130, 0.2), transparent 45%),
    linear-gradient(180deg, #12151a, #0e1014);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.body-atlas-svg {
  max-width: 292px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.5));
}

.body-muscle {
  stroke: #47515c;
  transition: fill 180ms ease, stroke 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.body-zone-hit:hover .body-muscle-zone,
.body-zone-hit:focus-visible .body-muscle-zone {
  filter: brightness(1.2);
}

.body-view-label {
  border-color: var(--line-soft);
  background: rgba(14, 16, 20, 0.72);
  backdrop-filter: blur(12px);
}

.body-view-nav button {
  width: 40px;
  height: 40px;
  border-color: var(--line-soft);
  background: rgba(28, 31, 37, 0.82);
  backdrop-filter: blur(12px);
}

.body-map-disclaimer {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.35;
}

.start-here {
  display: grid;
  align-content: center;
  gap: var(--space-5) var(--space-7);
  padding: 20px 22px;
  border-left-width: 0;
}

.start-here::before {
  align-self: stretch;
  width: 3px;
  min-height: 48px;
  border-radius: 99px;
  background: var(--muted-2);
  content: "";
}

.start-here.tone-explore::before {
  background: var(--yellow);
}

.start-here.tone-mixed::before {
  background: var(--cyan);
}

.start-here.tone-solid::before {
  background: var(--green-2);
}

.overview-grid .start-here::before {
  display: none;
}

.overview-grid .start-here {
  border-top: 3px solid var(--yellow);
}

.overview-grid .start-here.tone-mixed {
  border-top-color: var(--cyan);
}

.overview-grid .start-here.tone-solid {
  border-top-color: var(--green-2);
}

.start-here-main {
  min-width: 0;
}

.start-here-kicker,
.sh-label {
  font-size: 10px;
  letter-spacing: 0.11em;
}

.start-here-main strong {
  font-size: 18px;
  font-weight: 710;
  letter-spacing: -0.02em;
}

.start-here-sub {
  line-height: 1.42;
}

.sh-chip {
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 8px 12px;
  border-color: var(--line-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}

.activity-panel,
.score-explanation-panel {
  padding: 22px;
}

.rating-grid {
  gap: 10px;
}

.rating-card {
  padding: 0;
  border-color: var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.rating-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.rating-card button {
  min-height: 176px;
  padding: 14px;
  border-radius: inherit;
}

.rating-card button:hover {
  background: transparent;
}

.rating-card .rating-number {
  min-width: 48px;
  min-height: 42px;
  border-radius: 10px;
  font-size: 24px;
}

.rating-confidence {
  max-width: 72%;
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.045em;
}

.rating-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.rating-caption {
  min-height: 32px;
  font-size: 11.5px;
  line-height: 1.4;
}

.rating-decision {
  margin-top: 10px;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 9.5px;
  letter-spacing: 0.035em;
}

.rating-limiter {
  margin-top: 9px;
  padding-top: 9px;
  border-top-color: var(--hairline);
  font-size: 11px;
  line-height: 1.35;
}

.radar-panel {
  gap: var(--space-5) var(--space-7);
  padding: 22px;
}

.radar-stage {
  position: relative;
  min-width: 0;
}

.radar-stage canvas {
  cursor: pointer;
  border-radius: 12px;
  outline: none;
}

.radar-stage canvas:focus-visible {
  box-shadow: 0 0 0 3px rgba(90, 200, 250, 0.16);
}

.radar-tooltip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 176px;
  max-width: 240px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(27, 31, 36, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.radar-tooltip[hidden] {
  display: none;
}

.radar-tooltip strong {
  color: var(--text);
  font-size: 12px;
}

.radar-tooltip span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.score-explanation-panel > summary strong {
  font-size: 15px;
}

.profile-explorer,
.guidance-panel {
  overflow: hidden;
  padding: 0;
}

.disclosure-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
}

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

.disclosure-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.disclosure-summary strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.disclosure-summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.disclosure-summary em {
  flex: 0 0 auto;
  color: #dce3eb;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.profile-explorer[open] > .disclosure-summary,
.guidance-panel[open] > .disclosure-summary {
  border-bottom: 1px solid var(--hairline);
}

.profile-explorer[open] > .disclosure-summary em,
.guidance-panel[open] > .disclosure-summary em {
  color: var(--muted);
}

.profile-explorer-body,
.guidance-body {
  padding: 20px;
}

.profile-explorer-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-inset);
}

.profile-explorer-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.profile-explorer-tabs button[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--text);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.profile-explorer-view[hidden] {
  display: none;
}

.profile-explorer-view {
  min-height: 0;
  padding: 0;
}

.profile-explorer .radar-panel {
  display: block;
}

.profile-explorer .profile-explorer-view[hidden] {
  display: none;
}

.profile-explorer .radar-panel .panel-head {
  margin-bottom: 20px;
}

.profile-explorer .hero-caps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 24px;
}

.profile-explorer .radar-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(280px, 1.1fr);
  gap: var(--space-7);
  align-items: center;
}

.profile-explorer .body-panel {
  min-height: 620px;
}

.guidance-body {
  display: grid;
  gap: 24px;
}

.guidance-body .score-explanation-body {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.guidance-body .priority-plan-panel {
  padding: 20px 0 0;
  border-top: 1px solid var(--hairline);
}

.guidance-body .priority-plan {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .body-panel {
    min-height: 0;
  }

  .body-panel .body-map {
    max-height: none;
  }

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

  .body-map-stage {
    min-height: 560px;
  }

  .profile-explorer .hero-caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-explorer .radar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --radius: 16px;
  }

  .app-shell {
    width: min(100% - 24px, 1400px);
    padding-top: 10px;
  }

  .topbar {
    min-height: 54px;
    padding-bottom: 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-block h1 {
    font-size: 21px;
  }

  .brand-block p {
    font-size: 12px;
  }

  .toolbar {
    width: 100%;
  }

  .toolbar button {
    min-height: 44px;
  }

  .section-nav {
    margin-top: 4px;
    padding: 8px 0;
  }

  .section-nav a,
  .view-nav button {
    min-height: 36px;
    padding-inline: 13px;
  }

  main,
  .view-block {
    gap: 14px;
  }

  main {
    padding-top: 14px;
  }

  .profile-panel {
    padding: 18px;
  }

  .athlete-row {
    flex-direction: row;
    align-items: center;
    padding-bottom: 16px;
  }

  .avatar {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    font-size: 25px;
  }

  .name-input {
    font-size: 21px;
  }

  .hero-score {
    margin-top: 16px;
  }

  .hero-ovr > button {
    gap: 14px;
  }

  .hero-ovr-number {
    min-width: 90px;
    min-height: 86px;
    border-radius: 16px;
    font-size: 46px;
  }

  .hero-ovr-number.is-estimate {
    font-size: 40px;
  }

  .hero-ovr-tier {
    font-size: 18px;
  }

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

  .cap-chip {
    min-height: 58px;
  }

  .body-panel,
  .activity-panel,
  .radar-panel,
  .score-explanation-panel {
    padding: 18px;
  }

  .body-map-stage {
    min-height: 500px;
  }

  .body-atlas-svg {
    max-width: 250px;
  }

  .start-here {
    display: grid;
    gap: 16px;
    padding: 18px;
  }

  .start-here::before {
    display: none;
  }

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

  .rating-card button {
    min-height: 170px;
    padding: 13px;
  }

  .rating-confidence {
    max-width: 68%;
  }

  .profile-explorer-body,
  .guidance-body {
    padding: 16px;
  }

  .profile-explorer-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .profile-explorer-tabs button {
    padding-inline: 8px;
  }

  .profile-explorer .hero-caps {
    grid-template-columns: minmax(0, 1fr);
  }

  .guidance-body .priority-plan {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 470px) {
  .app-shell {
    width: min(100% - 20px, 1400px);
  }

  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .toolbar {
    width: auto;
  }

  .storage-pill {
    display: none;
  }

  .toolbar #recordMeasurementBtn {
    flex: 0 0 auto;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .brand-block p {
    display: none;
  }

  .view-nav {
    gap: 2px;
  }

  .view-nav button {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 11.5px;
  }

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

  .rating-card button {
    min-height: 156px;
  }

  .body-map-stage {
    min-height: 440px;
  }
}

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

.section-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.progress-panel,
.source-panel,
.settings-panel {
  padding: clamp(18px, 2.2vw, 28px);
}

.progress-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.progress-overview-item {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 100px;
  padding: 15px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.progress-overview-item span,
.progress-overview-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.progress-overview-item span {
  font-weight: 680;
}

.progress-overview-item strong {
  color: var(--text);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.progress-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 12px;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.progress-toolbar p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.progress-toolbar strong {
  color: var(--text);
}

.progress-toolbar label,
.source-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.progress-toolbar select,
.source-controls select,
.source-controls input {
  min-height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0 34px 0 11px;
  background: rgba(12, 14, 17, 0.88);
  color: var(--text);
  outline: none;
}

.source-controls input {
  padding-right: 11px;
}

.progress-toolbar select:focus-visible,
.source-controls select:focus-visible,
.source-controls input:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(92, 184, 255, 0.16);
}

.progress-chart {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: #15181c;
}

.progress-chart:has(#historyCanvas[hidden]) {
  display: none;
}

.progress-chart .history-heatmap {
  margin: 0;
  padding: 13px 15px 0;
}

.progress-chart #historyCanvas {
  display: block;
  max-width: 100%;
}

.progress-disclosures {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.progress-detail,
.evidence-summary,
.source-catalog {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.progress-detail > summary,
.evidence-summary > summary,
.source-catalog > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.progress-detail > summary::-webkit-details-marker,
.evidence-summary > summary::-webkit-details-marker,
.source-catalog > summary::-webkit-details-marker {
  display: none;
}

.progress-detail > summary span,
.evidence-summary > summary span,
.source-catalog > summary span {
  display: grid;
  gap: 4px;
}

.progress-detail > summary strong,
.evidence-summary > summary strong,
.source-catalog > summary strong {
  color: var(--text);
  font-size: 14px;
}

.progress-detail > summary small,
.evidence-summary > summary small,
.source-catalog > summary small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 450;
}

.progress-detail > summary em,
.evidence-summary > summary em,
.source-catalog > summary em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.progress-detail[open] > summary,
.evidence-summary[open] > summary,
.source-catalog[open] > summary {
  border-bottom: 1px solid var(--hairline);
}

.progress-detail[open] > summary em,
.evidence-summary[open] > summary em,
.source-catalog[open] > summary em {
  color: var(--green);
}

.progress-detail .metric-trends,
.progress-detail .longitudinal-assessment {
  padding: 14px;
}

.progress-detail .longitudinal-boundary {
  margin: 0;
  padding: 0 14px 14px;
}

.source-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.methodology-intro {
  overflow: hidden;
  border: 1px solid rgba(92, 184, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(92, 184, 255, 0.075), rgba(255, 255, 255, 0.018) 54%);
}

.methodology-intro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--hairline);
}

.methodology-intro-head > div {
  display: grid;
  gap: 4px;
}

.methodology-intro-head strong {
  font-size: 16px;
}

.methodology-intro-head span,
.methodology-status {
  color: var(--muted);
  font-size: 11.5px;
}

.methodology-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.methodology-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.methodology-principles article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 17px 18px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.methodology-principles article:nth-child(even) {
  border-right: 0;
}

.methodology-principles article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.methodology-principles article > span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(130, 213, 43, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.methodology-principles article div {
  display: grid;
  gap: 4px;
}

.methodology-principles article strong {
  font-size: 13px;
}

.methodology-principles article p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.evidence-summary {
  display: block;
  padding: 0;
  background: rgba(255, 255, 255, 0.022);
}

.evidence-summary-body,
.source-catalog-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.evidence-catalog-version {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.source-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 12px;
}

.source-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
}

.source-results-head strong {
  font-size: 13px;
}

.source-results-head span {
  color: var(--muted);
  font-size: 11px;
}

.source-catalog-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.source-catalog-items .source-item {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.source-catalog-items .source-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.source-catalog-items .source-status-line em {
  flex: 0 0 auto;
}

.source-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 24px;
  border: 1px dashed var(--line-soft);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.settings-storage-summary {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(53, 199, 89, 0.22);
  border-radius: 13px;
  background: rgba(53, 199, 89, 0.045);
}

.settings-storage-icon {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 199, 89, 0.1);
}

.settings-storage-summary > span:last-child {
  display: grid;
  gap: 3px;
}

.settings-storage-summary strong {
  font-size: 13px;
}

.settings-storage-summary small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.settings-storage-warning {
  border-color: rgba(255, 159, 10, 0.3);
  background: rgba(255, 159, 10, 0.055);
}

.settings-storage-warning .settings-storage-icon {
  background: #ff9f0a;
  box-shadow: 0 0 0 4px rgba(255, 159, 10, 0.1);
}

.settings-storage-saving .settings-storage-icon {
  background: #5cb8ff;
  box-shadow: 0 0 0 4px rgba(92, 184, 255, 0.1);
}

.settings-storage-demo {
  border-color: rgba(191, 122, 255, 0.28);
  background: rgba(191, 122, 255, 0.05);
}

.settings-storage-demo .settings-storage-icon {
  background: #bf7aff;
  box-shadow: 0 0 0 4px rgba(191, 122, 255, 0.1);
}

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

  .source-catalog-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .progress-panel > .panel-head,
  .source-panel > .panel-head {
    align-items: stretch;
  }

  .progress-panel > .panel-head .ghost-btn {
    width: 100%;
  }

  .progress-overview-item {
    min-height: 102px;
  }

  .progress-toolbar,
  .methodology-intro-head,
  .source-results-head {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-toolbar label {
    width: 100%;
  }

  .progress-toolbar select {
    width: 100%;
  }

  .methodology-status {
    align-self: flex-start;
  }

  .methodology-principles,
  .source-controls,
  .source-catalog-items {
    grid-template-columns: minmax(0, 1fr);
  }

  .methodology-principles article,
  .methodology-principles article:nth-child(even),
  .methodology-principles article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .methodology-principles article:last-child {
    border-bottom: 0;
  }

  .progress-detail .metric-trends,
  .progress-detail .longitudinal-assessment {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .progress-overview-item {
    min-height: 0;
  }

  .toolbar .storage-pill {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }

  .storage-pill span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .progress-detail > summary,
  .evidence-summary > summary,
  .source-catalog > summary {
    align-items: flex-start;
  }

  .view-nav {
    gap: 0;
    justify-content: space-between;
  }

  .view-nav button {
    padding-inline: 4px;
    font-size: 10.5px;
  }
}

@media (max-width: 340px) {
  .progress-overview {
    grid-template-columns: minmax(0, 1fr);
  }
}

.data-panel {
  padding: 22px;
}

.data-panel .panel-head {
  align-items: flex-start;
}

.metric-finder {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.metric-finder > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.metric-finder input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-inset);
  color: var(--text);
  font-size: 15px;
}

.metric-search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.metric-search-result > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.metric-search-result strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.metric-search-result small,
.metric-search-result em,
.metric-search-empty {
  color: var(--muted-2);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.3;
}

.metric-search-result em {
  flex: 0 0 auto;
  max-width: 92px;
  text-align: right;
}

.metric-search-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 0;
}

.measurement-categories {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.measurement-categories > span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 650;
}

#inputTabs {
  min-width: 0;
}

.input-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.input-tab-buttons button {
  min-height: 36px;
  padding-inline: 12px;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.input-tab-buttons button:hover {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
}

.input-tab-buttons button.is-active,
.input-tab-buttons button.is-active:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.input-group-picker {
  display: none;
}

.data-entry-hint {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 12px;
}

.data-entry-hint strong {
  color: var(--cyan);
}

.input-grid {
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 12px;
}

.input-card {
  position: relative;
  min-width: 0;
  padding: 14px;
  border-color: var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.input-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.038);
}

.input-card.is-recorded {
  border-color: rgba(53, 199, 89, 0.2);
}

.input-card.is-other-material {
  background: rgba(255, 255, 255, 0.018);
}

.metric-equipment-note {
  margin: 8px 0 -2px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.4;
}

.input-capability-note,
.other-metrics {
  grid-column: 1 / -1;
}

.input-capability-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 159, 10, 0.2);
  border-radius: 12px;
  background: rgba(255, 159, 10, 0.055);
}

.input-capability-note strong {
  flex: 0 0 auto;
  color: #f3f5f7;
  font-size: 12px;
}

.input-capability-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.other-metrics {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.015);
}

.other-metrics > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}

.other-metrics > summary::-webkit-details-marker {
  display: none;
}

.other-metrics > summary span {
  display: grid;
  gap: 2px;
}

.other-metrics > summary strong {
  color: #e7ebf0;
  font-size: 13px;
}

.other-metrics > summary small {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.4;
}

.other-metrics > summary em {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.other-metrics[open] > summary {
  border-bottom: 1px solid var(--hairline);
}

.other-metrics-grid {
  padding: 12px;
}

.input-top {
  min-height: 39px;
  gap: 12px;
}

.input-top > div {
  min-width: 0;
}

.input-card label {
  color: #edf1f5;
  font-size: 14px;
  font-weight: 690;
  letter-spacing: -0.012em;
}

.input-card small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11px;
}

.input-top-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.quality-pill {
  min-width: 0;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.075);
  color: #d7dde5;
  font-size: 10px;
  font-weight: 680;
}

.quality-pill:empty {
  display: none;
}

.metric-info-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-color: var(--line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.input-card > .evidence-badge,
.input-card > .metric-trace {
  display: none;
}

.metric-field-shell {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-inset);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.metric-field-shell:focus-within {
  border-color: rgba(90, 200, 250, 0.75);
  background: #12161b;
  box-shadow: 0 0 0 3px rgba(90, 200, 250, 0.12);
}

.input-card .metric-field-shell input,
.input-card .metric-field-shell select {
  width: 100%;
  height: 46px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 17px;
  font-weight: 620;
}

.input-card .metric-select-shell select {
  padding-right: 28px;
  font-size: 15px;
}

.metric-field-unit {
  flex: 0 0 auto;
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.input-card .structured-entry-button {
  position: relative;
  min-height: 48px;
  margin-top: 10px;
  padding: 9px 38px 9px 12px;
  border-color: var(--line);
  border-radius: 11px;
  background: var(--surface-inset);
  color: #e7ebf0;
  font-size: 14px;
  font-weight: 620;
}

.input-card .structured-entry-button::after {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted-2);
  content: "›";
  font-size: 24px;
  font-weight: 400;
  transform: translateY(-52%);
}

.input-card .structured-entry-button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: #171b20;
}

.structured-summary-entry {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

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

.structured-summary-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.structured-summary-field {
  display: grid;
  gap: 5px;
}

.input-card .structured-summary-field > span:first-child {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
}

.structured-summary-field .metric-field-shell {
  width: 100%;
  margin-top: 0;
}

.structured-summary-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 32px;
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}

.structured-summary-more:hover {
  background: transparent;
  color: var(--text);
}

.structured-summary-more span {
  color: var(--muted-2);
  font-size: 20px;
}

.manual-summary-reading {
  border-color: rgba(53, 199, 89, 0.22);
  background: rgba(53, 199, 89, 0.045);
}

.assessment-setup,
.data-analysis-panel {
  padding: 18px 22px;
}

.assessment-main-summary {
  min-height: 48px;
}

.detail-drawer {
  width: min(620px, 100%);
  border-left-color: var(--hairline);
  background: rgba(20, 22, 26, 0.98);
  box-shadow: -34px 0 90px rgba(0, 0, 0, 0.5);
}

.drawer-backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.drawer-head {
  padding: 20px 22px;
  border-bottom-color: var(--hairline);
  background: rgba(20, 22, 26, 0.86);
  backdrop-filter: saturate(150%) blur(22px);
  -webkit-backdrop-filter: saturate(150%) blur(22px);
}

.drawer-kicker {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.drawer-head h2 {
  margin-top: 5px;
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.032em;
}

.drawer-head .icon-btn {
  width: 40px;
  height: 40px;
  border-color: transparent;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  color: #e7ebf0;
}

.drawer-content {
  gap: 12px;
  padding: 18px 22px 40px;
}

.drawer-result-summary {
  display: grid;
  gap: 10px;
  padding: 4px 2px 12px;
}

.drawer-result-eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-result-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.drawer-result-line strong {
  color: var(--text);
  font-size: 54px;
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.drawer-result-line span,
.drawer-result-summary p {
  color: var(--muted);
}

.drawer-value-line strong {
  color: var(--text);
  font-size: 36px;
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.drawer-result-summary h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 710;
  letter-spacing: -0.02em;
}

.drawer-result-summary p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.drawer-result-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0;
}

.drawer-result-facts div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.drawer-result-facts dt {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drawer-result-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.drawer-primary-action {
  min-height: 46px;
  margin-top: 4px;
  border-color: rgba(130, 213, 43, 0.65);
  background: var(--accent-soft);
  color: #e6ffd0;
  font-weight: 720;
}

.drawer-more {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.drawer-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.drawer-more > summary::-webkit-details-marker {
  display: none;
}

.drawer-more > summary span {
  display: grid;
  gap: 2px;
}

.drawer-more > summary strong {
  color: var(--text);
  font-size: 14px;
}

.drawer-more > summary small,
.drawer-more > summary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.drawer-more-body {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
  border-top: 1px solid var(--hairline);
}

.drawer-more-body > .detail-block:first-child {
  margin-top: 10px;
}

.detail-block {
  padding: 16px;
  border-color: var(--line-soft);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-block h3 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 690;
  letter-spacing: -0.012em;
}

.detail-block p,
.detail-block li {
  color: #c3cbd5;
  font-size: 13px;
  line-height: 1.5;
}

.metric-editor-block,
.quick-entry {
  border-color: rgba(90, 200, 250, 0.22);
  background: rgba(90, 200, 250, 0.045);
}

.meta-editor input,
.meta-editor select,
.meta-editor textarea,
.quick-entry input,
.quick-entry select,
.quick-entry textarea {
  min-height: 44px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface-inset);
}

.disclosure-block {
  padding: 0;
  overflow: hidden;
}

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

.disclosure-block > summary::-webkit-details-marker {
  display: none;
}

.disclosure-block > summary span {
  display: grid;
  gap: 3px;
}

.disclosure-block > summary strong {
  color: var(--text);
  font-size: 14px;
}

.disclosure-block > summary small {
  color: var(--muted-2);
  font-size: 11px;
}

.disclosure-block > summary em {
  color: var(--cyan);
  font-size: 0;
  font-style: normal;
  font-weight: 650;
}

.disclosure-block > summary em::before {
  content: "Mostrar";
  font-size: 12px;
}

.disclosure-block[open] > summary em::before {
  content: "Ocultar";
}

.disclosure-content {
  padding: 0 16px 16px;
  border-top: 1px solid var(--hairline);
}

.metric-howto {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.metric-howto .howto-unit {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .metric-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .input-grid {
    grid-template-columns: repeat(2, minmax(230px, 1fr));
  }
}

@media (max-width: 760px) {
  .data-panel {
    padding: 18px;
  }

  .data-panel .panel-head {
    display: grid;
    align-items: stretch;
  }

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

  #inputTabs {
    width: 100%;
  }

  .input-tab-buttons {
    display: none;
  }

  .input-group-picker {
    display: grid;
    gap: 6px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 650;
  }

  .input-group-picker select {
    width: 100%;
    min-height: 44px;
    padding: 0 38px 0 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-inset);
    color: var(--text);
    font-size: 15px;
  }

  .input-grid,
  .input-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .input-card {
    padding: 14px;
  }

  .input-capability-note {
    display: grid;
    gap: 4px;
  }

  .metric-info-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .detail-drawer {
    width: 100%;
  }

  .drawer-head {
    padding: 16px 18px;
  }

  .drawer-head h2 {
    font-size: 22px;
  }

  .drawer-content {
    padding: 14px 14px 32px;
  }

  .detail-block {
    padding: 14px;
    border-radius: 14px;
  }

  .disclosure-block {
    padding: 0;
  }
}

/* Analysis and estimates: compact summary-first presentation. */
.prediction-content {
  gap: var(--space-4);
}

.prediction-overview {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(86, 184, 255, .06), transparent 46%), var(--surface-raised);
}

.prediction-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
}

.prediction-overview-head h3,
.prediction-overview-head p {
  margin: 0;
}

.prediction-overview-head h3 {
  margin-top: 2px;
  font-size: 18px;
}

.prediction-overview-head p,
.prediction-overview-grid small {
  color: var(--muted);
}

.prediction-filter {
  display: grid;
  gap: 5px;
  min-width: 168px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 650;
}

.prediction-filter select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border-color: var(--line);
  border-radius: var(--radius-control);
  background-color: var(--surface-inset);
  color: var(--text);
}

.prediction-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.prediction-overview-grid > div {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  background: rgba(10, 14, 18, .3);
}

.prediction-overview-grid span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 650;
}

.prediction-overview-grid strong {
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.1;
}

.prediction-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.prediction-card-grid .prediction-card {
  min-width: 0;
  padding: var(--space-4);
  border-color: var(--line-soft);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
}

.prediction-card-head,
.prediction-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.prediction-card-head > div {
  min-width: 0;
}

.prediction-card-head h4 {
  margin: 1px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
}

.prediction-card .prediction-badge {
  margin: 0;
  color: var(--yellow);
  font-size: 9px;
  letter-spacing: .09em;
}

.prediction-card-value {
  flex: 0 0 auto;
  color: var(--text);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -.035em;
  line-height: 1;
}

.metric-prediction-card > p {
  margin: var(--space-3) 0;
  font-size: 12px;
  line-height: 1.4;
}

.prediction-card-foot .tag-row {
  margin: 0;
}

.prediction-card-foot button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}

.metric-prediction-card > details,
.construct-inference-card > details {
  margin-top: var(--space-3);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--space-3);
}

.prediction-remainder > summary {
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  color: var(--muted);
  font-weight: 650;
}

.prediction-remainder[open] > .prediction-card-grid {
  margin-top: var(--space-3);
}

@media (max-width: 760px) {
  .prediction-overview {
    padding: var(--space-4);
  }

  .prediction-overview-head {
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-3);
  }

  .prediction-filter {
    width: 100%;
  }

  .prediction-overview-grid,
  .prediction-card-grid {
    grid-template-columns: 1fr;
  }

  .prediction-overview-grid {
    gap: var(--space-2);
  }

  .prediction-overview-grid > div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: var(--space-3);
  }

  .prediction-overview-grid > div small {
    grid-column: 1 / -1;
  }

  .prediction-overview-grid strong {
    font-size: 18px;
    text-align: right;
  }

  .prediction-card-head,
  .prediction-card-foot {
    align-items: flex-start;
  }

  .prediction-card-foot {
    flex-direction: column;
  }
}
