:root {
  --obsidian: #121214;
  --jet: #2a2a2e;
  --ink-mist: #5a5a5e;
  --paper-gray: #b4b0a6;
  --celadon: #5fa296;
  --celadon-deep: #3d7167;
  --persimmon: #e8893a;
  --persimmon-deep: #a95514;
  --rice: #fcfaf4;
  --warm: #f0eadc;
  --white: #ffffff;
  --line: rgba(18, 18, 20, 0.14);
  --line-dark: rgba(252, 250, 244, 0.18);
  --shadow: rgba(18, 18, 20, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--obsidian);
  background: var(--rice);
  font-family: Manrope, Inter, system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 18, 20, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(18, 18, 20, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 40px;
  background: rgba(252, 250, 244, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--jet);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  white-space: nowrap;
}

.nav-action,
.button,
.waitlist-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--obsidian);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 850;
}

.nav-action {
  padding: 0 16px;
  color: var(--rice);
  background: var(--obsidian);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 156px);
  padding: 88px 40px 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 36px 20px;
  opacity: 0.94;
}

.studio-shell {
  width: min(1180px, 100%);
  min-height: 610px;
  margin-top: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(18, 18, 20, 0.18);
  transform: rotate(-1deg) translateX(500px);
}

.studio-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink-mist);
  background: var(--obsidian);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 600;
}

.studio-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper-gray);
}

.studio-topbar span:first-child {
  background: var(--persimmon);
}

.studio-topbar span:nth-child(2) {
  background: var(--celadon);
}

.studio-topbar strong {
  margin-left: 8px;
  color: var(--rice);
}

.studio-grid {
  display: grid;
  grid-template-columns: 190px minmax(360px, 1fr) 260px;
  min-height: 568px;
}

.student-rail,
.tutor-pane {
  padding: 24px;
  background: var(--warm);
}

.student-rail {
  border-right: 1px solid var(--line);
}

.rail-title,
.tutor-head,
.board-header span,
.coach-note span,
.signal-band span,
.flow-grid span,
.eyebrow,
.form-note,
.site-footer {
  font-family: "JetBrains Mono", monospace;
}

.rail-title {
  margin-bottom: 16px;
  color: var(--celadon-deep);
  font-size: 14px;
  font-weight: 700;
}

.rail-item {
  margin-top: 10px;
  padding: 12px;
  color: var(--jet);
  background: rgba(252, 250, 244, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 750;
}

.rail-item.active {
  color: var(--rice);
  background: var(--obsidian);
}

.builder-pane {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  padding: 28px;
  background: var(--white);
}

.prompt-line {
  padding: 16px 18px;
  color: var(--obsidian);
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 17px;
  font-weight: 800;
}

.canvas-preview {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(95, 162, 150, 0.28), rgba(95, 162, 150, 0.05) 45%),
    var(--rice);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sky-block {
  position: absolute;
  top: 60px;
  left: 52px;
  width: 150px;
  height: 92px;
  background: var(--persimmon);
  border-radius: 8px;
  box-shadow: 210px 72px 0 var(--celadon), 470px 10px 0 var(--obsidian);
}

.city-row {
  position: absolute;
  right: 38px;
  bottom: 44px;
  left: 38px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.city-row i {
  display: block;
  flex: 1;
  min-width: 30px;
  background: var(--obsidian);
  border-radius: 5px 5px 0 0;
}

.city-row i:nth-child(1) { height: 86px; }
.city-row i:nth-child(2) { height: 142px; background: var(--celadon-deep); }
.city-row i:nth-child(3) { height: 112px; }
.city-row i:nth-child(4) { height: 172px; background: var(--persimmon); }
.city-row i:nth-child(5) { height: 102px; }

.play-chip {
  position: absolute;
  right: 24px;
  top: 22px;
  padding: 8px 12px;
  color: var(--obsidian);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

.tutor-pane {
  border-left: 1px solid var(--line);
}

.tutor-head {
  margin-bottom: 18px;
  color: var(--celadon-deep);
  font-size: 14px;
  font-weight: 700;
}

.signal {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 14px;
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.signal b {
  font-size: 15px;
}

.signal span {
  color: var(--ink-mist);
  font-size: 15px;
}

.signal.good {
  border-left: 5px solid var(--celadon);
}

.signal.review {
  border-left: 5px solid var(--persimmon);
}

.signal.next {
  border-left: 5px solid var(--obsidian);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-top: 250px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--celadon-deep);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
}

h1 {
  font-size: 112px;
  line-height: 0.88;
}

.hero-slogan {
  display: grid;
  gap: 5px;
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--jet);
}

.hero-slogan p {
  margin: 0;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.hero-slogan span {
  color: #85857f;
  font-weight: 550;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  padding: 0 18px;
}

.button.primary {
  color: var(--rice);
  background: var(--obsidian);
}

.button.secondary {
  background: rgba(252, 250, 244, 0.72);
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--obsidian);
  border-bottom: 1px solid var(--line);
}

.signal-band div {
  min-height: 152px;
  padding: 28px 40px;
  color: var(--rice);
  background: var(--obsidian);
}

.signal-band span {
  display: block;
  color: var(--paper-gray);
  font-size: 14px;
  font-weight: 700;
}

.signal-band strong {
  display: block;
  max-width: 390px;
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.2;
}

.section {
  padding: 92px 40px;
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: start;
}

.section-copy {
  max-width: 720px;
}

.section-copy h2,
.section-head h2,
.final h2 {
  font-size: 46px;
  line-height: 1.08;
}

.section-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--jet);
  font-size: 18px;
}

.feature-list {
  display: grid;
  gap: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 54px minmax(160px, 0.42fr) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 24px;
  background: var(--rice);
}

.feature-list span,
.flow-grid span {
  color: var(--persimmon-deep);
  font-size: 14px;
  font-weight: 700;
}

.feature-list h3,
.flow-grid h3 {
  font-size: 22px;
  line-height: 1.16;
}

.feature-list p,
.flow-grid p {
  margin: 0;
  color: var(--jet);
}

.dark {
  color: var(--rice);
  background: var(--obsidian);
  border-bottom-color: var(--line-dark);
}

.dark .eyebrow {
  color: var(--celadon);
}

.dark .section-copy p {
  color: #d8d2c3;
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1fr);
  gap: 64px;
  align-items: center;
}

.review-board {
  overflow: hidden;
  background: #1c1c20;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.board-header,
.review-row {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr 150px;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-dark);
}

.board-header {
  grid-template-columns: 1fr auto;
  color: var(--paper-gray);
  background: #17171a;
}

.board-header strong {
  color: var(--rice);
}

.board-header span {
  color: var(--celadon);
  font-size: 14px;
  font-weight: 700;
}

.review-row .student {
  color: var(--celadon);
  font-weight: 850;
}

.state {
  justify-self: start;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 14px;
}

.state.ready {
  color: #d9fff4;
  background: rgba(95, 162, 150, 0.22);
}

.state.needs {
  color: #ffe8cc;
  background: rgba(232, 137, 58, 0.22);
}

.coach-note {
  display: grid;
  gap: 10px;
  margin: 22px;
  padding: 18px;
  color: var(--obsidian);
  background: var(--celadon);
  border-radius: 6px;
  font-weight: 800;
}

.coach-note span {
  color: #173630;
  font-size: 14px;
  font-weight: 700;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

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

.flow-grid article {
  min-height: 250px;
  padding: 28px;
  background: var(--white);
}

.flow-grid h3 {
  margin-top: 38px;
}

.flow-grid p {
  margin-top: 16px;
}

.final {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 0.72fr);
  gap: 54px;
  align-items: end;
  padding: 96px 40px;
  color: var(--obsidian);
  background: var(--celadon);
  border-bottom: 1px solid var(--line);
}

.final .eyebrow {
  color: #173630;
}

.waitlist-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(252, 250, 244, 0.9);
  border: 1px solid rgba(18, 18, 20, 0.2);
  border-radius: 8px;
}

.waitlist-form label {
  font-size: 15px;
  font-weight: 850;
}

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

.waitlist-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--obsidian);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.waitlist-form button {
  flex: 0 0 auto;
  padding: 0 16px;
  color: var(--rice);
  background: var(--obsidian);
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--ink-mist);
  font-size: 13px;
  font-weight: 600;
}

.success-message {
  margin: 0;
  color: var(--obsidian);
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px;
  color: var(--paper-gray);
  background: var(--obsidian);
  font-size: 14px;
  font-weight: 600;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 18, 20, 0.48);
}

.auth-modal[hidden] {
  display: none;
}

.auth-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: 28px;
  width: min(820px, 100%);
  padding: 28px;
  color: var(--obsidian);
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--rice);
  background: var(--obsidian);
  border: 0;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.auth-copy h2,
.auth-recovery-copy h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 36px;
  line-height: 1.08;
}

.auth-copy p:not(.eyebrow),
.auth-recovery-copy p:not(.eyebrow),
.auth-form p,
.auth-message {
  color: var(--ink-mist);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label,
.project-composer label {
  display: grid;
  gap: 7px;
  font-size: 15px;
  font-weight: 850;
}

.auth-form input,
.project-composer input,
.project-composer textarea,
.project-composer select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--obsidian);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.project-composer textarea {
  min-height: 138px;
  padding: 13px;
  resize: vertical;
  line-height: 1.45;
}

.auth-form p,
.auth-message {
  margin: 0;
  font-size: 15px;
}

.auth-form a {
  color: var(--celadon-deep);
  font-weight: 850;
}

.auth-message[data-error="true"],
.form-note[data-error="true"] {
  color: var(--persimmon-deep);
}

.auth-modal:not([data-mode="signup"]) .signup-form,
.auth-modal:not([data-mode="login"]) .login-form,
.auth-modal:not([data-mode="forgot"]) .forgot-form {
  display: none;
}

.auth-recovery-copy,
.auth-modal[data-mode="forgot"] .auth-copy {
  display: none;
}

.auth-modal[data-mode="forgot"] .auth-recovery-copy {
  display: block;
}

.forgot-form h3 {
  margin: 0;
  font-size: 22px;
}

.auth-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-dialog {
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}

.auth-message {
  grid-column: 1 / -1;
}

.app-body {
  min-height: 100vh;
}

.app-header .nav-links span {
  color: var(--ink-mist);
  font-size: 15px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-logout {
  cursor: pointer;
}

.app-shell {
  padding: 42px 40px 90px;
}

.app-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(18, 18, 20, 0.08);
}

.app-hero-panel h1 {
  font-size: 72px;
}

