:root {
  --bg: #f4f0f7;
  --paper: #fffdfa;
  --paper-strong: #ffffff;
  --ink: #2e3140;
  --muted: #6c6f7d;
  --line: rgba(94, 102, 130, 0.16);
  --line-strong: rgba(78, 83, 102, 0.28);
  --shadow: 0 28px 60px rgba(106, 111, 140, 0.18);
  --shadow-soft: 0 18px 34px rgba(123, 128, 150, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --coral: #c14949;
  --cream: #eadabf;
  --ivory: #f8ede1;
  --sky: #8ab2bc;
  --lilac: #eee9fb;
  --mint: #dcf3eb;
  --navy: #5b6fa7;
  --success: #5db99a;
  --warning: #f3b465;
  --mono: "JetBrains Mono", monospace;
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(193, 73, 73, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(138, 178, 188, 0.18), transparent 26%),
    linear-gradient(180deg, #f6f2f8 0%, #f2eef7 100%);
  line-height: 1.55;
}

.skip-nav {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--paper);
  text-decoration: none;
  transition: top 180ms var(--ease);
}

.skip-nav:focus {
  top: 1rem;
}

.page-grain,
.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-grain {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 18%),
    radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.35), transparent 16%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.34;
  mix-blend-mode: soft-light;
}

.page-grid {
  background-image: radial-gradient(rgba(113, 119, 151, 0.16) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  opacity: 0.42;
}

.workspace-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  min-height: 100vh;
  padding: 1.25rem;
}

.workspace-main {
  display: grid;
  gap: 1.25rem;
}

