:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-elevated: rgba(255, 255, 255, 0.94);
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(248, 250, 255, 0.98);
  --text: #1c2737;
  --text-muted: rgba(28, 39, 55, 0.66);
  --line: rgba(28, 39, 55, 0.09);
  --line-strong: rgba(28, 39, 55, 0.18);
  --accent: #4c7cf6;
  --accent-soft: rgba(76, 124, 246, 0.12);
  --accent-strong: #3568ea;
  --danger: #e2574c;
  --success: #27a668;
  --shadow: 0 18px 48px rgba(34, 62, 104, 0.09);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #f7f8fc;
  font-family: "Huashu", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.app-state--busy {
  cursor: progress;
}

button,
input {
  font: inherit;
}

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

button:disabled {
  opacity: 0.62;
}

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

input[aria-invalid="true"] {
  border-color: var(--danger);
  background: rgba(226, 87, 76, 0.04);
}

input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  width: 100%;
  min-height: 3.3rem;
  padding: 0.9rem 1rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

input:focus {
  outline: none;
  border-color: rgba(76, 124, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(76, 124, 246, 0.12);
  background: #fff;
}

input::placeholder {
  color: rgba(28, 39, 55, 0.34);
}

[hidden] {
  display: none !important;
}

.ambient-layer {
  display: none;
}

.ambient-layer--mesh {
  background:
    radial-gradient(circle at 18% 20%, rgba(76, 124, 246, 0.1), transparent 23%),
    radial-gradient(circle at 82% 12%, rgba(66, 194, 164, 0.08), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(245, 193, 90, 0.08), transparent 25%);
}

.ambient-layer--grain {
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(28, 39, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 39, 55, 0.03) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at center, black, transparent 92%);
}