.starter-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.starter-strip button {
  display: grid;
  gap: 18px;
  min-height: 132px;
  padding: 22px;
  color: var(--jet);
  text-align: left;
  background: var(--white);
  border: 0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.starter-strip button:hover,
.starter-strip button:focus-visible {
  background: var(--warm);
  outline: 2px solid var(--celadon);
  outline-offset: -2px;
}

.starter-strip span {
  color: var(--persimmon-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.verification-card,
.project-composer,
.project-list-panel,
.locked-panel {
  padding: 24px;
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.verification-card h2,
.locked-panel h2 {
  margin: 14px 0 0;
  font-size: 24px;
  line-height: 1.16;
}

.verification-card p,
.locked-panel p {
  color: var(--jet);
}

.status-pill {
  display: inline-flex;
  padding: 5px 8px;
  color: #5b3507;
  background: rgba(232, 137, 58, 0.18);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 850;
}

.status-pill[data-verified="true"] {
  color: #173630;
  background: rgba(95, 162, 150, 0.2);
}

.app-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.project-composer {
  display: grid;
  align-content: start;
  gap: 14px;
}

.project-list-panel {
  min-height: 320px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title .eyebrow {
  margin: 0;
}

.panel-title span {
  color: var(--ink-mist);
  font-size: 15px;
  font-weight: 800;
}

.project-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.project-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 80px;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.project-row strong {
  display: block;
}

.project-row p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--ink-mist);
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-row span,
.project-row em {
  color: var(--celadon-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.empty-state {
  margin: 0;
  color: var(--ink-mist);
}

.locked-panel {
  grid-column: 1 / -1;
  color: var(--rice);
  background: var(--obsidian);
  border-color: var(--line-dark);
}

.locked-panel .eyebrow {
  color: var(--celadon);
}

.locked-panel p {
  max-width: 760px;
  color: #d8d2c3;
}

.guardrail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.guardrail-list span {
  padding: 7px 10px;
  color: var(--rice);
  background: rgba(95, 162, 150, 0.18);
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .nav-links {
    gap: 16px;
  }

  .hero {
    padding: 72px 26px 46px;
  }

  .studio-shell {
    transform: rotate(-1deg) translateX(220px);
  }

  .studio-grid {
    grid-template-columns: 160px minmax(330px, 1fr) 220px;
  }

  h1 {
    font-size: 86px;
  }

  .hero-slogan p {
    font-size: 26px;
  }

  .signal-band,
  .split,
  .console-layout,
  .final {
    grid-template-columns: 1fr;
  }

  .section,
  .final {
    padding: 74px 26px;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    min-height: 70px;
    padding: 14px 18px;
  }

  .brand {
    gap: 8px;
    font-size: 18px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 12px;
    font-size: 15px;
  }

  .nav-links a:not(.nav-action) {
    display: none;
  }

  .nav-action {
    min-height: 38px;
    padding: 0 12px;
  }

  .app-header {
    align-items: center;
  }

  .app-header .nav-links span {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding: 48px 18px 38px;
  }

  .hero-stage {
    align-items: start;
    justify-content: flex-start;
    padding: 34px 12px 0;
  }

  .studio-shell {
    width: 780px;
    min-height: 470px;
    margin-top: 118px;
    transform: scale(0.56) rotate(-1deg);
    transform-origin: top left;
  }

  .studio-grid {
    grid-template-columns: 150px 330px 220px;
    min-height: 428px;
  }

  .student-rail,
  .tutor-pane,
  .builder-pane {
    padding: 18px;
  }

  .canvas-preview {
    min-height: 286px;
  }

  .hero-copy {
    padding-top: 360px;
  }

  h1 {
    font-size: 60px;
  }

  .hero-slogan {
    gap: 7px;
    margin-top: 20px;
  }

  .hero-slogan p {
    font-size: 20px;
  }

  .button {
    width: 100%;
  }

  .signal-band div {
    min-height: auto;
    padding: 24px 18px;
  }

  .signal-band strong {
    font-size: 20px;
  }

  .section,
  .final {
    padding: 62px 18px;
  }

  .section-copy h2,
  .section-head h2,
  .final h2 {
    font-size: 34px;
  }

  .section-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .feature-list article,
  .board-header,
  .review-row,
  .flow-grid,
  .form-row,
  .site-footer {
    display: block;
  }

  .feature-list article {
    padding: 22px;
  }

  .feature-list h3,
  .feature-list p,
  .review-row span,
  .state,
  .flow-grid h3,
  .flow-grid p {
    display: block;
    margin-top: 8px;
  }

  .review-row,
  .board-header {
    padding: 18px;
  }

  .flow-grid article {
    min-height: auto;
    border-bottom: 1px solid var(--line);
  }

  .waitlist-form {
    padding: 18px;
  }

  .waitlist-form button {
    width: 100%;
    margin-top: 8px;
  }

  .site-footer span:last-child {
    display: block;
    margin-top: 8px;
  }

  .auth-dialog,
  .app-hero-panel,
  .app-grid,
  .starter-strip {
    grid-template-columns: 1fr;
  }

  .auth-dialog {
    padding: 22px;
  }

  .auth-copy h2,
  .auth-recovery-copy h2 {
    font-size: 30px;
  }

  .app-shell {
    padding: 26px 18px 60px;
  }

  .app-hero-panel {
    padding: 22px;
  }

  .app-hero-panel h1 {
    font-size: 46px;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Student builder */
.builder-body {
  min-height: 100vh;
  background: #f3efe6;
}

.builder-body::before {
  opacity: 0.55;
  background-size: 56px 56px;
}

.builder-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: center;
  min-height: 68px;
  padding: 0 30px;
  background: rgba(252, 250, 244, 0.94);
  border-bottom: 1px solid rgba(18, 18, 20, 0.12);
  backdrop-filter: blur(18px);
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.studio-brand img {
  width: 34px;
  height: 34px;
}

.studio-breadcrumb {
  min-width: 0;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #777269;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.studio-breadcrumb > span,
.studio-breadcrumb > i {
  flex: 0 0 auto;
}

.studio-breadcrumb i {
  color: #bbb3a5;
  font-style: normal;
}

.studio-breadcrumb strong {
  max-width: 250px;
  overflow: hidden;
  color: var(--obsidian);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #f8f4e9;
  background: var(--celadon-deep);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.account-email {
  max-width: 210px;
  overflow: hidden;
  color: #5f5b54;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-logout,
.topbar-projects {
  white-space: nowrap;
  min-height: 34px;
  padding: 0 11px;
  color: #4d4a45;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.topbar-logout:hover,
.topbar-projects:hover {
  background: var(--warm);
  border-color: var(--line);
}

.topbar-projects {
  color: var(--celadon-deep);
}

.topbar-showcase {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px 0 9px;
  align-items: center;
  gap: 8px;
  color: #393631;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(18, 18, 20, 0.12);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(18, 18, 20, 0.04);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.topbar-showcase svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.topbar-showcase .topbar-showcase-accent {
  fill: var(--persimmon);
  stroke: var(--persimmon);
}

.topbar-showcase:hover {
  color: var(--obsidian);
  background: #f4eee3;
  border-color: rgba(18, 18, 20, 0.2);
  box-shadow: 0 4px 12px rgba(18, 18, 20, 0.08);
  transform: translateY(-1px);
}

.topbar-showcase:active {
  box-shadow: 0 1px 2px rgba(18, 18, 20, 0.04);
  transform: translateY(0);
}

.topbar-showcase:focus-visible {
  outline: 3px solid rgba(95, 162, 150, 0.3);
  outline-offset: 2px;
}

.builder-app {
  min-height: calc(100vh - 68px);
}

.dashboard-view {
  width: min(1380px, calc(100% - 56px));
  margin: 0 auto;
  padding: 68px 0 100px;
}

.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 70px;
  align-items: end;
}

.studio-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--celadon-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.studio-kicker span {
  width: 18px;
  height: 2px;
  background: var(--persimmon);
}

.dashboard-intro h1 {
  max-width: 850px;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(58px, 6.4vw, 94px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.dashboard-intro h1 em {
  color: var(--celadon-deep);
  font-style: italic;
  font-weight: 400;
}

.dashboard-intro > div > p:last-child {
  max-width: 690px;
  margin: 28px 0 0;
  color: #5f5a52;
  font-size: 17px;
  line-height: 1.7;
}

.account-state {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 90px;
  padding: 18px;
  background: rgba(252, 250, 244, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--persimmon);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(232, 137, 58, 0.13);
}

.account-state[data-verified="true"] .status-dot {
  background: var(--celadon);
  box-shadow: 0 0 0 5px rgba(95, 162, 150, 0.13);
}

.account-state strong {
  display: block;
  font-size: 15px;
}

.account-state p {
  margin: 3px 0 0;
  color: #777169;
  font-size: 13px;
}

.account-state button {
  padding: 7px 9px;
  color: var(--persimmon-deep);
  background: transparent;
  border: 1px solid rgba(169, 85, 20, 0.3);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.build-composer {
  position: relative;
  z-index: 2;
  margin-top: 54px;
  padding: 10px;
  background: #fffefa;
  border: 1px solid rgba(18, 18, 20, 0.17);
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(43, 38, 29, 0.12), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.composer-prompt {
  display: block;
  padding: 20px 22px 10px;
}

.composer-prompt > span,
.composer-controls label span {
  display: block;
  margin-bottom: 8px;
  color: #716b61;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.composer-prompt textarea {
  width: 100%;
  min-height: 112px;
  padding: 0;
  color: var(--obsidian);
  background: transparent;
  border: 0;
  outline: 0;
  resize: vertical;
  font: 500 21px/1.55 Manrope, sans-serif;
}

.composer-prompt textarea::placeholder {
  color: #aaa399;
}

.composer-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto;
  gap: 1px;
  align-items: stretch;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.composer-controls label {
  padding: 12px 15px;
  background: #f7f3ea;
}

.composer-controls label span {
  margin-bottom: 2px;
}

.composer-controls input,
.composer-controls select {
  width: 100%;
  height: 28px;
  padding: 0;
  color: #292724;
  background: transparent;
  border: 0;
  outline: 0;
  font: 700 15px Manrope, sans-serif;
}

.build-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 170px;
  padding: 0 24px;
  color: #fffaf0;
  background: var(--obsidian);
  border: 0;
  font: 800 14px Manrope, sans-serif;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.build-button:hover {
  background: var(--celadon-deep);
}

.build-button:active {
  transform: translateY(1px);
}

.build-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.build-button svg,
.back-button svg,
.revision-form button svg,
.device-switcher svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.composer-message {
  min-height: 0;
  margin: 0;
  padding: 0 22px;
  color: var(--celadon-deep);
  font-size: 14px;
  font-weight: 700;
}

.composer-message:not(:empty) {
  padding-top: 10px;
  padding-bottom: 6px;
}

.composer-message[data-error="true"] {
  color: #b33c2d;
}

.idea-section,
.projects-section {
  margin-top: 70px;
}

.section-line-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-line-title h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-line-title span {
  color: #837d74;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.idea-card {
  position: relative;
  display: flex;
  min-height: 270px;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  color: var(--obsidian);
  text-align: left;
  background: #fcfaf4;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.idea-card:hover {
  z-index: 2;
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 18px 36px rgba(39, 34, 26, 0.11);
}

.idea-index {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  color: rgba(18, 18, 20, 0.5);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.idea-art {
  position: relative;
  width: 100%;
  height: 126px;
  margin-bottom: 19px;
  overflow: hidden;
  background: var(--warm);
  border-radius: 8px;
}

.idea-art i {
  position: absolute;
  display: block;
}

.idea-game .idea-art {
  background: #b7d5ce;
}

.idea-game .idea-art i:nth-child(1) {
  right: 36px;
  bottom: 24px;
  width: 43px;
  height: 43px;
  background: var(--persimmon);
  border: 4px solid #292724;
  border-radius: 50% 50% 42% 42%;
}

.idea-game .idea-art i:nth-child(2),
.idea-game .idea-art i:nth-child(3) {
  bottom: 18px;
  width: 90px;
  height: 32px;
  background: #fffaf0;
  border-radius: 50px;
}

.idea-game .idea-art i:nth-child(2) { left: -18px; }
.idea-game .idea-art i:nth-child(3) { right: -35px; bottom: 76px; transform: scale(0.7); }

.idea-maker .idea-art {
  background: #e8c5a4;
}

.idea-maker .idea-art i {
  width: 76px;
  height: 86px;
  background: #fffaf1;
  border: 1px solid rgba(18, 18, 20, 0.2);
  box-shadow: 0 8px 18px rgba(70, 45, 23, 0.15);
}

.idea-maker .idea-art i:nth-child(1) { top: 18px; left: 28px; transform: rotate(-9deg); }
.idea-maker .idea-art i:nth-child(2) { top: 24px; left: 50%; background: #6e9c8e; transform: translateX(-50%) rotate(4deg); }
.idea-maker .idea-art i:nth-child(3) { top: 16px; right: 24px; background: #f0a15e; transform: rotate(11deg); }

.idea-web .idea-art {
  background: #28272a;
}

.idea-web .idea-art::before {
  position: absolute;
  inset: 14px;
  content: "MOONLIGHT";
  color: #f5dca7;
  border: 1px solid rgba(245, 220, 167, 0.5);
  font-family: Fraunces, serif;
  font-size: 19px;
  line-height: 94px;
  text-align: center;
}

.idea-web .idea-art i:nth-child(1) {
  top: 24px;
  right: 38px;
  width: 26px;
  height: 26px;
  background: var(--persimmon);
  border-radius: 50%;
  box-shadow: -8px 0 0 #28272a;
}

.idea-tool .idea-art {
  background: #c8d1e5;
}

.idea-tool .idea-art i:nth-child(1) {
  top: 21px;
  left: 50%;
  width: 82px;
  height: 82px;
  border: 2px solid rgba(18, 18, 20, 0.5);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-18deg) scaleY(0.42);
}

.idea-tool .idea-art i:nth-child(2) {
  top: 46px;
  left: 50%;
  width: 34px;
  height: 34px;
  background: var(--persimmon);
  border-radius: 50%;
  transform: translateX(-50%);
}

.idea-tool .idea-art i:nth-child(3) {
  top: 42px;
  right: 48px;
  width: 12px;
  height: 12px;
  background: var(--obsidian);
  border-radius: 50%;
}

.idea-card strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  font-weight: 550;
}

.idea-card p {
  margin: 5px 0 0;
  color: #6b665e;
  font-size: 14px;
  line-height: 1.5;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-align: left;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 13px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(43, 38, 29, 0.12);
}

.project-thumb {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: #d9d4ca;
  border-bottom: 1px solid var(--line);
}

.project-thumb iframe {
  width: 1440px;
  height: 900px;
  border: 0;
  pointer-events: none;
  transform: scale(0.31);
  transform-origin: top left;
}

.project-open-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: rgba(18, 18, 20, 0.88);
  border-radius: 50%;
  font-size: 15px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.project-share-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 8px;
  color: #fffdf8;
  background: rgba(61, 113, 103, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(18, 18, 20, 0.16);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-share-mark.is-published {
  background: rgba(169, 85, 20, 0.94);
}

.project-card:hover .project-open-mark {
  opacity: 1;
  transform: translateY(0);
}

.project-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #b8d2cc;
}

.project-placeholder span {
  z-index: 2;
  font-family: Fraunces, serif;
  font-size: 72px;
  font-style: italic;
}

.project-placeholder i {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(18, 18, 20, 0.18);
  border-radius: 50%;
}

.project-placeholder i:last-child {
  width: 130px;
  height: 130px;
}

.kind-game .project-placeholder { background: #efb071; }
.kind-web .project-placeholder { background: #c7cbe1; }
.kind-story .project-placeholder { background: #ddc7b0; }

.project-card-copy {
  padding: 18px;
}

.project-card-copy > span {
  color: var(--celadon-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-copy strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-copy > p {
  display: -webkit-box;
  min-height: 36px;
  margin: 7px 0 16px;
  overflow: hidden;
  color: #777067;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card-copy footer {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  color: #8d867b;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.projects-empty {
  display: flex;
  grid-column: 1 / -1;
  gap: 17px;
  align-items: center;
  min-height: 130px;
  padding: 28px;
  color: #6c665e;
  background: rgba(252, 250, 244, 0.55);
  border: 1px dashed rgba(18, 18, 20, 0.25);
  border-radius: 12px;
}

.projects-empty > span {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  color: #fffaf0;
  background: var(--celadon-deep);
  border-radius: 50%;
  font-family: Fraunces, serif;
}

.projects-empty strong {
  display: block;
  color: var(--obsidian);
}

.projects-empty p {
  margin: 4px 0 0;
  font-size: 14px;
}

.workspace-view {
  height: calc(100dvh - 68px);
  overflow: hidden;
  background: #eae5da;
}

.workspace-toolbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  height: 70px;
  padding: 0 20px;
  background: #f8f5ed;
  border-bottom: 1px solid var(--line);
}

.back-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--obsidian);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.back-button:hover {
  background: var(--warm);
}

.workspace-title {
  min-width: 0;
}

.workspace-title span {
  display: block;
  color: var(--celadon-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-title h1 {
  margin: 1px 0 0;
  overflow: hidden;
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restore-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 0;
}
.restore-controls > span { color: #746c62; font-size: 13px; }
.restore-controls button, .restore-confirm button {
  padding: 10px 14px;
  border: 1px solid #d8d0c3;
  border-radius: 8px;
  background: #fffdf8;
  color: #234c43;
  font: 600 13px/1.4 Manrope, sans-serif;
  cursor: pointer;
}
.restore-controls button:disabled, .restore-confirm button:disabled { opacity: .55; cursor: default; }
.restore-controls button:focus-visible, .restore-confirm button:focus-visible { outline: 2px solid #317b6a; outline-offset: 3px; }
.restore-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #a5c9bc;
  border-radius: 10px;
  background: #eef5ef;
}
.restore-confirm[hidden] { display: none; }
.restore-confirm > div:first-child { flex: 1 1 240px; }
.restore-confirm strong { font-size: 15px; }
.restore-confirm p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; }
.restore-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.restore-confirm [data-restore-submit] { background: #234c43; color: white; border-color: #234c43; }
.restore-confirm .restore-error { flex-basis: 100%; color: #a13829; }

.workspace-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  color: #817a70;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.workspace-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--celadon-deep);
}

.workspace-status i {
  width: 7px;
  height: 7px;
  background: var(--celadon);
  border-radius: 50%;
}

.workspace-status[data-state="failed"] {
  color: #b34a3b;
}

.workspace-status[data-state="failed"] i {
  background: #cf5d4e;
}

.workspace-status[data-state="building"] i {
  background: var(--persimmon);
  animation: status-pulse 1s infinite alternate;
}

@keyframes status-pulse {
  to { opacity: 0.35; transform: scale(0.75); }
}

.workspace-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  height: calc(100% - 70px);
  min-height: 0;
}

.conversation-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: #fcfaf4;
  border-right: 1px solid var(--line);
}

.conversation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--line);
}

.conversation-heading .studio-kicker {
  margin-bottom: 4px;
  font-size: 12px;
}

.conversation-heading h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 19px;
  font-weight: 550;
}

.conversation-heading button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #746e65;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.message-thread {
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
}

.message {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 20px;
}

.message-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fffaf0;
  background: var(--celadon-deep);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.user-message .message-avatar {
  color: var(--obsidian);
  background: #e9b784;
}

.message strong {
  display: block;
  margin: 1px 0 5px;
  font-size: 12px;
}

.message p {
  margin: 0;
  color: #514d46;
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.user-message > div {
  padding: 11px 13px;
  background: #f0e8da;
  border-radius: 2px 11px 11px 11px;
}

.message-pending {
  opacity: 0.65;
}

.thread-error {
  margin: 6px 0 18px 38px;
  padding: 12px;
  color: #8d3227;
  background: #fbebe6;
  border: 1px solid rgba(179, 74, 59, 0.25);
  border-radius: 8px;
}

.thread-error strong {
  font-size: 13px;
}

.thread-error p {
  margin: 3px 0 0;
  font-size: 12px;
}

.revision-form {
  margin: 0 14px 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(18, 18, 20, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(43, 38, 29, 0.08);
}

.revision-form label {
  display: block;
}

.revision-form textarea {
  width: 100%;
  min-height: 78px;
  padding: 13px 14px 7px;
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  font: 500 14px/1.55 Manrope, sans-serif;
}

.revision-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px 8px 14px;
}

.revision-form > div > span {
  color: #918a80;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.revision-form button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fffaf0;
  background: var(--obsidian);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.revision-form button:hover {
  background: var(--celadon-deep);
}

.revision-form button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.preview-panel {
  display: grid;
  grid-template-rows: 47px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #ded9cf;
}

.preview-toolbar {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(280px, auto);
  align-items: center;
  padding: 0 13px;
  background: #efebe3;
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots i {
  width: 8px;
  height: 8px;
  background: #bbb3a8;
  border-radius: 50%;
}

.browser-dots i:first-child { background: #df8b66; }
.browser-dots i:nth-child(2) { background: #e4bd6c; }
.browser-dots i:last-child { background: #7cad92; }

.preview-address {
  display: flex;
  width: min(520px, 100%);
  min-width: 0;
  height: 29px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  color: #7a746b;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-radius: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.preview-address span {
  color: var(--celadon-deep);
  font-weight: 700;
  text-transform: uppercase;
}

.preview-address strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.device-switcher button {
  display: grid;
  width: 31px;
  height: 29px;
  place-items: center;
  color: #7a746b;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.device-switcher .share-project-button {
  display: inline-flex;
  width: auto;
  min-width: 66px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  color: var(--celadon-deep);
  border: 1px solid rgba(61, 113, 103, 0.28);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.device-switcher .share-project-button[data-shared="true"] {
  color: #fffaf0;
  background: var(--celadon-deep);
  border-color: var(--celadon-deep);
}

.open-project-button {
  display: inline-flex;
  height: 29px;
  margin-left: 5px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #fffaf0;
  background: var(--obsidian);
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.open-project-button:hover {
  background: var(--celadon-deep);
}

.open-project-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.device-switcher button[data-active="true"],
.device-switcher button:hover {
  color: var(--obsidian);
  background: #fffdf8;
  box-shadow: 0 1px 5px rgba(18, 18, 20, 0.1);
}

.device-switcher svg {
  width: 16px;
  stroke-width: 1.4;
}

.preview-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(18, 18, 20, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(18, 18, 20, 0.035) 1px, transparent 1px),
    #ded9cf;
  background-size: 22px 22px;
}

.preview-frame-shell {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(18, 18, 20, 0.18);
  border-radius: 4px;
  box-shadow: 0 18px 42px rgba(32, 29, 24, 0.16);
  transition: width 220ms ease, height 220ms ease, border-radius 220ms ease;
}

.preview-frame-shell[data-device="mobile"] {
  width: min(390px, 100%);
  height: min(760px, 100%);
  border: 7px solid #242326;
  border-radius: 22px;
}

.preview-frame-shell iframe {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0;
}

.preview-empty {
  color: #756f66;
  text-align: center;
}

.preview-empty span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  color: #fffaf0;
  background: var(--celadon-deep);
  border-radius: 50%;
  font-family: Fraunces, serif;
  font-size: 22px;
  box-shadow: 0 0 0 11px rgba(95, 162, 150, 0.12);
}

.preview-empty strong {
  display: block;
  color: var(--obsidian);
  font-family: Fraunces, serif;
  font-size: 21px;
  font-weight: 550;
}

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

.preview-building {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #f9f4e8;
  text-align: center;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(12px);
}

.preview-building strong {
  margin-top: 25px;
  font-family: Fraunces, Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.preview-building p {
  margin: 6px 0 0;
  color: #b9b2a6;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.building-progress {
  width: 180px;
  height: 2px;
  margin-top: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.building-progress i,
.build-modal-progress i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--persimmon);
  animation: progress-wander 2.3s ease-in-out infinite;
}

@keyframes progress-wander {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(135%); }
  100% { transform: translateX(350%); }
}

.building-orbit {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(95, 162, 150, 0.52);
  border-radius: 50%;
  animation: orbit-breathe 2.6s ease-in-out infinite;
}

.building-orbit::before,
.building-orbit::after {
  position: absolute;
  border: 1px solid rgba(232, 137, 58, 0.32);
  border-radius: 50%;
  content: "";
}

.building-orbit::before { inset: 9px -9px; transform: rotate(50deg); }
.building-orbit::after { inset: -9px 9px; transform: rotate(-50deg); }

.building-orbit span {
  z-index: 2;
  font-family: Fraunces, serif;
  font-size: 19px;
}

.building-orbit i {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--persimmon);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(232, 137, 58, 0.7);
  transform: translateX(-50%);
}

@keyframes orbit-breathe {
  50% { transform: rotate(8deg) scale(1.05); }
}

.build-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(18, 18, 20, 0.77);
  backdrop-filter: blur(14px);
}

.build-modal-card {
  display: grid;
  width: min(520px, 100%);
  min-height: 460px;
  padding: 52px;
  place-items: center;
  align-content: center;
  color: #f9f4e8;
  text-align: center;
  background: #1c1c1f;
  border: 1px solid rgba(252, 250, 244, 0.15);
  border-radius: 18px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
}

.build-modal-card .studio-kicker {
  margin: 35px 0 9px;
  color: var(--celadon);
}

.build-modal-card h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 38px;
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.build-modal-card > p:not(.studio-kicker) {
  min-height: 18px;
  margin: 24px 0 9px;
  color: #c5beb2;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.build-modal-progress {
  width: 250px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.build-modal-card small {
  margin-top: 20px;
  color: #898278;
  font-size: 12px;
}

.studio-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  max-width: 380px;
  padding: 13px 16px;
  color: #f9f4e8;
  background: var(--obsidian);
  border-left: 3px solid var(--celadon);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 650;
}

.studio-toast[data-error="true"] {
  border-left-color: #df6858;
}

body[data-modal-open="true"] {
  overflow: hidden;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(18, 18, 20, 0.68);
  backdrop-filter: blur(14px);
}

.share-modal-card {
  position: relative;
  width: min(570px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 38px;
  background: #fffdf8;
  border: 1px solid rgba(252, 250, 244, 0.25);
  border-radius: 18px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.38);
}

.share-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #686158;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.share-modal-close:hover {
  color: var(--obsidian);
  background: var(--warm);
}

.share-modal-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fffaf0;
  background: var(--celadon-deep);
  border-radius: 50%;
  font-family: Fraunces, serif;
  font-size: 17px;
}

.share-modal-mark i {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background: var(--persimmon);
  border: 2px solid #fffdf8;
  border-radius: 50%;
}

.share-modal-card .studio-kicker {
  margin: 24px 0 8px;
  color: var(--celadon-deep);
}

.share-modal-card h2 {
  max-width: 470px;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(31px, 5vw, 42px);
  font-weight: 480;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.share-modal-intro {
  max-width: 475px;
  margin: 14px 0 25px;
  color: #6e675e;
  font-size: 15px;
}

.share-snapshot-note {
  padding: 17px 18px;
  background: #f1ece1;
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-radius: 10px;
}

.share-snapshot-note span,
.share-link-field > span {
  color: var(--celadon-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.share-snapshot-note p {
  margin: 5px 0 0;
  color: #6f685f;
  font-size: 13px;
}

.share-primary-action {
  width: 100%;
  min-height: 48px;
  margin-top: 13px;
  color: #fffaf0;
  background: var(--obsidian);
  border: 0;
  border-radius: 8px;
  font: 750 14px Manrope, sans-serif;
  cursor: pointer;
}

.share-primary-action:hover {
  background: var(--celadon-deep);
}

.share-link-field {
  display: block;
}

.share-link-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 7px;
  overflow: hidden;
  background: #f1ece1;
  border: 1px solid rgba(18, 18, 20, 0.16);
  border-radius: 8px;
}

.share-link-field input {
  min-width: 0;
  height: 45px;
  padding: 0 13px;
  color: #625c54;
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 12px "JetBrains Mono", monospace;
}

.share-link-field button {
  margin: 5px;
  padding: 0 14px;
  color: #fffaf0;
  background: var(--obsidian);
  border: 0;
  border-radius: 6px;
  font: 700 12px Manrope, sans-serif;
  cursor: pointer;
}

.export-options {
  margin-top: 18px;
  padding: 17px 0 2px;
  border-top: 1px solid #ddd9d0;
}

.export-heading {
  margin: 0 0 10px;
  color: #5f6259;
  font-size: 13px;
  font-weight: 750;
}

.export-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.export-buttons button {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 6px 9px;
  text-align: left;
  padding: 14px 12px;
  border: 1px solid #d7d6cb;
  border-radius: 10px;
  background: #fffdf8;
  color: #202c27;
  cursor: pointer;
  font: inherit;
  align-content: start;
  min-height: 106px;
}

.export-buttons .embed-option {
  background: #eaf2eb;
  border-color: #b7d0c1;
}

.export-icon {
  grid-row: 1/3;
  width: 22px;
  height: 22px;
  color: #346b59;
}

.export-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 22px;
  height: 22px;
}

.export-buttons strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.export-buttons small {
  font-size: 12px;
  line-height: 1.5;
  color: #636c62;
}

.export-footnote {
  margin: 10px 0 0;
  color: #74796f;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .export-buttons {
    grid-template-columns: 1fr;
  }

  .export-buttons button {
    min-height: 77px;
    padding: 12px 14px;
  }

  .export-options {
    margin-top: 15px;
    padding-top: 14px;
  }

  .export-buttons strong {
    font-size: 15px;
  }

  .export-buttons small {
    font-size: 13px;
  }

}

.export-buttons button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.export-buttons button:focus-visible {
  outline: 2px solid var(--celadon-deep);
  outline-offset: 3px;
}

.embed-copy-help {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #bdd1c2;
  border-radius: 9px;
  background: #eff5ee;
}

.embed-copy-help label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 750;
}

.embed-copy-help textarea {
  width: 100%;
  resize: vertical;
  padding: 9px;
  color: var(--obsidian);
  background: #fffdf8;
  border: 1px solid #cbd5c8;
  border-radius: 6px;
  font: 13px/1.5 monospace;
}

.embed-copy-help p {
  margin: 8px 0 0;
  color: #526253;
  font-size: 13px;
  line-height: 1.6;
}

.share-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.share-stats > div {
  min-width: 0;
  padding: 14px;
}

.share-stats > div + div {
  border-left: 1px solid var(--line);
}

.share-stats span,
.share-stats strong {
  display: block;
}

.share-stats span {
  color: #8d867d;
  font-size: 12px;
}

.share-stats strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-update-note {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  align-items: center;
  justify-content: space-between;
  background: rgba(232, 137, 58, 0.1);
  border: 1px solid rgba(169, 85, 20, 0.2);
  border-radius: 9px;
}

.share-update-note strong,
.share-update-note p {
  display: block;
  margin: 0;
}

.share-update-note strong { font-size: 13px; }
.share-update-note p { margin-top: 2px; color: #7d7065; font-size: 12px; }

.share-update-note button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  color: var(--persimmon-deep);
  background: #fffdf8;
  border: 1px solid rgba(169, 85, 20, 0.3);
  border-radius: 6px;
  font: 700 12px Manrope, sans-serif;
  cursor: pointer;
}

.share-showcase-panel {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  background: rgba(95, 162, 150, 0.08);
  border: 1px solid rgba(61, 113, 103, 0.2);
  border-radius: 9px;
}

.share-showcase-panel > div:first-child > span,
.share-showcase-panel strong,
.share-showcase-panel p {
  display: block;
}

.share-showcase-panel > div:first-child > span {
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.share-showcase-panel strong {
  margin-top: 4px;
  font-size: 14px;
}

.share-showcase-panel p {
  max-width: 330px;
  margin: 3px 0 0;
  color: #7d766d;
  font-size: 12px;
}

.share-showcase-panel > div:last-child {
  display: grid;
  gap: 5px;
  flex: 0 0 auto;
  justify-items: end;
}

.share-showcase-panel button,
.share-showcase-panel a {
  min-height: 33px;
  padding: 0 11px;
  border-radius: 6px;
  font: 700 12px Manrope, sans-serif;
}

.share-showcase-panel button {
  color: #fffaf0;
  background: var(--celadon-deep);
  border: 0;
  cursor: pointer;
}

.share-showcase-panel a {
  display: inline-flex;
  min-height: auto;
  padding: 3px 0;
  align-items: center;
  color: var(--celadon-deep);
}

.share-showcase-panel[data-published="true"] {
  background: rgba(232, 137, 58, 0.09);
  border-color: rgba(169, 85, 20, 0.22);
}

.share-showcase-panel[data-published="true"] > div:first-child > span {
  color: var(--persimmon-deep);
}

.share-showcase-panel[data-published="true"] button {
  color: #a54d42;
  background: transparent;
  border: 1px solid rgba(165, 77, 66, 0.28);
}

.share-danger-row {
  display: flex;
  gap: 16px;
  margin-top: 21px;
  padding-top: 18px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.share-danger-row p {
  margin: 0;
  color: #8a837a;
  font-size: 12px;
}

.share-danger-row button {
  flex: 0 0 auto;
  padding: 6px 0;
  color: #a54d42;
  background: transparent;
  border: 0;
  font: 700 12px Manrope, sans-serif;
  cursor: pointer;
}

.share-modal button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.shared-project-body {
  min-height: 100vh;
  color: #f8f3e9;
  background: #171719;
}

.shared-project-body::before {
  z-index: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(95, 162, 150, 0.18), transparent 32%),
    radial-gradient(circle at 5% 70%, rgba(232, 137, 58, 0.11), transparent 34%),
    linear-gradient(90deg, rgba(252, 250, 244, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(252, 250, 244, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

.shared-project-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 74px;
  padding: 0 32px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(252, 250, 244, 0.13);
}

.shared-project-header .studio-brand { color: #fffaf0; }

.shared-project-nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

.shared-project-nav > a:first-child {
  color: #bcb4a9;
  font-size: 12px;
  font-weight: 700;
}

.shared-make-link {
  display: inline-flex;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  color: #fffaf0;
  border: 1px solid rgba(252, 250, 244, 0.24);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.shared-make-link:hover {
  background: rgba(252, 250, 244, 0.08);
}

.shared-project-main {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 50px 0 38px;
}

.shared-project-loading,
.shared-project-error {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  align-content: center;
  text-align: center;
}

.shared-project-loading p {
  margin: 24px 0 0;
  color: #a9a197;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.shared-project-error > span {
  color: var(--persimmon);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shared-project-error h1 {
  max-width: 650px;
  margin: 10px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
}

.shared-project-error p {
  max-width: 500px;
  margin: 17px 0 25px;
  color: #aaa298;
  font-size: 15px;
}

.shared-project-error a {
  padding: 11px 17px;
  color: #171719;
  background: #fffaf0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
}

.shared-project-intro {
  display: flex;
  gap: 30px;
  margin-bottom: 23px;
  align-items: flex-end;
  justify-content: space-between;
}

.shared-project-intro .studio-kicker {
  margin: 0 0 8px;
  color: var(--celadon);
}

.shared-project-intro h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1;
}

.shared-project-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shared-project-meta span {
  padding: 6px 9px;
  color: #c3bbb0;
  border: 1px solid rgba(252, 250, 244, 0.15);
  border-radius: 999px;
  font: 600 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shared-like-button {
  display: inline-flex;
  min-height: 29px;
  padding: 0 10px;
  align-items: center;
  gap: 5px;
  color: #c3bbb0;
  background: transparent;
  border: 1px solid rgba(252, 250, 244, 0.18);
  border-radius: 999px;
  font: 700 12px "JetBrains Mono", monospace;
  text-transform: uppercase;
  cursor: pointer;
}

.shared-like-button.is-liked {
  color: #181719;
  background: var(--persimmon);
  border-color: var(--persimmon);
}

.shared-player {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(252, 250, 244, 0.2);
  border-radius: 11px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.shared-player-toolbar {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  min-height: 44px;
  padding: 0 12px;
  align-items: center;
  color: #6f685f;
  background: #ede8df;
  border-bottom: 1px solid rgba(18, 18, 20, 0.15);
}

.shared-player-toolbar > strong {
  justify-self: center;
  font: 600 12px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shared-player-toolbar > div:last-child {
  display: flex;
  gap: 5px;
}

.shared-player-toolbar button,
.shared-player-toolbar a {
  display: inline-flex;
  min-height: 28px;
  padding: 0 9px;
  align-items: center;
  color: #fffaf0;
  background: var(--obsidian);
  border: 0;
  border-radius: 5px;
  font: 700 12px Manrope, sans-serif;
  cursor: pointer;
}

.shared-player-toolbar button {
  color: var(--celadon-deep);
  background: transparent;
  border: 1px solid rgba(61, 113, 103, 0.3);
}

.shared-player iframe {
  display: block;
  width: 100%;
  height: min(75vh, 900px);
  min-height: 560px;
  background: #fff;
  border: 0;
}

.shared-project-footer {
  display: flex;
  gap: 20px;
  padding: 17px 2px 0;
  align-items: center;
  justify-content: space-between;
  color: #8f887f;
  font-size: 12px;
}

.shared-project-footer p { margin: 0; }
.shared-project-footer span { font-family: "JetBrains Mono", monospace; }
.shared-project-footer > div { display: flex; gap: 14px; align-items: center; }
.shared-project-footer button {
  padding: 0;
  color: #8f887f;
  background: transparent;
  border: 0;
  font: 700 12px Manrope, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.showcase-report-dialog {
  width: min(480px, calc(100% - 28px));
  padding: 0;
  color: var(--obsidian);
  background: #fffdf8;
  border: 1px solid rgba(252, 250, 244, 0.22);
  border-radius: 16px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
}

.showcase-report-dialog::backdrop {
  background: rgba(18, 18, 20, 0.74);
  backdrop-filter: blur(10px);
}

.showcase-report-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 32px;
}

.showcase-report-form .studio-kicker {
  margin: 0;
  color: var(--persimmon-deep);
}

.showcase-report-form h2 {
  margin: 0;
  font: 500 32px/1.05 Fraunces, Georgia, serif;
}

.showcase-report-form > p:not(.studio-kicker) {
  margin: -5px 0 4px;
  color: #746d64;
  font-size: 13px;
}

.showcase-report-form label {
  display: grid;
  gap: 6px;
  color: #575149;
  font-size: 12px;
  font-weight: 750;
}

.showcase-report-form label > span {
  color: #989087;
  font-weight: 500;
}

.showcase-report-form select,
.showcase-report-form textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--obsidian);
  background: #f3eee4;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  font: 500 14px Manrope, sans-serif;
}

.showcase-report-form textarea { resize: vertical; }
.showcase-report-form .share-primary-action { margin-top: 2px; }

.showcase-report-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  color: #6f685f;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 23px;
  cursor: pointer;
}

/* Student showcase */
.showcase-body {
  min-height: 100vh;
  background: #f3efe6;
}

.showcase-body::before {
  opacity: 0.5;
  background-size: 56px 56px;
}

.showcase-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 70px;
  padding: 0 30px;
  align-items: center;
  justify-content: space-between;
  background: rgba(252, 250, 244, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.showcase-header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.showcase-header nav a {
  color: #5f5a53;
  font-size: 13px;
  font-weight: 750;
}

.showcase-header .showcase-create-link {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fffaf0;
  background: var(--obsidian);
  border-radius: 7px;
}

.showcase-main {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 56px));
  margin: 0 auto;
  padding: 72px 0 90px;
}

.showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 90px;
  padding-bottom: 68px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.showcase-hero .studio-kicker {
  margin: 0 0 18px;
  color: var(--celadon-deep);
}

.showcase-hero h1 {
  margin: 0;
  font: 480 clamp(64px, 8vw, 112px)/0.84 Fraunces, Georgia, serif;
  letter-spacing: -0.055em;
}

.showcase-hero h1 em {
  color: var(--persimmon-deep);
  font-weight: 430;
}

.showcase-hero-copy {
  padding-bottom: 5px;
}

.showcase-hero-copy p {
  margin: 0 0 25px;
  color: #625d56;
  font-size: 15px;
  line-height: 1.7;
}

.showcase-hero-copy span {
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.showcase-board {
  padding-top: 58px;
}

.showcase-board-header {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
}

.showcase-board-header .studio-kicker {
  margin: 0 0 7px;
  color: var(--celadon-deep);
}

.showcase-board-header h2 {
  margin: 0;
  font: 500 32px/1.1 Fraunces, Georgia, serif;
  letter-spacing: -0.025em;
}

.showcase-sort {
  display: flex;
  padding: 3px;
  background: #e4ded2;
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-radius: 8px;
}

.showcase-sort button {
  min-height: 34px;
  padding: 0 14px;
  color: #797268;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: 750 12px Manrope, sans-serif;
  cursor: pointer;
}

.showcase-sort button[data-active="true"] {
  color: #fffaf0;
  background: var(--obsidian);
  box-shadow: 0 4px 12px rgba(18, 18, 20, 0.15);
}

.showcase-status {
  min-height: 16px;
  margin: 15px 0 17px;
  color: #8b847a;
  font: 600 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.showcase-card {
  min-width: 0;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(43, 38, 29, 0.13);
}

.showcase-card-preview {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  background: #d8d3c9;
  border-bottom: 1px solid var(--line);
}

.showcase-card-preview iframe {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0;
  pointer-events: none;
}

.showcase-card-preview > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  align-items: center;
  color: #fffaf0;
  background: rgba(18, 18, 20, 0.9);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.showcase-card:hover .showcase-card-preview > span {
  opacity: 1;
  transform: translateY(0);
}

.showcase-card-preview > span i { color: var(--persimmon); font-style: normal; }

.showcase-card-copy {
  padding: 18px;
}

.showcase-card-copy > p {
  display: flex;
  margin: 0;
  justify-content: space-between;
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-card-copy h2 {
  margin: 8px 0 9px;
  overflow: hidden;
  font: 520 24px/1.12 Fraunces, Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-card-creator {
  margin: 0 0 17px;
  overflow: hidden;
  color: #918a80;
  font: 600 12px/1.4 "JetBrains Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-card-creator strong {
  color: var(--celadon-deep);
  font-weight: 700;
}

.showcase-card-copy footer {
  display: flex;
  min-height: 42px;
  padding-top: 13px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.showcase-card-copy footer > div {
  display: grid;
  gap: 2px;
  color: #918a80;
  font-size: 12px;
}

.showcase-like {
  display: inline-flex;
  min-width: 47px;
  min-height: 34px;
  padding: 0 9px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #766f66;
  background: #f2ede4;
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-radius: 999px;
  font: 700 12px Manrope, sans-serif;
  cursor: pointer;
}

.showcase-like svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.showcase-like.is-liked {
  color: #fffaf0;
  background: var(--persimmon-deep);
  border-color: var(--persimmon-deep);
}

.showcase-like.is-liked svg { fill: currentColor; }
.showcase-like:disabled { opacity: 0.5; cursor: wait; }

.showcase-empty {
  display: flex;
  gap: 18px;
  min-height: 150px;
  padding: 30px;
  align-items: center;
  background: rgba(252, 250, 244, 0.58);
  border: 1px dashed rgba(18, 18, 20, 0.24);
  border-radius: 12px;
}

.showcase-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  color: #fffaf0;
  background: var(--celadon-deep);
  border-radius: 50%;
  font-family: Fraunces, serif;
}

.showcase-empty strong { font: 520 21px Fraunces, serif; }
.showcase-empty p { margin: 3px 0 0; color: #746e65; font-size: 13px; }
.showcase-empty a { margin-left: auto; padding: 10px 13px; color: #fffaf0; background: var(--obsidian); border-radius: 7px; font-size: 12px; font-weight: 750; }

.showcase-safety-note {
  display: flex;
  gap: 24px;
  margin-top: 56px;
  padding: 22px 24px;
  align-items: center;
  color: #a9a298;
  background: var(--obsidian);
  border-radius: 11px;
}

.showcase-safety-note span {
  flex: 0 0 auto;
  color: var(--celadon);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-safety-note p { margin: 0; font-size: 13px; }

.showcase-footer {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100px;
  padding: 0 30px;
  align-items: center;
  justify-content: space-between;
  color: #c5beb3;
  background: #171719;
}

.showcase-footer .studio-brand { color: #fffaf0; font-size: 18px; }
.showcase-footer .studio-brand img { width: 30px; height: 30px; }
.showcase-footer p { margin: 0; font-size: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.builder-body button:focus-visible,
.builder-body input:focus-visible,
.builder-body textarea:focus-visible,
.builder-body select:focus-visible,
.showcase-body button:focus-visible,
.showcase-body a:focus-visible,
.shared-project-body button:focus-visible,
.shared-project-body a:focus-visible {
  outline: 2px solid var(--celadon-deep);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .builder-topbar {
    grid-template-columns: 1fr auto;
  }

  .studio-breadcrumb {
    display: none;
  }

  .dashboard-intro {
    grid-template-columns: 1fr 280px;
    gap: 34px;
  }

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

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

  .showcase-hero {
    gap: 50px;
  }

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

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

@media (max-width: 760px) {
  .builder-topbar {
    min-height: 60px;
    padding: 0 14px;
  }

  .studio-brand {
    font-size: 18px;
  }

  .studio-brand img {
    width: 30px;
    height: 30px;
  }

  .account-email,
  .topbar-logout {
    display: none;
  }

  .topbar-projects {
    min-height: 32px;
    padding: 0 8px;
  }

  .topbar-showcase {
    width: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }

  .topbar-showcase span {
    display: none;
  }

  .builder-app {
    min-height: calc(100vh - 60px);
  }

  .dashboard-view {
    width: min(100% - 28px, 620px);
    padding: 40px 0 70px;
  }

  .dashboard-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dashboard-intro h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .dashboard-intro > div > p:last-child {
    margin-top: 20px;
    font-size: 14px;
  }

  .account-state {
    min-height: auto;
  }

  .build-composer {
    margin-top: 34px;
  }

  .composer-prompt {
    padding: 16px 15px 8px;
  }

  .composer-prompt textarea {
    min-height: 130px;
    font-size: 16px;
  }

  .composer-controls {
    grid-template-columns: 1fr 108px;
  }

  .build-button {
    grid-column: 1 / -1;
    min-height: 54px;
  }

  .idea-section,
  .projects-section {
    margin-top: 50px;
  }

  .section-line-title {
    align-items: flex-end;
  }

  .section-line-title h2 {
    font-size: 24px;
  }

  .section-line-title > span {
    max-width: 130px;
    text-align: right;
  }

  .idea-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .idea-card {
    min-height: 250px;
  }

  .project-thumb {
    height: 190px;
  }

  .workspace-view {
    height: calc(100dvh - 60px);
  }

  .workspace-toolbar {
    grid-template-columns: 38px minmax(0, 1fr);
    height: 61px;
    padding: 0 12px;
  }

  .workspace-meta {
    display: none;
  }

  .workspace-grid {
    display: flex;
    height: calc(100% - 61px);
    flex-direction: column-reverse;
  }

  .conversation-panel {
    grid-template-rows: minmax(0, 1fr) auto;
    height: 48%;
    flex: 0 0 48%;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .conversation-heading {
    display: none;
  }

  .message-thread {
    padding: 14px;
  }

  .message {
    margin-bottom: 14px;
  }

  .revision-form {
    min-height: 128px;
    margin: 0 9px 9px;
  }

  .revision-form textarea {
    min-height: 56px;
  }

  .preview-panel {
    height: 52%;
    flex: 0 0 52%;
    grid-template-rows: 40px minmax(0, 1fr);
  }

  .preview-toolbar {
    grid-template-columns: 32px minmax(0, 1fr) 131px;
    padding: 0 8px;
  }

  .browser-dots i {
    width: 6px;
    height: 6px;
  }

  .preview-address {
    height: 25px;
  }

  .preview-address span,
  .device-switcher button[data-device="desktop"] {
    display: none;
  }

  .device-switcher button {
    width: 29px;
    height: 27px;
  }

  .device-switcher .share-project-button {
    width: 29px;
    min-width: 29px;
    padding: 0;
  }

  .share-project-button span {
    display: none;
  }

  .open-project-button {
    width: 29px;
    height: 27px;
    margin-left: 1px;
    padding: 0;
    justify-content: center;
  }

  .open-project-button span {
    display: none;
  }

  .preview-stage {
    padding: 8px;
  }

  .preview-frame-shell,
  .preview-frame-shell[data-device="mobile"] {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(18, 18, 20, 0.18);
    border-radius: 3px;
  }

  .build-modal-card {
    min-height: 420px;
    padding: 34px 24px;
  }

  .build-modal-card h2 {
    font-size: 32px;
  }

  .studio-toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .share-modal {
    padding: 10px;
  }

  .share-modal-card {
    max-height: calc(100dvh - 20px);
    padding: 28px 20px 22px;
    border-radius: 14px;
  }

  .share-modal-mark {
    width: 48px;
    height: 48px;
  }

  .share-modal-card .studio-kicker {
    margin-top: 18px;
  }

  .share-modal-card h2 {
    padding-right: 20px;
    font-size: 30px;
  }

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

  .share-stats > div {
    display: flex;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
  }

  .share-stats > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .share-stats strong { margin-top: 0; }
  .share-update-note { align-items: flex-start; flex-direction: column; }

  .share-showcase-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-showcase-panel > div:last-child {
    width: 100%;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .shared-project-header {
    min-height: 62px;
    padding: 0 14px;
  }

  .shared-project-header .studio-brand { font-size: 18px; }
  .shared-project-header .studio-brand img { width: 30px; height: 30px; }
  .shared-project-nav { gap: 9px; }
  .shared-project-nav > a:first-child { font-size: 12px; }
  .shared-make-link { min-height: 34px; padding: 0 10px; font-size: 12px; }

  .shared-project-main {
    width: min(100% - 20px, 700px);
    padding: 30px 0 24px;
  }

  .shared-project-intro {
    gap: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .shared-project-intro h1 { font-size: 40px; }
  .shared-project-meta { justify-content: flex-start; }

  .shared-player-toolbar {
    grid-template-columns: 34px 1fr auto;
    min-height: 40px;
    padding: 0 7px;
  }

  .shared-player-toolbar > strong { display: none; }
  .shared-player-toolbar > div:last-child { grid-column: 3; }
  .shared-player-toolbar button { display: none; }
  .shared-player-toolbar a { min-height: 27px; }

  .shared-player iframe {
    height: calc(100dvh - 260px);
    min-height: 430px;
  }

  .shared-project-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-report-form {
    padding: 28px 20px 22px;
  }

  .showcase-header {
    min-height: 62px;
    padding: 0 14px;
  }

  .showcase-header .studio-brand { font-size: 18px; }
  .showcase-header .studio-brand img { width: 30px; height: 30px; }
  .showcase-header nav { gap: 9px; }
  .showcase-header nav > a:first-child { display: none; }
  .showcase-header .showcase-create-link { min-height: 34px; padding: 0 10px; font-size: 12px; }

  .showcase-main {
    width: min(100% - 28px, 620px);
    padding: 44px 0 64px;
  }

  .showcase-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 42px;
  }

  .showcase-hero h1 {
    font-size: clamp(58px, 19vw, 78px);
  }

  .showcase-hero-copy p {
    margin-bottom: 17px;
    font-size: 15px;
  }

  .showcase-board {
    padding-top: 40px;
  }

  .showcase-board-header {
    gap: 19px;
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-board-header h2 { font-size: 27px; }
  .showcase-sort { width: 100%; }
  .showcase-sort button { flex: 1; }
  .showcase-status { margin-top: 13px; }

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

  .showcase-card-preview {
    height: 225px;
  }

  .showcase-card-preview > span {
    opacity: 1;
    transform: none;
  }

  .showcase-empty {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .showcase-empty a { margin-left: 0; }

  .showcase-safety-note {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-footer {
    min-height: 90px;
    padding: 20px 14px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

/* Tutor entry and student classroom */
.topbar-tutor {
  display: inline-flex;
  min-height: 36px;
  padding: 0 11px 0 9px;
  align-items: center;
  gap: 7px;
  color: var(--celadon-deep);
  background: rgba(95, 162, 150, 0.08);
  border: 1px solid rgba(61, 113, 103, 0.16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.topbar-tutor svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.topbar-tutor:hover {
  color: #294f48;
  background: rgba(95, 162, 150, 0.15);
  border-color: rgba(61, 113, 103, 0.28);
  box-shadow: 0 4px 12px rgba(18, 18, 20, 0.07);
  transform: translateY(-1px);
}

.topbar-tutor:focus-visible {
  outline: 3px solid rgba(95, 162, 150, 0.3);
  outline-offset: 2px;
}

.student-classroom-section {
  margin-top: 58px;
}

.student-classroom-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  margin-top: 18px;
  padding: 24px 26px;
  align-items: center;
  background: rgba(229, 236, 232, 0.72);
  border: 1px solid rgba(61, 113, 103, 0.2);
  border-radius: 10px;
}

.student-classroom-connect > div > strong {
  display: block;
  margin-top: 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
  font-weight: 550;
}

.student-classroom-connect > div > p:last-child {
  max-width: 610px;
  margin: 6px 0 0;
  color: #6c6962;
  font-size: 14px;
}

.student-classroom-connect form > label,
.student-classroom-connect form > small {
  display: block;
  color: #6f6a61;
  font-size: 12px;
  font-weight: 750;
}

.student-classroom-connect form > label {
  margin-bottom: 6px;
  color: var(--celadon-deep);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.student-classroom-connect form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 20, 0.15);
  border-radius: 8px;
}

.student-classroom-connect input {
  min-width: 0;
  min-height: 43px;
  padding: 0 13px;
  color: var(--obsidian);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.student-classroom-connect button {
  min-height: 43px;
  padding: 0 16px;
  color: #fffdf8;
  background: var(--obsidian);
  border: 0;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.student-classroom-connect button:disabled,
.student-classroom-connect input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.student-classroom-connect form > small {
  margin-top: 6px;
}

.student-classroom-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.student-classroom-card {
  padding: 20px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(18, 18, 20, 0.04);
}

.student-classroom-card > header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.student-classroom-card > header span {
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.student-classroom-card > header h3 {
  margin-top: 3px;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 550;
}

.student-classroom-card > header > strong {
  padding: 5px 8px;
  color: #69645c;
  background: var(--warm);
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.student-feedback-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.student-feedback-list > button {
  width: 100%;
  padding: 13px;
  color: var(--obsidian);
  text-align: left;
  background: #f6f2e9;
  border: 1px solid rgba(18, 18, 20, 0.1);
  border-radius: 8px;
  cursor: pointer;
}

.student-feedback-list > button:hover {
  background: #f0eadc;
  border-color: rgba(18, 18, 20, 0.2);
}

.student-feedback-list > button > span {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.student-feedback-list > button strong {
  font-size: 13px;
}

.student-feedback-list time {
  color: #8a847a;
  font: 600 12px "JetBrains Mono", monospace;
}

.student-feedback-list > button p {
  margin: 7px 0 0;
  color: #5e5a53;
  font-size: 12px;
}

.student-feedback-list > button div {
  margin-top: 9px;
  padding-top: 9px;
  color: #4b4842;
  border-top: 1px solid rgba(18, 18, 20, 0.09);
  font-size: 12px;
}

.student-feedback-list > button i {
  margin-right: 7px;
  color: var(--persimmon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.student-feedback-empty {
  padding: 13px;
  background: #f6f2e9;
  border-radius: 8px;
}

.student-feedback-empty span {
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.student-feedback-empty p {
  margin: 5px 0 0;
  color: #6c675f;
  font-size: 12px;
}

/* Tutor Console */
.tutor-console-body {
  min-height: 100vh;
  background: #f3efe6;
}

.tutor-console-body::before {
  background-size: 42px 42px;
  opacity: 0.7;
}

.tutor-console-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 68px;
  padding: 0 30px;
  align-items: center;
  background: rgba(252, 250, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.tutor-console-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #777269;
  font: 600 12px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tutor-console-breadcrumb i {
  color: #bbb3a5;
  font-style: normal;
}

.tutor-console-breadcrumb strong {
  max-width: 260px;
  overflow: hidden;
  color: var(--obsidian);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-console-account {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.tutor-console-account > a,
.tutor-console-account > button {
  min-height: 34px;
  padding: 0 10px;
  color: #4f4b45;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font: 750 12px Manrope, sans-serif;
  cursor: pointer;
}

.tutor-console-account > a {
  display: inline-flex;
  align-items: center;
  color: var(--celadon-deep);
}

.tutor-console-account > a:hover,
.tutor-console-account > button:hover {
  background: var(--warm);
  border-color: var(--line);
}

.tutor-console-shell {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto;
  padding: 52px 0 88px;
}

.tutor-console-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 56px;
  align-items: end;
}

.tutor-console-intro h1 {
  font-size: clamp(48px, 5.2vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.tutor-console-intro h1 em {
  color: var(--celadon-deep);
  font-style: normal;
}

.tutor-console-intro > div > p:last-child {
  max-width: 680px;
  margin: 20px 0 0;
  color: #625f59;
  font-size: 14px;
}

.tutor-create-class {
  padding: 20px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(18, 18, 20, 0.06);
}

.tutor-create-class > label {
  display: block;
  margin-bottom: 7px;
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tutor-create-class > div {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(18, 18, 20, 0.16);
  border-radius: 8px;
}

.tutor-create-class input {
  min-width: 0;
  min-height: 45px;
  padding: 0 13px;
  background: transparent;
  border: 0;
  outline: 0;
  font: 650 14px Manrope, sans-serif;
}

.tutor-create-class button {
  min-height: 45px;
  padding: 0 17px;
  color: #fffaf0;
  background: var(--obsidian);
  border: 0;
  font: 750 12px Manrope, sans-serif;
  cursor: pointer;
}

.tutor-create-class button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.tutor-create-class > p {
  margin: 7px 0 0;
  color: #8a847a;
  font-size: 12px;
}

.tutor-console-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 730px;
  margin-top: 38px;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 20, 0.16);
  border-radius: 12px;
  box-shadow: 0 22px 65px rgba(18, 18, 20, 0.1);
}

.tutor-class-sidebar {
  min-width: 0;
  color: #f8f4e9;
  background: #171719;
}

.tutor-class-sidebar > header {
  display: flex;
  min-height: 64px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tutor-class-sidebar > header span {
  color: #c7c1b5;
  font: 650 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tutor-class-sidebar > header strong {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--obsidian);
  background: var(--celadon);
  border-radius: 50%;
  font-size: 12px;
}

.tutor-class-list {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.tutor-class-list > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  width: 100%;
  padding: 13px 12px;
  color: #ded9ce;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.tutor-class-list > button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tutor-class-list > button[data-active="true"] {
  color: #fffdf8;
  background: rgba(95, 162, 150, 0.16);
  border-color: rgba(95, 162, 150, 0.28);
}

.tutor-class-list > button span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-class-list > button strong {
  color: #b9b3a7;
  font-size: 12px;
}

.tutor-class-list > button small {
  grid-column: 1 / -1;
  color: #7f7b75;
  font: 600 12px "JetBrains Mono", monospace;
}

.tutor-class-list-empty {
  margin: 16px 8px;
  color: #8f8a82;
  font-size: 12px;
}

.tutor-class-stage {
  min-width: 0;
}

.tutor-class-empty {
  display: flex;
  min-height: 730px;
  padding: 60px;
  align-items: center;
  justify-content: center;
  background: #f9f6ef;
}

.tutor-class-empty > span,
.tutor-verification-gate > span {
  display: grid;
  width: 74px;
  height: 74px;
  margin-right: 24px;
  place-items: center;
  color: #fffdf8;
  background: var(--celadon-deep);
  border-radius: 50%;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
}

.tutor-class-empty h2 {
  font-size: 40px;
}

.tutor-class-empty > div > p:last-child {
  max-width: 510px;
  margin: 12px 0 0;
  color: #716c64;
  font-size: 15px;
}

.tutor-class-header {
  display: flex;
  min-height: 104px;
  padding: 24px 28px;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: #fffdf8;
}

.tutor-class-header h2 {
  font-size: 36px;
  line-height: 1;
}

.tutor-invite-code {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 12px;
  min-width: 190px;
  padding: 12px 13px;
  color: var(--obsidian);
  text-align: left;
  background: #f3efe6;
  border: 1px dashed rgba(18, 18, 20, 0.3);
  border-radius: 8px;
  cursor: pointer;
}

.tutor-invite-code span {
  grid-column: 1 / -1;
  color: #7e786f;
  font: 650 12px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tutor-invite-code strong {
  font: 700 17px "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
}

.tutor-invite-code i {
  align-self: center;
  color: var(--celadon-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.tutor-class-stats {
  display: grid;
  grid-template-columns: 110px 110px 130px minmax(0, 1fr);
  min-height: 70px;
  background: #f2ede2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tutor-class-stats > div {
  display: flex;
  padding: 12px 18px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.tutor-class-stats span {
  color: #827c72;
  font-size: 12px;
}

.tutor-class-stats strong {
  margin-top: 1px;
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
  font-weight: 550;
}

.tutor-class-stats > p {
  max-width: 420px;
  margin: 0;
  padding: 0 22px;
  align-self: center;
  color: #716c64;
  font-size: 12px;
}

.tutor-review-workbench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 555px;
}

.tutor-roster-panel {
  min-width: 0;
  background: #f7f3ea;
  border-right: 1px solid var(--line);
}

.tutor-roster-panel > header {
  display: flex;
  min-height: 54px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.tutor-roster-panel > header span {
  color: #4d4943;
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tutor-roster-panel > header small {
  color: #9a9388;
  font-size: 12px;
}

.tutor-roster {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.tutor-roster > button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  padding: 9px;
  align-items: center;
  color: #4d4943;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.tutor-roster > button:hover,
.tutor-roster > button[data-active="true"] {
  background: #fffdf8;
  border-color: rgba(18, 18, 20, 0.13);
  box-shadow: 0 5px 16px rgba(18, 18, 20, 0.05);
}

.tutor-student-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fffaf0;
  background: var(--celadon-deep);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.tutor-roster > button > span:nth-child(2) {
  min-width: 0;
}

.tutor-roster > button strong,
.tutor-roster > button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-roster > button strong {
  font-size: 12px;
}

.tutor-roster > button small {
  margin-top: 3px;
  color: #8b857b;
  font-size: 12px;
}

.tutor-roster > button i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fffaf0;
  background: var(--persimmon-deep);
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
}

.tutor-roster-empty {
  margin: 18px 10px;
  color: #858078;
  font-size: 12px;
}

.tutor-review-panel {
  min-width: 0;
  background: #fffdf8;
}

.tutor-review-empty {
  display: flex;
  min-height: 555px;
  padding: 40px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.tutor-review-empty > span {
  color: var(--persimmon);
  font: 700 12px "JetBrains Mono", monospace;
}

.tutor-review-empty h3 {
  margin-top: 12px;
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
  font-weight: 550;
}

.tutor-review-empty p {
  max-width: 450px;
  margin: 10px 0 0;
  color: #777168;
  font-size: 14px;
}

.tutor-student-heading {
  display: flex;
  min-height: 72px;
  padding: 15px 20px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.tutor-student-heading > div:first-child {
  min-width: 140px;
}

.tutor-student-heading > div:first-child > span {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: #868078;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-student-heading h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 23px;
  font-weight: 550;
}

.tutor-project-tabs {
  display: flex;
  max-width: 68%;
  padding: 4px;
  gap: 3px;
  overflow-x: auto;
  background: #f0eadc;
  border-radius: 8px;
}

.tutor-project-tabs button {
  min-height: 30px;
  padding: 0 10px;
  flex: 0 0 auto;
  color: #6c675f;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tutor-project-tabs button[data-active="true"] {
  color: var(--obsidian);
  background: #fffdf8;
  box-shadow: 0 2px 7px rgba(18, 18, 20, 0.08);
}

.tutor-project-empty {
  padding: 64px 28px;
  text-align: center;
}

.tutor-project-empty p {
  margin: 6px 0 0;
  color: #777168;
  font-size: 13px;
}

.tutor-project-review > header {
  display: flex;
  min-height: 74px;
  padding: 15px 20px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  background: #f8f4eb;
  border-bottom: 1px solid var(--line);
}

.tutor-project-review > header > div:first-child > span {
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tutor-project-review > header h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 25px;
  font-weight: 550;
}

.tutor-project-review > header > div:last-child {
  text-align: right;
}

.tutor-project-review > header > div:last-child span,
.tutor-project-review > header > div:last-child a {
  display: block;
  font-size: 12px;
}

.tutor-project-review > header > div:last-child span {
  color: #8a847b;
}

.tutor-project-review > header > div:last-child a {
  margin-top: 5px;
  color: var(--celadon-deep);
  font-weight: 750;
}

.tutor-preview-wrap {
  height: 410px;
  padding: 14px;
  background:
    linear-gradient(rgba(18, 18, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 20, 0.035) 1px, transparent 1px),
    #e9e5dc;
  background-size: 22px 22px;
  border-bottom: 1px solid var(--line);
}

.tutor-preview-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(18, 18, 20, 0.18);
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(18, 18, 20, 0.12);
}

.tutor-preview-missing {
  padding: 70px 20px;
  color: #837d74;
  text-align: center;
  background: #e9e5dc;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.tutor-review-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  border-bottom: 1px solid var(--line);
}

.tutor-project-context,
.tutor-feedback-form {
  padding: 24px;
}

.tutor-project-context {
  border-right: 1px solid var(--line);
}

.tutor-project-context h4,
.tutor-feedback-form h4 {
  margin: 8px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
  font-weight: 550;
}

.tutor-project-context > p:not(.studio-kicker) {
  margin: 9px 0 0;
  color: #625e57;
  font-size: 13px;
}

.tutor-project-context > div:not(.tutor-feedback-history) {
  margin-top: 18px;
  padding: 13px;
  background: #f4efe5;
  border-radius: 7px;
}

.tutor-project-context > div > span,
.tutor-history-label,
.tutor-feedback-empty span {
  color: #817b72;
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tutor-project-context > div > p {
  margin: 5px 0 0;
  color: #55514b;
  font-size: 12px;
}

.tutor-feedback-history {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.tutor-feedback-history article {
  padding: 12px;
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 20, 0.11);
  border-radius: 7px;
}

.tutor-feedback-history time {
  color: #938c82;
  font: 600 12px "JetBrains Mono", monospace;
}

.tutor-feedback-history article > p {
  margin: 5px 0 0;
  color: #4f4b45;
  font-size: 12px;
}

.tutor-feedback-history article > div {
  margin-top: 8px;
  padding-top: 8px;
  color: #5b5750;
  border-top: 1px solid rgba(18, 18, 20, 0.1);
  font-size: 12px;
}

.tutor-feedback-history article > div span {
  margin-right: 7px;
  color: var(--persimmon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.tutor-feedback-empty {
  padding: 12px;
  background: #f4efe5;
  border-radius: 7px;
}

.tutor-feedback-form {
  background: #f7f3ea;
}

.tutor-feedback-form label {
  display: block;
  margin-top: 14px;
  color: #4e4a44;
  font-size: 12px;
  font-weight: 750;
}

.tutor-feedback-form label > span {
  color: #918a80;
  font-weight: 550;
}

.tutor-feedback-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 11px;
  resize: vertical;
  color: var(--obsidian);
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 20, 0.15);
  border-radius: 7px;
  outline: 0;
  font: 500 12px/1.5 Manrope, sans-serif;
}

.tutor-feedback-form textarea:focus {
  border-color: var(--celadon-deep);
  box-shadow: 0 0 0 3px rgba(95, 162, 150, 0.13);
}

.tutor-feedback-form > button {
  display: flex;
  width: 100%;
  min-height: 43px;
  margin-top: 14px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  color: #fffdf8;
  background: var(--obsidian);
  border: 0;
  border-radius: 7px;
  font: 750 12px Manrope, sans-serif;
  cursor: pointer;
}

.tutor-feedback-form > button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.tutor-feedback-form > small {
  display: block;
  margin-top: 7px;
  color: #8a847b;
  font-size: 12px;
}

.tutor-verification-gate {
  width: min(760px, calc(100% - 36px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 80px 0;
  text-align: center;
}

.tutor-verification-gate > span {
  margin: 0 auto 26px;
}

.tutor-verification-gate h1 {
  max-width: 680px;
  margin: 0 auto;
  font-size: 58px;
  line-height: 0.98;
}

.tutor-verification-gate > p:not(.studio-kicker) {
  max-width: 550px;
  margin: 18px auto 0;
  color: #6d685f;
}

.tutor-verification-gate > a {
  display: inline-flex;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  align-items: center;
  color: #fffdf8;
  background: var(--obsidian);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 1120px) {
  .tutor-console-topbar {
    grid-template-columns: 1fr auto;
  }

  .tutor-console-breadcrumb {
    display: none;
  }

  .tutor-console-intro {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 30px;
  }

  .tutor-console-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .tutor-review-workbench {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

  .tutor-project-context {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .topbar-tutor {
    width: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }

  .topbar-tutor span {
    display: none;
  }

  .student-classroom-section {
    margin-top: 48px;
  }

  .student-classroom-connect {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 20px;
  }

  .student-classroom-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1080px) {
  .tutor-console-topbar {
    min-height: 62px;
    padding: 0 14px;
  }

  .tutor-console-account {
    gap: 5px;
  }

  .tutor-console-account .account-email,
  .tutor-console-account > button {
    display: none;
  }

  .tutor-console-account > a {
    min-height: 32px;
    padding: 0 7px;
    font-size: 12px;
  }

  .tutor-console-shell {
    width: min(100% - 24px, 620px);
    padding: 38px 0 64px;
  }

  .tutor-console-intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .tutor-console-intro h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .tutor-create-class {
    padding: 16px;
  }

  .tutor-console-layout {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .tutor-class-sidebar > header {
    min-height: 52px;
  }

  .tutor-class-list {
    display: flex;
    overflow-x: auto;
  }

  .tutor-class-list > button {
    min-width: 190px;
    flex: 0 0 auto;
  }

  .tutor-class-empty {
    min-height: 460px;
    padding: 34px 24px;
    flex-direction: column;
    text-align: center;
  }

  .tutor-class-empty > span {
    margin: 0 0 20px;
  }

  .tutor-class-empty h2 {
    font-size: 34px;
  }

  .tutor-class-header {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .tutor-class-header h2 {
    font-size: 32px;
  }

  .tutor-invite-code {
    width: 100%;
  }

  .tutor-class-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .tutor-class-stats > div {
    padding: 11px;
  }

  .tutor-class-stats > p {
    display: none;
  }

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

  .tutor-roster-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tutor-roster {
    display: flex;
    overflow-x: auto;
  }

  .tutor-roster > button {
    min-width: 230px;
    flex: 0 0 auto;
  }

  .tutor-student-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tutor-project-tabs {
    width: 100%;
    max-width: 100%;
  }

  .tutor-project-review > header {
    align-items: flex-start;
  }

  .tutor-preview-wrap {
    height: 290px;
    padding: 9px;
  }

  .tutor-project-context,
  .tutor-feedback-form {
    padding: 19px;
  }

  .tutor-verification-gate h1 {
    font-size: 42px;
  }
}

@media (max-width: 430px) {
  .builder-topbar .studio-brand span {
    display: none;
  }

  .tutor-console-topbar .studio-brand span {
    display: none;
  }

  .student-classroom-connect form > div,
  .tutor-create-class > div {
    grid-template-columns: 1fr;
  }

  .student-classroom-connect button,
  .tutor-create-class button {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutor-console-body *,
  .tutor-console-body *::before,
  .tutor-console-body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Classroom evidence */
.classroom-evidence {
  border-bottom: 1px solid var(--line);
}

.evidence-record {
  color: var(--rice);
  background: var(--obsidian);
  border-bottom: 1px solid var(--line-dark);
}

.evidence-record-inner,
.evidence-stories {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 96px 40px;
}

.evidence-record-inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
}

.evidence-record .eyebrow {
  color: var(--celadon);
}

.evidence-record h2 {
  max-width: 590px;
  font-size: clamp(46px, 4.4vw, 68px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.evidence-record h2 em {
  color: var(--celadon);
  font-style: normal;
}

.evidence-record header > p:last-child {
  max-width: 600px;
  margin: 28px 0 0;
  color: #c9c4b8;
  font-size: 17px;
}

.evidence-numbers {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 96px;
  gap: 26px 30px;
  align-items: center;
  padding-top: 6px;
}

.evidence-lead-number strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(88px, 9vw, 132px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.76;
}

.evidence-lead-number strong span,
.evidence-numbers dt span {
  color: var(--persimmon);
}

.evidence-lead-number p {
  margin: 24px 0 0 5px;
  color: #ded8ca;
  font: 700 14px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.evidence-mark-field {
  position: relative;
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid rgba(95, 162, 150, 0.55);
}

.evidence-mark-field::before,
.evidence-mark-field::after {
  position: absolute;
  content: "";
}

.evidence-mark-field::before {
  inset: 13px;
  border: 2px solid var(--celadon);
}

.evidence-mark-field::after {
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--persimmon);
  box-shadow: -48px -48px 0 -5px var(--celadon), 48px 48px 0 -5px var(--celadon);
  transform: translate(-50%, -50%) rotate(45deg);
}

.evidence-numbers dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.evidence-numbers dl > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: center;
  min-height: 104px;
  padding: 18px 20px;
  border-right: 1px solid var(--line-dark);
}

.evidence-numbers dl > div:first-child {
  padding-left: 0;
}

.evidence-numbers dl > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.evidence-numbers dt {
  font-family: Fraunces, Georgia, serif;
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.evidence-numbers dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.evidence-numbers dd small {
  display: block;
  margin-top: 4px;
  color: #969187;
  font: 600 12px "JetBrains Mono", monospace;
}

.evidence-source {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  color: #817d75;
  font: 600 12px "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}

.evidence-stories-head {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(300px, 0.72fr);
  gap: 28px 80px;
  align-items: end;
  margin-bottom: 48px;
}

.evidence-stories-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -6px;
}

.evidence-stories-head h2 {
  max-width: 710px;
  font-size: clamp(48px, 5.2vw, 72px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.evidence-stories-head > p:last-child {
  max-width: 520px;
  margin: 0 0 5px;
  color: var(--ink-mist);
  font-size: 17px;
}

.evidence-story-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(560px, 1.2fr);
  gap: 22px;
  align-items: stretch;
}

.parent-voice-panel,
.parent-report-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.parent-voice-panel {
  padding: 34px;
  background: #e4efea;
}

.evidence-panel-label {
  margin: 0;
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.evidence-panel-label span {
  display: inline-block;
  margin-right: 10px;
  color: var(--persimmon-deep);
}

.parent-shift {
  max-width: 450px;
  margin: 54px 0 24px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(38px, 3.6vw, 54px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.parent-shift i {
  color: var(--persimmon-deep);
  font-style: normal;
}

.parent-voice-panel blockquote {
  margin: 0;
  color: #29302d;
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
  line-height: 1.5;
}

.parent-voice-source {
  margin: 20px 0 0;
  color: #557067;
  font: 700 12px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.parent-voice-panel ul {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(18, 18, 20, 0.14);
}

.parent-voice-panel li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(18, 18, 20, 0.14);
  font-size: 13px;
}

.parent-voice-panel li span {
  color: #65736d;
}

.parent-voice-panel li i {
  color: var(--persimmon-deep);
  font-style: normal;
}

.parent-voice-panel li strong {
  font-weight: 800;
}

.parent-report-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.56fr) minmax(330px, 1fr);
  gap: 32px;
  padding: 34px;
  overflow: hidden;
  background: var(--warm);
}

.parent-report-copy h3 {
  margin-top: 54px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.parent-report-copy > p:last-child {
  margin: 22px 0 0;
  color: var(--ink-mist);
  font-size: 15px;
}

.parent-report-sheet {
  align-self: start;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 20, 0.18);
  border-radius: 7px;
  box-shadow: 0 18px 40px rgba(18, 18, 20, 0.12);
}

.parent-report-sheet > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  color: var(--rice);
  background: var(--obsidian);
  font: 650 12px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.parent-report-sheet > header span:first-child {
  font-family: Fraunces, Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.parent-report-student {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.parent-report-student strong {
  flex: 1 0 100%;
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
  line-height: 1;
}

.parent-report-student span {
  color: #7a756d;
  font: 650 12px "JetBrains Mono", monospace;
}

.parent-report-student .is-complete {
  margin-left: auto;
  padding: 3px 5px;
  color: #29554c;
  background: rgba(95, 162, 150, 0.18);
  border-radius: 3px;
}

.parent-report-project,
.parent-report-moment {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.parent-report-project > p,
.parent-report-moment > p {
  margin: 0 0 9px;
  color: var(--persimmon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.parent-report-project > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.parent-report-project > div > span {
  flex: 0 0 34px;
  height: 34px;
  background: var(--celadon);
  border: 8px solid #dcece7;
  border-radius: 50%;
}

.parent-report-project strong,
.parent-report-project small {
  display: block;
}

.parent-report-project strong {
  font-size: 12px;
}

.parent-report-project strong i {
  color: #6f6a62;
  font-style: normal;
  font-weight: 600;
}

.parent-report-project small {
  margin-top: 3px;
  color: #777168;
  font-size: 12px;
}

.parent-report-moment > strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}

.parent-report-moment ol {
  display: grid;
  gap: 6px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.parent-report-moment li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
}

.parent-report-moment li > span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #69655f;
  background: #ece8de;
  border-radius: 50%;
  font: 700 12px "JetBrains Mono", monospace;
}

.parent-report-moment li.is-found > span {
  color: var(--rice);
  background: var(--celadon-deep);
}

.parent-report-moment b,
.parent-report-moment small {
  display: block;
}

.parent-report-moment b {
  font-size: 12px;
}

.parent-report-moment small {
  margin-top: 1px;
  color: #777168;
  font-size: 12px;
}

.parent-report-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.parent-report-summary > div {
  min-width: 0;
  padding: 10px;
  background: #faf7f0;
}

.parent-report-summary span {
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.parent-report-summary p {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.parent-report-sheet > footer {
  padding: 7px 10px;
  color: #8b857b;
  font: 600 12px "JetBrains Mono", monospace;
  text-align: right;
  text-transform: uppercase;
}

.evidence-disclosure {
  margin: 20px 0 0;
  color: #807b72;
  font: 600 12px "JetBrains Mono", monospace;
}

@media (max-width: 1120px) {
  .evidence-record-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .evidence-record header > p:last-child {
    max-width: 760px;
  }

  .evidence-stories-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .evidence-story-grid {
    grid-template-columns: 1fr;
  }

  .parent-report-panel {
    grid-template-columns: minmax(220px, 0.6fr) minmax(380px, 1fr);
  }
}

@media (max-width: 720px) {
  .evidence-record-inner,
  .evidence-stories {
    padding: 64px 18px;
  }

  .evidence-record-inner {
    gap: 48px;
  }

  .evidence-record h2,
  .evidence-stories-head h2 {
    font-size: 42px;
  }

  .evidence-record header > p:last-child,
  .evidence-stories-head > p:last-child {
    font-size: 15px;
  }

  .evidence-numbers {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 24px 18px;
  }

  .evidence-lead-number strong {
    font-size: 72px;
  }

  .evidence-mark-field {
    width: 72px;
  }

  .evidence-mark-field::after {
    box-shadow: -34px -34px 0 -5px var(--celadon), 34px 34px 0 -5px var(--celadon);
  }

  .evidence-numbers dl {
    grid-template-columns: 1fr;
  }

  .evidence-numbers dl > div,
  .evidence-numbers dl > div:first-child,
  .evidence-numbers dl > div:last-child {
    min-height: 76px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .evidence-numbers dl > div:last-child {
    border-bottom: 0;
  }

  .evidence-stories-head {
    margin-bottom: 34px;
  }

  .parent-voice-panel,
  .parent-report-panel {
    padding: 24px;
  }

  .parent-shift,
  .parent-report-copy h3 {
    margin-top: 42px;
  }

  .parent-voice-panel blockquote {
    font-size: 19px;
  }

  .parent-voice-panel li {
    grid-template-columns: 1fr auto;
  }

  .parent-voice-panel li strong {
    grid-column: 1 / -1;
  }

  .parent-report-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .parent-report-sheet {
    width: 100%;
  }

  .evidence-disclosure {
    line-height: 1.6;
  }
}

/* Destination navigation */
.site-header {
  min-height: 88px;
  padding: 10px 32px;
  gap: 24px;
}

.destination-nav {
  align-self: stretch;
  gap: 0;
  margin-left: auto;
}

.nav-destination {
  position: relative;
  display: grid;
  grid-template-columns: 40px auto;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 7px;
}

.nav-destination + .nav-destination {
  border-left: 1px solid var(--line);
  border-radius: 0 7px 7px 0;
}

.nav-destination::after {
  position: absolute;
  right: 18px;
  bottom: 2px;
  left: 69px;
  height: 2px;
  content: "";
  background: var(--celadon);
  opacity: 0;
  transform: scaleX(0.55);
  transform-origin: left;
  transition: opacity 150ms ease, transform 150ms ease;
}

.nav-destination:hover {
  background: rgba(240, 234, 220, 0.58);
}

.nav-destination:hover::after,
.nav-destination:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-destination:focus-visible,
.nav-action:focus-visible {
  outline: 2px solid var(--celadon-deep);
  outline-offset: 2px;
}

.nav-destination-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(18, 18, 20, 0.04);
  border-radius: 12px;
}

.nav-destination-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-students .nav-destination-icon {
  color: var(--celadon-deep);
  background: #e1eee9;
}

.nav-tutors .nav-destination-icon {
  color: #477c61;
  background: #e7f1e7;
}

.nav-how .nav-destination-icon {
  color: #5b6663;
  background: #e9ece9;
}

.nav-destination-copy {
  display: grid;
  gap: 1px;
  line-height: 1.12;
}

.nav-destination-copy strong {
  color: var(--obsidian);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.nav-destination-copy small {
  color: #7b7870;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.destination-nav .nav-action {
  min-height: 48px;
  margin-left: 14px;
  padding: 0 17px;
  box-shadow: 0 8px 22px rgba(18, 18, 20, 0.12);
}

.destination-nav .nav-community {
  gap: 9px;
  padding-right: 14px;
  padding-left: 9px;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.nav-community:hover {
  background: var(--jet);
  box-shadow: 0 10px 26px rgba(18, 18, 20, 0.18);
  transform: translateY(-1px);
}

.nav-community-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--obsidian);
  background: var(--celadon);
  border-radius: 7px;
}

.nav-community-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-community-arrow {
  color: var(--persimmon);
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .site-header {
    padding-right: 24px;
    padding-left: 24px;
  }

  .nav-destination {
    grid-template-columns: 36px auto;
    gap: 9px;
    padding: 0 12px;
  }

  .nav-destination-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .nav-destination::after {
    right: 12px;
    left: 57px;
  }

  .nav-destination-copy small {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    gap: 16px;
  }

  .nav-destination {
    grid-template-columns: 38px;
    padding: 0 8px;
  }

  .nav-destination-icon {
    width: 38px;
    height: 38px;
  }

  .nav-destination-copy,
  .nav-destination::after {
    display: none;
  }

  .destination-nav .nav-action {
    margin-left: 8px;
  }
}

@media (max-width: 1080px) {
  .destination-nav .nav-community {
    width: 48px;
    padding: 0;
  }

  .nav-community > span:not(.nav-community-icon) {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
    min-height: 70px;
    padding: 12px 18px;
  }

  .destination-nav {
    align-self: auto;
    gap: 8px;
  }

  .site-header .destination-nav a.nav-destination {
    display: none;
  }

  .site-header .destination-nav a.nav-students {
    display: grid;
    min-height: 42px;
    padding: 0;
    border: 0;
  }

  .nav-students .nav-destination-icon {
    width: 38px;
    height: 38px;
  }

  .destination-nav .nav-action {
    min-height: 42px;
    margin-left: 0;
    padding: 0 12px 0 7px;
  }

  .nav-community-icon {
    width: 28px;
    height: 28px;
  }

  .nav-community-arrow {
    display: none;
  }
}

/* Tutor-approved family reports */
.tutor-report-studio {
  border-top: 1px solid var(--line);
  background: #f3efe6;
}

.tutor-report-studio > header {
  display: flex;
  min-height: 138px;
  padding: 28px;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(110deg, rgba(95, 162, 150, 0.13), transparent 52%),
    #fffdf8;
  border-bottom: 1px solid var(--line);
}

.tutor-report-studio > header > div {
  max-width: 650px;
}

.tutor-report-studio > header h3 {
  margin-top: 8px;
  font: 550 30px/1.04 Fraunces, Georgia, serif;
}

.tutor-report-studio > header > div > p:last-child {
  margin: 9px 0 0;
  color: #6c675f;
  font-size: 13px;
}

.tutor-report-studio > header > button {
  display: flex;
  min-width: 184px;
  min-height: 46px;
  padding: 0 14px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  color: #fffdf8;
  background: var(--obsidian);
  border: 0;
  border-radius: 8px;
  font: 750 12px Manrope, sans-serif;
  cursor: pointer;
}

.tutor-report-studio > header > button i {
  color: var(--persimmon);
  font-size: 15px;
  font-style: normal;
}

.tutor-report-studio > header > button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.tutor-report-link {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(360px, 1.3fr);
  padding: 15px 20px;
  gap: 18px;
  align-items: center;
  color: #e7e2d9;
  background: #242424;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tutor-report-link > div:first-child span {
  color: var(--celadon);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tutor-report-link > div:first-child p {
  margin: 4px 0 0;
  color: #aaa49a;
  font-size: 12px;
}

.tutor-report-link > div:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
}

.tutor-report-link input {
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  overflow: hidden;
  color: #d7d1c8;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  outline: 0;
  font: 500 12px "JetBrains Mono", monospace;
  text-overflow: ellipsis;
}

.tutor-report-link button,
.tutor-report-link a {
  display: flex;
  min-height: 36px;
  padding: 0 11px;
  align-items: center;
  color: #fffdf8;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.tutor-report-link button {
  color: var(--obsidian);
  background: var(--celadon);
  border-color: var(--celadon);
}

.tutor-report-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 510px;
}

.tutor-report-list {
  display: grid;
  padding: 11px;
  gap: 7px;
  align-content: start;
  background: #e9e3d7;
  border-right: 1px solid var(--line);
}

.tutor-report-list > p {
  margin: 12px 8px;
  color: #817b72;
  font-size: 12px;
}

.tutor-report-list > button {
  display: grid;
  width: 100%;
  padding: 12px;
  gap: 4px;
  color: #59554e;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.tutor-report-list > button:hover,
.tutor-report-list > button[data-active="true"] {
  background: #fffdf8;
  border-color: rgba(18, 18, 20, 0.12);
  box-shadow: 0 4px 14px rgba(18, 18, 20, 0.05);
}

.tutor-report-list > button span {
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tutor-report-list > button strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutor-report-list > button small {
  color: #938c82;
  font-size: 12px;
}

.tutor-report-empty {
  display: flex;
  padding: 42px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #f9f6ef;
}

.tutor-report-empty > span {
  color: var(--persimmon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tutor-report-empty > strong {
  margin-top: 12px;
  font: 550 28px Fraunces, Georgia, serif;
}

.tutor-report-empty > p {
  max-width: 430px;
  margin: 8px 0 0;
  color: #777168;
  font-size: 12px;
}

.tutor-report-editor {
  min-width: 0;
  padding: 24px 28px 28px;
  background: #f9f6ef;
}

.tutor-report-editor > header {
  display: flex;
  flex-wrap: wrap;
  min-height: 34px;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.tutor-report-editor > header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.tutor-report-editor > header span {
  display: inline-flex;
  min-height: 24px;
  padding: 0 9px;
  align-items: center;
  color: #fffdf8;
  background: #817b72;
  border-radius: 999px;
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tutor-report-editor > header span[data-state="approved"] {
  color: var(--obsidian);
  background: var(--celadon);
}

.tutor-report-editor > header span[data-state="pending"] {
  background: var(--persimmon-deep);
}

.tutor-report-editor > header small,
.tutor-report-editor > header p {
  margin: 0;
  color: #8a847b;
  font-size: 12px;
}

.tutor-report-editor > header p {
  max-width: 330px;
  text-align: right;
}

.tutor-report-editor > label {
  display: block;
  margin-top: 15px;
  color: #504c46;
  font-size: 12px;
  font-weight: 750;
}

.tutor-report-editor input,
.tutor-report-editor textarea {
  width: 100%;
  margin-top: 5px;
  padding: 11px 12px;
  color: var(--obsidian);
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 20, 0.15);
  border-radius: 7px;
  outline: 0;
  font: 500 12px/1.62 Manrope, sans-serif;
}

.tutor-report-editor input {
  min-height: 42px;
  font: 550 17px Fraunces, Georgia, serif;
}

.tutor-report-editor textarea {
  min-height: 320px;
  resize: vertical;
}

.tutor-report-editor input:focus,
.tutor-report-editor textarea:focus {
  border-color: var(--celadon-deep);
  box-shadow: 0 0 0 3px rgba(95, 162, 150, 0.13);
}

.tutor-report-actions {
  display: flex;
  margin-top: 14px;
  gap: 8px;
  justify-content: flex-end;
}

.tutor-report-actions button {
  min-height: 41px;
  padding: 0 14px;
  color: var(--obsidian);
  background: transparent;
  border: 1px solid rgba(18, 18, 20, 0.18);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.tutor-report-actions button:last-child {
  display: flex;
  min-width: 160px;
  align-items: center;
  justify-content: space-between;
  color: #fffdf8;
  background: var(--obsidian);
  border-color: var(--obsidian);
}

.tutor-report-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.tutor-report-editor > small {
  display: block;
  margin-top: 8px;
  color: #8a847b;
  text-align: right;
  font-size: 12px;
}

@media (max-width: 900px) {
  .tutor-report-workspace {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .tutor-report-link {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .tutor-report-studio > header {
    padding: 22px 19px;
    align-items: stretch;
    flex-direction: column;
  }

  .tutor-report-studio > header h3 {
    font-size: 26px;
  }

  .tutor-report-studio > header > button {
    width: 100%;
  }

  .tutor-report-link {
    padding: 16px;
  }

  .tutor-report-link > div:last-child {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tutor-report-link a {
    display: none;
  }

  .tutor-report-workspace {
    grid-template-columns: 1fr;
  }

  .tutor-report-list {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tutor-report-list > button {
    min-width: 180px;
    flex: 0 0 auto;
  }

  .tutor-report-editor {
    padding: 20px 18px 22px;
  }

  .tutor-report-editor > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tutor-report-editor > header p {
    max-width: none;
    text-align: left;
  }

  .tutor-report-actions {
    flex-direction: column;
  }

  .tutor-report-actions button,
  .tutor-report-actions button:last-child {
    width: 100%;
  }
}

.family-report-body {
  min-height: 100vh;
  color: var(--obsidian);
  background:
    radial-gradient(circle at 10% 12%, rgba(95, 162, 150, 0.13), transparent 27%),
    #f3efe6;
}

.family-report-topbar {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(18, 18, 20, 0.16);
}

.family-report-topbar > span {
  color: #777168;
  font: 650 12px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-report-main {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.family-report-loading,
.family-report-error {
  display: flex;
  min-height: 580px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.family-report-loading > p {
  margin: 18px 0 0;
  color: #746e65;
  font-size: 13px;
}

.family-report-error > span,
.family-report-no-published > span {
  color: var(--persimmon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-report-error h1 {
  max-width: 650px;
  margin-top: 12px;
  font-size: 54px;
  line-height: 0.98;
}

.family-report-error p {
  margin: 15px 0 0;
  color: #746e65;
}

.family-report-error a {
  display: inline-flex;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 16px;
  align-items: center;
  color: #fffdf8;
  background: var(--obsidian);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
}

.family-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: 260px;
  padding: 42px;
  gap: 50px;
  align-items: end;
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 20, 0.16);
  border-radius: 14px 14px 0 0;
}

.family-report-hero h1 {
  max-width: 680px;
  margin-top: 14px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.94;
}

.family-report-hero h1 em {
  color: var(--celadon-deep);
  font-weight: 500;
}

.family-report-hero dl {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(18, 18, 20, 0.15);
}

.family-report-hero dl > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  min-height: 46px;
  align-items: center;
  border-bottom: 1px solid rgba(18, 18, 20, 0.15);
}

.family-report-hero dt {
  color: #8b857b;
  font: 650 12px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.family-report-hero dd {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
}

.family-report-list {
  display: grid;
  gap: 20px;
  padding: 34px;
  background: #e9e3d7;
  border-right: 1px solid rgba(18, 18, 20, 0.16);
  border-left: 1px solid rgba(18, 18, 20, 0.16);
}

.family-report-list:empty {
  display: none;
}

.family-report-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  background: #fffdf8;
  border: 1px solid rgba(18, 18, 20, 0.13);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(18, 18, 20, 0.05);
}

.family-report-card > header {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(95, 162, 150, 0.15), transparent 65%),
    #f7f3ea;
  border-right: 1px solid rgba(18, 18, 20, 0.12);
  border-radius: 9px 0 0 9px;
}

.family-report-card > header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.family-report-card > header span,
.family-report-card > header time {
  color: #807a71;
  font: 650 12px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.family-report-card > header span {
  color: var(--celadon-deep);
}

.family-report-card > header h2 {
  margin-top: 32px;
  font: 550 31px/1.05 Fraunces, Georgia, serif;
}

.family-report-copy {
  padding: 28px 34px 34px;
}

.family-report-copy h3 {
  margin: 22px 0 0;
  color: var(--persimmon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.family-report-copy h3:first-child {
  margin-top: 0;
}

.family-report-copy p {
  margin: 7px 0 0;
  color: #4f4b45;
  font-size: 14px;
  line-height: 1.72;
}

.family-report-no-published {
  padding: 80px 30px;
  text-align: center;
  background: #fffdf8;
  border-right: 1px solid rgba(18, 18, 20, 0.16);
  border-left: 1px solid rgba(18, 18, 20, 0.16);
}

.family-report-no-published h2 {
  margin-top: 12px;
  font-size: 38px;
}

.family-report-no-published p {
  max-width: 560px;
  margin: 10px auto 0;
  color: #746e65;
  font-size: 13px;
}

.family-report-privacy {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 22px 34px;
  gap: 28px;
  color: #d7d1c8;
  background: var(--obsidian);
  border-radius: 0 0 14px 14px;
}

.family-report-privacy strong {
  color: var(--celadon);
  font: 700 12px "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.family-report-privacy p {
  margin: 0;
  color: #aaa49a;
  font-size: 12px;
  line-height: 1.6;
}

.family-report-footer {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  color: #777168;
  border-top: 1px solid rgba(18, 18, 20, 0.16);
}

.family-report-footer span {
  font: 550 19px Fraunces, Georgia, serif;
}

.family-report-footer p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 900px) {
  .family-report-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }

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

  .family-report-card > header {
    border-right: 0;
    border-bottom: 1px solid rgba(18, 18, 20, 0.12);
    border-radius: 9px 9px 0 0;
  }

  .family-report-card > header h2 {
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .family-report-topbar,
  .family-report-main,
  .family-report-footer {
    width: calc(100% - 24px);
  }

  .family-report-main {
    padding: 28px 0 56px;
  }

  .family-report-hero {
    min-height: 0;
    padding: 26px 20px;
  }

  .family-report-hero h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .family-report-list {
    padding: 14px;
    gap: 14px;
  }

  .family-report-card > header,
  .family-report-copy {
    padding: 22px 19px;
  }

  .family-report-card > header h2 {
    font-size: 27px;
  }

  .family-report-no-published {
    padding: 60px 22px;
  }

  .family-report-no-published h2 {
    font-size: 32px;
  }

  .family-report-privacy {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 7px;
  }

  .family-report-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .family-report-error h1 {
    font-size: 42px;
  }
}

/* Homepage guest studio */
.home-studio-hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100svh - 88px);
  padding: 42px 40px 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 18, 20, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(18, 18, 20, 0.03) 1px, transparent 1px),
    var(--rice);
  background-size: 48px 48px;
  border-bottom: 1px solid var(--line);
}

.home-studio-hero::before,
.home-studio-hero::after {
  position: absolute;
  z-index: 0;
  width: 190px;
  height: 190px;
  content: "";
  pointer-events: none;
}

.home-studio-hero::before {
  top: 8%;
  left: -105px;
  border: 1px solid rgba(95, 162, 150, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(95, 162, 150, 0.06);
}

.home-studio-hero::after {
  right: -75px;
  bottom: 12%;
  border: 1px solid rgba(232, 137, 58, 0.32);
  transform: rotate(18deg);
}

.home-studio-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto;
  align-content: center;
  justify-items: center;
}

.home-studio-heading {
  text-align: center;
}

.home-studio-heading .eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 9px;
  color: var(--celadon-deep);
}

.home-studio-heading .eyebrow span {
  width: 18px;
  height: 2px;
  background: var(--persimmon);
}

.home-studio-heading h1 {
  margin: 0;
  font: 500 clamp(66px, 7.4vw, 104px)/0.86 Fraunces, Georgia, serif;
  letter-spacing: -0.058em;
}

.home-studio-heading h1 em {
  color: var(--celadon-deep);
  font-weight: 430;
}

.home-studio-heading > p:last-child {
  max-width: 710px;
  margin: 24px auto 0;
  color: #5f5a52;
  font-size: 15px;
  line-height: 1.7;
}

.home-build-composer {
  width: min(920px, 100%);
  margin-top: 32px;
  padding: 9px;
  background: #fffefa;
  border: 1px solid rgba(18, 18, 20, 0.2);
  border-radius: 17px;
  box-shadow: 0 24px 65px rgba(43, 38, 29, 0.14), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.home-build-composer > label {
  display: block;
  padding: 12px 16px 2px;
  color: #716b61;
  font: 650 12px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-build-composer textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  padding: 12px 16px 18px;
  color: var(--obsidian);
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  font: 500 19px/1.55 Manrope, sans-serif;
}

.home-build-composer textarea::placeholder {
  color: #aaa399;
}

.home-composer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px;
  min-height: 62px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.home-save-note {
  display: flex;
  min-width: 0;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #6d675f;
  background: #f6f1e7;
  font-size: 12px;
}

.home-save-note > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.home-save-note > span i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--celadon);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(95, 162, 150, 0.13);
}

.home-save-note > div {
  display: flex;
  flex: 0 0 auto;
  gap: 13px;
  align-items: center;
}

.home-save-note a {
  color: var(--celadon-deep);
  font-weight: 800;
  white-space: nowrap;
}

.home-save-note a:last-child {
  color: #6d675f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-composer-footer > button {
  display: inline-flex;
  min-width: 160px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--rice);
  background: var(--obsidian);
  border: 0;
  font: 800 14px Manrope, sans-serif;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.home-composer-footer > button:hover {
  background: var(--celadon-deep);
}

.home-composer-footer > button:active {
  transform: translateY(1px);
}

.home-composer-footer > button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.home-starter-row {
  display: flex;
  max-width: 100%;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-starter-row > span {
  margin-right: 4px;
  color: #8c857b;
  font: 650 12px "JetBrains Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-starter-row button {
  min-height: 31px;
  padding: 0 11px;
  color: #5e5951;
  background: rgba(252, 250, 244, 0.78);
  border: 1px solid rgba(18, 18, 20, 0.13);
  border-radius: 999px;
  font: 700 12px Manrope, sans-serif;
  cursor: pointer;
}

.home-starter-row button:hover {
  color: var(--obsidian);
  background: #e3eee9;
  border-color: rgba(61, 113, 103, 0.3);
}

@media (min-width: 901px) and (max-width: 1439px) {
  .home-nav-with-lessons .nav-destination {
    grid-template-columns: auto;
    padding-inline: 12px;
  }

  .home-nav-with-lessons .nav-destination-icon,
  .home-nav-with-lessons .nav-destination-copy small {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 999px) {
  .home-nav-with-lessons .nav-destination {
    padding-inline: 6px;
  }

  .home-nav-with-lessons .nav-destination-copy strong {
    font-size: 12px;
  }

  .home-nav-with-lessons .nav-lessons {
    display: none;
  }
}

.home-teacher-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 16px 0 6px;
  font-size: 13px;
}

.home-teacher-links > span {
  color: var(--ink-mist);
}

.home-teacher-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #a9bfb4;
  border-radius: 6px;
  color: var(--celadon-deep);
  font-weight: 800;
}

.home-teacher-links a:hover {
  background: #e3eee9;
}

@media (max-width: 440px) {
  .home-teacher-links > span {
    flex-basis: 100%;
    text-align: center;
  }
}

.home-studio-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, auto) minmax(0, 1fr);
  width: min(1180px, 100%);
  min-height: 66px;
  margin: 30px auto 0;
  align-items: center;
  gap: 28px;
  color: #777168;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.home-studio-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.home-studio-footer i {
  color: var(--persimmon-deep);
  font: 650 12px "JetBrains Mono", monospace;
}

.home-studio-footer a {
  justify-self: end;
  color: var(--celadon-deep);
  font-weight: 800;
}

.home-build-composer textarea:focus-visible,
.home-starter-row button:focus-visible,
.home-composer-footer button:focus-visible,
.home-showcase-rail a:focus-visible,
.home-project-carousel:focus-visible {
  outline: 2px solid var(--celadon-deep);
  outline-offset: 2px;
}

.home-showcase-rail {
  position: relative;
  padding: 58px max(40px, calc((100vw - 1320px) / 2));
  overflow: hidden;
  color: var(--rice);
  background:
    linear-gradient(90deg, rgba(252, 250, 244, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(252, 250, 244, 0.028) 1px, transparent 1px),
    #151817;
  background-size: 48px 48px;
  border-bottom: 1px solid rgba(18, 18, 20, 0.35);
}

.home-showcase-rail::after {
  position: absolute;
  top: -90px;
  right: -55px;
  width: 260px;
  height: 260px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(232, 137, 58, 0.32);
  transform: rotate(24deg);
}

.home-showcase-rail > header {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1320px, 100%);
  margin: 0 auto 28px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.home-showcase-rail .eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  align-items: center;
  gap: 9px;
  color: #83bdb2;
}

.home-showcase-rail .eyebrow span {
  width: 18px;
  height: 2px;
  background: var(--persimmon);
}

.home-showcase-rail h2 {
  margin: 0;
  font: 500 clamp(38px, 4vw, 58px)/0.98 Fraunces, Georgia, serif;
  letter-spacing: -0.045em;
}

.home-showcase-rail h2 em {
  color: #8fc8bd;
  font-weight: 430;
}

.home-showcase-rail > header > a {
  display: inline-flex;
  min-height: 43px;
  padding: 0 15px;
  align-items: center;
  gap: 22px;
  color: var(--rice);
  border: 1px solid rgba(252, 250, 244, 0.28);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.home-showcase-rail > header > a:hover {
  color: var(--obsidian);
  background: var(--celadon);
  border-color: var(--celadon);
}

.home-showcase-rail > header > a span {
  color: var(--persimmon);
  font-size: 17px;
  line-height: 1;
}

.home-project-carousel {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding-bottom: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(143, 200, 189, 0.55) rgba(252, 250, 244, 0.08);
  scrollbar-width: thin;
}

.home-project-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 18px;
}

.home-project-card {
  display: block;
  width: clamp(260px, 27vw, 340px);
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--obsidian);
  background: #fffdf8;
  border: 1px solid rgba(252, 250, 244, 0.16);
  border-radius: 12px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.home-project-card:hover {
  border-color: rgba(143, 200, 189, 0.66);
  transform: translateY(-4px);
}

.home-project-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2b302e;
  border-bottom: 1px solid rgba(18, 18, 20, 0.14);
}

.home-project-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, #222725 20%, #303936 42%, #222725 64%);
  background-size: 240% 100%;
  animation: home-project-loading 1.7s linear infinite;
}

.home-project-preview iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0;
  pointer-events: none;
}

.home-project-preview > span {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  min-height: 30px;
  padding: 0 10px;
  align-items: center;
  gap: 7px;
  color: #fffaf0;
  background: rgba(18, 18, 20, 0.88);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.home-project-card:hover .home-project-preview > span,
.home-project-card:focus-visible .home-project-preview > span {
  opacity: 1;
  transform: none;
}

.home-project-copy {
  padding: 15px 16px 17px;
}

.home-project-copy > p {
  display: flex;
  margin: 0 0 7px;
  justify-content: space-between;
  gap: 12px;
  color: var(--celadon-deep);
  font: 700 12px "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-project-copy > p span:last-child {
  min-width: 0;
  overflow: hidden;
  color: #817a71;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-project-copy h3 {
  margin: 0;
  overflow: hidden;
  font: 520 22px/1.15 Fraunces, Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-showcase-loading,
.home-showcase-error {
  display: grid;
  width: 100%;
  min-height: 330px;
  margin: 0;
  place-items: center;
  color: #a9b5b0;
  border: 1px dashed rgba(252, 250, 244, 0.18);
  border-radius: 12px;
  font: 650 12px "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}

@keyframes home-project-loading {
  to { background-position: -240% 0; }
}

@media (max-width: 900px) {
  .home-studio-hero {
    padding-right: 24px;
    padding-left: 24px;
  }

  .home-save-note > span {
    max-width: 310px;
  }

  .home-studio-footer {
    grid-template-columns: repeat(3, auto) 1fr;
    gap: 16px;
  }

  .home-showcase-rail {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 720px) {
  .home-studio-hero {
    min-height: calc(100svh - 70px);
    padding: 34px 18px 0;
  }

  .home-studio-heading h1 {
    font-size: clamp(48px, 15vw, 64px);
  }

  .home-studio-heading > p:last-child {
    margin-top: 18px;
    font-size: 15px;
  }

  .home-build-composer {
    margin-top: 25px;
    padding: 7px;
    border-radius: 14px;
  }

  .home-build-composer > label {
    padding: 10px 12px 0;
  }

  .home-build-composer textarea {
    min-height: 126px;
    padding: 12px;
    font-size: 16px;
  }

  .home-composer-footer {
    grid-template-columns: 1fr;
  }

  .home-save-note {
    min-height: 62px;
    padding: 10px 12px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .home-save-note > div {
    padding-left: 16px;
  }

  .home-composer-footer > button {
    min-height: 54px;
  }

  .home-starter-row {
    width: calc(100vw - 36px);
    padding-bottom: 5px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-starter-row::-webkit-scrollbar {
    display: none;
  }

  .home-starter-row > span,
  .home-starter-row button {
    flex: 0 0 auto;
  }

  .home-studio-footer {
    grid-template-columns: repeat(3, auto);
    min-height: 58px;
    margin-top: 22px;
    gap: 9px;
    overflow: hidden;
  }

  .home-studio-footer span {
    white-space: normal;
    align-items: flex-start;
    gap: 5px;
    font-size: 12px;
  }

  .home-studio-footer i {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .home-studio-footer a {
    display: none;
  }

  .home-showcase-rail {
    padding: 42px 18px 38px;
  }

  .home-showcase-rail > header {
    margin-bottom: 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .home-showcase-rail h2 {
    font-size: 39px;
  }

  .home-showcase-rail > header > a {
    min-height: 39px;
  }

  .home-project-card {
    width: min(82vw, 310px);
  }

  .home-project-preview > span {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-project-preview::before {
    animation: none;
  }
}

/* Guest controls inside Student Studio */
.topbar-guest-login,
.topbar-guest-save {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 7px;
  font: 750 12px Manrope, sans-serif;
  cursor: pointer;
}

.topbar-guest-login {
  color: #5f5a53;
  background: transparent;
  border: 1px solid transparent;
}

.topbar-guest-login:hover {
  background: var(--warm);
  border-color: var(--line);
}

.topbar-guest-save {
  color: var(--rice);
  background: var(--obsidian);
  border: 1px solid var(--obsidian);
}

.topbar-guest-save:hover {
  background: var(--celadon-deep);
  border-color: var(--celadon-deep);
}

.builder-app[data-mode="guest"] .account-state {
  background: #e5efe9;
  border-color: rgba(61, 113, 103, 0.22);
}

.builder-app[data-mode="guest"] .account-state button {
  color: var(--rice);
  background: var(--celadon-deep);
  border-color: var(--celadon-deep);
}

.builder-body[data-account-mode="guest"] .account-avatar,
.builder-body[data-account-mode="guest"] .account-email {
  display: none;
}

.builder-body .auth-modal {
  z-index: 120;
}

@media (max-width: 760px) {
  .topbar-guest-login {
    display: none;
  }

  .topbar-guest-save {
    min-height: 32px;
    padding: 0 9px;
  }

  .builder-app[data-mode="guest"] .account-state {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }
}

/* Homepage account and community links */
.nav-social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-social-link {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #565650;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.nav-social-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-social-x {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.nav-social-link:hover {
  color: var(--obsidian);
  background: #e1eee9;
  border-color: rgba(61, 113, 103, 0.34);
  transform: translateY(-1px);
}

.destination-nav .nav-tutorial {
  min-height: 40px;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.nav-auth a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 850;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav-login {
  color: var(--jet);
  border: 1px solid transparent;
}

.nav-login:hover {
  background: var(--warm);
  border-color: var(--line);
}

.nav-signup {
  color: var(--rice);
  background: var(--celadon-deep);
  border: 1px solid var(--celadon-deep);
}

.nav-signup:hover {
  background: #315f56;
  border-color: #315f56;
  transform: translateY(-1px);
}

.nav-auth a:focus-visible,
.nav-social-link:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--persimmon);
  outline-offset: 3px;
}

.footer-meta {
  display: grid;
  gap: 3px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  color: #d8d2c3;
  border: 1px solid rgba(252, 250, 244, 0.16);
  border-radius: 6px;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.footer-links a:hover {
  color: var(--rice);
  background: rgba(95, 162, 150, 0.16);
  border-color: rgba(95, 162, 150, 0.62);
}

@media (max-width: 1180px) {
  .nav-social {
    margin-left: 6px;
    padding-left: 6px;
  }

  .nav-auth {
    margin-left: 7px;
    padding-left: 7px;
  }

  .nav-auth a {
    padding-right: 9px;
    padding-left: 9px;
  }
}

@media (max-width: 720px) {
  .site-header .destination-nav a.nav-students,
  .destination-nav .nav-community {
    display: none;
  }

  .site-header:has(.nav-tutorial) {
    flex-wrap: wrap;
    gap: 10px;
  }

  .destination-nav .nav-tutorial {
    display: inline-flex;
    min-height: 38px;
    width: auto;
    gap: 7px;
    padding: 0 10px 0 7px;
  }

  .nav-tutorial > span:not(.nav-community-icon):not(.nav-community-arrow) {
    display: inline;
    font-size: 13px;
  }

  .nav-auth {
    gap: 3px;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .nav-social {
    gap: 3px;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .site-header .destination-nav .nav-social a {
    display: grid;
    width: 34px;
    height: 34px;
  }

  .site-header .destination-nav .nav-auth a {
    display: inline-flex;
    min-height: 38px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-footer {
    display: grid;
    gap: 20px;
    padding: 24px 18px;
  }

  .site-footer .footer-meta span:last-child {
    margin-top: 4px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .destination-nav {
    gap: 5px;
  }

  .site-header .destination-nav .nav-auth a {
    padding-right: 6px;
    padding-left: 6px;
  }

  .site-header .brand span {
    display: none;
  }

  .nav-tutorial .nav-community-icon {
    display: none;
  }

  .destination-nav .nav-tutorial {
    padding: 0 10px;
  }
}

/* Keep the editor and prompt inside the viewport when restore controls are shown. */
.workspace-view:not([hidden]) { display: flex; flex-direction: column; }
.workspace-view > .workspace-toolbar { flex-shrink: 0; }
.workspace-view > .restore-controls { flex-shrink: 0; padding: 10px 20px; background: #f8f5ed; border-bottom: 1px solid var(--line); }
.workspace-view > .restore-confirm { flex-shrink: 0; margin: 10px 12px; }
.workspace-view > .workspace-grid { flex: 1; height: auto; }
@media (max-width: 700px) {
  .workspace-view > .restore-controls { gap: 5px; padding: 8px 12px; }
  .restore-controls > span { flex-basis: 100%; font-size: 12px; }
  .workspace-view > .restore-confirm { padding: 12px; gap: 10px; }
  .restore-confirm p { font-size: 12px; }
}

/* Saved reply actions stay with the conversation they restore. */
.message-restore { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 8px 10px; border: 1px solid #a4c2b7; border-radius: 7px; background: #edf5ef; color: #234c43; font: 600 12px/1.5 Manrope, sans-serif; cursor: pointer; text-align: left; }
.message-restore span { font-size: 11px; border-left: 1px solid #a4c2b7; padding-left: 8px; }
.message-restore:disabled { opacity: .5; cursor: default; }
.message-restore:focus-visible, .saved-conversations summary:focus-visible { outline: 2px solid #317b6a; outline-offset: 3px; }
.message-version { display: block; margin-top: 9px; font-size: 11px; color: #746c62; }
.current-version { color: #286457; font-weight: 700; }
.saved-conversations { border: 1px solid #d8d0c3; border-radius: 8px; margin-bottom: 18px; padding: 12px; background: #f3f0e8; }
.saved-conversations summary { cursor: pointer; color: #234c43; font-size: 13px; font-weight: 700; }
.saved-conversations > p { font-size: 12px; color: #746c62; margin: 10px 0 16px; }
.saved-conversations .message { margin-top: 16px; }
.saved-conversations .message > div { min-width: 0; }

/* Give a format question enough reading space before the user chooses a web build. */
@media (max-width: 700px) {
  .awaiting-format .preview-panel { height: 32%; flex-basis: 32%; }
  .awaiting-format .conversation-panel { height: 68%; flex-basis: 68%; }
  .awaiting-format-empty .preview-panel { display: none; }
  .awaiting-format-empty .conversation-panel { height: 100%; flex-basis: 100%; }
}

.resume-build { display: block; width: 100%; margin: 0 0 20px; padding: 14px 18px; color: #234c43; background: #edf5ef; border: 1px solid #a4c2b7; border-radius: 9px; font: 600 14px/1.6 Manrope, sans-serif; text-align: left; cursor: pointer; }
.resume-build[hidden] { display: none; }
.resume-build:focus-visible { outline: 2px solid #317b6a; outline-offset: 3px; }

@media (max-width: 600px) {
  .preview-building strong { max-width: 100%; padding: 0 12px; font-size: 20px; line-height: 1.3; }
}

/* Confirm browser projects before moving them into a signed-in account. */
.guest-import-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1380px, calc(100% - 32px)); padding: 18px 24px; margin: 20px auto 0; border: 1px solid #a4c5bb; border-radius: 14px; background: #edf5ef; }
.guest-import-banner[hidden] { display: none; }
.guest-import-banner strong { font-size: 16px; }
.guest-import-banner p { margin: 5px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.guest-import-banner .button { flex-shrink: 0; }
.guest-import-dialog { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 30px; border: 1px solid #d8d0c3; border-radius: 20px; background: #fcfaf5; color: #121214; box-shadow: 0 24px 80px #12121433; }
.guest-import-dialog::backdrop { background: #121c19a6; }
.guest-import-dialog h2 { font: 500 30px/1.15 Fraunces, Georgia, serif; margin: 12px 0; }
.guest-import-dialog p { font-size: 13px; line-height: 1.6; }
.guest-import-account { display: grid; gap: 5px; padding: 14px 16px; margin: 18px 0; background: #edf5ef; border-radius: 10px; overflow-wrap: anywhere; }
.guest-import-account span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #41695e; }
.guest-import-account strong { font-size: 14px; }
.guest-import-list { list-style: none; padding: 0; margin: 16px 0; max-height: 180px; overflow-y: auto; }
.guest-import-list li { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid #e3ded3; overflow-wrap: anywhere; }
.guest-import-list strong { font-size: 14px; }
.guest-import-list span, .guest-import-later { color: #656b63; font-size: 12px; }
.guest-import-note { color: #315e50; }
.guest-import-error { color: #a13927; }
.guest-import-error:empty { display: none; }
.guest-import-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.guest-import-actions .button { font-size: 13px; }
@media (max-width: 600px) {
  .guest-import-banner { align-items: stretch; flex-direction: column; padding: 16px; }
  .guest-import-dialog { padding: 22px; }
  .guest-import-dialog h2 { font-size: 26px; }
  .guest-import-actions { flex-direction: column-reverse; }
  .guest-import-actions .button { width: 100%; justify-content: center; }
}