.panel {
  background: rgba(255, 253, 250, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-panel {
  padding: 1.25rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.35rem;
}

.brand-lockup {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 20px);
  grid-template-rows: repeat(2, 20px);
  gap: 0.35rem;
}

.brand-mark span {
  border-radius: 8px;
}

.brand-mark span:nth-child(1) {
  background: var(--coral);
}

.brand-mark span:nth-child(2) {
  background: var(--cream);
}

.brand-mark span:nth-child(3) {
  background: var(--sky);
}

.brand-mark span:nth-child(4) {
  background: var(--lilac);
}

h1,
h2,
h3,
h4,
strong {
  letter-spacing: -0.03em;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl {
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
}

h1 {
  font-size: 1.85rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

h4 {
  font-size: 1rem;
  font-weight: 800;
}

.eyebrow,
.metric-label,
.tab-label,
.stage-pill,
.nav-item,
.status-chip {
  font-family: var(--mono);
  letter-spacing: 0.01em;
}

.eyebrow {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-text,
.helper-text,
.transition-note,
.prompt-card p,
.form-card p,
.flow-card p,
.overview-card p,
.course-card p,
.bio-card p,
.mastery-card p,
.engine-card p,
.reminder-list span,
.history-list span {
  color: var(--muted);
}

.side-nav {
  display: grid;
  gap: 0.45rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid transparent;
  transition:
    transform 220ms var(--ease),
    background-color 220ms var(--ease),
    border-color 220ms var(--ease);
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.active {
  transform: translateX(4px);
  background: rgba(238, 233, 251, 0.7);
  border-color: rgba(91, 111, 167, 0.18);
}

.nav-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.coral {
  background: var(--coral);
}

.lilac {
  background: #9e8fe0;
}

.mint {
  background: var(--success);
}

.sky {
  background: var(--sky);
}

.sidebar-note,
.palette-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.note-list {
  margin-top: 0.85rem;
  padding-left: 1rem;
  color: var(--muted);
}

.note-list li + li {
  margin-top: 0.35rem;
}

.palette-card {
  overflow: hidden;
  padding: 0;
}

.palette-row {
  height: 4rem;
}

.coral-swatch {
  background: var(--coral);
}

.cream-swatch {
  background: var(--cream);
}

.ivory-swatch {
  background: var(--ivory);
}

.sky-swatch {
  background: var(--sky);
}

.palette-card p {
  padding: 1rem;
  font-size: 0.92rem;
}

.tab-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.42rem 0.72rem;
  font-size: 0.72rem;
  color: #42475d;
  background: linear-gradient(180deg, #f5f3f5, #dcd8d7);
  border: 1px solid rgba(95, 100, 119, 0.18);
  border-radius: 12px;
  box-shadow: 0 6px 10px rgba(128, 132, 150, 0.12);
}

.hero,
.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.hero::after,
.page-header::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(91, 111, 167, 0.15);
  border-radius: calc(var(--radius-xl) - 10px);
  pointer-events: none;
}

.hero-copy,
.hero-art,
.profile-identity,
.header-actions,
.stamp-cluster {
  position: relative;
  z-index: 1;
}

.hero-copy,
.profile-identity {
  display: grid;
  gap: 0.7rem;
  align-content: center;
}

.hero-text {
  max-width: 62ch;
}

.hero-actions,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-actions.narrow {
  margin-top: 1rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

button,
textarea,
input {
  font: inherit;
}

.primary-button,
.secondary-button,
.inline-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.92rem 1.15rem;
  cursor: pointer;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    background-color 220ms var(--ease),
    border-color 220ms var(--ease);
}

.primary-button:hover,
.secondary-button:hover,
.inline-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.inline-button:focus-visible {
  transform: translateY(-2px);
}

.primary-button {
  background: linear-gradient(135deg, var(--navy), #778bd0);
  color: var(--paper);
  box-shadow: 0 14px 24px rgba(91, 111, 167, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: var(--line-strong);
}

.inline-button {
  background: rgba(193, 73, 73, 0.1);
  color: var(--coral);
  border-color: rgba(193, 73, 73, 0.14);
  padding-inline: 1rem;
}

.hero-art {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-height: 260px;
  border-radius: calc(var(--radius-xl) - 6px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(235, 238, 245, 0.82)),
    linear-gradient(180deg, rgba(238, 233, 251, 0.6), rgba(234, 218, 191, 0.4));
  border: 1px solid rgba(91, 111, 167, 0.14);
}

.hero-art-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, transparent 0 40%, rgba(255, 255, 255, 0.18) 42%, transparent 48%),
    radial-gradient(circle at 75% 25%, rgba(193, 73, 73, 0.14), transparent 24%);
}

.book-stack {
  position: relative;
  width: 190px;
  height: 140px;
}

.book {
  position: absolute;
  left: 50%;
  width: 120px;
  height: 70px;
  border-radius: 16px;
  transform-origin: center;
  border: 2px solid rgba(72, 81, 113, 0.12);
  box-shadow: 0 14px 24px rgba(91, 111, 167, 0.22);
}

.book-coral {
  top: 10px;
  background: linear-gradient(145deg, #f2b8b2, #d66c76);
  transform: translateX(-52%) rotate(-10deg);
}

.book-lilac {
  top: 38px;
  background: linear-gradient(145deg, #d7d1f8, #9e8fe0);
  transform: translateX(-50%) rotate(6deg);
}

.book-sky {
  top: 70px;
  background: linear-gradient(145deg, #c7e6ea, #8ab2bc);
  transform: translateX(-48%) rotate(-4deg);
}

.hero-badge {
  display: grid;
  gap: 0.25rem;
  max-width: 240px;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(91, 111, 167, 0.14);
  text-align: center;
}

.hero-badge span {
  font-size: 0.92rem;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading.compact {
  justify-content: flex-start;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.78fr);
  gap: 1.25rem;
}

.overview-stack,
.dashboard-rail,
.insight-rail,
.profile-rail,
.demo-rail {
  display: grid;
  gap: 1rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.overview-card,
.course-card,
.engine-card,
.metric-card,
.mastery-card {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.overview-card strong {
  display: block;
  margin: 0.4rem 0;
  font-size: 1.45rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.pilot-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.pilot-summary > div {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.course-card {
  min-height: 180px;
}

.course-card h4 {
  margin: 0.3rem 0 0.45rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.course-tone-lilac {
  background: linear-gradient(180deg, rgba(158, 143, 224, 0.18), rgba(255, 255, 255, 0.86));
}

.course-tone-sky {
  background: linear-gradient(180deg, rgba(138, 178, 188, 0.18), rgba(255, 255, 255, 0.9));
}

.course-tone-coral {
  background: linear-gradient(180deg, rgba(193, 73, 73, 0.16), rgba(255, 255, 255, 0.9));
}

.table-shell {
  margin-top: 1rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 0.7fr 0.7fr;
  gap: 1rem;
  padding: 0.95rem 1rem;
  align-items: center;
}

.table-row + .table-row {
  border-top: 1px solid rgba(94, 102, 130, 0.1);
}

.table-head {
  background: rgba(238, 233, 251, 0.6);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.status-chip {
  display: inline-flex;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.status-live {
  background: rgba(93, 185, 154, 0.16);
  color: #2f8d70;
}

.status-queued {
  background: rgba(138, 178, 188, 0.16);
  color: #447988;
}

.status-review {
  background: rgba(234, 218, 191, 0.56);
  color: #866433;
}

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

.calendar-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.calendar-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(94, 102, 130, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.calendar-day.active {
  background: linear-gradient(135deg, var(--navy), #778bd0);
  color: var(--paper);
}

.calendar-day.focus {
  background: rgba(193, 73, 73, 0.12);
  color: var(--coral);
}

.calendar-day.muted {
  background: rgba(180, 191, 210, 0.14);
}

.reminder-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.reminder-list li,
.history-list li {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.reminder-list strong,
.history-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.engine-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.75fr);
  gap: 1.25rem;
}

.lesson-board {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.transition-note {
  max-width: 36ch;
  font-size: 0.92rem;
}

.board-header,
.board-topic {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.board-topic {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(239, 233, 251, 0.62);
  border: 1px solid rgba(91, 111, 167, 0.08);
}

.board-topic > div {
  min-width: 140px;
  display: grid;
  gap: 0.3rem;
}

.metric-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.stage-pill.neutral {
  background: rgba(180, 191, 210, 0.18);
  color: var(--muted);
}

.stage-pill.conceptual {
  background: rgba(158, 143, 224, 0.16);
  color: #6e5bba;
  border-color: rgba(158, 143, 224, 0.24);
}

.stage-pill.blurting,
.stage-pill.back_to_learn {
  background: rgba(93, 185, 154, 0.14);
  color: #2e8b6e;
  border-color: rgba(93, 185, 154, 0.22);
}

.stage-pill.visual_engine,
.stage-pill.question_mode,
.stage-pill.more_practice,
.stage-pill.fill_in_the_blanks {
  background: rgba(138, 178, 188, 0.16);
  color: #447988;
  border-color: rgba(138, 178, 188, 0.2);
}

.stage-pill.debugging,
.stage-pill.adaptive_loop,
.stage-pill.full_note {
  background: rgba(193, 73, 73, 0.1);
  color: var(--coral);
  border-color: rgba(193, 73, 73, 0.18);
}

.stage-pill.completed {
  background: rgba(234, 218, 191, 0.56);
  color: #866433;
  border-color: rgba(134, 100, 51, 0.16);
}

.prompt-zone,
.stage-form {
  display: grid;
  gap: 1rem;
}

.prompt-card,
.form-card,
.bio-card {
  padding: 1.1rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.prompt-card h4,
.form-card h4 {
  margin-bottom: 0.55rem;
}

.prompt-list,
.chip-list {
  margin-top: 0.9rem;
}

.prompt-list {
  padding-left: 1.15rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.chip-list li {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(91, 111, 167, 0.12);
  color: var(--ink);
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group + .field-group {
  margin-top: 1rem;
}

.field-group label {
  font-size: 0.9rem;
  font-weight: 700;
}

textarea,
input[type="text"],
input[type="file"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(95, 100, 119, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

textarea:focus,
input[type="text"]:focus,
input[type="file"]:focus {
  border-color: rgba(91, 111, 167, 0.4);
  box-shadow: 0 0 0 4px rgba(119, 139, 208, 0.12);
}

input[type="file"] {
  min-height: auto;
  padding: 0.8rem 0.9rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.judge-helper-card {
  background: linear-gradient(180deg, rgba(248, 237, 225, 0.8), rgba(255, 255, 255, 0.92));
}

.upload-group {
  gap: 0.7rem;
}

.upload-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px dashed rgba(91, 111, 167, 0.22);
  background: rgba(255, 255, 255, 0.68);
}

.upload-preview {
  display: grid;
  gap: 0.6rem;
}

.upload-preview-frame,
.upload-empty-state {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.upload-preview-frame img {
  display: block;
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

.upload-empty-state {
  padding: 1rem;
}

.flow-tracker {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.flow-tracker li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
}

.flow-tracker li.active {
  border-color: rgba(91, 111, 167, 0.18);
  background: rgba(238, 233, 251, 0.78);
}

.flow-tracker li.visited {
  border-color: rgba(93, 185, 154, 0.14);
}

.flow-name {
  font-weight: 700;
}

.flow-status {
  color: var(--muted);
  font-size: 0.85rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.metric-card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.metric-card dd {
  margin-top: 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.flow-cards {
  display: grid;
  gap: 1rem;
}

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

.flow-card {
  min-height: 160px;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.profile-header {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.55fr);
}

.profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(138, 178, 188, 0.88), rgba(91, 111, 167, 0.7));
  color: var(--paper);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 18px 30px rgba(91, 111, 167, 0.18);
}

.stamp-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-content: center;
  justify-content: flex-end;
}

.stamp {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px dashed rgba(91, 111, 167, 0.22);
  background: rgba(255, 255, 255, 0.78);
  font-size: 1.4rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.75fr);
  gap: 1.25rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: 1.25rem;
}

.demo-step-list,
.judge-mini-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.demo-step-list {
  margin-top: 1rem;
}

.judge-mini-list {
  margin-top: 1rem;
}

.demo-step-card,
.judge-mini-list li {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.demo-step-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.demo-step-card p + p {
  margin-top: 0.55rem;
}

.judge-mini-list li {
  display: grid;
  gap: 0.25rem;
}

.judge-mini-list em {
  font-style: normal;
  color: var(--muted);
}

.judge-large-list li {
  gap: 0.35rem;
}

.profile-main {
  display: grid;
  gap: 1rem;
}

.profile-basics {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
}

.detail-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.detail-list span {
  color: var(--muted);
}

.mastery-grid {
  display: grid;
  gap: 0.85rem;
}

.mastery-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.mastery-track {
  position: relative;
  height: 12px;
  margin: 0.75rem 0;
  border-radius: 999px;
  background: rgba(180, 191, 210, 0.26);
  overflow: hidden;
}

.mastery-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.fill-lilac {
  background: linear-gradient(90deg, #afa3ea, #7f73d2);
}

.fill-sky {
  background: linear-gradient(90deg, #95c2cb, #6a9eab);
}

.fill-coral {
  background: linear-gradient(90deg, #df8b85, #c14949);
}

.trait-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.trait-row {
  display: grid;
  gap: 0.45rem;
}

.trait-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.trait-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(94, 102, 130, 0.28);
}

.trait-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #101216;
  box-shadow: 0 8px 14px rgba(16, 18, 22, 0.16);
}

.status-inline {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--success);
}

.error-banner {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(193, 73, 73, 0.12);
  border: 1px solid rgba(193, 73, 73, 0.16);
  color: #8b3131;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none !important;
}

.empty-state {
  padding: 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px dashed rgba(91, 111, 167, 0.2);
}

.tint-coral {
  background: linear-gradient(180deg, rgba(193, 73, 73, 0.08), rgba(255, 255, 255, 0.84));
}

.tint-mint {
  background: linear-gradient(180deg, rgba(93, 185, 154, 0.09), rgba(255, 255, 255, 0.88));
}

.tint-sky {
  background: linear-gradient(180deg, rgba(138, 178, 188, 0.12), rgba(255, 255, 255, 0.9));
}

.tint-cream {
  background: linear-gradient(180deg, rgba(234, 218, 191, 0.34), rgba(255, 255, 255, 0.86));
}

.tint-lilac {
  background: linear-gradient(180deg, rgba(238, 233, 251, 0.8), rgba(255, 255, 255, 0.88));
}

.tint-paper {
  background: linear-gradient(180deg, rgba(248, 237, 225, 0.75), rgba(255, 255, 255, 0.92));
}

@media (max-width: 1220px) {
  .workspace-shell,
  .dashboard-grid,
  .main-grid,
  .demo-grid,
  .profile-grid,
  .hero,
  .page-header,
  .profile-basics {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

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

@media (max-width: 860px) {
  .workspace-shell {
    padding: 0.9rem;
  }

  .panel,
  .hero,
  .page-header,
  .lesson-board {
    border-radius: 24px;
  }

  .overview-grid,
  .pilot-summary,
  .course-grid,
  .flow-card-grid,
  .metric-grid,
  .table-row {
    grid-template-columns: 1fr;
  }

  .board-header,
  .board-topic,
  .hero-actions,
  .header-actions,
  .form-actions {
    align-items: stretch;
  }

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

  .stamp-cluster {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