.experience-shell {
  width: min(var(--container), calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: 100vh;
  padding: 1rem 0 2rem;
}

.capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capsule--soft {
  background: var(--accent-soft);
  border-color: rgba(217, 164, 93, 0.24);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: inherit;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

body.app-state--redacted [data-skeleton] {
  position: relative;
  display: inline-block;
  color: transparent !important;
  user-select: none;
}

body.app-state--redacted [data-skeleton]::after {
  content: "";
  position: absolute;
  inset: 0.12em 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(28, 39, 55, 0.06),
    rgba(28, 39, 55, 0.12),
    rgba(28, 39, 55, 0.06)
  );
  background-size: 240px 100%;
  animation: shimmer 1.2s infinite linear;
}

body.app-state--redacted [data-skeleton="paragraph"]::after {
  inset: 0.18em 0;
  border-radius: 14px;
}

body.app-state--redacted [data-skeleton="metric"]::after {
  inset: 0.22em 0;
  border-radius: 18px;
}

.skeleton-row,
.skeleton-chip {
  position: relative;
  overflow: hidden;
  list-style: none;
  color: transparent;
  user-select: none;
}

.skeleton-row {
  min-height: 3.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(28, 39, 55, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.chip-list .skeleton-row,
.action-list .skeleton-row {
  min-height: 2.55rem;
  border-radius: 999px;
}

.skeleton-row::before,
.skeleton-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 39, 55, 0.05),
    rgba(28, 39, 55, 0.1),
    rgba(28, 39, 55, 0.05)
  );
  background-size: 260px 100%;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-chip {
  display: inline-block;
  width: 7.5rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 39, 55, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.trend-chart__skeleton {
  min-height: 15rem;
  border-radius: calc(var(--radius-lg) - 6px);
  background:
    linear-gradient(
      90deg,
      rgba(28, 39, 55, 0.04),
      rgba(28, 39, 55, 0.09),
      rgba(28, 39, 55, 0.04)
    );
  background-size: 280px 100%;
  animation: shimmer 1.2s infinite linear;
}

.boot-view,
.auth-stage,
.workspace {
  animation: rise-in 420ms ease both;
}

.boot-view {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(var(--container), calc(100% - 1.5rem));
  min-height: 0;
  display: grid;
  place-items: start center;
  pointer-events: none;
}

.boot-view__card {
  width: min(100%, 56rem);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 42px rgba(34, 62, 104, 0.12);
  backdrop-filter: blur(18px);
  padding: 0.75rem 0.95rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "capsule title signal"
    "status status status";
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.boot-view__card .capsule {
  grid-area: capsule;
  padding: 0.36rem 0.7rem;
  font-size: 0.68rem;
}

.boot-view__card h1 {
  grid-area: title;
}

.boot-view__status {
  grid-area: status;
}

.boot-view__card .signal {
  grid-area: signal;
  justify-self: end;
}

.boot-view__card h1 {
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.boot-view__status {
  color: var(--text-muted);
  line-height: 1.4;
  font-size: 0.92rem;
}

.signal {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.signal span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  animation: signal-pulse 1.2s infinite ease-in-out;
}

.signal span:nth-child(2) {
  animation-delay: 120ms;
}

.signal span:nth-child(3) {
  animation-delay: 240ms;
}

.auth-stage {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding:
    calc(1.2rem + env(safe-area-inset-top))
    1.2rem
    calc(1.2rem + env(safe-area-inset-bottom));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(245, 247, 251, 0.72);
  backdrop-filter: blur(22px);
}

body.app-state--modal {
  overflow: hidden;
}

.auth-stage__content {
  display: grid;
  gap: 1rem;
  width: min(44rem, 100%);
}

.auth-editorial,
.auth-card,
.workspace-hero,
.action-card,
.stat-tile,
.insight-panel,
.history-panel,
.session-board {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-editorial,
.auth-card {
  padding: 1.2rem;
}

.auth-editorial {
  display: grid;
  gap: 1rem;
}

.auth-editorial h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
}

.auth-editorial > p {
  color: var(--text-muted);
  line-height: 1.65;
}

.auth-editorial__notes {
  display: grid;
  gap: 0.75rem;
}

.auth-editorial__notes div {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.2rem;
}

.auth-editorial__notes strong {
  color: var(--accent-strong);
  font-weight: 600;
}

.auth-card {
  display: grid;
  gap: 1rem;
}

.auth-card h2 {
  font-size: clamp(2rem, 7vw, 3.3rem);
}

.auth-form {
  display: grid;
  gap: 0.8rem;
}

.auth-form label,
.input-cluster label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.auth-form button,
.action-card button,
.answer-choice {
  min-height: 3.3rem;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font-weight: 600;
}

.auth-form button,
.action-card button {
  background: var(--accent);
  color: #fff;
}

.auth-form button:hover,
.action-card button:hover,
.answer-choice:hover {
  transform: translateY(-1px);
}

.auth-footnote {
  color: rgba(28, 39, 55, 0.48);
  font-size: 0.92rem;
  line-height: 1.55;
}

.workspace {
  display: grid;
  gap: 1rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.workspace-hero,
.session-board,
.history-panel {
  padding: 1.15rem;
}

.workspace-hero {
  display: grid;
  gap: 1rem;
}

.workspace-hero__copy {
  display: grid;
  gap: 0.75rem;
}

.workspace-hero__copy h2 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
}

.workspace-hero__lead {
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 42rem;
}

.hero-snapshot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245, 193, 90, 0.1), rgba(76, 124, 246, 0.08));
  border: 1px solid var(--line);
  max-width: 28rem;
}

.hero-snapshot__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 2px solid rgba(76, 124, 246, 0.2);
}

.hero-snapshot__badge span {
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1;
  color: var(--accent-strong);
}

