/* This file's own rules are as they were before the November 2026 earth palette, so everything that
   reaches print is unchanged. The `@media screen` line directly after a rule gives that rule its
   earth-palette colors on screens; it sits there, and not at the end, so nothing else in the cascade
   wins or loses that did not before. tools/earth-tone-grade/print-check.mjs verifies this. */
:root {
  color-scheme: light;
  --navy-950: #101c2b;
  --navy-900: #14273b;
  --navy-800: #1f3850;
  --navy-700: #2f526a;
  --ink: #1b2b36;
  --muted: #667782;
  --cream: #f7f3ea;
  --cream-deep: #eee7da;
  --paper: #fffdf9;
  --white: #ffffff;
  --green-700: #346b55;
  --green-600: #4f8064;
  --green-100: #e8f1e9;
  --copper-700: #a05f3f;
  --copper-500: #c78359;
  --copper-100: #f8e9dd;
  --line: #dfe5e0;
  --error: #a04342;
  --error-bg: #fceceb;
  --shadow: 0 18px 45px rgba(23, 47, 63, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
@media screen { :root { --navy-950: #1a1c1f; --navy-900: #242629; --navy-800: #343639; --navy-700: #4c4e51; --ink: #27292c; --muted: #727579; --cream: #f1f4f6; --cream-deep: #e6e8ea; --paper: #fcfdff; --green-700: #56595d; --green-600: #68725c; --green-100: #eceff1; --copper-700: #96654e; --copper-500: #bd876e; --copper-100: #eaecee; --line: #e1e4e6; --error: #905335; --error-bg: #eef1f3; --shadow: 0 18px 45px rgba(42, 44, 47, 0.08); } }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(199, 131, 89, 0.5);
  outline-offset: 2px;
}
@media screen { button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(189, 135, 110, 0.5); } }

a {
  color: var(--green-700);
}

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

.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.8rem clamp(1.1rem, 4vw, 4rem);
  background: var(--navy-950);
  color: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 200px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px 4px 12px 4px;
  color: #f7d7ba;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
@media screen { .brand-mark { color: #dbdde0; } }

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.prototype-badge {
  flex: 1;
  color: #d5dfdc;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-align: center;
}
@media screen { .prototype-badge { color: #dbdddf; } }

.account-mount {
  min-width: 180px;
}

.account-switcher {
  display: grid;
  gap: 0.2rem;
  color: var(--white);
  font-size: 0.78rem;
}

.account-switcher select {
  min-width: 150px;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: var(--navy-800);
  color: var(--white);
}

.app-body {
  display: grid;
  grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3.2rem) 1.25rem;
  background: var(--navy-900);
  color: var(--white);
}

.sidebar-intro {
  padding: 0 0.55rem;
}

.sidebar-intro p {
  max-width: 18rem;
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.88rem;
}

.eyebrow {
  color: var(--copper-700);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: #efb987;
}
@media screen { .sidebar .eyebrow { color: #e1bf91; } }

.primary-nav {
  display: grid;
  gap: 0.35rem;
}

.nav-item {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.nav-item.active {
  box-shadow: inset 3px 0 var(--copper-500);
}

.sidebar-note {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: auto;
  padding: 0.85rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
}

.sidebar-note p {
  margin: 0;
}

.note-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(79, 128, 100, 0.15);
}
@media screen { .note-dot { box-shadow: 0 0 0 4px rgba(104, 114, 92, 0.15); } }

.main-content {
  width: 100%;
  max-width: 1180px;
  padding: clamp(1rem, 4vw, 3.75rem) clamp(1rem, 5vw, 5rem) 5rem;
}

.catalog-status,
.workspace-status {
  min-height: 1.55rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.catalog-status.success,
.workspace-status.success {
  color: var(--green-700);
}

.catalog-status.error,
.workspace-status.error,
.error-copy {
  color: var(--error);
}

.view-stack {
  display: grid;
  gap: 1.8rem;
  max-width: 920px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0.8rem;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.3vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h2 {
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h3 {
  color: var(--navy-900);
  font-size: 0.98rem;
}

.lede {
  max-width: 690px;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.catalog-note,
.muted-copy,
.field-help,
.source-subject,
.preview-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.catalog-note {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.55rem;
  border-radius: 5px;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
}

.builder-form,
.draft-editor,
.plan-card,
.privacy-card,
.empty-state,
.lesson-preview {
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 0.45rem;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 800;
}

.concept-picker {
  display: grid;
  gap: 0.4rem;
}

.concept-picker > .field-help {
  margin-bottom: 0.45rem;
}

.concept-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.concept-option:hover {
  border-color: var(--copper-500);
}

.concept-option input {
  accent-color: var(--green-700);
}

.concept-copy,
.format-copy {
  display: grid;
  gap: 0.1rem;
}

.concept-copy strong {
  color: var(--navy-900);
  font-size: 0.88rem;
}

.concept-subject,
.concept-source {
  color: var(--muted);
  font-size: 0.73rem;
}

.concept-source {
  white-space: nowrap;
}

.selected-count {
  margin-top: 0.2rem;
  color: var(--green-700);
  font-size: 0.77rem;
  font-weight: 800;
}

.option-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(300px, 1.45fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.option-fieldset {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.choice-chip,
.format-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.choice-chip:has(input:checked),
.format-option:has(input:checked) {
  border-color: var(--green-600);
  background: var(--green-100);
}

.choice-chip input,
.format-option input {
  margin-top: 0.25rem;
  accent-color: var(--green-700);
}

.format-copy span {
  color: var(--muted);
  font-size: 0.76rem;
}

.large-button {
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

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

.button.primary {
  background: var(--green-700);
  color: var(--white);
}

.button.primary:hover {
  background: var(--navy-800);
}

.button.secondary {
  border-color: var(--green-700);
  background: var(--white);
  color: var(--green-700);
}

.button.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--navy-800);
}

.button.ghost:hover,
.button.secondary:hover {
  border-color: var(--copper-500);
}

.button.danger {
  color: var(--error);
}

.action-bar,
.inline-actions,
.saved-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.privacy-callout {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--copper-500);
  background: var(--copper-100);
  color: var(--navy-900);
}

.privacy-callout p {
  margin-bottom: 0;
  color: var(--navy-800);
  font-size: 0.84rem;
}

.draft-editor {
  display: grid;
  gap: 1.5rem;
}

.section-heading h2 {
  margin-bottom: 0.35rem;
}

.editor-form {
  display: grid;
  gap: 1rem;
}

.editor-field {
  display: grid;
  gap: 0.35rem;
}

.field-label {
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 800;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid #ccd8d3;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
}
@media screen { input[type="text"], input[type="number"], textarea { border: 1px solid #d3d5d7; } }

textarea {
  min-height: 4.2rem;
  resize: vertical;
}

.steps-editor,
.questions-editor {
  display: grid;
  gap: 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.step-editor-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.step-editor-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.step-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
}

.minutes-input {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
}

.minutes-input input {
  width: 62px;
  padding: 0.42rem;
}

.source-section {
  display: grid;
  gap: 0.65rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.source-section h3 {
  margin-bottom: 0;
}

.source-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.source-card h3 {
  margin-bottom: 0.1rem;
}

.source-subject,
.source-row {
  margin-bottom: 0.2rem;
}

.source-row {
  font-size: 0.78rem;
}

.source-label {
  display: inline-block;
  width: 4.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.generation-preview {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.generation-preview summary {
  cursor: pointer;
  color: var(--navy-800);
  font-size: 0.86rem;
  font-weight: 800;
}

.request-preview {
  overflow: auto;
  margin: 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--navy-950);
  color: #dfe9e4;
  font-size: 0.76rem;
}
@media screen { .request-preview { color: #e4e7e9; } }

.preview-panel {
  padding-top: 0.5rem;
}

.lesson-preview {
  display: grid;
  gap: 0.9rem;
}

.lesson-preview h2 {
  margin-bottom: 0;
}

.preview-flow {
  display: grid;
  gap: 0.65rem;
}

.preview-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.7rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.preview-step .step-number {
  grid-row: span 2;
  background: var(--green-700);
}

.preview-step h3 {
  margin-bottom: 0.15rem;
}

.preview-step p {
  grid-column: 2;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.preview-section {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.preview-section h3 {
  margin-bottom: 0.45rem;
}

.preview-section li,
.preview-section p {
  color: var(--muted);
  font-size: 0.86rem;
}

.caution {
  padding: 0.9rem;
  border: 1px solid #ecd5bb;
  border-radius: 6px;
  background: #fff8ef;
}
@media screen { .caution { border: 1px solid #d7dadc; background: #f7fafc; } }

.caution p:last-child {
  margin-bottom: 0;
}

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

.saved-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.saved-card h2 {
  margin: 0.2rem 0;
  font-size: 1.25rem;
}

.saved-card p {
  margin-bottom: 0;
}

.empty-state {
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 0.4rem;
}

.plan-card,
.privacy-card {
  display: grid;
  gap: 0.85rem;
}

.plan-card h2 {
  margin-bottom: 0;
}

.pilot-access-notice,
.admin-pilot-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid #ecd5bb;
  border-radius: 7px;
  background: #fff8ef;
}
@media screen { .pilot-access-notice, .admin-pilot-panel { border: 1px solid #d7dadc; background: #f7fafc; } }

.pilot-access-notice p,
.admin-pilot-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-pilot-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: var(--green-100);
  border-color: #c7d9d0;
}
@media screen { .admin-pilot-panel { border-color: #d2d4d6; } }

.admin-pilot-panel .eyebrow,
.admin-pilot-panel h2,
.admin-pilot-panel .admin-pilot-status {
  grid-column: 1;
}

.admin-pilot-panel h2 {
  margin: 0;
}

.admin-pilot-panel .button {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.admin-pilot-panel [role="alert"] {
  color: var(--error);
}

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

.plan-grid p {
  min-height: 5rem;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 0.82rem;
}

.plan-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy-800);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.account-identifier {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.toggle-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 800;
}

.toggle-row input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green-700);
}

.storage-state {
  margin-bottom: 0;
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.loading-panel {
  display: grid;
  max-width: 600px;
  gap: 0.6rem;
  padding: clamp(2rem, 7vw, 5rem) 0;
}

.loading-panel h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.loading-panel p {
  color: var(--muted);
}

.loading-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px 6px 16px 6px;
  background: var(--navy-900);
  color: #f4c59c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
@media screen { .loading-mark { color: #e7cba3; } }

.error-panel {
  padding-top: 2rem;
}

.link-error {
  color: var(--error);
  font-size: 0.76rem;
}

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

.noscript-message {
  max-width: 46rem;
  margin: 3rem auto;
  padding: 1rem;
  border: 1px solid var(--copper-500);
  background: var(--copper-100);
  color: var(--navy-900);
}

@media (max-width: 940px) {
  .topbar {
    flex-wrap: wrap;
  }

  .prototype-badge {
    order: 3;
    flex-basis: 100%;
    text-align: left;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 1.2rem;
    padding: 1rem;
  }

  .sidebar-intro {
    display: none;
  }

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

  .sidebar-note {
    display: none;
  }

  .nav-item {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 0.8rem;
  }

  .brand {
    min-width: 0;
  }

  .account-mount {
    margin-left: auto;
    min-width: 0;
  }

  .account-switcher select {
    min-width: 110px;
  }

  .main-content {
    padding: 1.1rem 0.9rem 3rem;
  }

  .primary-nav {
    grid-template-columns: 1fr;
  }

  .nav-item {
    text-align: left;
  }

  .option-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

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

  .concept-source {
    grid-column: 2;
  }

  .saved-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .saved-card-actions {
    width: 100%;
  }

  .saved-card-actions .button {
    flex: 1;
  }

  .action-bar .button {
    flex: 1 1 calc(50% - 0.55rem);
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  .topbar,
  .sidebar,
  .catalog-status,
  .workspace-status,
  .build-section,
  .draft-editor,
  .action-bar,
  .source-section,
  .generation-preview {
    display: none !important;
  }

  .app-body {
    display: block;
  }

  .main-content {
    max-width: none;
    padding: 0;
  }

  .lesson-preview,
  .preview-panel {
    border: 0;
    box-shadow: none;
  }

  .student-print-panel {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .student-worksheet {
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  .screen-only {
    display: none !important;
  }

  .student-worksheet .screen-only {
    display: none !important;
  }
}

/* Local subject, age, and reviewed-range controls stay easy to scan on narrow screens. */
.composer-subject-filter,
.composer-age-filter,
.journey-learner-age {
  display: grid;
  gap: 0.35rem;
}

.composer-subject-filter select,
.composer-age-filter select,
.journey-learner-age select {
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
}

.composer-source-note,
.journey-suggestion-source {
  display: block;
}

.learning-map-disclosure {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 1px solid rgba(120, 228, 235, 0.18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(11, 31, 51, 0.82), rgba(12, 16, 39, 0.92));
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.18);
}
@media screen { .learning-map-disclosure { border: 1px solid rgba(192, 208, 180, 0.18); background: linear-gradient(145deg, rgba(28, 30, 33, 0.82), rgba(16, 18, 21, 0.92)); } }

.learning-map-disclosure h2 {
  margin-bottom: 0;
}

.learning-map-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(150px, 0.8fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.learning-map-controls input,
.learning-map-controls select,
.learning-map-controls .button {
  min-height: 42px;
}

.learning-map-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.learning-map-topic {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(221, 217, 255, 0.14);
  border-radius: 14px;
  background: rgba(7, 10, 25, 0.47);
  color: var(--white);
  text-align: left;
}
@media screen { .learning-map-topic { border: 1px solid rgba(220, 222, 224, 0.14); background: rgba(9, 11, 13, 0.47); } }

.learning-map-topic strong {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.learning-map-topic span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.65rem;
}

.learning-map-topic:hover,
.learning-map-topic.selected {
  border-color: rgba(120, 228, 235, 0.58);
  background: rgba(120, 228, 235, 0.1);
  box-shadow: 0 0 24px rgba(120, 228, 235, 0.11);
}
@media screen { .learning-map-topic:hover, .learning-map-topic.selected { border-color: rgba(192, 208, 180, 0.58); background: rgba(192, 208, 180, 0.1); box-shadow: 0 0 24px rgba(192, 208, 180, 0.11); } }

.learning-map-detail {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
  border: 1px solid rgba(185, 167, 255, 0.2);
  border-radius: 16px;
  background: rgba(7, 10, 25, 0.45);
}
@media screen { .learning-map-detail { border: 1px solid rgba(222, 228, 238, 0.2); background: rgba(9, 11, 13, 0.45); } }

.learning-map-detail h3,
.learning-map-detail p {
  margin-bottom: 0;
}

.learning-map-connections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.learning-map-connections section {
  padding: 0.75rem;
  border: 1px solid rgba(221, 217, 255, 0.1);
  border-radius: 12px;
  background: rgba(17, 22, 54, 0.64);
}
@media screen { .learning-map-connections section { border: 1px solid rgba(220, 222, 224, 0.1); background: rgba(24, 26, 29, 0.64); } }

.learning-map-connections strong {
  color: #d9d1ff;
  font-size: 0.72rem;
}
@media screen { .learning-map-connections strong { color: #d6d9db; } }

.learning-map-observation {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(221, 217, 255, 0.12);
}
@media screen { .learning-map-observation { border-top: 1px solid rgba(220, 222, 224, 0.12); } }

.learning-map-observation h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.learning-map-observation-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

@media (max-width: 820px) {
  .learning-map-controls,
  .learning-map-results,
  .learning-map-connections,
  .learning-map-observation-form {
    grid-template-columns: 1fr;
  }
}

/* Account and generated-draft surfaces */
.account-summary,
.visitor-account {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.account-summary .account-usage {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.account-summary .eyebrow {
  margin-right: 0.15rem;
}

.compact-button {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.workflow-step {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
}

.workflow-step strong {
  color: var(--navy-900);
  font-size: 0.84rem;
}

.workflow-number {
  color: var(--copper-700);
  font-size: 0.73rem;
  font-weight: 900;
}

.ai-status-copy {
  max-width: 52rem;
  margin-top: 0.65rem;
}

.worksheet-editor {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-100);
}

.worksheet-editor .editor-field {
  background: rgba(255, 255, 255, 0.74);
}

.generation-meta {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.parent-guide {
  border-left: 3px solid var(--copper-500);
  padding-left: 1rem;
}

/* Adult-only administration surface */
.admin-view {
  max-width: 1180px;
}

.admin-access-panel,
.admin-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-access-panel h1,
.admin-panel h1 {
  margin-bottom: 0.15rem;
}

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

.admin-header .lede {
  margin-bottom: 0;
}

.admin-live-status {
  min-height: 1.3rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-live-status[role="alert"] {
  color: var(--error);
}

.admin-loading {
  padding: 2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  text-align: center;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.admin-table th,
.admin-table td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.admin-table th {
  background: var(--cream-deep);
  color: var(--navy-900);
  font-size: 0.69rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

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

.admin-account-id {
  max-width: 16rem;
  color: var(--navy-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  min-width: 12.5rem;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.admin-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.admin-pagination {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.admin-pagination .button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .admin-pilot-panel {
    grid-template-columns: 1fr;
  }

  .admin-pilot-panel .button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header > .button {
    align-self: flex-start;
  }

  .admin-pagination {
    justify-content: stretch;
  }

  .admin-pagination .button {
    flex: 1;
  }
}

.billing-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.student-print-panel {
  max-width: 760px;
  margin: 0 auto;
}

.student-worksheet {
  padding: clamp(1rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-950);
}

.worksheet-header {
  margin-bottom: 1.3rem;
  border-bottom: 2px solid var(--navy-900);
  padding-bottom: 0.8rem;
  break-after: avoid;
  page-break-after: avoid;
}

.worksheet-header h1 {
  margin: 0.25rem 0 0.3rem;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.worksheet-duration,
.worksheet-provenance {
  color: var(--muted);
  font-size: 0.75rem;
}

.worksheet-instructions {
  margin: 1rem 0 1.2rem;
  font-weight: 700;
}

.worksheet-items {
  display: grid;
  gap: 1.3rem;
  margin: 0;
  padding-left: 1.45rem;
}

.worksheet-item {
  padding-left: 0.2rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.worksheet-prompt {
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.worksheet-answer-lines {
  display: grid;
  gap: 0.65rem;
}

.worksheet-answer-line {
  min-height: 1.3rem;
  border-bottom: 1px solid #65717a;
}
@media screen { .worksheet-answer-line { border-bottom: 1px solid #6c6f73; } }

.worksheet-provenance {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

@media (max-width: 640px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

.photo-review-panel,
.admin-code-panel,
.access-code-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.photo-review-panel {
  border-color: #c9ddd0;
  background: linear-gradient(145deg, #fffdf9, #f4f8f2);
}
@media screen { .photo-review-panel { border-color: #d5d7d9; background: linear-gradient(145deg, #fcfdff, #f5f7f9); } }

.photo-picker {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px dashed var(--green-600);
  border-radius: 8px;
  background: var(--white);
}

.transmitted-preview {
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.transmitted-preview img {
  display: block;
  width: min(100%, 640px);
  max-height: 520px;
  margin: 0 auto;
  object-fit: contain;
  background: #f5f5f2;
}
@media screen { .transmitted-preview img { background: #f3f5f7; } }

.transmitted-preview figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.consent-row {
  align-items: flex-start;
  line-height: 1.45;
}

.consent-row input {
  flex: 0 0 auto;
  margin-top: 0.25rem;
}

.review-items {
  display: grid;
  gap: 0.8rem;
}

.review-item {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.review-item h3 {
  margin: 0;
}

.review-summary {
  max-width: 72ch;
  font-size: 1.05rem;
}

.suggested-score {
  margin: 0;
  color: var(--green-700);
  font-weight: 800;
}

.review-record-details {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.review-record-details summary {
  cursor: pointer;
  color: var(--navy-800);
  font-size: 0.86rem;
  font-weight: 800;
}

.review-record-items {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.review-record-item {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--sand-50);
}

.review-record-item h3,
.review-record-item p {
  margin: 0;
}

.review-record-item h3 {
  color: var(--navy-800);
  font-size: 0.9rem;
}

.review-record-item p {
  margin-top: 0.35rem;
  white-space: pre-wrap;
}

.review-record-next-step {
  margin: 0.8rem 0 0;
}

.review-record-image {
  margin: 0.9rem 0 0;
}

.review-record-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #f5f5f2;
}
@media screen { .review-record-image img { background: #f3f5f7; } }

.review-record-image figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.success-copy {
  color: var(--green-700);
  font-weight: 700;
}

.one-time-access-code {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--copper-500);
  border-radius: 8px;
  background: var(--copper-100);
}

.one-time-access-code code {
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border-radius: 5px;
  background: var(--white);
  color: var(--navy-950);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.admin-code-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-code-table th,
.admin-code-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-code-table th {
  color: var(--navy-900);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .admin-code-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .photo-review-panel .action-bar,
  .access-code-panel .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/*
 * Journey direction
 * ------------------
 * The workspace is intentionally quiet and ink-dark so the small subject
 * glows carry the eye. The classes above keep the older account/admin/review
 * controls available; these overrides give every surface the same visual
 * language without changing those flows.
 */
:root {
  color-scheme: dark;
  --navy-950: #080b1c;
  --navy-900: #0e1230;
  --navy-800: #171b40;
  --navy-700: #24285a;
  --ink: #f4efe4;
  --muted: #aaa9c1;
  --cream: #080b1c;
  --cream-deep: #11152e;
  --paper: #121735;
  --white: #fffaf0;
  --line: rgba(221, 217, 255, 0.16);
  --green-700: #8de4df;
  --green-600: #5ac2cd;
  --green-100: rgba(90, 194, 205, 0.12);
  --copper-700: #f0c777;
  --copper-500: #e8b45f;
  --copper-100: rgba(232, 180, 95, 0.12);
  --error: #ff9f9a;
  --error-bg: rgba(255, 159, 154, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --violet: #b9a7ff;
  --cyan: #78e4eb;
  --rose: #f6a9c9;
  --gold: #f0c777;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media screen { :root { --navy-950: #0b0d0f; --navy-900: #141618; --navy-800: #1e2023; --navy-700: #2d2f32; --ink: #edf0f2; --muted: #a9acb0; --cream: #0b0d0f; --cream-deep: #15171a; --paper: #181a1d; --white: #f9fbfd; --line: rgba(220, 222, 224, 0.16); --green-700: #c3d1b9; --green-600: #a0b095; --green-100: rgba(160, 176, 149, 0.12); --copper-700: #e6c47c; --copper-500: #e1b676; --copper-100: rgba(225, 182, 118, 0.12); --error: #edac8e; --error-bg: rgba(237, 172, 142, 0.12); --violet: #d58d69; --cyan: #c0d0b4; --rose: #e4b7ae; --gold: #e6c47c; } }

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 8%, rgba(110, 91, 190, 0.19), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(48, 173, 199, 0.12), transparent 34rem),
    linear-gradient(135deg, #070a19, #0c1029 48%, #080a1b);
  color: var(--ink);
}
@media screen { body { background: radial-gradient(circle at 8% 8%, rgba(136, 103, 74, 0.19), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(134, 160, 178, 0.12), transparent 34rem),
    linear-gradient(135deg, #090b0d, #111315 48%, #0a0c0e); } }

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 22% 26%, rgba(255,255,255,0.55) 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 62%, rgba(177,218,255,0.5) 0 1px, transparent 1.6px),
    radial-gradient(circle at 42% 78%, rgba(255,218,164,0.35) 0 1px, transparent 1.5px);
  background-size: 280px 220px, 340px 280px, 420px 310px;
  content: "";
  opacity: 0.28;
}
@media screen { body::before { background-image: radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 62%, rgba(211, 213, 215, 0.5) 0 1px, transparent 1.6px),
    radial-gradient(circle at 42% 78%, rgba(249, 219, 177, 0.35) 0 1px, transparent 1.5px); } }

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(420px, 1.8fr) minmax(210px, 0.9fr);
  min-height: 78px;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.1rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(214, 208, 255, 0.11);
  background: rgba(8, 11, 28, 0.84);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}
@media screen { .topbar { border-bottom: 1px solid rgba(213, 215, 217, 0.11); background: rgba(11, 13, 15, 0.84); } }

.brand {
  min-width: 0;
  color: var(--white);
}

.brand-mark {
  display: block;
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: url("/workspace-assets/assets/woven-p-dark-3ed54228-180.png") center / contain no-repeat;
  box-shadow: none;
  font-size: 0;
}
.brand-mark .brand-star { display: none; }

.brand-star {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 7px var(--white);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  color: rgba(244, 239, 228, 0.57);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}
@media screen { .brand-subtitle { color: rgba(237, 240, 242, 0.57); } }

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

.account-mount {
  min-width: 0;
  justify-self: end;
}

.account-summary,
.visitor-account {
  justify-content: flex-end;
}

.account-summary .eyebrow,
.visitor-account .eyebrow {
  color: var(--gold);
}

.account-summary strong {
  color: var(--white);
}

.environment-banner {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.account-switcher select,
.account-mount select {
  border-color: rgba(221, 217, 255, 0.24);
  background: rgba(24, 29, 66, 0.92);
  color: var(--white);
}
@media screen { .account-switcher select, .account-mount select { border-color: rgba(220, 222, 224, 0.24); background: rgba(31, 33, 36, 0.92); } }

.primary-nav {
  display: flex;
  min-width: 0;
  gap: 0.24rem;
  justify-content: center;
}

.nav-item {
  width: auto;
  min-height: 2.3rem;
  padding: 0.52rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(244, 239, 228, 0.66);
  font-size: 0.74rem;
  letter-spacing: 0.015em;
  text-align: center;
}
@media screen { .nav-item { color: rgba(237, 240, 242, 0.66); } }

.nav-item:hover,
.nav-item.active {
  border-color: rgba(185, 167, 255, 0.32);
  background: rgba(185, 167, 255, 0.13);
  color: var(--white);
}
@media screen { .nav-item:hover, .nav-item.active { border-color: rgba(222, 228, 238, 0.32); background: rgba(222, 228, 238, 0.13); } }

.nav-item.active {
  box-shadow: 0 0 18px rgba(185, 167, 255, 0.13);
}
@media screen { .nav-item.active { box-shadow: 0 0 18px rgba(222, 228, 238, 0.13); } }

.app-body {
  display: block;
  min-height: calc(100vh - 78px);
}

.main-content {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2.25rem) clamp(1rem, 5vw, 5rem) 6rem;
}

.catalog-status,
.workspace-status {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(216, 211, 242, 0.62);
}
@media screen { .catalog-status, .workspace-status { color: rgba(214, 216, 218, 0.62); } }

h1,
h2,
h3,
legend {
  color: var(--white);
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.65rem, 6vw, 5.9rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  letter-spacing: -0.035em;
}

h3 {
  color: var(--white);
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow,
.journey-hero-eyebrow {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journey-hero-eyebrow {
  margin-bottom: 1rem;
  color: var(--cyan);
}

.button {
  min-height: 42px;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  font-size: 0.77rem;
  letter-spacing: 0.02em;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.button.primary {
  border-color: rgba(141, 228, 223, 0.45);
  background: linear-gradient(135deg, #79dbd7, #5b9dcd);
  color: #071022;
}
@media screen { .button.primary { border-color: rgba(195, 209, 185, 0.45); background: linear-gradient(135deg, #b8c7ad, #7f9aac); color: #0f1113; } }

.button.primary:hover {
  background: linear-gradient(135deg, #a2f5eb, #75bbe9);
}
@media screen { .button.primary:hover { background: linear-gradient(135deg, #d4e1ca, #9bb6c9); } }

.button.secondary {
  border-color: rgba(185, 167, 255, 0.42);
  background: rgba(185, 167, 255, 0.1);
  color: #e3ddff;
}
@media screen { .button.secondary { border-color: rgba(222, 228, 238, 0.42); background: rgba(222, 228, 238, 0.1); color: #e0e2e5; } }

.button.ghost {
  border-color: rgba(221, 217, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}
@media screen { .button.ghost { border-color: rgba(220, 222, 224, 0.16); } }

.button.ghost:hover,
.button.secondary:hover {
  border-color: rgba(120, 228, 235, 0.58);
  background: rgba(120, 228, 235, 0.1);
  color: var(--white);
}
@media screen { .button.ghost:hover, .button.secondary:hover { border-color: rgba(192, 208, 180, 0.58); background: rgba(192, 208, 180, 0.1); } }

input[type="text"],
input[type="number"],
textarea,
select {
  border-color: rgba(221, 217, 255, 0.21);
  background: rgba(7, 10, 25, 0.65);
  color: var(--white);
}
@media screen { input[type="text"], input[type="number"], textarea, select { border-color: rgba(220, 222, 224, 0.21); background: rgba(9, 11, 13, 0.65); } }

input::placeholder,
textarea::placeholder {
  color: rgba(170, 169, 193, 0.65);
}
@media screen { input::placeholder, textarea::placeholder { color: rgba(169, 172, 176, 0.65); } }

.privacy-callout,
.plan-card,
.privacy-card,
.empty-state,
.lesson-preview,
.builder-form,
.draft-editor,
.photo-review-panel,
.admin-code-panel,
.access-code-panel,
.admin-access-panel,
.admin-panel {
  border-color: var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22, 27, 63, 0.92), rgba(13, 17, 42, 0.86));
  box-shadow: var(--shadow);
}
@media screen { .privacy-callout, .plan-card, .privacy-card, .empty-state, .lesson-preview, .builder-form, .draft-editor, .photo-review-panel, .admin-code-panel, .access-code-panel, .admin-access-panel, .admin-panel { background: linear-gradient(145deg, rgba(29, 31, 34, 0.92), rgba(18, 20, 22, 0.86)); } }

.privacy-callout {
  border-left-color: var(--gold);
  background: linear-gradient(120deg, rgba(240, 199, 119, 0.11), rgba(185, 167, 255, 0.05));
  color: var(--white);
}
@media screen { .privacy-callout { background: linear-gradient(120deg, rgba(230, 196, 124, 0.11), rgba(222, 228, 238, 0.05)); } }

.privacy-callout p,
.muted-copy,
.field-help,
.source-subject,
.preview-meta {
  color: var(--muted);
}

.journey-view {
  max-width: 1220px;
  gap: 1.25rem;
}

.map-connection-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.map-connection-link { border: 1px solid var(--line); background: rgba(130, 210, 225, 0.07); color: #c1e5e7; padding: 0.55rem 0.8rem; border-radius: 16px; text-align: left; }
@media screen { .map-connection-link { background: rgba(181, 194, 172, 0.07); color: #d5d7d9; } }
.map-connection-link:hover { border-color: #b5a3e2; background: rgba(181, 163, 226, 0.13); }
@media screen { .map-connection-link:hover { border-color: #c7a98f; background: rgba(199, 169, 143, 0.13); } }

.journey-hero {
  display: grid;
  gap: 0.5rem;
  max-width: 820px;
}

.journey-hero .journey-hero-eyebrow {
  margin-bottom: 0;
}

.journey-view > h1,
.journey-hero > h1 {
  max-width: 780px;
  margin-bottom: 0.25rem;
  color: var(--white);
  font-size: clamp(2.75rem, 4.5vw, 3.6rem);
}

.journey-lede {
  max-width: 650px;
  margin-bottom: 0.45rem;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  line-height: 1.42;
}

.journey-learner-panel,
.journey-galaxy-shell,
.journey-observation-panel,
.journey-next-panel {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(19, 23, 55, 0.87), rgba(12, 16, 39, 0.91));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.21);
}
@media screen { .journey-learner-panel, .journey-galaxy-shell, .journey-observation-panel, .journey-next-panel { background: linear-gradient(145deg, rgba(25, 27, 30, 0.87), rgba(16, 18, 21, 0.91)); } }

.journey-learner-panel {
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  align-items: end;
  gap: 0.55rem 1.35rem;
  padding: 1rem 1.35rem 0.85rem;
}

.journey-learner-intro {
  display: grid;
  gap: 0.2rem;
  align-self: center;
}

.journey-learner-intro h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.journey-learner-intro p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.journey-learner-panel .journey-learner-controls {
  min-width: 0;
}

.journey-learner-panel .journey-storage-note {
  grid-column: 1 / -1;
}

.journey-learner-panel h2,
.journey-galaxy-shell h2,
.journey-observation-panel h2,
.journey-next-panel h2 {
  margin-bottom: 0;
}

.journey-learner-controls {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(190px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.journey-learner-select,
.journey-add-learner,
.journey-assignment-label,
.composer-primary-concept {
  display: grid;
  gap: 0.35rem;
}

.journey-storage-note {
  margin: 0;
  color: rgba(170, 169, 193, 0.78);
  font-size: 0.72rem;
}
@media screen { .journey-storage-note { color: rgba(169, 172, 176, 0.78); } }

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

.journey-stat {
  min-height: 5.5rem;
  display: grid;
  align-content: center;
  gap: 0.2rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(221, 217, 255, 0.13);
  border-radius: 18px;
  background: rgba(14, 18, 48, 0.72);
}
@media screen { .journey-stat { border: 1px solid rgba(220, 222, 224, 0.13); background: rgba(20, 22, 24, 0.72); } }

.journey-stat strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1;
}

.journey-stat span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.journey-stats-note {
  grid-column: 1 / -1;
  margin: 0;
}

.journey-galaxy-shell {
  overflow: hidden;
  padding-bottom: 2.6rem;
}

.journey-galaxy {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.2rem, 5vw, 4.5rem);
  isolation: isolate;
  min-height: 22rem;
  padding: clamp(1rem, 4vw, 2.2rem) 0.2rem 0.2rem;
}

.journey-galaxy::before {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 166, 255, 0.17), rgba(102, 87, 183, 0.07) 44%, transparent 70%);
  box-shadow: 0 0 70px rgba(123, 102, 214, 0.25);
  content: "";
  transform: translate(-50%, -50%);
}
@media screen { .journey-galaxy::before { background: radial-gradient(circle, rgba(210, 174, 143, 0.17), rgba(130, 97, 68, 0.07) 44%, transparent 70%); box-shadow: 0 0 70px rgba(150, 116, 87, 0.25); } }

.journey-orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(185, 167, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-14deg);
}
@media screen { .journey-orbit { border: 1px solid rgba(222, 228, 238, 0.14); } }

.orbit-one { width: 94%; height: 38%; }
.orbit-two { width: 62%; height: 82%; transform: translate(-50%, -50%) rotate(26deg); }
.orbit-three { width: 42%; height: 116%; transform: translate(-50%, -50%) rotate(72deg); }

.journey-galaxy-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7);
}

.star-a { top: 10%; left: 18%; }
.star-b { top: 68%; left: 82%; background: var(--cyan); }
.star-c { top: 42%; left: 54%; background: var(--gold); }

.journey-subject-group {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(221, 217, 255, 0.11);
  border-radius: 20px;
  background: rgba(10, 14, 34, 0.58);
}
@media screen { .journey-subject-group { border: 1px solid rgba(220, 222, 224, 0.11); background: rgba(14, 16, 18, 0.58); } }

.journey-subject-group h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-subject-caption {
  color: rgba(170, 169, 193, 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media screen { .journey-subject-caption { color: rgba(169, 172, 176, 0.6); } }

.subject-0 h3 { color: var(--violet); }
.subject-1 h3 { color: var(--cyan); }
.subject-2 h3 { color: var(--gold); }
.subject-3 h3 { color: var(--rose); }
.subject-4 h3 { color: #b9d1ff; }
@media screen { .subject-4 h3 { color: #cfd1d3; } }

.journey-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-top: 0.55rem;
}

.journey-topic {
  display: grid;
  min-width: 0;
  gap: 0.42rem;
  padding: 0.65rem;
  border: 1px solid rgba(221, 217, 255, 0.1);
  border-radius: 15px;
  background: rgba(22, 27, 62, 0.72);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
@media screen { .journey-topic { border: 1px solid rgba(220, 222, 224, 0.1); background: rgba(29, 31, 34, 0.72); } }

.journey-topic:hover,
.journey-topic.selected {
  border-color: rgba(120, 228, 235, 0.55);
  background: rgba(47, 61, 115, 0.62);
  box-shadow: 0 0 24px rgba(120, 228, 235, 0.12);
  transform: translateY(-2px);
}
@media screen { .journey-topic:hover, .journey-topic.selected { border-color: rgba(192, 208, 180, 0.55); background: rgba(85, 59, 36, 0.62); box-shadow: 0 0 24px rgba(192, 208, 180, 0.12); } }

.journey-topic-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
}

.journey-topic-button strong {
  overflow-wrap: anywhere;
  grid-column: 2;
  color: var(--white);
  font-size: 0.79rem;
  font-weight: 700;
}

.journey-topic-subject {
  overflow-wrap: anywhere;
  grid-column: 2;
  color: var(--muted);
  font-size: 0.65rem;
}

.journey-topic-orb {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(185, 167, 255, 0.64);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4e9ff 0 10%, #9a7ee8 24%, #2d2a6d 59%, transparent 61%);
  box-shadow: 0 0 14px rgba(185, 167, 255, 0.52);
}
@media screen { .journey-topic-orb { border: 1px solid rgba(222, 228, 238, 0.64); background: radial-gradient(circle at 35% 35%, #eceef1 0 10%, #af8c6e 24%, #4b2e11 59%, transparent 61%); box-shadow: 0 0 14px rgba(222, 228, 238, 0.52); } }

.journey-observation-label {
  width: fit-content;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  background: rgba(170, 169, 193, 0.1);
  color: rgba(170, 169, 193, 0.82);
  font-size: 0.61rem;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}
@media screen { .journey-observation-label { background: rgba(169, 172, 176, 0.1); color: rgba(169, 172, 176, 0.82); } }

.journey-observation-label.introduced { background: rgba(185, 167, 255, 0.14); color: #cdbfff; }
@media screen { .journey-observation-label.introduced { background: rgba(222, 228, 238, 0.14); color: #e2c3aa; } }
.journey-observation-label.practicing { background: rgba(120, 228, 235, 0.14); color: var(--cyan); }
@media screen { .journey-observation-label.practicing { background: rgba(192, 208, 180, 0.14); } }
.journey-observation-label.comfortable { background: rgba(240, 199, 119, 0.14); color: var(--gold); }
@media screen { .journey-observation-label.comfortable { background: rgba(230, 196, 124, 0.14); } }

.journey-observation-panel,
.journey-next-panel {
  max-width: 920px;
}

.review-learner-choice,
.learning-map-suggestions {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid rgba(120, 228, 235, 0.14);
  border-radius: 14px;
  background: rgba(7, 10, 25, 0.3);
}
@media screen { .review-learner-choice, .learning-map-suggestions { border: 1px solid rgba(192, 208, 180, 0.14); background: rgba(9, 11, 13, 0.3); } }

.review-learner-choice h3,
.learning-map-suggestions h3 {
  margin: 0;
  font-size: 1rem;
}

.review-learner-choice p,
.learning-map-suggestions p {
  margin: 0;
}

.review-learner-choice .editor-field {
  max-width: 24rem;
}

.learning-map-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.learning-map-suggestion {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(185, 167, 255, 0.18);
  border-radius: 14px;
  background: rgba(17, 22, 54, 0.64);
  color: var(--white);
  text-align: left;
}
@media screen { .learning-map-suggestion { border: 1px solid rgba(222, 228, 238, 0.18); background: rgba(24, 26, 29, 0.64); } }

.learning-map-suggestion:hover,
.learning-map-suggestion:focus-visible {
  border-color: rgba(120, 228, 235, 0.56);
  background: rgba(120, 228, 235, 0.1);
}
@media screen { .learning-map-suggestion:hover, .learning-map-suggestion:focus-visible { border-color: rgba(192, 208, 180, 0.56); background: rgba(192, 208, 180, 0.1); } }

.learning-map-suggestion strong,
.learning-map-suggestion span {
  overflow-wrap: anywhere;
}

.learning-map-suggestion strong {
  font-size: 0.76rem;
}

.learning-map-suggestion span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.journey-source-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.journey-observation-form {
  display: grid;
  grid-template-columns: minmax(170px, 0.48fr) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
}

.journey-observation-form .journey-observation-actions {
  display: none;
}

.journey-observation-form .button {
  white-space: nowrap;
}

.journey-empty-note {
  margin: 0;
  padding: 0.9rem;
  border: 1px dashed rgba(185, 167, 255, 0.3);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
@media screen { .journey-empty-note { border: 1px dashed rgba(222, 228, 238, 0.3); } }

.journey-suggestion-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.journey-suggestion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid rgba(221, 217, 255, 0.12);
  border-radius: 15px;
  background: rgba(17, 22, 54, 0.73);
}
@media screen { .journey-suggestion { border: 1px solid rgba(220, 222, 224, 0.12); background: rgba(24, 26, 29, 0.73); } }

.journey-suggestion-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.22rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(120, 228, 235, 0.8);
}
@media screen { .journey-suggestion-dot { box-shadow: 0 0 14px rgba(192, 208, 180, 0.8); } }

.journey-suggestion-copy {
  display: grid;
  gap: 0.23rem;
  min-width: 0;
}

.journey-suggestion-copy strong {
  overflow: hidden;
  color: var(--white);
  font-size: 0.81rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-suggestion-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.journey-suggestion .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.journey-assignment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(221, 217, 255, 0.1);
}
@media screen { .journey-assignment { border-top: 1px solid rgba(220, 222, 224, 0.1); } }

.journey-assignment .button {
  min-height: 34px;
  padding: 0.4rem 0.7rem;
}

.journey-assignment-label {
  min-width: 180px;
}

.journey-assignment select {
  min-height: 34px;
}

.work-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(221, 217, 255, 0.13);
  border-radius: 16px;
  background: rgba(18, 23, 53, 0.62);
}
@media screen { .work-filter { border: 1px solid rgba(220, 222, 224, 0.13); background: rgba(24, 26, 29, 0.62); } }

.work-filter-label {
  display: grid;
  min-width: min(100%, 250px);
  gap: 0.35rem;
}

.work-filter select {
  min-height: 38px;
}

.work-filter-count {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.backups-disclosure {
  border: 1px solid rgba(221, 217, 255, 0.13);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  background: rgba(18, 23, 53, 0.48);
}
@media screen { .backups-disclosure { border: 1px solid rgba(220, 222, 224, 0.13); background: rgba(24, 26, 29, 0.48); } }

.backups-disclosure > summary {
  cursor: pointer;
  color: #d6ccff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
@media screen { .backups-disclosure > summary { color: #d2d4d7; } }

.backups-disclosure[open] > summary {
  margin-bottom: 0.7rem;
}

.backups-disclosure > p {
  max-width: 62ch;
  margin: 0 0 0.75rem;
}

.build-section,
.create-activity-view {
  max-width: 920px;
}

.create-activity-view h1 {
  margin-bottom: 0.75rem;
}

.journey-composer {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.4rem;
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.composer-primary-concept select {
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
}

.composer-adjustments {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.composer-adjustments summary,
.full-editor-disclosure > summary,
.generation-preview summary {
  cursor: pointer;
  color: #d6ccff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
@media screen { .composer-adjustments summary, .full-editor-disclosure > summary, .generation-preview summary { color: #d2d4d7; } }

.composer-adjustments[open] summary,
.full-editor-disclosure[open] > summary {
  margin-bottom: 1rem;
}

.composer-additional-concepts {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.composer-additional-concepts .concept-option {
  border-color: rgba(221, 217, 255, 0.13);
  background: rgba(7, 10, 26, 0.45);
}
@media screen { .composer-additional-concepts .concept-option { border-color: rgba(220, 222, 224, 0.13); background: rgba(10, 12, 14, 0.45); } }

.option-grid {
  margin-top: 1.2rem;
}

.choice-chip,
.format-option,
.concept-option {
  border-color: rgba(221, 217, 255, 0.14);
  background: rgba(7, 10, 26, 0.45);
  color: var(--white);
}
@media screen { .choice-chip, .format-option, .concept-option { border-color: rgba(220, 222, 224, 0.14); background: rgba(10, 12, 14, 0.45); } }

.choice-chip:has(input:checked),
.format-option:has(input:checked) {
  border-color: rgba(120, 228, 235, 0.54);
  background: rgba(120, 228, 235, 0.11);
}
@media screen { .choice-chip:has(input:checked), .format-option:has(input:checked) { border-color: rgba(192, 208, 180, 0.54); background: rgba(192, 208, 180, 0.11); } }

.concept-option:hover {
  border-color: rgba(185, 167, 255, 0.56);
}
@media screen { .concept-option:hover { border-color: rgba(222, 228, 238, 0.56); } }

.draft-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.9rem 0 1.25rem;
}

.draft-primary-actions .button {
  min-width: 9rem;
}

.activity-preview .lesson-preview {
  border-color: rgba(185, 167, 255, 0.24);
  background: linear-gradient(145deg, rgba(24, 28, 67, 0.94), rgba(14, 18, 44, 0.92));
}
@media screen { .activity-preview .lesson-preview { border-color: rgba(222, 228, 238, 0.24); background: linear-gradient(145deg, rgba(31, 33, 36, 0.94), rgba(19, 21, 24, 0.92)); } }

.full-editor-disclosure {
  border-top: 1px solid rgba(221, 217, 255, 0.15);
  padding-top: 1rem;
}
@media screen { .full-editor-disclosure { border-top: 1px solid rgba(220, 222, 224, 0.15); } }

.full-editor-disclosure .draft-editor {
  margin-top: 1rem;
}

.draft-editor .source-section,
.draft-editor .generation-preview {
  opacity: 0.92;
}

.saved-card,
.review-record-card {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(18, 23, 53, 0.88);
  color: var(--ink);
}
@media screen { .saved-card, .review-record-card { background: rgba(24, 26, 29, 0.88); } }

.saved-card h2 {
  color: var(--white);
}

.plan-grid p,
.admin-table-wrap,
.admin-code-table,
.admin-table th,
.admin-table td,
.review-item,
.review-record-item,
.source-card,
.step-editor-card,
.worksheet-editor {
  border-color: var(--line);
  background: rgba(7, 10, 25, 0.52);
  color: var(--ink);
}
@media screen { .plan-grid p, .admin-table-wrap, .admin-code-table, .admin-table th, .admin-table td, .review-item, .review-record-item, .source-card, .step-editor-card, .worksheet-editor { background: rgba(9, 11, 13, 0.52); } }

.admin-table th,
.admin-code-table th {
  background: rgba(185, 167, 255, 0.09);
  color: #d9d1ff;
}
@media screen { .admin-table th, .admin-code-table th { background: rgba(222, 228, 238, 0.09); color: #d6d9db; } }

.admin-account-id,
.plan-grid strong,
.source-label,
.field-label {
  color: #d9d1ff;
}
@media screen { .admin-account-id, .plan-grid strong, .source-label, .field-label { color: #d6d9db; } }

.one-time-access-code,
.pilot-access-notice,
.admin-pilot-panel {
  border-color: rgba(240, 199, 119, 0.35);
  background: rgba(240, 199, 119, 0.1);
}
@media screen { .one-time-access-code, .pilot-access-notice, .admin-pilot-panel { border-color: rgba(230, 196, 124, 0.35); background: rgba(230, 196, 124, 0.1); } }

.loading-mark {
  border: 1px solid rgba(185, 167, 255, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle, #a995ff, #28245f 58%, #11152f);
  box-shadow: 0 0 26px rgba(185, 167, 255, 0.42);
}
@media screen { .loading-mark { border: 1px solid rgba(222, 228, 238, 0.45); background: radial-gradient(circle, #c4a082, #42270d 58%, #16181a); box-shadow: 0 0 26px rgba(222, 228, 238, 0.42); } }

.storage-state,
.success-copy,
.suggested-score {
  color: var(--cyan);
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: minmax(160px, 0.7fr) minmax(300px, 1.5fr) minmax(150px, 0.8fr);
    gap: 0.75rem;
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .nav-item {
    padding-right: 0.52rem;
    padding-left: 0.52rem;
    font-size: 0.68rem;
  }
}

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

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .account-mount {
    grid-column: 2;
    grid-row: 1;
  }

  .journey-galaxy,
  .journey-suggestion-list,
  .journey-learner-controls,
  .journey-observation-form {
    grid-template-columns: 1fr;
  }

  .journey-galaxy {
    gap: 1rem;
  }

  .journey-observation-form .button {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .main-content {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4.3rem);
  }

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

  .journey-stat {
    min-height: 5rem;
  }

  .journey-topic-grid {
    grid-template-columns: 1fr;
  }

  .journey-subject-group {
    padding: 0.75rem;
  }

  .journey-learner-controls {
    align-items: stretch;
  }

  .journey-learner-controls > .button,
  .draft-primary-actions .button {
    width: 100%;
  }

  .draft-primary-actions {
    display: grid;
  }
}

@media (max-width: 820px) {
  .journey-learner-panel {
    grid-template-columns: 1fr;
  }

  .learning-map-suggestion-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  .student-worksheet,
  .lesson-preview {
    background: #fff;
    color: #101c2b;
  }
}

/* Vault controls echo the constellation without competing with learning. */
.vault-panel { position: relative; max-width: 840px; margin: 1.5rem auto; padding: clamp(1.4rem, 4vw, 2.7rem); border: 1px solid rgba(163, 201, 243, .22); background: radial-gradient(ellipse at top right, rgba(74, 113, 161, .19), transparent 60%), rgba(12, 25, 43, .94); box-shadow: 0 24px 80px rgba(0, 0, 0, .2); border-radius: 24px; }
@media screen { .vault-panel { border: 1px solid rgba(180, 200, 215, .22); background: radial-gradient(ellipse at top right, rgba(91, 114, 130, .19), transparent 60%), rgba(23, 25, 27, .94); } }
.vault-panel h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.18; margin: .65rem 0 1rem; }
.vault-panel > input { display: block; width: 100%; margin: .75rem 0; padding: .85rem; border-radius: 10px; background: rgba(5, 15, 28, .7); color: inherit; border: 1px solid rgba(183, 210, 244, .28); }
@media screen { .vault-panel > input { background: rgba(13, 15, 17, .7); border: 1px solid rgba(205, 207, 210, .28); } }
.vault-actions { margin-top: 1.4rem; gap: .7rem; flex-wrap: wrap; }
.vault-sync-status { color: #acd6d6; font-size: .83rem; text-align: right; margin: .25rem 0 1rem; }
@media screen { .vault-sync-status { color: #c4c6c9; } }
.vault-transfer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(163, 201, 243, .2); }
@media screen { .vault-transfer { border-top: 1px solid rgba(180, 200, 215, .2); } }
.vault-transfer summary { cursor: pointer; color: #c6d8eb; }
@media screen { .vault-transfer summary { color: #ced7de; } }
.vault-file-label { display: block; margin: 1rem 0; font-size: .9rem; }
.vault-file-label input { display: block; max-width: 100%; margin-top: .6rem; }
@media print { .vault-panel, .vault-sync-status { display: none !important; } }

/* Learner management keeps the everyday Journey picker small while giving
   parents one predictable place for local profile edits and starting notes. */
.manage-learners-button {
  white-space: nowrap;
}

.journey-age-summary {
  align-self: end;
  margin: 0;
  min-width: 12rem;
  color: var(--ink);
}

.journey-age-summary strong {
  color: var(--white);
}

.learners-view {
  gap: 1.35rem;
}

.learner-create-panel,
.learner-onboarding-panel,
.learner-list-section,
.account-learners-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.15rem, 3vw, 1.8rem);
  background: linear-gradient(145deg, rgba(25, 34, 71, .85), rgba(11, 16, 38, .84));
  box-shadow: 0 16px 48px rgba(0, 0, 0, .13);
}
@media screen { .learner-create-panel, .learner-onboarding-panel, .learner-list-section, .account-learners-card { background: linear-gradient(145deg, rgba(36, 38, 41, .85), rgba(16, 18, 21, .84)); } }

.learner-create-panel h2,
.learner-onboarding-panel h2,
.learner-list-section h2,
.account-learners-card h2 {
  margin: 0 0 .45rem;
}

.learner-create-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, .72fr);
  gap: .85rem;
  align-items: end;
  margin: 1rem 0;
}

.learner-create-panel > .button {
  margin-top: .15rem;
}

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

.learner-card {
  display: grid;
  gap: .8rem;
  border: 1px solid rgba(172, 202, 239, .18);
  border-radius: 17px;
  padding: 1rem;
  background: rgba(9, 15, 35, .56);
}
@media screen { .learner-card { border: 1px solid rgba(197, 199, 201, .18); background: rgba(15, 17, 19, .56); } }

.learner-card.archived {
  border-color: rgba(240, 199, 119, .28);
  background: rgba(55, 42, 35, .34);
}
@media screen { .learner-card.archived { border-color: rgba(230, 196, 124, .28); background: rgba(43, 45, 48, .34); } }

.learner-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.learner-card-title :is(h2, h3) {
  margin: .2rem 0 .3rem;
  color: var(--white);
  font-size: 1.25rem;
}

.learner-card-age,
.learner-card-counts {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
}

.learner-clone-context {
  display: grid;
  gap: .55rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(240, 199, 119, .28);
  border-radius: 14px;
  background: rgba(55, 42, 35, .28);
}
@media screen { .learner-clone-context { border: 1px solid rgba(230, 196, 124, .28); background: rgba(43, 45, 48, .28); } }

.learner-clone-context summary,
.clone-context-legacy summary {
  cursor: pointer;
  color: #f5dca5;
  font-size: .8rem;
  font-weight: 800;
}
@media screen { .learner-clone-context summary, .clone-context-legacy summary { color: #f6dab2; } }

.clone-context-boundary {
  margin: 0;
  color: #f5dca5;
  font-size: .78rem;
  font-weight: 700;
}
@media screen { .clone-context-boundary { color: #f6dab2; } }

.learner-clone-context > p,
.clone-context-item p,
.clone-context-legacy-entry p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.learner-clone-context h4 {
  margin: .3rem 0 0;
  color: var(--white);
  font-size: .82rem;
}

.clone-context-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding-left: 1.15rem;
}

.clone-context-item {
  display: grid;
  gap: .18rem;
  padding-left: .1rem;
}

.clone-context-item strong {
  color: var(--white);
  font-size: .82rem;
}

.clone-context-status {
  color: #f5dca5;
  font-size: .72rem;
  font-weight: 700;
}
@media screen { .clone-context-status { color: #f6dab2; } }

.clone-context-item time,
.clone-context-legacy-entry time {
  font-size: .7rem;
}

.clone-context-legacy {
  display: grid;
  gap: .5rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(240, 199, 119, .18);
}
@media screen { .clone-context-legacy { border-top: 1px solid rgba(230, 196, 124, .18); } }

.clone-context-legacy-entry {
  display: grid;
  gap: .2rem;
  padding: .5rem .6rem;
  border-radius: 10px;
  background: rgba(7, 10, 26, .28);
}
@media screen { .clone-context-legacy-entry { background: rgba(10, 12, 14, .28); } }

.learner-active-badge {
  display: inline-flex;
  margin-top: .65rem;
  padding: .24rem .55rem;
  border: 1px solid rgba(120, 228, 235, .32);
  border-radius: 999px;
  color: var(--cyan);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media screen { .learner-active-badge { border: 1px solid rgba(192, 208, 180, .32); } }

.learner-card-actions,
.learner-onboarding-actions {
  margin-top: .15rem;
}

.learner-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, .72fr);
  gap: .85rem;
  align-items: end;
  padding-top: .6rem;
  border-top: 1px solid rgba(172, 202, 239, .15);
}
@media screen { .learner-edit-form { border-top: 1px solid rgba(197, 199, 201, .15); } }

.learner-edit-form .inline-actions {
  grid-column: 1 / -1;
}

.learner-onboarding-panel {
  border-color: rgba(120, 228, 235, .32);
}
@media screen { .learner-onboarding-panel { border-color: rgba(192, 208, 180, .32); } }

.learner-onboarding-age {
  max-width: 24rem;
  margin: 1rem 0;
}

.learner-onboarding-questions {
  display: grid;
  gap: .9rem;
  margin: 1rem 0;
}

.learner-onboarding-question {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(172, 202, 239, .16);
  border-radius: 15px;
  background: rgba(5, 10, 27, .34);
}
@media screen { .learner-onboarding-question { border: 1px solid rgba(197, 199, 201, .16); background: rgba(9, 11, 13, .34); } }

.learner-onboarding-question legend {
  max-width: 100%;
  padding: 0 .35rem;
  color: var(--white);
  font-weight: 700;
}

.learner-onboarding-answers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .85rem;
}

.learner-onboarding-answer {
  min-height: 2.8rem;
}

.learner-onboarding-source {
  margin-top: .8rem;
  color: var(--muted);
  font-size: .82rem;
}

.learner-onboarding-source summary {
  cursor: pointer;
  color: #d9d1ff;
}
@media screen { .learner-onboarding-source summary { color: #d6d9db; } }

.learner-onboarding-source p {
  margin: .5rem 0 .25rem;
}

.learner-onboarding-source a {
  color: var(--cyan);
}

.learner-onboarding-empty {
  margin: 1rem 0;
  padding: .9rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}

.learner-starting-suggestion {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(240, 199, 119, .35);
  border-radius: 16px;
  background: rgba(240, 199, 119, .09);
}
@media screen { .learner-starting-suggestion { border: 1px solid rgba(230, 196, 124, .35); background: rgba(230, 196, 124, .09); } }

.learner-starting-suggestion strong {
  color: var(--gold);
}

.learner-starting-suggestion p {
  margin: .45rem 0 0;
}

.archived-learners-section {
  border-color: rgba(240, 199, 119, .2);
}
@media screen { .archived-learners-section { border-color: rgba(230, 196, 124, .2); } }

@media (max-width: 720px) {
  .learner-create-fields,
  .learner-edit-form {
    grid-template-columns: 1fr;
  }

  .learner-edit-form .inline-actions {
    grid-column: auto;
  }

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

  .learner-card-header {
    display: block;
  }
}

@media (max-width: 420px) {
  .learner-onboarding-answers {
    grid-template-columns: 1fr;
  }
}

/* Beginner parent release -------------------------------------------------- */
body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(8, 11, 28, .9) 0%, rgba(8, 11, 28, .74) 38%, rgba(8, 11, 28, .4) 72%, rgba(8, 11, 28, .3) 100%), url('/workspace-assets/assets/learning-nebula.webp');
  background-position: center top, right top;
  background-repeat: no-repeat;
  background-size: cover, min(100vw, 1376px) auto;
  content: "";
  opacity: .78;
}
@media screen { body::after { background-image: linear-gradient(90deg, rgba(11, 13, 15, .9) 0%, rgba(11, 13, 15, .74) 38%, rgba(11, 13, 15, .4) 72%, rgba(11, 13, 15, .3) 100%), url('/workspace-assets/assets/learning-nebula.webp'); } }

.app-shell {
  position: relative;
  z-index: 1;
}

.primary-nav {
  position: relative;
  scrollbar-width: thin;
}

.primary-nav[data-scroll-hint]::after {
  position: sticky;
  right: 0;
  width: 2rem;
  margin-left: -2rem;
  background: linear-gradient(90deg, transparent, rgba(8, 11, 28, .95));
  content: "";
  pointer-events: none;
}
@media screen { .primary-nav[data-scroll-hint]::after { background: linear-gradient(90deg, transparent, rgba(11, 13, 15, .95)); } }

.replay-help-button {
  justify-self: start;
  margin-top: .35rem;
}

.journey-first-child-empty {
  display: grid;
  gap: .45rem;
  max-width: 42rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(120, 228, 235, .25);
  border-radius: 20px;
  background: rgba(10, 15, 39, .62);
}
@media screen { .journey-first-child-empty { border: 1px solid rgba(192, 208, 180, .25); background: rgba(15, 17, 20, .62); } }

.journey-first-child-empty h2,
.journey-first-child-empty p {
  margin: 0;
}

.first-run-help {
  position: fixed;
  z-index: 20;
  right: clamp(.9rem, 4vw, 4rem);
  bottom: 1.25rem;
  display: grid;
  gap: .75rem;
  width: min(25rem, calc(100vw - 1.8rem));
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(120, 228, 235, .38);
  border-radius: 18px;
  background: #081920;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .4), 0 0 26px rgba(120, 228, 235, .12);
}
@media screen { .first-run-help { border: 1px solid rgba(192, 208, 180, .38); background: #151719; box-shadow: 0 22px 70px rgba(0, 0, 0, .4), 0 0 26px rgba(192, 208, 180, .12); } }

.first-run-help h2,
.first-run-help p {
  margin: 0;
}

.first-run-help h2 {
  font-size: 1.4rem;
}

.first-run-help p {
  color: var(--muted);
  font-size: .86rem;
}

.first-run-help-header,
.first-run-help-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.first-run-help-dismiss {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .72rem;
  text-decoration: underline;
}

.first-run-help-progress {
  display: flex;
  gap: .35rem;
}

.first-run-help-dot {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #45655d;
}
@media screen { .first-run-help-dot { background: #5b5e62; } }

.first-run-help-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(120, 228, 235, .7);
}
@media screen { .first-run-help-dot.active { box-shadow: 0 0 10px rgba(192, 208, 180, .7); } }

.first-run-help-actions {
  justify-content: flex-start;
}

.first-run-help-actions .button:last-child {
  margin-left: auto;
}

.learning-progress-section,
.learning-sky-shell,
.intake-wizard,
.clone-panel {
  display: grid;
  gap: .9rem;
}

.learning-progress-section {
  padding: clamp(1.15rem, 3vw, 2.2rem);
  border: 1px solid rgba(120, 228, 235, .22);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 28, 67, .86), rgba(9, 14, 37, .9));
  box-shadow: 0 25px 80px rgba(0, 0, 0, .18);
}
@media screen { .learning-progress-section { border: 1px solid rgba(192, 208, 180, .22); background: linear-gradient(145deg, rgba(30, 32, 35, .86), rgba(14, 16, 19, .9)); } }

.learning-progress-section > h2,
.learning-sky-shell h2,
.learning-sky-detail h3,
.intake-wizard h2,
.clone-panel h2 {
  margin: 0;
}

.learning-sky-shell {
  padding-top: .5rem;
}

.learning-sky-shell > .muted-copy {
  max-width: 70ch;
  margin-bottom: 0;
}

.learning-sky-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  align-items: center;
}

.learning-sky-legend-item {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  color: var(--muted);
  font-size: .7rem;
}

.learning-sky-legend-dot {
  display: inline-block;
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
}

.learning-sky-legend-dot.parent-comfortable { background: var(--gold); box-shadow: 0 0 10px rgba(240, 199, 119, .55); }
@media screen { .learning-sky-legend-dot.parent-comfortable { box-shadow: 0 0 10px rgba(230, 196, 124, .55); } }
.learning-sky-legend-dot.parent-practicing { background: var(--cyan); box-shadow: 0 0 10px rgba(120, 228, 235, .55); }
@media screen { .learning-sky-legend-dot.parent-practicing { box-shadow: 0 0 10px rgba(192, 208, 180, .55); } }
.learning-sky-legend-dot.ai-proposed-comfortable { border: 1px dashed var(--gold); background: rgba(240, 199, 119, .18); }
@media screen { .learning-sky-legend-dot.ai-proposed-comfortable { background: rgba(230, 196, 124, .18); } }
.learning-sky-legend-dot.ai-proposed-practicing { border: 1px dashed var(--violet); background: rgba(185, 167, 255, .18); }
@media screen { .learning-sky-legend-dot.ai-proposed-practicing { background: rgba(222, 228, 238, .18); } }

.learning-sky-view-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.learning-sky-graph {
  overflow: hidden;
  min-height: 22rem;
  border: 1px solid rgba(185, 167, 255, .16);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 48%, rgba(117, 103, 201, .22), transparent 48%), rgba(7, 10, 26, .45);
}
@media screen { .learning-sky-graph { border: 1px solid rgba(222, 228, 238, .16); background: radial-gradient(circle at 50% 48%, rgba(146, 113, 83, .22), transparent 48%), rgba(10, 12, 14, .45); } }

.learning-sky-graph svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 22rem;
}

.learning-sky-edge {
  stroke: rgba(120, 228, 235, .22);
  stroke-width: 1.5;
  marker-end: none;
}
@media screen { .learning-sky-edge { stroke: rgba(192, 208, 180, .22); } }

.learning-sky-arrow {
  fill: rgba(120, 228, 235, .45);
}
@media screen { .learning-sky-arrow { fill: rgba(192, 208, 180, .45); } }

.learning-sky-svg-node {
  cursor: pointer;
  outline: none;
}

.learning-sky-svg-orb {
  fill: rgba(185, 167, 255, .44);
  stroke: rgba(221, 217, 255, .72);
  stroke-width: 2;
}
@media screen { .learning-sky-svg-orb { fill: rgba(222, 228, 238, .44); stroke: rgba(220, 222, 224, .72); } }

.learning-sky-svg-node.parent-comfortable .learning-sky-svg-orb { fill: rgba(240, 199, 119, .78); stroke: var(--gold); }
@media screen { .learning-sky-svg-node.parent-comfortable .learning-sky-svg-orb { fill: rgba(230, 196, 124, .78); } }
.learning-sky-svg-node.parent-practicing .learning-sky-svg-orb { fill: rgba(120, 228, 235, .78); stroke: var(--cyan); }
@media screen { .learning-sky-svg-node.parent-practicing .learning-sky-svg-orb { fill: rgba(192, 208, 180, .78); } }
.learning-sky-svg-node.suggested .learning-sky-svg-orb { fill: rgba(185, 167, 255, .42); stroke: var(--violet); stroke-dasharray: 4 3; }
@media screen { .learning-sky-svg-node.suggested .learning-sky-svg-orb { fill: rgba(222, 228, 238, .42); } }
.learning-sky-svg-node.suggested-comfortable .learning-sky-svg-orb { fill: rgba(240, 199, 119, .42); stroke: var(--gold); }
@media screen { .learning-sky-svg-node.suggested-comfortable .learning-sky-svg-orb { fill: rgba(230, 196, 124, .42); } }
.learning-sky-svg-node.suggested-practicing .learning-sky-svg-orb { fill: rgba(185, 167, 255, .42); stroke: var(--violet); }
@media screen { .learning-sky-svg-node.suggested-practicing .learning-sky-svg-orb { fill: rgba(222, 228, 238, .42); } }
.learning-sky-svg-node.suggested-introduced .learning-sky-svg-orb { fill: rgba(185, 167, 255, .34); stroke: var(--violet); }
@media screen { .learning-sky-svg-node.suggested-introduced .learning-sky-svg-orb { fill: rgba(222, 228, 238, .34); } }
.learning-sky-svg-node.suggested-unknown .learning-sky-svg-orb,
.learning-sky-svg-node.unexplored .learning-sky-svg-orb { fill: rgba(151, 164, 190, .2); stroke: rgba(172, 202, 239, .58); stroke-dasharray: 3 3; }
@media screen { .learning-sky-svg-node.suggested-unknown .learning-sky-svg-orb, .learning-sky-svg-node.unexplored .learning-sky-svg-orb { fill: rgba(160, 164, 168, .2); stroke: rgba(197, 199, 201, .58); } }
.learning-sky-svg-node:focus .learning-sky-svg-orb,
.learning-sky-svg-node:hover .learning-sky-svg-orb { stroke-width: 4; }

.learning-sky-svg-label {
  fill: var(--white);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.learning-sky-svg-status {
  fill: rgba(244, 245, 255, .72);
  font-size: 9px;
  pointer-events: none;
}
@media screen { .learning-sky-svg-status { fill: rgba(244, 246, 248, .72); } }

.learning-sky-list {
  display: grid;
  gap: .55rem;
}

.learning-sky-list-item {
  display: grid;
  gap: .25rem;
  padding: .75rem;
  border: 1px solid rgba(221, 217, 255, .14);
  border-radius: 15px;
  background: rgba(7, 10, 26, .45);
}
@media screen { .learning-sky-list-item { border: 1px solid rgba(220, 222, 224, .14); background: rgba(10, 12, 14, .45); } }

.learning-sky-topic {
  display: grid;
  gap: .2rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
}

.learning-sky-topic strong {
  font-size: .86rem;
}

.learning-sky-node-status,
.learning-sky-node-subject,
.learning-sky-node-reason,
.learning-sky-node-links {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.4;
}

.learning-sky-node-status {
  color: var(--cyan);
  font-weight: 700;
}

.learning-sky-list-item p {
  margin: 0;
}

.learning-sky-empty {
  margin: 0;
  padding: .9rem;
  border: 1px dashed rgba(185, 167, 255, .28);
  border-radius: 14px;
  color: var(--muted);
  font-size: .82rem;
}
@media screen { .learning-sky-empty { border: 1px dashed rgba(222, 228, 238, .28); } }

.learning-sky-detail {
  display: grid;
  gap: .7rem;
  padding: 1rem;
  border: 1px solid rgba(240, 199, 119, .28);
  border-radius: 16px;
  background: rgba(7, 10, 26, .42);
}
@media screen { .learning-sky-detail { border: 1px solid rgba(230, 196, 124, .28); background: rgba(10, 12, 14, .42); } }

.learning-sky-detail > p {
  margin: 0;
}

.learning-sky-detail-status {
  font-weight: 800;
}

.learning-sky-detail-status.proposal-status { color: var(--violet); }
.learning-sky-detail-status.parent-status { color: var(--cyan); }

.learning-sky-observation-form {
  display: grid;
  grid-template-columns: minmax(12rem, .6fr) minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: end;
}

.intake-wizard,
.clone-panel {
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid rgba(120, 228, 235, .34);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(22, 34, 72, .94), rgba(10, 15, 39, .92));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
}
@media screen { .intake-wizard, .clone-panel { border: 1px solid rgba(192, 208, 180, .34); background: linear-gradient(145deg, rgba(35, 37, 40, .94), rgba(15, 17, 20, .92)); } }

.intake-wizard > p,
.clone-panel > p {
  max-width: 70ch;
  margin-bottom: 0;
}

.intake-age-field {
  max-width: 24rem;
}

.intake-questions {
  display: grid;
  gap: .8rem;
}

.intake-question,
.clone-modes {
  display: grid;
  gap: .6rem;
  padding: 1rem;
  border: 1px solid rgba(221, 217, 255, .15);
  border-radius: 16px;
  background: rgba(7, 10, 26, .42);
}
@media screen { .intake-question, .clone-modes { border: 1px solid rgba(220, 222, 224, .15); background: rgba(10, 12, 14, .42); } }

.intake-question legend,
.clone-modes legend,
.intake-interests legend {
  max-width: 100%;
  margin-bottom: .2rem;
  color: var(--white);
  font-size: .92rem;
}

.intake-answer-options,
.intake-interest-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
}

.intake-answer,
.intake-interest {
  min-height: 2.5rem;
  padding: .55rem .65rem;
  border: 1px solid rgba(221, 217, 255, .16);
  border-radius: 12px;
  background: rgba(17, 22, 54, .75);
  color: var(--muted);
  font-size: .74rem;
}
@media screen { .intake-answer, .intake-interest { border: 1px solid rgba(220, 222, 224, .16); background: rgba(24, 26, 29, .75); } }

.intake-answer.selected,
.intake-answer:hover,
.intake-interest.selected,
.intake-interest:hover {
  border-color: rgba(120, 228, 235, .56);
  background: rgba(120, 228, 235, .12);
  color: var(--white);
}
@media screen { .intake-answer.selected, .intake-answer:hover, .intake-interest.selected, .intake-interest:hover { border-color: rgba(192, 208, 180, .56); background: rgba(192, 208, 180, .12); } }

.intake-interests {
  display: grid;
  gap: .55rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.intake-actions {
  padding-top: .2rem;
}

.intake-answer-summary {
  display: grid;
  gap: .25rem;
  padding: .85rem;
  border: 1px solid rgba(221, 217, 255, .14);
  border-radius: 15px;
  background: rgba(7, 10, 26, .42);
}
@media screen { .intake-answer-summary { border: 1px solid rgba(220, 222, 224, .14); background: rgba(10, 12, 14, .42); } }

.intake-answer-summary p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.intake-ai-review {
  display: grid;
  gap: .4rem;
  padding: .9rem;
  border-left: 3px solid var(--cyan);
  background: rgba(120, 228, 235, .08);
}
@media screen { .intake-ai-review { background: rgba(192, 208, 180, .08); } }

.intake-ai-review p,
.intake-ai-review ul {
  margin: 0;
}

.intake-suggestion {
  display: grid;
  gap: .15rem;
  margin-top: .5rem;
}

.intake-suggestion p {
  color: var(--muted);
  font-size: .78rem;
}

.safe-constraint-details,
.clone-inclusions {
  border: 1px solid rgba(221, 217, 255, .13);
  border-radius: 14px;
  padding: .7rem .85rem;
  background: rgba(7, 10, 26, .38);
}
@media screen { .safe-constraint-details, .clone-inclusions { border: 1px solid rgba(220, 222, 224, .13); background: rgba(10, 12, 14, .38); } }

.safe-constraint-details summary,
.clone-inclusions summary {
  cursor: pointer;
  color: #d9d1ff;
  font-size: .78rem;
  font-weight: 800;
}
@media screen { .safe-constraint-details summary, .clone-inclusions summary { color: #d6d9db; } }

.safe-constraint-details p,
.clone-inclusions p {
  margin: .6rem 0 0;
}

.clone-modes {
  gap: .5rem;
}

.clone-mode {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .45rem;
  align-items: start;
  padding: .7rem;
  border: 1px solid rgba(221, 217, 255, .12);
  border-radius: 12px;
  background: rgba(17, 22, 54, .62);
}
@media screen { .clone-mode { border: 1px solid rgba(220, 222, 224, .12); background: rgba(24, 26, 29, .62); } }

.clone-mode input {
  margin-top: .25rem;
  accent-color: var(--cyan);
}

.clone-mode span {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
}

.clone-mode small {
  grid-column: 2;
  color: var(--muted);
  font-size: .7rem;
}

@media (max-width: 820px) {
  .learning-sky-observation-form {
    grid-template-columns: 1fr;
  }

  .intake-answer-options,
  .intake-interest-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .first-run-help {
    right: .7rem;
    bottom: .7rem;
    width: calc(100vw - 1.4rem);
  }

  .intake-answer-options,
  .intake-interest-options {
    grid-template-columns: 1fr;
  }

  .learning-sky-graph {
    min-height: 0;
  }
}

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

/* Adaptive map dashboard and check-in surfaces. These selectors stay scoped
 * to the lesson workspace; the learning-sky renderer owns its own graph CSS. */
.adaptive-dashboard {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1.15rem;
  border: 1px solid rgba(120, 228, 235, .2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(20, 25, 55, .86), rgba(10, 14, 34, .74));
}
@media screen { .adaptive-dashboard { border: 1px solid rgba(192, 208, 180, .2); background: linear-gradient(145deg, rgba(26, 28, 31, .86), rgba(14, 16, 18, .74)); } }

.adaptive-dashboard h2,
.adaptive-dashboard h3,
.adaptive-dashboard h4,
.adaptive-dashboard p {
  margin-top: 0;
}

.adaptive-dashboard-coverage,
.adaptive-strand-count {
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 700;
}

.adaptive-subject-grid,
.adaptive-recommendation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.adaptive-subject-card,
.adaptive-strand-card,
.adaptive-recommendation-card,
.map-activity-topic {
  display: grid;
  gap: .45rem;
  min-width: 0;
  padding: .9rem;
  border: 1px solid rgba(221, 217, 255, .14);
  border-radius: 16px;
  background: rgba(7, 10, 26, .46);
}
@media screen { .adaptive-subject-card, .adaptive-strand-card, .adaptive-recommendation-card, .map-activity-topic { border: 1px solid rgba(220, 222, 224, .14); background: rgba(10, 12, 14, .46); } }

.adaptive-subject-card {
  border-color: rgba(120, 228, 235, .2);
}
@media screen { .adaptive-subject-card { border-color: rgba(192, 208, 180, .2); } }

.adaptive-subject-card h3 {
  margin-bottom: 0;
}

.adaptive-subject-signals {
  margin-bottom: 0;
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
}

.adaptive-dashboard-details,
.intake-progress-details,
.journey-reviewed-core {
  border: 1px solid rgba(221, 217, 255, .12);
  border-radius: 14px;
  background: rgba(7, 10, 26, .24);
}
@media screen { .adaptive-dashboard-details, .intake-progress-details, .journey-reviewed-core { border: 1px solid rgba(220, 222, 224, .12); background: rgba(10, 12, 14, .24); } }

.adaptive-dashboard-details > summary,
.intake-progress-details > summary,
.journey-reviewed-core > summary {
  cursor: pointer;
  padding: .7rem .8rem;
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
}

.adaptive-dashboard-details > .adaptive-strand-grid {
  padding: 0 .8rem .8rem;
}

.adaptive-strand-card h3,
.adaptive-recommendation-card h4,
.map-activity-topic h2 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.adaptive-strand-signal {
  margin-bottom: 0;
  color: var(--white);
  font-size: .78rem;
}

.adaptive-recommendations,
.adaptive-activities {
  display: grid;
  gap: .7rem;
}

.adaptive-recommendations h3,
.adaptive-activities h3 {
  margin-bottom: 0;
}

.adaptive-recommendation-card p {
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .78rem;
}

.adaptive-recommendation-card .button {
  justify-self: start;
}

.adaptive-activity-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adaptive-activity-item {
  display: grid;
  gap: .18rem;
  padding: .7rem .8rem;
  border-left: 2px solid rgba(240, 199, 119, .6);
  background: rgba(7, 10, 26, .35);
}
@media screen { .adaptive-activity-item { border-left: 2px solid rgba(230, 196, 124, .6); background: rgba(10, 12, 14, .35); } }

.adaptive-activity-item strong {
  overflow-wrap: anywhere;
}

.adaptive-intake-wizard {
  gap: 1rem;
}

.intake-progress-summary {
  display: grid;
  gap: .55rem;
  padding: .8rem;
  border: 1px solid rgba(120, 228, 235, .16);
  border-radius: 14px;
  background: rgba(7, 10, 26, .38);
}
@media screen { .intake-progress-summary { border: 1px solid rgba(192, 208, 180, .16); background: rgba(10, 12, 14, .38); } }

.intake-strand-progress {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: 0 .8rem .8rem;
}

.intake-strand-chip {
  padding: .26rem .48rem;
  border: 1px solid rgba(185, 167, 255, .2);
  border-radius: 999px;
  color: var(--muted);
  font-size: .7rem;
}
@media screen { .intake-strand-chip { border: 1px solid rgba(222, 228, 238, .2); } }

.adaptive-intake-question {
  position: relative;
}

.intake-topic-label {
  margin: 0 0 .55rem;
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 700;
}

.intake-edit-answers {
  margin-top: .25rem;
}

.intake-edit-answers ul,
.adaptive-review-summary ul {
  display: grid;
  gap: .5rem;
  margin: .7rem 0 0;
  padding-left: 1.25rem;
}

.intake-edit-answers li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .8rem;
}

.adaptive-review-summary {
  padding: .8rem;
  border: 1px solid rgba(120, 228, 235, .16);
  border-radius: 14px;
  background: rgba(7, 10, 26, .35);
}
@media screen { .adaptive-review-summary { border: 1px solid rgba(192, 208, 180, .16); background: rgba(10, 12, 14, .35); } }

.journey-reviewed-core {
  margin-top: 1.2rem;
}

.journey-reviewed-core > p {
  margin: 0;
  padding: 0 .8rem .8rem;
}

.journey-reviewed-core > .journey-galaxy-shell,
.journey-reviewed-core > .journey-observation-panel,
.journey-reviewed-core > .journey-next-panel,
.journey-reviewed-core > .learning-map-disclosure {
  margin-inline: .8rem;
}

.adaptive-review-summary p {
  margin: 0;
}

.map-activity-builder {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.map-activity-builder h1,
.map-activity-builder h2,
.map-activity-builder p {
  margin-top: 0;
}

.map-activity-topic {
  border-color: rgba(240, 199, 119, .28);
}
@media screen { .map-activity-topic { border-color: rgba(230, 196, 124, .28); } }

.map-activity-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.map-activity-controls .option-fieldset {
  min-width: 0;
}

.map-draft-limitation {
  display: block;
  margin-top: .55rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .adaptive-subject-grid,
  .adaptive-recommendation-list,
  .map-activity-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-activity-controls .editor-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .adaptive-subject-grid,
  .adaptive-recommendation-list,
  .map-activity-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Adaptive learning sky: compact constellation orbs with a complete text path. */
.learning-sky-shell {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.learning-sky-controls {
  display: grid;
  grid-template-columns: auto repeat(2, minmax(9rem, 13rem)) minmax(12rem, 1fr);
  gap: .55rem;
  align-items: end;
  min-width: 0;
}

.learning-sky-view-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.learning-sky-filter {
  display: grid;
  gap: .25rem;
  min-width: 0;
}

.learning-sky-filter select,
.learning-sky-filter input {
  width: 100%;
  min-width: 0;
}

.learning-sky-search {
  min-width: 0;
}

.learning-sky-count-region {
  min-width: 0;
}

.learning-sky-count {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}

.learning-sky-scope-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: .78rem;
}

.learning-sky-scope-notice p {
  margin: 0;
}

.learning-sky-graph-view,
.learning-sky-list-view,
.learning-sky-detail-region {
  min-width: 0;
  max-width: 100%;
}

.learning-sky-graph {
  width: 100%;
  min-width: 0;
  min-height: 17rem;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(185, 167, 255, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 45%, rgba(117, 103, 201, .2), transparent 52%),
    rgba(7, 10, 26, .52);
}
@media screen { .learning-sky-graph { border: 1px solid rgba(222, 228, 238, .18); background: radial-gradient(circle at 50% 45%, rgba(146, 113, 83, .2), transparent 52%),
    rgba(10, 12, 14, .52); } }

.learning-sky-graph svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 17rem;
}

.learning-sky-edge {
  stroke: rgba(151, 164, 190, .18);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  marker-end: none;
}
@media screen { .learning-sky-edge { stroke: rgba(160, 164, 168, .18); } }

.learning-sky-edge-selected {
  stroke: rgba(120, 228, 235, .92);
  stroke-width: 2.2;
  marker-end: url(#learning-sky-arrow);
}
@media screen { .learning-sky-edge-selected { stroke: rgba(192, 208, 180, .92); } }

.learning-sky-arrow {
  fill: rgba(120, 228, 235, .95);
}
@media screen { .learning-sky-arrow { fill: rgba(192, 208, 180, .95); } }

.learning-sky-constellation-label {
  fill: rgba(244, 245, 255, .72);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}
@media screen { .learning-sky-constellation-label { fill: rgba(244, 246, 248, .72); } }

.learning-sky-svg-node {
  cursor: pointer;
  outline: none;
}

.learning-sky-svg-orb {
  fill: rgba(151, 164, 190, .38);
  stroke: rgba(172, 202, 239, .68);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
@media screen { .learning-sky-svg-orb { fill: rgba(160, 164, 168, .38); stroke: rgba(197, 199, 201, .68); } }

.learning-sky-source-reported .learning-sky-svg-orb {
  fill: rgba(120, 228, 235, .7);
  stroke: var(--cyan);
}
@media screen { .learning-sky-source-reported .learning-sky-svg-orb { fill: rgba(192, 208, 180, .7); } }

.learning-sky-source-reported.learning-sky-node-comfortable .learning-sky-svg-orb {
  fill: rgba(240, 199, 119, .8);
  stroke: var(--gold);
}
@media screen { .learning-sky-source-reported.learning-sky-node-comfortable .learning-sky-svg-orb { fill: rgba(230, 196, 124, .8); } }

.learning-sky-source-suggested .learning-sky-svg-orb {
  fill: rgba(185, 167, 255, .32);
  stroke: var(--violet);
  stroke-dasharray: 4 3;
}
@media screen { .learning-sky-source-suggested .learning-sky-svg-orb { fill: rgba(222, 228, 238, .32); } }

.learning-sky-node-unknown .learning-sky-svg-orb,
.learning-sky-source-unexplored .learning-sky-svg-orb {
  fill: rgba(151, 164, 190, .2);
  stroke: rgba(172, 202, 239, .56);
  stroke-dasharray: 3 3;
}
@media screen { .learning-sky-node-unknown .learning-sky-svg-orb, .learning-sky-source-unexplored .learning-sky-svg-orb { fill: rgba(160, 164, 168, .2); stroke: rgba(197, 199, 201, .56); } }

.learning-sky-svg-node:hover .learning-sky-svg-orb,
.learning-sky-svg-node:focus .learning-sky-svg-orb,
.learning-sky-svg-node.selected .learning-sky-svg-orb {
  stroke-width: 3;
  filter: drop-shadow(0 0 5px rgba(120, 228, 235, .58));
}
@media screen { .learning-sky-svg-node:hover .learning-sky-svg-orb, .learning-sky-svg-node:focus .learning-sky-svg-orb, .learning-sky-svg-node.selected .learning-sky-svg-orb { filter: drop-shadow(0 0 5px rgba(192, 208, 180, .58)); } }

.learning-sky-svg-label {
  fill: var(--white);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.learning-sky-focus-label {
  visibility: hidden;
  opacity: 0;
}

.learning-sky-svg-node:focus .learning-sky-focus-label,
.learning-sky-svg-node.selected .learning-sky-focus-label,
.learning-sky-svg-label-always {
  visibility: visible;
  opacity: 1;
}

.learning-sky-svg-status {
  fill: rgba(244, 245, 255, .72);
  font-size: 8px;
  pointer-events: none;
}
@media screen { .learning-sky-svg-status { fill: rgba(244, 246, 248, .72); } }

.learning-sky-list {
  display: grid;
  gap: .55rem;
  min-width: 0;
}

.learning-sky-list-item {
  display: grid;
  gap: .25rem;
  min-width: 0;
  padding: .72rem;
  border: 1px solid rgba(221, 217, 255, .14);
  border-radius: 15px;
  background: rgba(7, 10, 26, .45);
}
@media screen { .learning-sky-list-item { border: 1px solid rgba(220, 222, 224, .14); background: rgba(10, 12, 14, .45); } }

.learning-sky-list-item.selected {
  border-color: rgba(120, 228, 235, .62);
  box-shadow: 0 0 0 1px rgba(120, 228, 235, .12);
}
@media screen { .learning-sky-list-item.selected { border-color: rgba(192, 208, 180, .62); box-shadow: 0 0 0 1px rgba(192, 208, 180, .12); } }

.learning-sky-topic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .2rem .55rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
}

.learning-sky-topic strong,
.learning-sky-topic .learning-sky-node-status,
.learning-sky-topic .learning-sky-node-subject {
  grid-column: 2;
  min-width: 0;
}

.learning-sky-topic strong {
  overflow-wrap: anywhere;
  font-size: .86rem;
}

.learning-sky-topic-orb {
  grid-row: 1 / span 3;
  align-self: start;
  width: .72rem;
  height: .72rem;
  margin-top: .2rem;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 2px rgba(151, 164, 190, .12);
}
@media screen { .learning-sky-topic-orb { box-shadow: 0 0 0 2px rgba(160, 164, 168, .12); } }

.learning-sky-node-status,
.learning-sky-node-subject,
.learning-sky-node-reason,
.learning-sky-node-links {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.learning-sky-node-status {
  color: var(--cyan);
  font-weight: 700;
}

.learning-sky-list-item p {
  margin: 0;
}

.learning-sky-pager {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  padding-top: .3rem;
}

.learning-sky-page-status {
  color: var(--muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.learning-sky-empty {
  margin: 0;
  padding: .9rem;
  border: 1px dashed rgba(185, 167, 255, .28);
  border-radius: 14px;
  color: var(--muted);
  font-size: .82rem;
}
@media screen { .learning-sky-empty { border: 1px dashed rgba(222, 228, 238, .28); } }

.learning-sky-selection {
  display: grid;
  gap: .55rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(240, 199, 119, .28);
  border-radius: 16px;
  background: rgba(7, 10, 26, .42);
}
@media screen { .learning-sky-selection { border: 1px solid rgba(230, 196, 124, .28); background: rgba(10, 12, 14, .42); } }

.learning-sky-selection h3,
.learning-sky-selection p {
  margin: 0;
}

.learning-sky-detail-status {
  color: var(--cyan);
  font-weight: 800;
}

.learning-sky-detail-region {
  min-width: 0;
}

@media (max-width: 820px) {
  .learning-sky-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-sky-view-controls,
  .learning-sky-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .learning-sky-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .learning-sky-view-controls,
  .learning-sky-search {
    grid-column: auto;
  }

  .learning-sky-graph-view {
    display: none;
  }

  .learning-sky-shell[data-view="graph"] .learning-sky-graph-view {
    display: block;
  }

  .learning-sky-scope-notice {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .learning-sky-svg-node,
  .learning-sky-svg-orb,
  .learning-sky-edge {
    transition: none;
  }
}

/* Adaptive galaxy final presentation rules. Keep the public map quiet until a
   learner or parent focuses a topic; relationships become prominent only for
   the selected topic. */
.learning-sky-edge {
  marker-end: none;
  stroke: rgba(151, 164, 190, .16);
  stroke-width: .9;
  vector-effect: non-scaling-stroke;
}
@media screen { .learning-sky-edge { stroke: rgba(160, 164, 168, .16); } }

.learning-sky-edge-selected {
  marker-end: url(#learning-sky-arrow);
  stroke: rgba(120, 228, 235, .94);
  stroke-width: 2;
}
@media screen { .learning-sky-edge-selected { stroke: rgba(192, 208, 180, .94); } }

.learning-sky-subject-constellation,
.learning-sky-domain-cluster {
  display: none;
}

.learning-sky-constellation-label {
  fill: rgba(244, 245, 255, .52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
}
@media screen { .learning-sky-constellation-label { fill: rgba(244, 246, 248, .52); } }

.learning-sky-svg-orb {
  /* JS sets a 3.8px radius so the full map reads as a field of stars. */
  fill: rgba(151, 164, 190, .2);
  stroke: rgba(172, 202, 239, .54);
  stroke-width: 1.15;
  stroke-dasharray: none;
  vector-effect: non-scaling-stroke;
}
@media screen { .learning-sky-svg-orb { fill: rgba(160, 164, 168, .2); stroke: rgba(197, 199, 201, .54); } }

.learning-sky-node-comfortable .learning-sky-svg-orb {
  fill: rgba(240, 199, 119, .82);
  stroke: var(--gold);
}
@media screen { .learning-sky-node-comfortable .learning-sky-svg-orb { fill: rgba(230, 196, 124, .82); } }

.learning-sky-node-practicing .learning-sky-svg-orb,
.learning-sky-node-introduced .learning-sky-svg-orb {
  fill: rgba(120, 228, 235, .74);
  stroke: var(--cyan);
}
@media screen { .learning-sky-node-practicing .learning-sky-svg-orb, .learning-sky-node-introduced .learning-sky-svg-orb { fill: rgba(192, 208, 180, .74); } }

.learning-sky-node-unknown .learning-sky-svg-orb {
  fill: rgba(151, 164, 190, .22);
  stroke: rgba(172, 202, 239, .58);
  stroke-dasharray: 3 3;
}
@media screen { .learning-sky-node-unknown .learning-sky-svg-orb { fill: rgba(160, 164, 168, .22); stroke: rgba(197, 199, 201, .58); } }

.learning-sky-node-unexplored .learning-sky-svg-orb {
  fill: rgba(151, 164, 190, .12);
  stroke: rgba(172, 202, 239, .38);
}
@media screen { .learning-sky-node-unexplored .learning-sky-svg-orb { fill: rgba(160, 164, 168, .12); stroke: rgba(197, 199, 201, .38); } }

/* Proposal provenance is an outline treatment; status remains the fill. The
   data-source selectors also cover unknown copied proposals whose normalized
   status class intentionally stays gray. */
.learning-sky-source-suggested .learning-sky-svg-orb,
.learning-sky-svg-node[data-source="ai-proposal"] .learning-sky-svg-orb,
.learning-sky-svg-node[data-source="copied-proposal"] .learning-sky-svg-orb {
  stroke: var(--violet);
  stroke-dasharray: 3 2;
}

.learning-sky-svg-node:hover .learning-sky-svg-orb,
.learning-sky-svg-node:focus .learning-sky-svg-orb,
.learning-sky-svg-node.selected .learning-sky-svg-orb {
  stroke-width: 2.6;
  filter: drop-shadow(0 0 5px rgba(120, 228, 235, .6));
}
@media screen { .learning-sky-svg-node:hover .learning-sky-svg-orb, .learning-sky-svg-node:focus .learning-sky-svg-orb, .learning-sky-svg-node.selected .learning-sky-svg-orb { filter: drop-shadow(0 0 5px rgba(192, 208, 180, .6)); } }

.learning-sky-legend-dot.comfortable {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(240, 199, 119, .48);
}
@media screen { .learning-sky-legend-dot.comfortable { box-shadow: 0 0 8px rgba(230, 196, 124, .48); } }

.learning-sky-legend-dot.practicing {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(120, 228, 235, .48);
}
@media screen { .learning-sky-legend-dot.practicing { box-shadow: 0 0 8px rgba(192, 208, 180, .48); } }

.learning-sky-legend-dot.unknown {
  border: 1px dashed rgba(172, 202, 239, .72);
  background: rgba(151, 164, 190, .18);
}
@media screen { .learning-sky-legend-dot.unknown { border: 1px dashed rgba(197, 199, 201, .72); background: rgba(160, 164, 168, .18); } }

.learning-sky-legend-dot.unexplored {
  background: rgba(151, 164, 190, .28);
  box-shadow: 0 0 7px rgba(151, 164, 190, .22);
}
@media screen { .learning-sky-legend-dot.unexplored { background: rgba(160, 164, 168, .28); box-shadow: 0 0 7px rgba(160, 164, 168, .22); } }

.learning-sky-legend-dot.suggested {
  border: 1px dashed var(--violet);
  background: rgba(185, 167, 255, .24);
}
@media screen { .learning-sky-legend-dot.suggested { background: rgba(222, 228, 238, .24); } }

@media (prefers-reduced-motion: reduce) {
  .learning-sky-svg-node,
  .learning-sky-svg-orb,
  .learning-sky-edge {
    animation: none;
    transition: none;
  }
}

/* Shared family-vault controls stay visually subordinate to the learning
   space while keeping recovery and approval steps easy to scan. */
.vault-sharing-panel {
  display: grid;
  gap: .72rem;
  margin-top: 1rem;
  border-color: rgba(120, 228, 235, .3);
}
@media screen { .vault-sharing-panel { border-color: rgba(192, 208, 180, .3); } }

.vault-sharing-panel h2,
.vault-sharing-panel h3,
.vault-sharing-panel p {
  margin: 0;
}

.vault-role-badge {
  width: fit-content;
  padding: .25rem .55rem;
  border: 1px solid rgba(120, 228, 235, .35);
  border-radius: 999px;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media screen { .vault-role-badge { border: 1px solid rgba(192, 208, 180, .35); } }

.vault-selection,
.vault-sharing-member,
.vault-invite-notice {
  display: grid;
  gap: .5rem;
  padding: .85rem;
  border: 1px solid rgba(185, 167, 255, .25);
  border-radius: 14px;
  background: rgba(7, 10, 26, .38);
}
@media screen { .vault-selection, .vault-sharing-member, .vault-invite-notice { border: 1px solid rgba(222, 228, 238, .25); background: rgba(10, 12, 14, .38); } }

.vault-selection {
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
}

.vault-selection strong,
.vault-selection span {
  grid-column: 1 / -1;
}

.vault-secret-field {
  display: grid;
  gap: .3rem;
  color: var(--muted);
  font-size: .78rem;
}

.vault-secret-field input {
  width: min(100%, 34rem);
}

.vault-claim-code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(240, 199, 119, .38);
  border-radius: 12px;
  background: rgba(240, 199, 119, .08);
}
@media screen { .vault-claim-code { border: 1px solid rgba(230, 196, 124, .38); background: rgba(230, 196, 124, .08); } }

.vault-claim-code code {
  color: var(--gold);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.vault-invite-notice {
  margin-top: 1rem;
  border-color: rgba(240, 199, 119, .3);
}
@media screen { .vault-invite-notice { border-color: rgba(230, 196, 124, .3); } }

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

/* The daily parent routine comes before the optional curriculum map. */
.parent-today,
.parent-progress-summary,
.parent-recent-activities,
.parent-note-form,
.parent-map-details {
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(185, 167, 255, .23);
  border-radius: 20px;
  background: rgba(12, 17, 37, .83);
  min-width: 0;
}
@media screen { .parent-today, .parent-progress-summary, .parent-recent-activities, .parent-note-form, .parent-map-details { border: 1px solid rgba(222, 228, 238, .23); background: rgba(17, 19, 21, .83); } }

.parent-today h2,
.parent-progress-summary h2,
.parent-recent-activities h2,
.parent-action-card h3,
.parent-note-card h3,
.parent-activity-row h3 { margin: 0; }
.parent-today > p,
.parent-progress-summary > p { margin: .5rem 0 1rem; }

.parent-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.parent-action-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem; border-radius: 15px; background: rgba(185, 167, 255, .065); border: 1px solid rgba(185, 167, 255, .16); }
@media screen { .parent-action-card { background: rgba(222, 228, 238, .065); border: 1px solid rgba(222, 228, 238, .16); } }
.parent-action-card:first-child { border-color: rgba(120, 228, 235, .4); background: rgba(120, 228, 235, .07); }
@media screen { .parent-action-card:first-child { border-color: rgba(192, 208, 180, .4); background: rgba(192, 208, 180, .07); } }
.parent-action-card p { color: var(--muted); margin: 0 0 .5rem; font-size: .9rem; }
.parent-action-card .button { margin-top: auto; white-space: normal; }
.parent-recent-notes { display: grid; gap: .8rem; margin-top: 1rem; }
.parent-note-card { padding: 1rem; border-left: 3px solid var(--cyan); border-radius: 0 12px 12px 0; background: rgba(120, 228, 235, .055); overflow-wrap: anywhere; }
@media screen { .parent-note-card { background: rgba(192, 208, 180, .055); } }
.parent-note-card h3 { font-size: 1rem; }
.parent-note-card p { white-space: pre-wrap; }
.parent-activity-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid rgba(185, 167, 255, .16); }
@media screen { .parent-activity-row { border-top: 1px solid rgba(222, 228, 238, .16); } }
.parent-activity-row h3 { font-size: 1rem; overflow-wrap: anywhere; }
.parent-activity-row .button { flex-shrink: 0; }
.parent-map-details > summary { font-weight: 700; cursor: pointer; }
.parent-map-details[open] > summary { margin-bottom: 1.5rem; }
.parent-note-view { max-width: 800px; margin-inline: auto; }
.parent-note-form { display: grid; gap: 1rem; }
.parent-note-form input,
.parent-note-form select,
.parent-note-form textarea { width: 100%; min-width: 0; }
.parent-note-form input,
.parent-note-form select { padding: .7rem .8rem; border: 1px solid rgba(185, 167, 255, .3); border-radius: 10px; background: #0a0e21; color: var(--ink); }
@media screen { .parent-note-form input, .parent-note-form select { border: 1px solid rgba(222, 228, 238, .3); background: #0e1012; } }
.parent-note-previous { margin: 0; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.parent-coaching-guide { margin: 1rem 0; padding: 1rem; border: 1px solid rgba(120, 228, 235, .25); border-radius: 12px; background: rgba(120, 228, 235, .05); }
@media screen { .parent-coaching-guide { border: 1px solid rgba(192, 208, 180, .25); background: rgba(192, 208, 180, .05); } }
.parent-coaching-guide p { margin: .4rem 0 0; }
.activity-child-label { color: var(--cyan); font-weight: 600; }
.lesson-preview .caution { background: rgba(240, 199, 119, .07); border-color: rgba(240, 199, 119, .3); color: var(--ink); }
@media screen { .lesson-preview .caution { background: rgba(230, 196, 124, .07); border-color: rgba(230, 196, 124, .3); } }
.lesson-preview .caution h3 { color: var(--gold); }
.lesson-preview .caution p { color: var(--muted); }

@media (max-width: 760px) {
  .parent-action-grid { grid-template-columns: minmax(0, 1fr); }
  .parent-action-card { padding: 1rem; }
  .parent-action-card .button { align-self: flex-start; }
  .parent-activity-row { align-items: flex-start; flex-direction: column; }
  .parent-progress-summary .journey-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .parent-progress-summary .journey-stat { min-width: 0; padding: .75rem .5rem; }
  .parent-progress-summary .journey-stat span { font-size: .72rem; }
}

@media print {
  .parent-coaching-guide { background: white; color: black; border-color: #aaa; }
  .activity-child-label { color: black; }
  .lesson-preview .caution { background: white; color: black; border-color: #aaa; }
  .lesson-preview .caution h3, .lesson-preview .caution p { color: black; }
}

@media (max-width: 620px) {
  .topbar { grid-template-columns: minmax(0, 1fr); gap: .7rem; padding: .85rem; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .brand-mark { flex-shrink: 0; }
  .primary-nav { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: .2rem; }
  .primary-nav[data-scroll-hint]::after { display: none; }
  .nav-item { min-height: 2.5rem; font-size: .76rem; }
  .account-mount { grid-column: 1; grid-row: 3; justify-self: stretch; }
  .account-summary, .visitor-account { justify-content: flex-start; gap: .4rem; }
  .account-summary .eyebrow { display: none; }
  .environment-banner { text-align: left; }
  .journey-hero h1, .parent-note-view h1 { font-size: 2.4rem; line-height: 1.08; }
  .parent-note-view h1 { margin: .3rem 0; }
  .parent-today h2, .parent-progress-summary h2, .parent-recent-activities h2 { font-size: 1.6rem; }
}

/* Full-map lesson choice and the device-local schoolwork library. */
.all-topic-picker, .library-controls, .library-documents, .schoolwork-request, .schoolwork-review { padding: 1.35rem; background: rgba(13,17,38,.86); border: 1px solid rgba(185,167,255,.22); border-radius: 18px; min-width: 0; }
@media screen { .all-topic-picker, .library-controls, .library-documents, .schoolwork-request, .schoolwork-review { background: rgba(17, 19, 22, .86); border: 1px solid rgba(222, 228, 238, .22); } }
.all-topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; margin: 1rem 0; }
.topic-picker-card, .schoolwork-proposal { padding: 1rem; border: 1px solid rgba(185,167,255,.22); border-radius: 12px; background: rgba(185,167,255,.055); min-width: 0; overflow-wrap: anywhere; }
@media screen { .topic-picker-card, .schoolwork-proposal { border: 1px solid rgba(222, 228, 238, .22); background: rgba(222, 228, 238, .055); } }
.topic-picker-card { display: flex; flex-direction: column; gap: .55rem; }
.topic-picker-card h2 { font-size: 1.1rem; margin: 0; }
.topic-picker-card p { font-size: .86rem; color: var(--muted); margin: 0 0 .5rem; }
.topic-picker-card .button { margin-top: auto; }
.topic-picker-filters { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.topic-picker-filters input, .topic-picker-filters select, .map-activity-controls select, .schoolwork-view select, .schoolwork-view input[type=file] { width: 100%; min-width: 0; border: 1px solid rgba(185,167,255,.3); border-radius: 10px; background: #0a0e21; color: var(--ink); padding: .75rem; }
@media screen { .topic-picker-filters input, .topic-picker-filters select, .map-activity-controls select, .schoolwork-view select, .schoolwork-view input[type=file] { border: 1px solid rgba(222, 228, 238, .3); background: #0e1012; } }
.schoolwork-view textarea { width: 100%; min-width: 0; background: #0a0e21; color: var(--ink); border: 1px solid rgba(185,167,255,.3); border-radius: 10px; padding: .75rem; }
@media screen { .schoolwork-view textarea { background: #0e1012; border: 1px solid rgba(222, 228, 238, .3); } }
.library-document { border-top: 1px solid rgba(185,167,255,.2); padding: 1rem 0; overflow-wrap: anywhere; }
@media screen { .library-document { border-top: 1px solid rgba(222, 228, 238, .2); } }
.library-document summary { cursor: pointer; font-weight: 700; }
.library-document .toggle-row { margin: 1rem 0 .6rem; }
.library-page-preview { display: block; max-width: 100%; max-height: 540px; height: auto; object-fit: contain; margin: .5rem auto 1.5rem; background: white; border-radius: 8px; }
.library-text-preview { display: block; font: .9rem/1.5 ui-monospace, monospace; }
.schoolwork-proposal { display: grid; gap: .65rem; margin: 1rem 0; }
.schoolwork-proposal h3, .schoolwork-proposal p { margin: 0; }
.schoolwork-score { padding: .75rem; border: 1px solid rgba(120,228,235,.3); border-radius: 10px; }
@media screen { .schoolwork-score { border: 1px solid rgba(192, 208, 180, .3); } }
.schoolwork-request .consent-row { align-items: flex-start; }
.schoolwork-view input[type=checkbox] { flex-shrink: 0; }
.journey-view > .adaptive-recommendations { padding: 1.4rem; border: 1px solid rgba(120,228,235,.35); border-radius: 18px; background: rgba(21,34,52,.85); }
@media screen { .journey-view > .adaptive-recommendations { border: 1px solid rgba(192, 208, 180, .35); background: rgba(31, 33, 36, .85); } }
@media (max-width: 960px) { .all-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .all-topic-grid, .topic-picker-filters { grid-template-columns: minmax(0,1fr); } .all-topic-picker, .library-controls, .library-documents, .schoolwork-request, .schoolwork-review { padding: 1rem; } .schoolwork-view h1, .all-topic-picker h1 { font-size: 2.2rem; } }

/* Approved woven-P artwork; decorative beside the existing accessible brand link. */
.brand-woven-p {
  mix-blend-mode: lighten;
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Public support and policy documents share this asset. Keep this theme
   scoped to their document shell and leave print and application states intact. */
@media screen {
  body:has(.policy-page) {
    color-scheme: dark;
    --ink: #f0f2f4; --muted: #bdbfc1; --cream: #06080a;
    --cream-deep: #212326; --paper: #151719; --white: #f0f2f4;
    --line: #3a3c3f; --green-700: #a0bc84; --green-600: #a0bc84;
    --copper-700: #e6c47c; --copper-500: #e6c47c;
    background: #06080a; color: #f0f2f4;
    font-family: "Helvetica Neue", Arial, sans-serif;
  }
  body:has(.policy-page)::before {
    background: radial-gradient(ellipse at 85% 8%, #3b3d4033, transparent 50%),
      radial-gradient(ellipse at 12% 70%, #35373a33, transparent 45%);
  }
  body:has(.policy-page)::after { background: none; }
  body:has(.policy-page) .topbar { background: #06080af2; border-color: #3a3c3f; box-shadow: none; }
  body:has(.policy-page) .brand-mark {
    background: url('/brand/woven-p-dark-3ed54228-180.png') center / contain no-repeat;
    color: transparent; border: 0; box-shadow: none; border-radius: 0;
  }
  body:has(.policy-page) .brand-name { font-family: Georgia, serif; color: #f0f2f4; }
  body:has(.policy-page) .brand-subtitle { color: #bdbfc1; }
  body:has(.policy-page) :is(h1,h2,h3) { font-family: Georgia, serif; font-weight: 400; color: #f0f2f4; }
  body:has(.policy-page) .privacy-card { background: #151719; border: 1px solid #3a3c3f; border-radius: 18px; box-shadow: none; }
  body:has(.policy-page) .eyebrow { color: #e6c47c; }
  body:has(.policy-page) a:not(.brand):not(.button) { color: #a0bc84; text-underline-offset: 4px; }
  body:has(.policy-page) .button { background: #212326; color: #f0f2f4; border-color: #3a3c3f; }
  body:has(.policy-page) .button:hover { border-color: #a0bc84; }
  body:has(.policy-page) :focus-visible { outline: 2px solid #e6c47c; outline-offset: 4px; }
}

/* Admin console: search, filters and the audit trail. */
.admin-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.admin-search-field {
  flex: 1 1 16rem;
  display: grid;
  gap: 0.3rem;
}

.admin-filter {
  display: grid;
  gap: 0.3rem;
}

.admin-audit-panel {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.admin-audit-panel h2:focus {
  outline: none;
}

.admin-audit-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-audit-entry {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 0.15rem 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid currentColor;
  border-color: rgb(127 127 127 / 0.25);
  border-radius: 7px;
  font-size: 0.88rem;
}
@media screen { .admin-audit-entry { border-color: rgb(124 127 131 / 0.25); } }

.admin-audit-when {
  grid-row: span 2;
  opacity: 0.75;
}

.admin-audit-who {
  opacity: 0.75;
}

@media (max-width: 640px) {
  .admin-audit-entry {
    grid-template-columns: 1fr;
  }

  .admin-audit-when {
    grid-row: auto;
  }
}

/* Admin support: find a customer, and one account's details. */
.admin-finder,
.admin-detail {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgb(127 127 127 / 0.25);
  border-radius: 10px;
}
@media screen { .admin-finder, .admin-detail { border-color: rgb(124 127 131 / 0.25); } }

.admin-finder h2,
.admin-detail h2 {
  margin: 0;
}

.admin-detail h2:focus {
  outline: none;
}

.admin-finder-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin: 0.25rem 0 0;
}

.admin-finder-field {
  flex: 1 1 18rem;
  display: grid;
  gap: 0.3rem;
}

.admin-finder-note,
.admin-finder-status,
.admin-detail-status {
  margin: 0;
  font-size: 0.88rem;
}

.admin-finder-note {
  opacity: 0.8;
}

.admin-finder-status:empty,
.admin-detail-status:empty {
  display: none;
}

.admin-matches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0.6rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.admin-match,
.admin-detail-group {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgb(127 127 127 / 0.25);
  border-radius: 8px;
}
@media screen { .admin-match, .admin-detail-group { border-color: rgb(124 127 131 / 0.25); } }

.admin-match-title,
.admin-detail-group h3 {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.admin-facts {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  gap: 0.2rem 0.75rem;
  margin: 0;
  font-size: 0.88rem;
}

.admin-facts dt {
  opacity: 0.75;
}

.admin-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-match-empty {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.8;
}

.admin-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-detail-id {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  opacity: 0.75;
  overflow-wrap: anywhere;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.6rem;
}

.admin-detail > .button {
  justify-self: start;
}

.account-support-reference code {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .admin-facts {
    grid-template-columns: 1fr;
  }

  .admin-facts dd {
    margin-bottom: 0.3rem;
  }
}

/* Admin overview: totals, budget meters and the 14-day sign-up strip. */
.admin-overview {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.6rem;
}

.admin-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgb(127 127 127 / 0.25);
  border-radius: 8px;
}
@media screen { .admin-stat { border: 1px solid rgb(124 127 131 / 0.25); } }

.admin-stat-label,
.admin-stat-detail,
.admin-signups-label,
.admin-features {
  font-size: 0.82rem;
  opacity: 0.8;
}

.admin-stat-value {
  font-size: 1.5rem;
  line-height: 1.1;
}

.admin-budget {
  display: grid;
  gap: 0.4rem;
}

.admin-budget-row {
  display: grid;
  grid-template-columns: minmax(14rem, auto) minmax(8rem, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.admin-budget-meter {
  width: 100%;
  height: 0.6rem;
}

.admin-signups-label {
  margin: 0;
}

.admin-signups {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  align-items: end;
  gap: 4px;
  height: 3.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-signup-day {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.admin-signup-bar {
  display: block;
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .admin-budget-row {
    grid-template-columns: 1fr;
  }
}


/* Local planning notes share the lesson builder's existing chip treatment. */
.map-activity-controls .how-we-learn { grid-column: 1 / -1; display: grid; gap: .8rem; }
.how-we-learn h2, .how-we-learn p { margin: 0; }
.how-we-learn-notes { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.how-we-learn-notes h2 { margin-top: 0; }
.how-we-learn .option-fieldset { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; padding: 0; border: 0; }
.how-we-learn .option-fieldset legend { width: 100%; margin-bottom: .4rem; }
.how-we-learn-setup, .how-we-learn-invitation { padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; }
.how-we-learn-setup { display: grid; gap: 1rem; }
.how-we-learn-setup h3 { margin: 0; }
.how-we-learn .choice-chip { cursor: pointer; }
.how-we-learn .choice-chip:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }
/* The Path shell passes input through to its map; the setup invitation needs a scrollable hit target. */
body[data-workspace-view="journey"] .next-step-card:has(.how-we-learn-invitation) { pointer-events: auto; }

/* How we learn: local conversation, then a parent-approved preference summary. */
.preference-conversation { max-width: 780px; margin-inline: auto; }
.preference-history, .preference-question { display: grid; gap: 1rem; min-width: 0; }
.preference-turn { padding: 1rem; border: 1px solid var(--line); border-radius: var(--pw-radius); background: var(--soft); }
.preference-conversation .preference-turn h2 { font-size: 1rem; }
.preference-answer { white-space: pre-wrap; overflow-wrap: anywhere; }
.preference-turn .preference-answer { padding: .8rem 0; }
.preference-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.preference-suggestions .button { white-space: normal; text-align: left; height: auto; min-height: 44px; max-width: 100%; }
.preference-response, .preference-summary-input { width: 100%; min-width: 0; resize: vertical; font: inherit; }
.preference-sent, .preference-clarifications { padding: 1rem; border: 1px solid var(--line); border-radius: var(--pw-radius); }
.preference-sent summary { cursor: pointer; min-height: 32px; }
.preference-sent h3 { margin-top: 1rem; }
.preference-conversation .inline-actions { flex-wrap: wrap; }
@media (max-width: 520px) { .preference-conversation { padding: 1rem; } .preference-suggestions .button { width: 100%; } }

/* A calm first planning session, using the published earth palette. */
.first-use-view { max-width: 820px; margin-inline: auto; }
.first-use-panel { display: grid; gap: 1.2rem; padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-panel); min-width: 0; }
.first-use-panel h1, .first-use-panel h2, .first-use-panel h3, .first-use-panel p { margin: 0; }
.first-use-panel h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.first-use-included { padding: .9rem 1rem; border-left: 3px solid var(--pw-sage); background: var(--pw-soft); border-radius: 0 8px 8px 0; }
.first-use-route { display: grid; gap: .8rem; padding-left: 1.5rem; margin: .2rem 0; }
.first-use-progress { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--pw-muted); font-size: .85rem; }
.first-use-progress .current { color: var(--pw-wheat); font-weight: 700; }
.first-use-panel .editor-field { min-width: 0; }
.first-use-panel textarea { font: inherit; width: 100%; resize: vertical; }
.first-use-topics { display: grid; gap: .8rem; }
.first-use-topic, .first-use-summary { display: grid; gap: .65rem; padding: 1rem; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-soft); overflow-wrap: anywhere; }
.first-use-topic.selected { border-color: var(--pw-sage); }
.first-use-topic h2 { font-size: 1.15rem; }
.first-use-topic .button { justify-self: start; }
.first-use-footer { border-top: 1px solid var(--pw-line); padding-top: .75rem; }
body[data-workspace-view="onboarding"] .parent-assistant-launcher { display: none; }
@media (max-width: 520px) { .first-use-panel .inline-actions { display: grid; gap: .6rem; } .first-use-panel .inline-actions .button { width: 100%; } }
#first-use-heading, #preference-question-heading, #preference-review-heading, #preference-summary-heading { scroll-margin-top: 110px; }
.first-use-resume { display: grid; justify-items: start; gap: .5rem; padding: 0 2.8rem .9rem 0; margin-bottom: .9rem; border-bottom: 1px solid var(--pw-line); }
body[data-workspace-view="journey"] .next-step-card:has(.first-use-resume) { pointer-events: auto; }
@media (max-width: 760px) { #first-use-heading, #preference-question-heading, #preference-review-heading, #preference-summary-heading { scroll-margin-top: 24px; } }
