/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --ink: #111;
  --paper: #f6f6f4;
  --surface: #fff;
  --muted: #5c5c5c;
  --line: #d6d6d2;
  --line-strong: #111;
  --danger: #1a1a1a;
  --white: #fff;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.brand {
  align-items: center;
  gap: 10px;
  width: max-content;
  display: inline-flex;
}

.brand-symbol {
  background: var(--ink);
  width: 28px;
  height: 28px;
  color: var(--paper);
  border: 1px solid;
  place-items: center;
  font: 600 11px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: grid;
}

.brand-copy {
  gap: 3px;
  line-height: 1.05;
  display: grid;
}

.brand-copy strong {
  letter-spacing: .04em;
  font: 650 13px / 1 ui-sans-serif, system-ui, sans-serif;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: .02em;
  font: 500 10px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.powered {
  color: var(--muted);
  white-space: nowrap;
  font: 500 10px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.powered strong {
  color: var(--ink);
  font-weight: 650;
}

.eyebrow {
  color: var(--muted);
  margin-bottom: 10px;
  font: 500 11px / 1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: block;
}

.preview-chip {
  border: 1px solid var(--ink);
  background: var(--paper);
  text-transform: none;
  align-items: center;
  padding: 5px 8px;
  font: 500 10px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: inline-flex;
}

.button {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
}

.button:hover {
  background: #ecece8;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
}

.button-primary:hover {
  color: var(--paper);
  background: #000;
}

.button-light {
  background: var(--ink);
  color: var(--paper);
}

.button-light:hover {
  background: #000;
}

.button-secondary {
  background: none;
}

.button-danger {
  color: var(--paper);
  background: var(--ink);
}

.button-wide {
  width: 100%;
}

.text-link {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
}

.positive, .negative {
  color: var(--ink) !important;
}

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

.landing {
  min-height: 100vh;
}

.landing-nav {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
}

.landing-nav > div {
  align-items: center;
  gap: 16px;
  display: flex;
}

.landing-brand .powered {
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.nav-link {
  border-bottom: 1px solid #0000;
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover {
  border-bottom-color: var(--ink);
}

.hero {
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
}

.hero h1 {
  letter-spacing: -.02em;
  max-width: 16ch;
  margin: 0;
  font: 500 clamp(40px, 5.4vw, 64px) / 1.05 ui-serif, Iowan Old Style, Palatino, Georgia, serif;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.hero-copy > p {
  max-width: 42em;
  color: var(--muted);
  margin: 22px 0 28px;
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  align-items: center;
  gap: 22px;
  margin-bottom: 14px;
  display: flex;
}

.hero-copy > small {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  border: 1px solid var(--ink);
  background: var(--surface);
  min-width: 0;
}

.rating-spec {
  display: grid;
}

.rating-spec-head, .rating-spec-row {
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  display: grid;
}

.rating-spec-head {
  border-bottom: 1px solid var(--ink);
}

.rating-spec-head span, .rating-spec-row span {
  color: var(--muted);
  font: 500 11px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rating-spec-head strong {
  font: 500 42px / 1 ui-serif, Palatino, Georgia, serif;
}

.rating-spec-row + .rating-spec-row {
  border-top: 1px solid var(--line);
}

.rating-spec-row b {
  font: 600 15px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rating-spec-note {
  border-top: 1px solid var(--ink);
  color: var(--muted);
  padding: 12px 16px;
  font: 500 11px / 1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.landing-strip {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
  gap: 8px 28px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  font: 500 11px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: flex;
}

.how {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 24px;
}

.section-intro {
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 36px;
  display: grid;
}

.section-intro h2 {
  letter-spacing: -.02em;
  margin: 0;
  font: 500 clamp(28px, 3.4vw, 42px) / 1.15 ui-serif, Palatino, Georgia, serif;
}

.section-intro p {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.pillar-grid {
  border-top: 1px solid var(--ink);
  grid-template-columns: repeat(3, 1fr);
  display: grid;
}

.pillar-grid article {
  border-right: 1px solid var(--line);
  min-height: 220px;
  padding: 24px 20px 24px 0;
}

.pillar-grid article:last-child {
  border-right: 0;
  padding-right: 0;
}

.pillar-grid article > span {
  color: var(--muted);
  font: 500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.pillar-grid h3 {
  margin: 48px 0 10px;
  font: 500 22px / 1.2 ui-serif, Palatino, Georgia, serif;
}

.pillar-grid p {
  max-width: 32em;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.product-statement {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  max-width: 1080px;
  margin: 0 auto 24px;
  padding: 48px 24px;
}

.product-statement h2 {
  max-width: 22ch;
  margin: 0 0 24px;
  font: 500 clamp(28px, 4vw, 44px) / 1.15 ui-serif, Palatino, Georgia, serif;
}

.landing-footer {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  max-width: 1080px;
  margin: auto;
  padding: 28px 24px 40px;
  display: grid;
}

.landing-footer p {
  color: var(--muted);
  text-align: center;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.landing-footer .powered {
  justify-self: end;
}

.onboarding-page {
  min-height: 100vh;
  padding: 22px max(24px, 50vw - 540px);
}

.onboarding-page > header, .onboarding-page > footer {
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  display: flex;
}

.onboarding-grid {
  grid-template-columns: 1.1fr .8fr;
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 160px);
  padding: 40px 0;
  display: grid;
}

.onboarding-grid > section:first-child h1 {
  max-width: 16ch;
  margin: 0;
  font: 500 clamp(34px, 4.4vw, 52px) / 1.08 ui-serif, Palatino, Georgia, serif;
}

.onboarding-grid > section:first-child > p {
  max-width: 42em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.privacy-card {
  border-top: 1px solid var(--ink);
  gap: 4px;
  max-width: 100%;
  margin-top: 28px;
  padding: 14px 0;
  display: grid;
}

.privacy-card span {
  color: var(--muted);
  font-size: 12px;
}

.panel {
  border: 1px solid var(--ink);
  background: var(--surface);
}

.onboarding-panel {
  padding: 28px;
}

.onboarding-panel h2 {
  margin: 0;
  font: 500 24px ui-serif, Palatino, Georgia, serif;
}

.onboarding-panel > p {
  color: var(--muted);
  margin: 8px 0 24px;
}

.form-stack {
  gap: 16px;
  display: grid;
}

.field {
  color: var(--ink);
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  display: grid;
}

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

.field input::placeholder {
  color: #8a8a8a;
}

.form-note {
  color: var(--muted);
  margin: -4px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.app-frame {
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  width: 220px;
  color: var(--paper);
  background: var(--ink);
  border-right: 1px solid var(--ink);
  flex-direction: column;
  padding: 24px 18px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.sidebar .brand-copy strong {
  color: var(--paper);
}

.sidebar .brand-copy small {
  color: #b3b3b3;
}

.sidebar .brand-symbol {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.sidebar nav {
  gap: 2px;
  margin-top: 48px;
  display: grid;
}

.sidebar nav a {
  color: #c7c7c7;
  border-left: 2px solid #0000;
  padding: 10px 8px;
  font-size: 14px;
}

.sidebar nav a:hover, .sidebar nav a.active {
  color: var(--paper);
}

.sidebar nav a.active {
  border-left-color: var(--paper);
  font-weight: 650;
}

.sidebar-affiliate {
  color: var(--paper);
  text-align: center;
  border: 1px solid #5a5a5a;
  margin-top: 18px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 650;
  display: block;
}

.sidebar-affiliate:hover {
  background: var(--paper);
  color: var(--ink);
}

.sidebar-foot {
  gap: 10px;
  margin-top: auto;
  display: grid;
}

.sidebar-foot > span {
  color: #c7c7c7;
  border: 1px solid #5a5a5a;
  width: max-content;
  padding: 4px 6px;
  font: 500 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sidebar .powered {
  color: #9a9a9a;
}

.sidebar .powered strong {
  color: var(--paper);
}

.app-column {
  grid-column: 2;
  min-width: 0;
}

.app-topbar {
  border-bottom: 1px solid var(--ink);
  justify-content: flex-end;
  align-items: center;
  height: 64px;
  padding: 0 28px;
  display: flex;
}

.app-topbar > .brand {
  display: none;
}

.app-topbar > div {
  align-items: center;
  gap: 12px;
  display: flex;
}

.avatar {
  border: 1px solid var(--ink);
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: var(--paper);
  place-items: center;
  font: 650 12px ui-sans-serif, system-ui, sans-serif;
  display: grid;
}

.app-main {
  width: min(920px, 100% - 56px);
  min-height: calc(100vh - 124px);
  margin: 0 auto;
  padding: 40px 0 64px;
}

.app-footer {
  min-height: 56px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  font-size: 11px;
  display: flex;
}

.bottom-nav {
  display: none;
}

.page-heading {
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 28px;
  display: flex;
}

.page-heading h1 {
  letter-spacing: -.02em;
  margin: 0;
  font: 500 clamp(30px, 4vw, 44px) / 1.1 ui-serif, Palatino, Georgia, serif;
}

.page-heading > p {
  max-width: 220px;
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.dashboard-stack {
  gap: 16px;
  display: grid;
}

.dashboard-hero {
  min-height: 0;
  color: var(--ink);
  background: var(--surface);
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 24px;
  display: flex;
}

.dashboard-hero p {
  color: var(--muted);
  margin: 8px 0 0;
}

.rating-line {
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.rating-line strong {
  font: 500 56px / .9 ui-serif, Palatino, Georgia, serif;
}

.rating-line span {
  border: 1px solid var(--ink);
  padding: 3px 6px;
  font: 500 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.quick-stats {
  background: var(--ink);
  border: 1px solid var(--ink);
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  display: grid;
}

.stat-card {
  background: var(--surface);
  align-content: space-between;
  min-height: 110px;
  padding: 16px;
  display: grid;
}

.stat-card > span, .stat-card small {
  color: var(--muted);
  font-size: 11px;
}

.stat-card strong {
  font: 500 22px ui-serif, Palatino, Georgia, serif;
}

.dashboard-stack > .panel {
  padding: 24px;
}

.panel-heading {
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
  display: flex;
}

.panel-heading h2 {
  margin: 0;
  font: 500 22px ui-serif, Palatino, Georgia, serif;
}

.panel-heading .muted {
  font-size: 11px;
}

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

.area-row {
  grid-template-columns: 190px 1fr 48px;
  align-items: center;
  gap: 16px;
  display: grid;
}

.area-row > div:first-child {
  gap: 2px;
  display: grid;
}

.area-row strong {
  font-size: 13px;
}

.area-row > div:first-child span {
  color: var(--muted);
  font-size: 11px;
}

.area-row b {
  text-align: right;
  font: 600 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.area-meter {
  background: var(--line);
  height: 2px;
  overflow: hidden;
}

.area-meter span {
  background: var(--ink);
  height: 100%;
  display: block;
}

.insight-card {
  min-height: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  display: grid;
}

.insight-card h2 {
  margin: 0 0 8px;
  font: 500 22px ui-serif, Palatino, Georgia, serif;
}

.insight-card p {
  max-width: 46em;
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.insight-card > a {
  border-bottom: 1px solid;
  font-weight: 650;
}

.markdown {
  gap: 12px;
  display: grid;
}

.markdown > :first-child {
  margin-top: 0;
}

.markdown > :last-child {
  margin-bottom: 0;
}

.markdown p {
  margin: 0;
  line-height: 1.55;
}

.markdown ul, .markdown ol {
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  display: grid;
}

.markdown li {
  line-height: 1.5;
}

.markdown li::marker {
  color: var(--muted);
}

.markdown strong {
  font-weight: 650;
}

.markdown em {
  font-style: italic;
}

.markdown code {
  border: 1px solid var(--line);
  word-break: break-word;
  background: #f0f0ee;
  padding: 1px 4px;
  font: 500 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.markdown a {
  color: var(--ink);
  border-bottom: 1px solid;
  font-weight: 600;
}

.markdown-table {
  border: 1px solid var(--ink);
  overflow-x: auto;
}

.markdown-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.markdown-table th, .markdown-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  padding: 8px 12px;
}

.markdown-table thead th {
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font: 500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.markdown-table tbody tr:last-child td {
  border-bottom: 0;
}

.markdown-preview {
  border: 1px solid var(--line);
  background: var(--paper);
  gap: 10px;
  padding: 14px;
  display: grid;
}

.markdown-preview .eyebrow {
  margin: 0;
}

.markdown-preview p.muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.scope-tabs {
  border-bottom: 1px solid var(--ink);
  scrollbar-width: thin;
  gap: 2px;
  padding-bottom: 2px;
  display: flex;
  overflow-x: auto;
}

.scope-tabs button {
  min-height: 36px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  flex: none;
  padding: 8px 12px;
  font: 500 12px ui-sans-serif, system-ui, sans-serif;
}

.scope-tabs button:hover {
  color: var(--ink);
}

.scope-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 650;
}

.rank-list {
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

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

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

.rank-row > b {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font: 600 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rank-row > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.rank-row strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  overflow: hidden;
}

.rank-row span {
  color: var(--muted);
  font-size: 11px;
}

.rank-row em {
  font-variant-numeric: tabular-nums;
  font: 500 20px ui-serif, Palatino, Georgia, serif;
}

.rank-row.is-self {
  border-left: 2px solid var(--ink);
  background: #f0f0ee;
  margin-left: -10px;
  padding-left: 10px;
}

.rank-row.is-self > b {
  color: var(--ink);
}

.rank-list-self {
  border-top: 1px solid var(--ink);
  margin-top: 4px;
}

.rank-gap {
  color: var(--muted);
  letter-spacing: .2em;
  padding: 6px 0;
  font: 500 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rank-total {
  margin: 16px 0 0;
  font-size: 11px;
}

.rank-empty {
  gap: 8px;
  padding: 24px 0;
  display: grid;
}

.rank-empty > span {
  color: var(--muted);
  font: 500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rank-empty strong {
  font: 500 20px / 1.25 ui-serif, Palatino, Georgia, serif;
}

.rank-empty p {
  margin: 0;
  font-size: 13px;
}

.rank-local {
  gap: 12px;
  display: grid;
}

.rank-local p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.player-wrap {
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
}

.player-context {
  border-bottom: 1px solid var(--ink);
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 0 4px 14px;
  display: flex;
}

.player-context > div:first-child {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.player-context > div:first-child > span, .player-rating > span {
  color: var(--muted);
  letter-spacing: .08em;
  font: 600 10px / 1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.player-context small {
  color: var(--muted);
  font-size: 12px;
}

.player-rating {
  white-space: nowrap;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 8px;
  display: grid;
}

.player-rating > span {
  text-align: right;
  grid-column: 1 / -1;
}

.player-rating strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font: 500 34px / .9 ui-serif, Palatino, Georgia, serif;
}

.question-card, .feedback-card {
  border: 1px solid var(--ink);
  background: var(--surface);
  border-radius: 8px;
  min-height: 0;
  padding: 30px;
  box-shadow: 7px 7px #e7e7e2;
}

.question-meta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  display: grid;
}

.question-heading {
  gap: 9px;
  min-width: 0;
  display: grid;
}

.question-area {
  width: max-content;
  max-width: 100%;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font: 600 10px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.question-meta h1 {
  overflow-wrap: anywhere;
  letter-spacing: -.01em;
  margin: 0;
  font: 500 26px / 1.15 ui-serif, Palatino, Georgia, serif;
}

.question-counter {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  grid-template-columns: auto auto;
  place-items: baseline end;
  column-gap: 5px;
  display: grid;
}

.question-counter > span {
  letter-spacing: .08em;
  text-transform: uppercase;
  grid-column: 1 / -1;
  font: 600 9px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.question-counter strong {
  color: var(--ink);
  font: 500 26px ui-serif, Palatino, Georgia, serif;
}

.question-counter small {
  font-size: 11px;
}

.progress-track {
  background: var(--line);
  border-radius: 999px;
  height: 4px;
  margin: 20px 0 16px;
  overflow: hidden;
}

.progress-track span {
  border-radius: inherit;
  background: var(--ink);
  height: 100%;
  transition: width .28s;
  display: block;
}

.question-details {
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.35;
  display: flex;
}

.question-details i {
  color: #a5a5a0;
  font-style: normal;
}

.question-editorial-status:before {
  content: "◌";
  color: var(--ink);
  margin-right: 4px;
}

.question-stem {
  overflow-wrap: break-word;
  min-height: 0;
  margin: 28px 0;
  font: 400 17px / 1.65 ui-sans-serif, system-ui, sans-serif;
}

.question-stem.markdown {
  gap: 15px;
}

.option-list {
  border: 0;
  gap: 10px;
  margin: 0;
  padding: 0;
  display: grid;
}

.option {
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--surface);
  border-radius: 8px;
  grid-template-columns: 32px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 11px 14px;
  transition: border-color .16s, background .16s, transform .16s;
  display: grid;
}

.option-copy {
  overflow-wrap: anywhere;
  min-width: 0;
  line-height: 1.48;
}

.option:hover {
  border-color: var(--ink);
  transform: translateX(2px);
}

.option:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.option.selected {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--ink);
  background: #f2f2ee;
}

.option input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}

.option-letter {
  border: 1px solid var(--ink);
  border-radius: 50%;
  place-items: center;
  width: 30px;
  height: 30px;
  font: 650 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: grid;
}

.option.selected .option-letter {
  color: var(--paper);
  background: var(--ink);
}

.option-check {
  width: 22px;
  color: var(--ink);
  text-align: center;
  font-weight: 700;
}

.answer-actions {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 18px;
  display: grid;
}

.answer-actions p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.answer-actions .button {
  min-width: 220px;
}

.editorial-note {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 10px;
  display: flex;
}

.editorial-note span {
  font-size: 14px;
}

.feedback-verdict {
  border-bottom: 1px solid var(--ink);
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  display: grid;
}

.feedback-symbol {
  border: 1px solid var(--ink);
  background: var(--ink);
  border-radius: 50%;
  place-items: center;
  width: 52px;
  height: 52px;
  display: grid;
  color: var(--paper) !important;
  font: 600 22px / 1 ui-sans-serif, system-ui, sans-serif !important;
}

.feedback-card.incorrect .feedback-symbol {
  background: var(--surface);
  color: var(--ink) !important;
}

.feedback-verdict > div {
  gap: 4px;
  display: grid;
}

.feedback-verdict > div > span {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font: 600 10px / 1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.feedback-verdict h2 {
  margin: 0;
  font: 500 34px / 1.08 ui-serif, Palatino, Georgia, serif;
}

.feedback-verdict p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.feedback-metrics {
  border: 1px solid var(--ink);
  background: var(--ink);
  grid-template-columns: 1fr 1fr .8fr;
  gap: 1px;
  margin: 22px 0 28px;
  display: grid;
}

.feedback-metrics > div {
  background: var(--surface);
  align-content: space-between;
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  display: grid;
}

.feedback-metrics span {
  color: var(--muted);
  font-size: 10px;
}

.rating-transition {
  font-variant-numeric: tabular-nums;
  align-items: baseline;
  gap: 6px;
  display: flex;
}

.rating-transition small {
  color: var(--muted);
  font-size: 12px;
}

.rating-transition i {
  color: var(--muted);
  font-style: normal;
}

.rating-transition strong {
  font: 500 25px ui-serif, Palatino, Georgia, serif;
}

.feedback-metrics b {
  font-size: 12px;
}

.xp-metric strong {
  font: 500 23px ui-serif, Palatino, Georgia, serif;
}

.xp-metric small {
  color: var(--muted);
  font-size: 10px;
}

.feedback-actions {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  display: flex;
}

.feedback-actions p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.feedback-actions .button {
  min-width: 220px;
}

.explanation {
  border-top: 1px solid var(--line);
  background: none;
  min-height: 0;
  margin: 0 0 24px;
  padding: 24px 0 0;
}

.explanation-heading {
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
  display: flex;
}

.explanation-heading .eyebrow {
  color: var(--ink);
  margin: 0;
}

.explanation p {
  line-height: 1.65;
}

.explanation a {
  color: var(--ink);
  border-bottom: 1px solid;
  flex: none;
  font-size: 11px;
  font-weight: 650;
}

.inline-error {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  border-radius: 6px;
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
}

.player-loading, .loading-screen, .empty-state {
  text-align: center;
  place-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 420px;
  display: grid;
}

.loading-screen {
  min-height: 100vh;
}

.loading-pulse {
  border: 1px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: .8s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  border: 1px solid var(--ink);
  background: var(--surface);
  padding: 36px;
}

.empty-state > span {
  color: var(--muted);
  font: 500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.empty-state h1, .empty-state h2 {
  margin: 0;
  font: 500 28px ui-serif, Palatino, Georgia, serif;
}

.empty-state p {
  color: var(--muted);
}

.review-page {
  max-width: 760px;
  margin: auto;
}

.review-page > header {
  margin-bottom: 24px;
}

.review-page > header h1 {
  margin: 0;
  font: 500 40px / 1.1 ui-serif, Palatino, Georgia, serif;
}

.review-page > header p {
  color: var(--muted);
}

.review-rating {
  min-height: 0;
  color: var(--paper);
  background: var(--ink);
  gap: 8px;
  padding: 28px;
  display: grid;
}

.review-rating > span {
  color: #bdbdbd;
  font: 500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.review-rating > div {
  align-items: baseline;
  gap: 16px;
  display: flex;
}

.review-rating small {
  color: #bdbdbd;
  font: 500 18px ui-serif, Palatino, Georgia, serif;
}

.review-rating i {
  color: #bdbdbd;
  font-style: normal;
}

.review-rating strong {
  font: 500 48px ui-serif, Palatino, Georgia, serif;
}

.review-rating > b {
  font-size: 13px;
  color: var(--paper) !important;
}

.review-grid {
  background: var(--ink);
  border: 1px solid var(--ink);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 1px 0;
  display: grid;
}

.review-grid article {
  background: var(--surface);
  align-content: space-between;
  min-height: 110px;
  padding: 16px;
  display: grid;
}

.review-grid span, .review-grid small {
  color: var(--muted);
  font-size: 11px;
}

.review-grid strong {
  font: 500 24px ui-serif, Palatino, Georgia, serif;
}

.review-page .panel {
  padding: 24px;
}

.attempt-list {
  display: grid;
}

.attempt-list > div {
  border-top: 1px solid var(--line);
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  display: grid;
}

.attempt-dot {
  border: 1px solid var(--ink);
  width: 22px;
  height: 22px;
  color: var(--ink);
  background: var(--surface);
  place-items: center;
  font-size: 11px;
  display: grid;
}

.attempt-dot.correct {
  color: var(--paper);
  background: var(--ink);
}

.attempt-list > div > div {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.attempt-list > div > div > strong {
  overflow-wrap: anywhere;
}

.attempt-list small {
  color: var(--muted);
  font-size: 11px;
}

.review-actions {
  gap: 8px;
  margin-top: 20px;
  display: flex;
}

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

.history-list > a {
  border: 1px solid var(--ink);
  background: var(--surface);
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 16px 18px;
  display: flex;
}

.history-list > a:hover {
  background: #ecece8;
}

.history-list > a > div {
  gap: 4px;
  display: grid;
}

.history-list span, .history-list small {
  color: var(--muted);
  font-size: 11px;
}

.history-list b {
  text-align: right;
  font: 650 16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.profile-grid article {
  align-content: space-between;
  min-height: 108px;
  padding: 18px;
  display: grid;
}

.profile-grid span {
  color: var(--muted);
  font-size: 11px;
}

.profile-grid strong {
  font: 500 18px ui-serif, Palatino, Georgia, serif;
}

.data-control {
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
  padding: 24px;
  display: flex;
}

.data-control h2 {
  margin: 0;
  font: 500 20px ui-serif, Palatino, Georgia, serif;
}

.data-control p {
  max-width: 48em;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-row {
  gap: 8px;
  display: flex;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .onboarding-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .quick-stats {
    grid-template-columns: 1fr 1fr;
  }

  .insight-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    padding: 16px;
  }

  .landing-nav .nav-link {
    display: none;
  }

  .hero {
    gap: 32px;
    padding: 40px 16px 56px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-copy > p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .landing-strip {
    padding: 12px 16px;
  }

  .how {
    padding: 64px 16px;
  }

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

  .pillar-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
    padding: 24px 0;
  }

  .pillar-grid h3 {
    margin-top: 16px;
  }

  .product-statement {
    padding: 40px 16px;
  }

  .landing-footer {
    text-align: center;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .landing-footer .powered {
    justify-self: center;
  }

  .onboarding-page {
    padding: 16px;
  }

  .onboarding-grid {
    padding: 32px 0;
  }

  .onboarding-grid > section:first-child h1 {
    font-size: 34px;
  }

  .onboarding-panel {
    padding: 20px;
  }

  html {
    scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .app-frame {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .app-column {
    width: 100%;
  }

  .app-topbar {
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
  }

  .app-topbar > .brand {
    display: inline-flex;
  }

  .app-topbar .brand-copy {
    display: none;
  }

  .app-main {
    width: calc(100% - 32px);
    min-height: calc(100vh - 132px);
    padding: 28px 0 calc(112px + env(safe-area-inset-bottom));
  }

  .app-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .app-footer .powered {
    display: none;
  }

  .bottom-nav {
    z-index: 20;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ink);
    background: var(--paper);
    grid-template-columns: repeat(6, 1fr);
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .bottom-nav a {
    min-height: 44px;
    color: var(--muted);
    text-align: center;
    align-content: center;
    place-items: center;
    gap: 3px;
    padding: 6px 2px;
    font-size: 9px;
    line-height: 1.15;
    display: grid;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }

  .bottom-nav a.active {
    color: var(--ink);
    border-top: 2px solid var(--ink);
    font-weight: 700;
  }

  .bottom-nav a.active .nav-icon {
    stroke-width: 1.6px;
  }

  .page-heading {
    margin-bottom: 22px;
    display: block;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .page-heading > p {
    margin-top: 10px;
  }

  .dashboard-hero {
    padding: 20px;
    display: grid;
  }

  .rating-line strong {
    font-size: 48px;
  }

  .dashboard-hero .button {
    width: 100%;
  }

  .quick-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-stack > .panel {
    padding: 18px;
  }

  .panel-heading {
    display: block;
  }

  .panel-heading .muted {
    margin-top: 8px;
    display: block;
  }

  .area-row {
    grid-template-columns: 1fr 40px;
    gap: 8px 12px;
  }

  .area-meter {
    grid-area: 2 / 1 / auto / -1;
  }

  .rank-row {
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
  }

  .rank-row em {
    font-size: 18px;
  }

  .scope-tabs {
    margin: 0 -16px;
    padding: 0 16px 2px;
  }

  .player-context {
    align-items: end;
    gap: 14px;
    padding-inline: 2px;
  }

  .player-context > div:first-child {
    gap: 4px;
  }

  .player-context small {
    max-width: 24ch;
    font-size: 10px;
  }

  .player-rating strong {
    font-size: 30px;
  }

  .question-card, .feedback-card {
    border-radius: 7px;
    padding: 20px 16px;
    box-shadow: 4px 4px #e7e7e2;
  }

  .markdown-table th, .markdown-table td {
    padding: 8px;
  }

  .question-meta {
    gap: 12px;
  }

  .question-heading {
    gap: 7px;
  }

  .question-meta h1 {
    font-size: 21px;
  }

  .question-counter strong {
    font-size: 22px;
  }

  .progress-track {
    margin: 16px 0 14px;
  }

  .question-details {
    gap: 5px;
  }

  .question-details span {
    font-size: 10px;
  }

  .question-stem {
    margin: 24px 0;
    font-size: 16px;
    line-height: 1.62;
  }

  .option {
    min-height: 60px;
    scroll-margin-bottom: calc(76px + env(safe-area-inset-bottom));
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 11px 10px;
  }

  .option:hover {
    transform: none;
  }

  .option-letter {
    width: 28px;
    height: 28px;
  }

  .answer-actions {
    scroll-margin-bottom: calc(76px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .answer-actions .button {
    width: 100%;
    min-width: 0;
  }

  .feedback-verdict {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
  }

  .feedback-symbol {
    width: 46px;
    height: 46px;
  }

  .feedback-verdict h2 {
    font-size: 27px;
  }

  .feedback-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .feedback-metrics > div {
    min-height: 104px;
    padding: 12px;
  }

  .feedback-metrics .xp-metric {
    grid-column: 1 / -1;
    min-height: 82px;
  }

  .rating-transition strong {
    font-size: 22px;
  }

  .feedback-actions {
    gap: 9px;
    margin-bottom: 20px;
    display: grid;
  }

  .feedback-actions .button {
    width: 100%;
    min-width: 0;
  }

  .explanation-heading {
    gap: 8px;
    display: grid;
  }

  .explanation-heading a {
    width: max-content;
  }

  .feedback-actions {
    scroll-margin-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .review-page > header h1 {
    font-size: 32px;
  }

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

  .review-actions {
    display: grid;
  }

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

  .data-control, .confirm-row {
    display: grid;
  }
}

@media (max-width: 360px) {
  .landing-brand .powered {
    display: none;
  }

  .landing-nav > div {
    gap: 8px;
  }
}

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

.editorial-page {
  gap: 20px;
  width: min(960px, 100% - 32px);
  margin: 0 auto;
  padding: 24px 0 64px;
  display: grid;
}

.editorial-top {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.editorial-filters {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.editorial-table-wrap {
  padding: 0;
  overflow-x: auto;
}

.editorial-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.editorial-table th, .editorial-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
}

.editorial-table td .text-link {
  margin-right: 10px;
}

.form-stack textarea {
  border: 1px solid var(--ink);
  background: var(--surface);
  resize: vertical;
  width: 100%;
  padding: 10px 12px;
}

.clue-list {
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.clue-list li {
  border: 1px solid var(--line);
  background: var(--surface);
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  display: grid;
}

.clue-list li:last-child {
  border-color: var(--ink);
}

.clue-list li:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.clue-index {
  border: 1px solid var(--ink);
  place-items: center;
  width: 24px;
  height: 24px;
  font: 650 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: grid;
}

.clue-list li:last-child .clue-index {
  color: var(--paper);
  background: var(--ink);
}

.clue-list p {
  overflow-wrap: anywhere;
  margin: 0;
}

.daily-diagnosis strong, .daily-attempts li {
  overflow-wrap: anywhere;
}

.challenge-catalog {
  gap: 20px;
  display: grid;
}

.challenge-catalog-list {
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.challenge-catalog-card {
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  gap: 8px;
  padding: 16px 18px;
  text-decoration: none;
  display: grid;
}

.challenge-catalog-card p {
  overflow-wrap: anywhere;
  margin: 0;
}

.challenge-catalog-card.is-done {
  opacity: .78;
}

.challenge-catalog-done {
  margin: 12px 0 0;
  font-size: 16px;
}

.daily-guess {
  gap: 8px;
  margin-top: 24px;
  display: grid;
}

.daily-guess label {
  color: var(--muted);
  font: 500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.daily-guess input {
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  width: 100%;
  padding: 12px 14px;
}

.daily-guess input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.daily-error {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.daily-attempts {
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.daily-attempts li {
  border: 1px solid var(--line);
  color: var(--muted);
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  display: inline-flex;
}

.daily-attempts li.is-correct {
  border-color: var(--ink);
  color: var(--ink);
}

.daily-attempts li.is-wrong {
  text-decoration: line-through;
}

.daily-result {
  border-top: 1px solid var(--ink);
  margin-top: 24px;
  padding-top: 20px;
}

.daily-result h2 {
  margin: 0;
  font: 500 24px ui-serif, Palatino, Georgia, serif;
}

.daily-diagnosis {
  gap: 4px;
  margin: 16px 0 0;
  display: grid;
}

.daily-diagnosis span {
  color: var(--muted);
  font: 500 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.daily-diagnosis strong {
  font: 500 28px ui-serif, Palatino, Georgia, serif;
}

.daily-diagnosis small {
  color: var(--muted);
  font-size: 13px;
}

.daily-score {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 12px;
}

.daily-explanation {
  margin-top: 16px;
}

@media (max-width: 480px) {
  .daily-diagnosis strong {
    font-size: 22px;
  }

  .daily-result h2 {
    font-size: 20px;
  }
}

.standalone {
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: grid;
}

.standalone-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.standalone-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  font-size: 11px;
  display: flex;
}

@media (max-width: 480px) {
  .standalone {
    padding: 20px 14px 36px;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/