.hero-snapshot__badge small {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-snapshot__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-snapshot__meta strong {
  color: var(--text);
}

.workspace-hero__actions {
  display: grid;
  gap: 0.8rem;
}

.workspace-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.workspace-hero__label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-action-cards {
  display: grid;
  gap: 0.65rem;
}

.hero-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-align: left;
  min-height: auto;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.hero-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.hero-action-card--practice {
  border-left: 3px solid var(--accent);
}

.hero-action-card--exam {
  border-left: 3px solid #f5c15a;
}

.hero-action-card__icon {
  font-size: 1.4rem;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.hero-action-card--practice .hero-action-card__icon {
  background: var(--accent-soft);
}

.hero-action-card--exam .hero-action-card__icon {
  background: rgba(245, 193, 90, 0.15);
}

.hero-action-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-action-card__body strong {
  font-size: 0.95rem;
  font-weight: 650;
}

.hero-action-card__body span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.logout-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.35rem 0;
  cursor: pointer;
  text-align: left;
  min-height: auto;
  width: fit-content;
  transition: color 160ms ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.logout-link:hover {
  color: var(--danger);
  text-decoration-color: var(--danger);
}

.ghost-button {
  min-height: 3.1rem;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 1);
}

.action-deck,
.stats-strip,
.insight-grid,
.readiness-grid {
  display: grid;
  gap: 1rem;
}

.action-card,
.stat-tile,
.insight-panel,
.trend-panel {
  padding: 1.1rem;
}

.action-card {
  display: grid;
  gap: 0.9rem;
}

.action-card__header {
  display: grid;
  gap: 0.55rem;
}

.action-card__header h3 {
  font-size: clamp(1.6rem, 6vw, 2.3rem);
}

.action-card p {
  color: var(--text-muted);
  line-height: 1.55;
}

.action-card__inputs {
  display: grid;
  gap: 0.75rem;
}

.input-cluster {
  display: grid;
  gap: 0.4rem;
}

.action-card--practice {
  background:
    linear-gradient(180deg, rgba(76, 124, 246, 0.08), transparent 60%),
    var(--panel);
}

.action-card--exam {
  background:
    linear-gradient(180deg, rgba(66, 194, 164, 0.08), transparent 60%),
    var(--panel);
}

.stats-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  padding: 1.1rem;
  overflow-x: auto;
}

.channel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.channel-table th,
.channel-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.channel-table thead th {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 500;
}

.channel-table tbody tr {
  transition: background-color 160ms ease;
}

.channel-table tbody tr:hover {
  background-color: rgba(76, 124, 246, 0.06);
}

.channel-table tbody tr:last-child td {
  border-bottom: none;
}

.channel-table td:first-child {
  font-weight: 600;
}

.channel-table__accuracy {
  color: var(--accent-strong);
  font-weight: 600;
}

.channel-table__accuracy--empty {
  color: var(--text-muted);
  font-weight: 400;
}

.channel-table__empty td {
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.channel-strip__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.channel-strip__head h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.stat-tile {
  min-height: 8rem;
  display: grid;
  align-content: space-between;
  background: var(--panel-soft);
}

.stat-tile__label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.stat-tile strong {
  font-size: clamp(2rem, 7vw, 3.25rem);
}

.trend-panel {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 35%),
    var(--panel);
  box-shadow: var(--shadow);
}

.trend-panel__head {
  display: grid;
  gap: 0.55rem;
}

.trend-panel__head h3 {
  font-size: clamp(1.55rem, 6vw, 2.2rem);
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trend-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.trend-legend__swatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.domain-stats-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.domain-stat {
  display: grid;
  gap: 0.55rem;
  min-height: 8.4rem;
  padding: 0.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.domain-stat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.domain-stat__head strong {
  font-size: 0.95rem;
}

.domain-stat__head span,
.domain-stat p,
.domain-stat--empty span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.domain-stat__value {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 750;
  line-height: 1;
  color: var(--accent-strong);
}

.domain-stat__bar {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(28, 39, 55, 0.08);
}

.domain-stat__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #27a668);
}

.domain-stat--empty {
  grid-column: 1 / -1;
  min-height: 5rem;
  align-content: center;
}

.trend-chart {
  min-height: 18rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 45%),
    rgba(255, 255, 255, 0.025);
  padding: 0.75rem 0.75rem 0.35rem;
}

.trend-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.trend-chart__grid line {
  stroke: rgba(28, 39, 55, 0.09);
  stroke-width: 1;
}

.trend-chart__axis text {
  fill: rgba(28, 39, 55, 0.46);
  font-size: 11px;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

.trend-chart__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-chart__line--overall {
  stroke-width: 3.6;
}

.trend-chart__area {
  fill: url(#trendAreaGradient);
  opacity: 0.2;
}

.trend-chart__point {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.trend-chart__empty {
  min-height: 15rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
}

.feedback-line {
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  line-height: 1.5;
}

.feedback-line--error {
  color: var(--danger);
  border-color: rgba(255, 138, 122, 0.24);
  background: rgba(255, 138, 122, 0.08);
}

.readiness-grid {
  align-items: stretch;
}

.readiness-panel,
.study-plan-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.readiness-panel {
  background:
    radial-gradient(circle at top, rgba(245, 193, 90, 0.14), transparent 34%),
    var(--panel);
}

.study-plan-panel {
  background:
    linear-gradient(180deg, rgba(106, 140, 255, 0.12), transparent 38%),
    var(--panel);
}

.readiness-panel__head,
.study-plan-panel__head {
  display: grid;
  gap: 0.75rem;
}

.readiness-panel__head h3,
.study-plan-panel__head h3 {
  font-size: clamp(1.55rem, 6vw, 2.15rem);
}

.readiness-panel__body {
  display: grid;
  gap: 1rem;
}

.readiness-gauge {
  min-height: 14rem;
}

.readiness-gauge svg {
  width: 100%;
  height: auto;
  display: block;
}

.readiness-copy {
  display: grid;
  gap: 0.75rem;
}

.readiness-copy > strong {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  line-height: 0.9;
}

.readiness-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.readiness-metrics span,
.plan-metric {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.25rem;
}

.readiness-metrics strong,
.plan-metric strong {
  font-size: 1.35rem;
}

.readiness-metrics small,
.plan-metric span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.study-plan-panel__controls {
  display: grid;
  gap: 0.6rem;
}

.plan-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.study-plan-panel__lists {
  display: grid;
  gap: 1rem;
}

.chip-list,
.action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-list li,
.action-list li {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.72rem 0.95rem;
}

.chip-list li {
  color: var(--accent-strong);
}

.action-list li {
  color: var(--text);
}

.session-board {
  display: grid;
  gap: 1rem;
}

.session-board__head {
  display: grid;
  gap: 0.8rem;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.session-meta span {
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.question-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.question-sheet h4 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.08;
}

.answer-stack {
  display: grid;
  gap: 0.7rem;
}

.answer-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.answer-choice__index {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.answer-choice__body {
  display: grid;
  gap: 0.18rem;
}

.answer-choice__body span:last-child {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feedback-card {
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  white-space: pre-line;
  line-height: 1.6;
}

.feedback-card.success {
  border-color: rgba(159, 222, 186, 0.24);
  background: rgba(159, 222, 186, 0.08);
}

.feedback-card.error {
  border-color: rgba(255, 138, 122, 0.22);
  background: rgba(255, 138, 122, 0.08);
}

.insight-panel {
  display: grid;
  gap: 1rem;
}

.insight-panel__head {
  display: grid;
  gap: 0.45rem;
}

.insight-panel__head h3 {
  font-size: clamp(1.35rem, 5vw, 1.8rem);
}

.metric-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.metric-list li {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.95rem 1rem;
  line-height: 1.45;
}

.metric-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.history-panel {
  display: grid;
  gap: 1rem;
}

.session-review-button {
  margin-top: 0.75rem;
  min-height: 2.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0.7rem 1rem;
}

.focus-shell {
  display: grid;
  gap: 1rem;
  min-height: calc(100vh - 2rem);
  min-height: calc(100dvh - 2rem);
  align-content: start;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.focus-shell__header,
.focus-question-card,
.focus-feedback-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.focus-shell__header,
.focus-question-card,
.focus-feedback-card {
  padding: 1rem;
}

.focus-shell__header {
  display: grid;
  gap: 0.9rem;
}

.focus-shell__header-actions {
  display: grid;
  gap: 0.75rem;
}

.focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.focus-meta span,
.focus-timer {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.7rem 0.9rem;
  color: var(--text-muted);
}

.focus-timer {
  font-weight: 700;
  color: var(--text);
}

.focus-timer--warning {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.2);
  background: rgba(245, 158, 11, 0.12);
}

.focus-timer--danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.22);
  background: rgba(226, 87, 76, 0.12);
}

.focus-question-card {
  display: grid;
  gap: 0.85rem;
}

.focus-question-card h3 {
  font-size: clamp(1.65rem, 5vw, 2.5rem);
}

.focus-loading-skeleton {
  height: 9.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 39, 55, 0.08);
  background: linear-gradient(
    90deg,
    rgba(28, 39, 55, 0.04),
    rgba(28, 39, 55, 0.09),
    rgba(28, 39, 55, 0.04)
  );
  background-size: 320px 100%;
  animation: shimmer 1.2s infinite linear;
}

.focus-answer-list {
  display: grid;
  gap: 0.75rem;
}

.focus-answer-button {
  min-height: 4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  text-align: left;
  padding: 0.95rem 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.focus-answer-button__index {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex-shrink: 0;
}

.focus-answer-button__body {
  display: grid;
  gap: 0.18rem;
}

.focus-answer-button__body span:last-child {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.focus-answer-button.is-correct {
  background: rgba(39, 166, 104, 0.12);
  border-color: rgba(39, 166, 104, 0.35);
  box-shadow: 0 0 0 1px rgba(39, 166, 104, 0.12) inset;
}

.focus-answer-button.is-correct .focus-answer-button__index {
  background: rgba(39, 166, 104, 0.16);
  color: #166534;
}

.focus-answer-button.is-selected-wrong {
  background: rgba(226, 87, 76, 0.12);
  border-color: rgba(226, 87, 76, 0.35);
  box-shadow: 0 0 0 1px rgba(226, 87, 76, 0.12) inset;
}

.focus-answer-button.is-selected-wrong .focus-answer-button__index {
  background: rgba(226, 87, 76, 0.14);
  color: #991b1b;
}

.focus-answer-button.is-disabled {
  opacity: 0.82;
}

.focus-feedback-card {
  line-height: 1.6;
}

.focus-feedback-card--success {
  border-color: rgba(39, 166, 104, 0.28);
  background: rgba(39, 166, 104, 0.08);
}

.focus-feedback-card--error {
  border-color: rgba(226, 87, 76, 0.28);
  background: rgba(226, 87, 76, 0.08);
}

.focus-shell__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.focus-shell__footer button:last-child {
  background: var(--accent);
  color: #fff;
  min-height: 3.1rem;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
}

.focus-setup {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.focus-setup label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.focus-setup button {
  min-height: 3.3rem;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
}

.noscript-panel {
  width: min(var(--container), calc(100% - 1.5rem));
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem;
  background: var(--panel);
  color: var(--text);
}

@keyframes signal-pulse {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -240px 0;
  }
  100% {
    background-position: 240px 0;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-view,
  .auth-stage,
  .workspace {
    animation: none;
  }

  .signal span {
    animation: none;
  }

  [data-skeleton]::after,
  .trend-chart__skeleton,
  .focus-loading-skeleton {
    animation: none;
  }

  .auth-form button:hover,
  .action-card button:hover,
  .answer-choice:hover {
    transform: none;
  }
}

@media (min-width: 720px) {
  .experience-shell {
    width: min(var(--container), calc(100% - 2.5rem));
    padding-top: 1.5rem;
  }

  .auth-stage__content {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .workspace-hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }

  .focus-shell__header {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

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

  .readiness-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

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

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

  .session-board__head {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .workspace {
    gap: 1.2rem;
  }

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

@media (max-width: 719px) {
  .experience-shell {
    width: min(var(--container), calc(100% - 1rem));
    padding-top: calc(0.5rem + env(safe-area-inset-top));
  }

  .auth-stage {
    place-items: start center;
  }

  .workspace-hero__buttons {
    flex-direction: column;
  }

  .boot-view {
    min-height: calc(100vh - 1rem);
  }

  .boot-view__card,
  .auth-editorial,
  .auth-card,
  .workspace-hero,
  .action-card,
  .stat-tile,
  .insight-panel,
  .history-panel,
  .session-board {
    border-radius: 24px;
  }

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

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

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

  .readiness-gauge {
    min-height: 10rem;
  }

  .trend-chart {
    min-height: 15rem;
    padding: 0.6rem 0.45rem 0.15rem;
  }

  .workspace-hero__actions {
    align-items: stretch;
  }

  .focus-shell__footer {
    flex-direction: column;
  }

  .workspace-hero__actions button:not(.logout-link),
  .session-board__head button,
  .focus-shell__header button,
  .focus-shell__footer button {
    width: 100%;
  }
}
