@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Gamja+Flower&family=Gowun+Dodum&family=Jua&family=Playpen+Sans:wght@400;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #fffdf4;
  --paper-strong: #fff7db;
  --ink: #23313d;
  --muted: #66727c;
  --line: #d9d3c5;
  --mint: #8bd6c7;
  --mint-dark: #237667;
  --coral: #f27966;
  --coral-dark: #a9382b;
  --sun: #f8c537;
  --sky: #78aee8;
  --leaf: #87b86a;
  --white: #ffffff;
  --shadow: 0 12px 28px rgba(36, 49, 61, 0.12);
  --radius: 8px;
  --font-display: "Trebuchet MS", "Avenir Next", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(35, 49, 61, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(35, 49, 61, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

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

button {
  border: 0;
}

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

.boot-screen {
  display: grid;
  place-content: center;
  padding: 32px;
  text-align: center;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px;
  background: #f9eed1;
  border-right: 2px solid var(--ink);
  overflow-y: auto;
}

.brand {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--sun);
  font: 800 1.5rem var(--font-display);
}

.brand h1 {
  margin: 0;
  font: 800 1.3rem/1.1 var(--font-display);
}

.brand p,
.hint,
.muted {
  color: var(--muted);
}

.brand p,
.hint {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
}

.tabs {
  display: grid;
  gap: 8px;
}

.ui-language-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.ui-language-toggle > span {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
}

.ui-language-toggle > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ui-language-button {
  min-height: 24px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
}

.ui-language-button.active {
  color: var(--mint-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tab-button {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(35, 49, 61, 0.16);
}

.tab-button.active {
  background: var(--coral);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.sidebar-stat {
  margin: 0;
  padding-top: 18px;
  border-top: 2px dashed rgba(35, 49, 61, 0.25);
}

.sidebar-lower {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.progress-ring {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.ring {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(var(--leaf) var(--progress), var(--white) 0);
  font-weight: 800;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.top-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--coral-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.page-title {
  margin: 0;
  font: 800 clamp(1.8rem, 4vw, 3.2rem)/1 var(--font-display);
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-subtitle strong {
  color: var(--ink);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

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

.creator-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.today-mission-row {
  margin: 0 0 18px;
}

.today-mission-row .mission-peek {
  width: 100%;
}

.today-step-flow {
  align-items: start;
}

.flow-column,
.result-column {
  display: grid;
  gap: 14px;
}

.step-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.step-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  min-height: 74px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 3px 3px 0 rgba(35, 49, 61, 0.12);
}

.step-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.step-card.current {
  background: #fff3c4;
  box-shadow: 4px 4px 0 var(--sun);
}

.step-card.done {
  background: #dff6ef;
}

.step-card.waiting {
  color: #75818a;
  border-color: #c8c3b8;
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-weight: 900;
}

.mission-peek,
.step-panel,
.next-card,
.copy-card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mission-peek {
  background: #fff7db;
}

.mission-peek summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
}

.mission-peek summary span:first-child {
  color: var(--coral-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.mission-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.today-mission-row .mission-body {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
}

.mission-main,
.mission-side {
  display: grid;
  gap: 10px;
}

.mission-body p {
  margin: 0;
}

.compact-field {
  max-width: 430px;
}

.lesson-focus-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.lesson-focus-card h2 {
  margin: 0;
  font: 900 1.2rem/1.2 var(--font-display);
}

.lesson-focus-card p {
  margin: 0;
  line-height: 1.48;
}

.focus-lock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.focus-pill,
.inline-lock {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.inline-lock {
  min-height: 22px;
  margin-left: 6px;
  background: #f1eee6;
  color: var(--muted);
  border-color: var(--line);
}

.step-panel,
.next-card,
.copy-card {
  padding: 18px;
}

.step-panel.current {
  background: #fff3c4;
}

.step-panel.done {
  background: #dff6ef;
}

.step-panel-title {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.step-panel-title h2 {
  margin: 0;
  font: 800 1.25rem/1.2 var(--font-display);
}

.step-panel-title p {
  margin: 3px 0 0;
  color: var(--muted);
}

.copy-panel-title {
  grid-template-columns: 40px minmax(0, 1fr) auto;
}

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

.choice-button {
  min-height: 76px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(35, 49, 61, 0.16);
}

.choice-button.active {
  background: var(--mint);
  box-shadow: 4px 4px 0 var(--mint-dark);
}

.choice-button:disabled,
.seg-button:disabled,
.field textarea:disabled,
.field select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.sub-choice {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.lock-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.focus-fields {
  display: grid;
  gap: 12px;
}

.focus-fields textarea {
  min-height: 104px;
  font-size: 1rem;
}

.lesson-rule-strip {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 2px dashed rgba(35, 49, 61, 0.25);
  border-radius: var(--radius);
  background: #fff9df;
}

.locked-field textarea,
.locked-field select {
  background: #f4f1e8;
  color: #68747e;
}

.advanced-options {
  margin-top: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.advanced-options summary {
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 900;
}

.advanced-options > :not(summary) {
  margin: 0 12px 12px;
}

.primary-action-row {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.large-action {
  min-height: 54px;
  font-size: 1.05rem;
}

.next-card {
  background: #e4f0ff;
}

.empty-illustration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.empty-illustration span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(35, 49, 61, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 900;
}

.copy-card {
  background: #e4f0ff;
}

.big-copy {
  min-height: 50px;
  min-width: 112px;
}

.result-tools {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.mini-option {
  min-height: 30px;
  padding: 5px 8px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-option:hover {
  color: var(--ink);
  background: var(--white);
}

.quick-copy-grid {
  display: grid;
  gap: 10px;
}

.panel,
.song-card,
.lesson-card,
.version-card,
.compare-card {
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.panel.sun {
  background: #fff3c4;
}

.panel.mint {
  background: #dff6ef;
}

.panel.coral {
  background: #ffe2dc;
}

.panel.sky {
  background: #e4f0ff;
}

.panel-title {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.panel-title h2,
.panel-title h3,
.compact-title {
  margin: 0;
  font: 800 1.2rem/1.2 var(--font-display);
}

.badge-row,
.segmented,
.sample-row,
.revision-grid,
.copy-row,
.version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.locked {
  color: var(--muted);
  border-color: var(--line);
}

.badge.available {
  background: #e7f6ff;
}

.badge.in_progress {
  background: var(--sun);
}

.badge.completed {
  background: var(--mint);
}

.badge.mastered {
  background: var(--coral);
  color: var(--white);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.field-label-row label {
  min-width: 0;
}

.field label {
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.url-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.seg-button,
.primary,
.secondary,
.ghost,
.copy-button,
.sample-button,
.field-random-button {
  min-height: 40px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(35, 49, 61, 0.18);
}

.seg-button,
.secondary,
.sample-button,
.field-random-button {
  background: var(--white);
}

.field-random-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 11px;
  font-size: 0.78rem;
  line-height: 1;
}

.field-random-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
}

.seg-button.active {
  background: var(--mint);
}

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

.primary:disabled {
  background: #9ca5ab;
  cursor: not-allowed;
  box-shadow: none;
}

.ghost {
  background: transparent;
  box-shadow: none;
}

.copy-button {
  background: var(--sun);
}

.sample-button {
  background: #fff8e4;
}

.generated-fields {
  display: grid;
  gap: 10px;
}

.field-output {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.field-output header {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.field-output pre,
.full-copy-panel pre,
.compare-card pre {
  overflow: auto;
  max-height: 360px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #17212b;
  font: 0.88rem/1.5 "SFMono-Regular", Consolas, monospace;
}

.full-copy-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: #fff9df;
}

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

.revision-grid button {
  flex: 1 1 150px;
}

.prompt-lab {
  display: grid;
  gap: 14px;
  background: #f6efe2;
}

.prompt-lab-preview {
  display: grid;
  gap: 9px;
}

.prompt-preview-block {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.prompt-line-list {
  display: grid;
  gap: 4px;
}

.prompt-line-list code {
  display: block;
  overflow-wrap: anywhere;
  padding: 5px 7px;
  border-radius: 6px;
  background: #fbfaf5;
  color: #24313c;
  font: 0.78rem/1.35 "SFMono-Regular", Consolas, monospace;
}

.prompt-line-list code.prompt-token,
.prompt-token {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border: 1.5px solid #24313c;
  border-radius: 999px;
  background: #dff6ef;
  color: #1b3330;
  font: 800 0.76rem/1.25 "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.prompt-lab-group {
  display: grid;
  gap: 8px;
}

.prompt-lab-group h3 {
  margin: 0;
  font: 900 0.95rem/1.2 var(--font-display);
}

.prompt-lab-option-grid {
  display: grid;
  gap: 8px;
}

.prompt-lab-option {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 78px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(35, 49, 61, 0.16);
}

.prompt-lab-option:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(35, 49, 61, 0.18);
}

.prompt-lab-option small {
  color: var(--muted);
  line-height: 1.35;
}

.card-browser {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.28), rgba(199, 239, 217, 0.24), rgba(183, 226, 255, 0.2));
  box-shadow:
    var(--template-soft-shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.card-browser-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 240px);
  gap: 10px;
  align-items: end;
}

.card-browser-search,
.card-browser-sort {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.card-browser-search {
  grid-column: 1 / -1;
  min-width: 0;
}

.card-browser-sort {
  min-width: 0;
}

.card-browser-search span,
.card-browser-sort span,
.card-filter-group legend {
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-browser-search input,
.card-browser-sort select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1.5px solid rgba(35, 49, 61, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.card-browser-search input:focus,
.card-browser-sort select:focus {
  outline: 3px solid rgba(248, 197, 55, 0.34);
  border-color: rgba(35, 49, 61, 0.38);
}

.card-browser-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.card-browser-meta strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.card-browser-clear {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(35, 49, 61, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.card-browser-clear:disabled {
  cursor: default;
  opacity: 0.48;
}

.card-filter-drawer {
  min-width: 0;
}

.card-filter-drawer summary {
  width: fit-content;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(35, 49, 61, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 900;
}

.card-browser-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.card-filter-group {
  display: grid;
  gap: 7px;
  min-width: min(78vw, 300px);
  margin: 0;
  padding: 0;
  border: 0;
  scroll-snap-align: start;
}

.card-filter-group > div {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.card-filter-chip {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(35, 49, 61, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.card-filter-chip[aria-pressed="true"] {
  border-color: rgba(35, 49, 61, 0.42);
  background: var(--sun);
  box-shadow: 2px 2px 0 rgba(35, 49, 61, 0.12);
}

.card-browser-empty {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
  border: 1px dashed rgba(35, 49, 61, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.card-browser-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.card-browser-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1px 6px 2px 1px;
  scrollbar-gutter: stable;
}

.card-browser-list::-webkit-scrollbar {
  width: 10px;
}

.card-browser-list::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(117, 94, 124, 0.28);
}

.dictionary-layout {
  display: grid;
  gap: 14px;
  align-items: start;
}

.dictionary-content-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.dictionary-word-list,
.dictionary-detail {
  min-width: 0;
}

.recipe-list,
.dictionary-word-list {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  align-self: start;
}

.dictionary-word-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.recipe-workspace,
.dictionary-detail {
  position: sticky;
  top: 18px;
  overflow: visible;
  align-self: start;
}

.dictionary-category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--template-soft-shadow);
  scrollbar-gutter: stable;
}

.dictionary-category-tab,
.dictionary-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: var(--template-card-strong);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--template-shadow);
  cursor: pointer;
}

.dictionary-category-tab {
  display: grid;
  flex: 0 0 min(320px, 82vw);
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
}

.dictionary-category-tab strong,
.dictionary-category-tab span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dictionary-category-tab span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.dictionary-category-tab.active,
.dictionary-card.active {
  background: linear-gradient(135deg, rgba(255, 240, 168, 0.92), rgba(245, 179, 211, 0.84), rgba(183, 226, 255, 0.8));
  box-shadow: var(--template-soft-shadow);
}

.dictionary-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dictionary-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 132px;
  padding: 13px;
}

.dictionary-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.dictionary-field-pill {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(117, 94, 124, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dictionary-purpose-pill {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(35, 49, 61, 0.16);
  border-radius: 999px;
  background: rgba(183, 226, 255, 0.72);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.dictionary-intent-pill {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(166, 72, 114, 0.18);
  border-radius: 999px;
  background: rgba(255, 240, 168, 0.78);
  color: #74415d;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.dictionary-apply-panel {
  display: grid;
  gap: 13px;
}

.dictionary-apply-panel h3 {
  margin: 0;
  font: 900 clamp(1.18rem, 1.8vw, 1.55rem)/1.12 var(--font-display);
}

.dictionary-apply-panel p {
  margin: 7px 0 0;
  color: var(--ink);
  line-height: 1.48;
}

.dictionary-apply-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dictionary-apply-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.dictionary-apply-facts div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(117, 94, 124, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.dictionary-apply-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dictionary-apply-facts dd {
  margin: 0;
  line-height: 1.42;
}

.dictionary-detail-flow,
.recipe-detail-flow {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.dictionary-detail-card {
  display: grid;
  gap: 16px;
}

.dictionary-detail-card h3 {
  margin: 0;
  font: 900 clamp(1.35rem, 2.3vw, 2.2rem)/1.08 var(--font-display);
}

.dictionary-detail-card p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.55;
}

.dictionary-mini-lesson {
  display: grid;
  gap: 10px;
  margin: 0;
}

.dictionary-mini-lesson div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(166, 72, 114, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 249, 215, 0.9), rgba(255, 255, 255, 0.78));
}

.dictionary-mini-lesson dt {
  color: #a64872;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dictionary-mini-lesson dd {
  margin: 0;
  line-height: 1.5;
}

.dictionary-guidance-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.dictionary-guidance-list div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(35, 49, 61, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 251, 219, 0.72);
}

.dictionary-guidance-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dictionary-guidance-list dd {
  margin: 0;
  line-height: 1.48;
}

.dictionary-fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.dictionary-fact-list div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(117, 94, 124, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.dictionary-fact-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dictionary-fact-list dd {
  margin: 0;
  line-height: 1.45;
}

.dictionary-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dictionary-apply-button {
  width: fit-content;
}

.dictionary-related-list {
  display: grid;
  gap: 9px;
}

.dictionary-related-list h4 {
  margin: 0;
  color: var(--ink);
  font: 900 1rem/1.15 var(--font-display);
}

.dictionary-related-list > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.dictionary-related-card {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(117, 94, 124, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--template-soft-shadow);
  cursor: pointer;
}

.dictionary-related-card strong,
.dictionary-related-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dictionary-related-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.dictionary-option-note {
  display: block;
  padding-top: 2px;
  color: var(--ink);
}

.dictionary-book,
.dictionary-token-card,
.dictionary-spark-line {
  position: absolute;
  display: block;
}

.dictionary-book {
  left: 16%;
  top: 20%;
  width: 45%;
  height: 58%;
  border: 2px solid var(--ink);
  border-radius: 10px 16px 16px 10px;
  background: linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-mint));
  box-shadow: 7px 7px 0 rgba(35, 49, 61, 0.14);
}

.dictionary-token-card {
  right: 12%;
  top: 30%;
  width: 45%;
  height: 32%;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  transform: rotate(5deg);
}

.dictionary-spark-line {
  right: 20%;
  bottom: 22%;
  width: 44%;
  height: 8px;
  border-radius: 999px;
  background: var(--rainbow-pink);
  transform: rotate(-8deg);
}

.status-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.map-step {
  min-height: 70px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-strong);
  font-weight: 800;
  display: grid;
  align-content: center;
  text-align: center;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.lesson-card {
  min-height: 180px;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.lesson-card.locked {
  opacity: 0.7;
}

.lesson-card h3,
.song-card h3,
.version-card h3 {
  margin: 0;
  font: 800 1rem/1.25 var(--font-display);
}

.lesson-term {
  margin: 0;
  font-weight: 900;
  color: var(--coral-dark);
}

.lesson-progress-coach {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.lesson-progress-meter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.lesson-progress-meter {
  overflow: hidden;
  height: 10px;
  border: 1.5px solid var(--wild-black);
  border-radius: 999px;
  background: #fff6ea;
}

.lesson-progress-meter span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--leaf);
}

.lesson-progress-meter-row small {
  color: rgba(19, 15, 18, 0.68);
  font-weight: 900;
  white-space: nowrap;
}

.lesson-progress-next {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 2px solid var(--wild-black);
  border-radius: 16px;
  background: #ffe2dc;
  box-shadow: inset 0 -4px 0 rgba(19, 15, 18, 0.08);
}

.lesson-progress-next strong {
  font-weight: 950;
}

.lesson-progress-next span {
  color: rgba(19, 15, 18, 0.76);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.lesson-progress-evidence {
  color: rgba(19, 15, 18, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

.lesson-progress-evidence summary {
  cursor: pointer;
  font-weight: 950;
}

.lesson-progress-evidence ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.song-layout {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 16px;
}

.song-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.song-card {
  width: 100%;
  padding: 13px;
  text-align: left;
  cursor: pointer;
}

.song-card.active {
  background: #e4f0ff;
  box-shadow: 4px 4px 0 var(--sky);
}

.version-list {
  display: grid;
  gap: 12px;
}

.version-card {
  padding: 14px;
}

.version-card summary {
  cursor: pointer;
  font-weight: 800;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-card {
  padding: 12px;
  min-width: 0;
}

.empty-state {
  padding: 28px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  text-align: center;
}

.notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.learning-log {
  display: grid;
  gap: 10px;
}

.mini-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.open-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 rgba(35, 49, 61, 0.18);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

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

  .grid.two,
  .creator-layout,
  .song-layout,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .dictionary-content-layout {
    grid-template-columns: 1fr;
  }

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

  .today-mission-row .mission-body {
    grid-template-columns: 1fr;
  }

  .mission-content-grid {
    padding-top: 0;
    gap: 12px;
  }

  .mission-term-card {
    min-height: auto;
    padding-right: 20px;
  }

  .mission-action-sticker {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    transform: none;
    margin-top: -6px;
  }

  .curriculum-modal {
    max-height: 92vh;
  }
}

@media (max-width: 680px) {
  .workspace {
    padding: 16px;
  }

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

  .card-browser-chip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .card-filter-group {
    min-width: min(78vw, 280px);
    scroll-snap-align: start;
  }

  .card-filter-group > div {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .card-filter-chip {
    white-space: nowrap;
  }

  .field-grid,
  .recipe-setting-grid,
  .curriculum-grid,
  .step-track,
  .choice-grid,
  .settings-grid,
  .status-map {
    grid-template-columns: 1fr;
  }

  .recipe-section-heading {
    grid-template-columns: 1fr;
  }

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

  .dictionary-category-tabs {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .copy-panel-title {
    grid-template-columns: 40px 1fr;
  }

  .copy-panel-title .result-tools {
    grid-column: 2;
    justify-items: start;
  }

  .curriculum-trigger-card,
  .curriculum-modal-header {
    grid-template-columns: 1fr;
  }

  .curriculum-trigger-icon {
    display: none;
  }

  .curriculum-open-button,
  .modal-close-button {
    width: 100%;
  }

  .curriculum-modal-backdrop {
    padding: 10px;
  }

  .url-row {
    grid-template-columns: 1fr;
  }
}

/* Pastel sticker redesign inspired by playful Korean cute-web references. */
:root {
  --candy-pink: #ff9db5;
  --peach: #ffc5a8;
  --butter: #ffe783;
  --bubble-blue: #9edcff;
  --soda-mint: #9fe6d0;
  --lilac: #cdb7ff;
  --cream: #fff9e8;
  --strawberry-ink: #442b36;
  --soft-border: #513642;
  --sticker-shadow: 7px 7px 0 rgba(81, 54, 66, 0.16);
  --tiny-shadow: 3px 3px 0 rgba(81, 54, 66, 0.14);
  --paper: var(--cream);
  --paper-strong: #fff1b8;
  --ink: var(--strawberry-ink);
  --muted: #806f78;
  --line: #ead6cd;
  --mint: var(--soda-mint);
  --mint-dark: #438f7c;
  --coral: var(--candy-pink);
  --coral-dark: #ad4561;
  --sun: var(--butter);
  --sky: var(--bubble-blue);
  --leaf: #94d67a;
  --white: #fffefa;
  --shadow: var(--sticker-shadow);
}

body {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(68, 43, 54, 0.16) 1px, transparent 1.6px),
    linear-gradient(135deg, rgba(255, 157, 181, 0.18) 0 25%, transparent 25% 100%),
    linear-gradient(45deg, rgba(158, 220, 255, 0.15) 0 20%, transparent 20% 100%);
  background-position:
    0 0,
    0 0,
    18px 18px;
  background-size:
    18px 18px,
    72px 72px,
    84px 84px;
  color: var(--ink);
}

.app-shell {
  position: relative;
  isolation: isolate;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 18px 18px auto auto;
  z-index: -1;
  width: min(34vw, 360px);
  height: 180px;
  border: 2px solid rgba(81, 54, 66, 0.16);
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(81, 54, 66, 0.12) 46% 54%, transparent 54% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.45) 0 12px, transparent 12px 24px),
    var(--bubble-blue);
  opacity: 0.55;
  transform: rotate(-5deg);
  pointer-events: none;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 157, 181, 0.22) 0 12px, transparent 12px 24px),
    #fff0b9;
  border-right: 3px solid var(--soft-border);
}

.brand-mark {
  position: relative;
  background:
    linear-gradient(160deg, var(--soda-mint), #d6fff2);
  border: 3px solid var(--soft-border);
  box-shadow: 6px 6px 0 var(--butter);
  transform: rotate(-3deg);
}

.brand-mark::after {
  content: "♪";
  position: absolute;
  right: -9px;
  top: -10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--soft-border);
  border-radius: 8px;
  background: var(--candy-pink);
  color: var(--white);
  font-size: 0.86rem;
  transform: rotate(12deg);
}

.brand h1,
.page-title,
.panel-title h2,
.step-panel-title h2,
.lesson-focus-card h2,
.song-card h3,
.lesson-card h3,
.version-card h3 {
  letter-spacing: 0;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.tab-button,
.panel,
.song-card,
.lesson-card,
.version-card,
.compare-card,
.mission-peek,
.step-panel,
.next-card,
.copy-card,
.field-output,
.full-copy-panel,
.advanced-options {
  border: 3px solid var(--soft-border);
  box-shadow: var(--sticker-shadow);
}

.tab-button {
  background: var(--white);
  min-height: 50px;
  font-weight: 900;
}

.tab-button:nth-child(2) {
  transform: rotate(-1deg);
}

.tab-button:nth-child(3) {
  transform: rotate(1deg);
}

.tab-button.active {
  background: var(--candy-pink);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--soft-border);
}

.ring {
  background:
    conic-gradient(var(--candy-pink) var(--progress), var(--white) 0);
  box-shadow: var(--tiny-shadow);
}

.step-card {
  background: var(--white);
  border: 3px solid var(--soft-border);
  box-shadow: var(--tiny-shadow);
}

.step-card.current {
  background: var(--butter);
  box-shadow: 5px 5px 0 var(--peach);
  transform: rotate(-1deg);
}

.step-card.done {
  background: #d9f8ec;
}

.step-number {
  border: 3px solid var(--soft-border);
  background: var(--white);
  box-shadow: 2px 2px 0 rgba(81, 54, 66, 0.14);
}

.mission-peek {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent),
    var(--butter);
}

.lesson-focus-card,
.lesson-rule-strip {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), transparent),
    #fff5c9;
}

.step-panel.current,
.next-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), transparent 60%),
    var(--butter);
}

.step-panel.done,
.copy-card,
.panel.sky {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 60%),
    #d8f2ff;
}

.panel.mint,
.lesson-card.completed {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), transparent),
    #d9f8ec;
}

.panel.coral,
.lesson-card.mastered {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent),
    #ffd6df;
}

.choice-button,
.seg-button,
.primary,
.secondary,
.ghost,
.copy-button,
.sample-button,
.field-random-button,
.mini-option,
.open-link {
  border: 3px solid var(--soft-border);
  box-shadow: var(--tiny-shadow);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.choice-button:hover,
.seg-button:hover,
.primary:hover,
.secondary:hover,
.copy-button:hover,
.sample-button:hover,
.field-random-button:hover,
.mini-option:hover,
.open-link:hover {
  transform: translate(-1px, -1px) rotate(-0.5deg);
  box-shadow: 5px 5px 0 rgba(81, 54, 66, 0.2);
}

.choice-button.active,
.seg-button.active {
  background: var(--soda-mint);
  box-shadow: 5px 5px 0 var(--soft-border);
}

.primary {
  background: var(--candy-pink);
  color: var(--ink);
}

.copy-button {
  background: var(--butter);
}

.secondary,
.sample-button,
.mini-option {
  background: var(--white);
}

.badge,
.focus-pill,
.inline-lock {
  border: 2px solid var(--soft-border);
  box-shadow: 2px 2px 0 rgba(81, 54, 66, 0.1);
}

.badge.available {
  background: #def4ff;
}

.badge.in_progress {
  background: var(--butter);
}

.badge.completed {
  background: var(--soda-mint);
}

.badge.mastered {
  background: var(--candy-pink);
  color: var(--ink);
}

.field input,
.field textarea,
.field select,
.url-input {
  border: 3px solid var(--soft-border);
  background: #fffefa;
  box-shadow: inset 3px 3px 0 rgba(81, 54, 66, 0.05);
}

.field textarea:focus,
.field select:focus,
.field input:focus,
.url-input:focus {
  outline: 3px solid rgba(255, 157, 181, 0.45);
  outline-offset: 2px;
}

.lesson-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), transparent),
    var(--white);
}

.lesson-card:nth-child(4n + 1) {
  background-color: #fff2ba;
}

.lesson-card:nth-child(4n + 2) {
  background-color: #d8f2ff;
}

.lesson-card:nth-child(4n + 3) {
  background-color: #ffdbe4;
}

.lesson-card:nth-child(4n) {
  background-color: #ddf8ec;
}

.field-output pre,
.full-copy-panel pre,
.compare-card pre {
  background:
    repeating-linear-gradient(0deg, rgba(158, 220, 255, 0.12) 0 1px, transparent 1px 26px),
    #fffefa;
  padding: 8px;
  border-radius: var(--radius);
}

.notice {
  background: var(--strawberry-ink);
  border: 3px solid var(--soft-border);
  box-shadow: var(--sticker-shadow);
}

/* Orange editorial redesign from the supplied product-site reference. */
:root {
  --wild-orange: #f8743f;
  --wild-orange-deep: #dd6034;
  --clay-rose: #bc5f54;
  --clay-rose-dark: #87433f;
  --soft-pink-gutter: #e9a5c6;
  --palm-green: #a8cf75;
  --mint-cap: #8bc7a4;
  --lavender-cap: #b79bee;
  --cream-cap: #f7e68d;
  --wild-black: #130f12;
  --wild-serif: Georgia, "Times New Roman", serif;
  --wild-sans: "Avenir Next", "Segoe UI", sans-serif;
  --arch-radius: 999px 999px 34px 34px;
  --wild-shadow: 0 18px 32px rgba(75, 28, 18, 0.18);
  --paper: var(--wild-orange);
  --paper-strong: #ff8a51;
  --ink: var(--wild-black);
  --muted: #4c2e29;
  --line: rgba(19, 15, 18, 0.24);
  --mint: var(--palm-green);
  --mint-dark: #587c36;
  --coral: #ff5966;
  --coral-dark: #5c1f1d;
  --sun: var(--cream-cap);
  --sky: var(--lavender-cap);
  --leaf: var(--palm-green);
  --white: #fff5e7;
  --shadow: var(--wild-shadow);
}

body {
  background-color: var(--soft-pink-gutter);
  background-image:
    linear-gradient(90deg, var(--soft-pink-gutter) 0 7vw, transparent 7vw calc(100% - 7vw), var(--soft-pink-gutter) calc(100% - 7vw) 100%),
    radial-gradient(ellipse at 18% 16%, rgba(52, 14, 9, 0.42) 0 4%, transparent 9%),
    radial-gradient(circle at 82% 18%, rgba(255, 190, 129, 0.48) 0 7%, transparent 14%),
    linear-gradient(180deg, #f87842 0%, #f87842 34%, #bd6055 34%, #bd6055 66%, #f87842 66%, #f87842 100%);
  background-size: 100% 100%, 100% 520px, 100% 520px, 100% 100%;
  color: var(--wild-black);
  font-family: var(--wild-sans);
}

.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  background: var(--wild-orange);
}

.app-shell::before {
  width: 210px;
  height: 110px;
  inset: 44px 8vw auto auto;
  border: 0;
  border-radius: 0 0 80px 80px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(19, 15, 18, 0.16) 46% 50%, transparent 51%),
    var(--mint-cap);
  opacity: 0.85;
  transform: rotate(1deg);
}

.workspace {
  position: relative;
  padding: clamp(24px, 4vw, 56px);
}

.workspace::before {
  content: "";
  position: absolute;
  right: clamp(16px, 5vw, 84px);
  top: 48px;
  width: min(28vw, 360px);
  height: 190px;
  background:
    linear-gradient(70deg, transparent 42%, rgba(19, 15, 18, 0.82) 43% 47%, transparent 48%),
    linear-gradient(110deg, transparent 28%, #5f7a3f 29% 34%, transparent 35%),
    linear-gradient(75deg, transparent 54%, #5f7a3f 55% 61%, transparent 62%);
  opacity: 0.45;
  pointer-events: none;
}

.sidebar {
  background: var(--wild-orange);
  border-right: 0;
  padding: 30px 20px;
}

.brand {
  margin-bottom: 34px;
}

.brand-mark {
  width: 64px;
  height: 78px;
  border: 0;
  border-radius: 0 0 36px 36px;
  background: var(--bubble-blue);
  box-shadow: 16px 14px 22px rgba(72, 24, 14, 0.24);
  font-family: var(--wild-serif);
  transform: rotate(0deg);
}

.brand-mark::after {
  right: -26px;
  top: 5px;
  width: 48px;
  height: 26px;
  border: 0;
  border-radius: 0 0 22px 22px;
  background: var(--mint-cap);
  color: transparent;
  transform: rotate(0deg);
}

.brand h1,
.page-title,
.panel-title h2,
.step-panel-title h2,
.lesson-focus-card h2,
.song-card h3,
.lesson-card h3,
.version-card h3,
.compact-title {
  font-family: var(--wild-serif);
  font-weight: 900;
  line-height: 0.98;
  text-shadow: none;
}

.brand h1 {
  font-size: 2rem;
}

.brand p,
.hint,
.muted,
.page-subtitle,
.step-panel-title p,
.step-card p {
  color: rgba(19, 15, 18, 0.7);
}

.page-title {
  max-width: 720px;
  font-size: clamp(3rem, 8vw, 6.9rem);
  letter-spacing: -0.04em;
}

.page-subtitle {
  max-width: 520px;
  font-weight: 700;
}

.tabs {
  gap: 14px;
}

.tab-button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 15, 18, 0.92);
  color: #fff6ea;
  box-shadow: none;
  text-align: center;
  font-weight: 900;
}

.tab-button:nth-child(2),
.tab-button:nth-child(3) {
  transform: none;
}

.tab-button.active {
  background: #fff6ea;
  color: var(--wild-black);
  box-shadow: inset 0 0 0 2px rgba(19, 15, 18, 0.9);
}

.sidebar-stat {
  border-top: 1px solid rgba(19, 15, 18, 0.18);
}

.ring {
  border: 0;
  background:
    conic-gradient(var(--wild-black) var(--progress), rgba(255, 246, 234, 0.42) 0);
  color: #fff6ea;
  box-shadow: none;
}

.top-strip {
  min-height: 210px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--wild-black);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.creator-layout {
  grid-template-columns: minmax(330px, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(20px, 4vw, 54px);
}

.today-mission-row {
  margin-bottom: clamp(20px, 4vw, 44px);
}

.today-mission-row .mission-body {
  gap: clamp(16px, 3vw, 34px);
}

.step-track {
  margin-bottom: 28px;
}

.step-card,
.mission-peek,
.step-panel,
.next-card,
.copy-card,
.panel,
.song-card,
.lesson-card,
.version-card,
.compare-card,
.field-output,
.full-copy-panel,
.advanced-options {
  border: 0;
  box-shadow: none;
}

.step-card {
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.72);
  min-height: 82px;
}

.step-card.current {
  background: var(--cream-cap);
  box-shadow: none;
  transform: none;
}

.step-card.done {
  background: var(--palm-green);
}

.step-number {
  border: 0;
  background: var(--wild-black);
  color: #fff6ea;
  box-shadow: none;
}

.mission-peek,
.step-panel,
.next-card,
.copy-card {
  border-radius: 24px;
  background: rgba(255, 246, 234, 0.74);
  backdrop-filter: blur(2px);
}

.mission-peek {
  background: var(--clay-rose);
  color: var(--wild-black);
}

.mission-peek summary {
  padding: 18px 20px;
}

.today-mission-row .mission-peek summary {
  padding: 20px 24px;
}

.today-mission-row .mission-body {
  padding: 0 24px 24px;
}

.lesson-focus-card {
  border: 0;
  border-radius: 22px;
  background: rgba(255, 246, 234, 0.5);
}

.lesson-focus-card h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.step-panel,
.next-card,
.copy-card {
  padding: 24px;
}

.step-panel.current,
.next-card {
  background: #f8844a;
}

.step-panel.done,
.copy-card,
.panel.sky {
  background: var(--clay-rose);
}

.lesson-rule-strip,
.advanced-options,
.field-output,
.full-copy-panel {
  border: 0;
  background: rgba(255, 246, 234, 0.42);
}

.curriculum-trigger-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 246, 234, 0.38);
}

.curriculum-trigger-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--wild-black);
  color: #fff6ea;
  font-weight: 900;
  font-size: 1.05rem;
  font-family: var(--wild-serif);
}

.curriculum-trigger-copy {
  min-width: 0;
}

.curriculum-trigger-copy h3,
.curriculum-trigger-copy p {
  margin: 0;
}

.curriculum-trigger-copy h3 {
  font-size: 1rem;
  line-height: 1.08;
}

.curriculum-trigger-card h3 {
  font-size: 1rem;
}

.curriculum-trigger-copy p:not(.eyebrow) {
  overflow: hidden;
  color: rgba(19, 15, 18, 0.68);
  font-size: 0.86rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.curriculum-open-button {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.curriculum-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(19, 15, 18, 0.42);
}

.curriculum-modal {
  width: min(980px, 100%);
  max-height: min(820px, 90vh);
  overflow: auto;
  border-radius: 32px;
  background: var(--wild-orange);
  color: var(--wild-black);
  box-shadow: 18px 18px 0 rgba(19, 15, 18, 0.5);
}

.curriculum-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 24px;
  background: var(--wild-orange);
}

.curriculum-modal-header h2,
.curriculum-modal-header p {
  margin: 0;
}

.curriculum-modal-header h2 {
  font-family: var(--wild-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.modal-close-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 2px solid var(--wild-black);
  border-radius: 999px;
  background: #fff6ea;
  color: var(--wild-black);
  cursor: pointer;
  font-weight: 900;
}

.curriculum-modal-body {
  display: grid;
  gap: 12px;
  padding: 0 24px 24px;
}

.curriculum-card,
.curriculum-mini {
  border: 0;
  border-radius: 22px;
  background: rgba(255, 246, 234, 0.46);
}

.curriculum-card {
  padding: 16px;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.curriculum-modal .curriculum-grid {
  padding: 0;
}

.curriculum-grid > div,
.curriculum-grid > article,
.curriculum-mini {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.curriculum-grid .wide {
  grid-column: 1 / -1;
}

.curriculum-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.45;
}

.curriculum-list li::marker {
  font-weight: 900;
}

.choice-grid {
  gap: 14px;
}

.choice-button {
  min-height: 94px;
  border: 0;
  border-radius: var(--arch-radius);
  background: var(--cream-cap);
  color: var(--wild-black);
  box-shadow: none;
  font-weight: 900;
}

.choice-button:nth-child(2) {
  background: var(--palm-green);
}

.choice-button:nth-child(3) {
  background: var(--lavender-cap);
}

.choice-button.active,
.seg-button.active {
  background: #ff5966;
  box-shadow: inset 0 0 0 3px var(--wild-black);
}

.seg-button,
.primary,
.secondary,
.ghost,
.copy-button,
.sample-button,
.field-random-button,
.mini-option,
.open-link {
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

.primary,
.tab-button,
.copy-button {
  background: var(--wild-black);
  color: #fff6ea;
}

.primary:disabled {
  background: rgba(19, 15, 18, 0.38);
}

.secondary,
.sample-button,
.field-random-button,
.mini-option,
.open-link {
  background: #fff6ea;
  color: var(--wild-black);
}

.choice-button:hover,
.seg-button:hover,
.primary:hover,
.secondary:hover,
.copy-button:hover,
.sample-button:hover,
.field-random-button:hover,
.mini-option:hover,
.open-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(75, 28, 18, 0.16);
}

.field input,
.field textarea,
.field select,
.url-input {
  border: 0;
  border-radius: 16px;
  background: #fff6ea;
  box-shadow: none;
}

.badge,
.focus-pill,
.inline-lock {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.68);
  box-shadow: none;
}

.badge.available {
  background: var(--lavender-cap);
}

.badge.in_progress {
  background: var(--cream-cap);
}

.badge.completed {
  background: var(--palm-green);
}

.badge.mastered {
  background: #ff5966;
  color: var(--wild-black);
}

.lesson-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.lesson-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 20px;
  border-radius: var(--arch-radius);
  background: var(--cream-cap);
}

.lesson-card::before {
  content: "";
  position: absolute;
  inset: 16px 20px auto auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--wild-black);
  opacity: 0.92;
}

.lesson-card:nth-child(4n + 1) {
  background: var(--cream-cap);
}

.lesson-card:nth-child(4n + 2) {
  background: var(--palm-green);
}

.lesson-card:nth-child(4n + 3) {
  background: #ff5966;
}

.lesson-card:nth-child(4n) {
  background: var(--lavender-cap);
}

.lesson-term {
  color: var(--wild-black);
  font-family: var(--wild-serif);
  font-size: 1.15rem;
}

.field-output pre,
.full-copy-panel pre,
.compare-card pre {
  background: #fff6ea;
}

.notice {
  border: 0;
  background: var(--wild-black);
  color: #fff6ea;
  box-shadow: 0 18px 36px rgba(19, 15, 18, 0.24);
}

.select-shell {
  position: relative;
  display: grid;
}

.select-shell select {
  width: 100%;
  min-height: 52px;
  appearance: none;
  padding: 12px 52px 12px 18px;
  border: 2px solid var(--wild-black);
  border-radius: 999px;
  background: #fff6ea;
  color: var(--wild-black);
  font: 900 0.98rem/1.2 var(--wild-sans);
  box-shadow: inset 0 -4px 0 rgba(248, 116, 63, 0.16);
  cursor: pointer;
}

.select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--wild-black);
  transform: translateY(-35%);
  pointer-events: none;
}

.select-shell select:focus {
  outline: 3px solid rgba(255, 89, 102, 0.45);
  outline-offset: 3px;
}

.select-shell select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.learning-map-panel {
  display: grid;
  gap: 22px;
}

.suno-quick-start {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.42), rgba(199, 239, 217, 0.34), rgba(183, 226, 255, 0.3));
  box-shadow: var(--template-shadow);
}

.suno-quick-copy {
  display: grid;
  gap: 6px;
  align-content: start;
}

.suno-quick-copy h2,
.suno-quick-copy p {
  margin: 0;
}

.suno-quick-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.03;
}

.suno-use-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.suno-use-step {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 6px;
  align-content: start;
  min-height: 152px;
  padding: 10px;
  border: 1px solid rgba(19, 15, 18, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.suno-use-step strong,
.suno-use-step p {
  min-width: 0;
  margin: 0;
}

.suno-use-step strong {
  color: var(--template-ink);
  font-size: 0.92rem;
  line-height: 1.18;
}

.suno-use-step p {
  color: var(--muted);
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.suno-use-step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink));
  color: var(--template-ink);
  font-weight: 1000;
}

.suno-paste-board {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(19, 15, 18, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
}

.map-field-primer-title {
  margin: 0;
  color: var(--template-ink);
  font-weight: 1000;
}

.map-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 8px;
}

.map-field-chip {
  display: grid;
  gap: 5px;
  min-height: 108px;
  padding: 11px 12px;
  border: 1px solid rgba(19, 15, 18, 0.14);
  border-left: 6px solid var(--rainbow-yellow);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.map-field-chip.lyrics {
  border-left-color: var(--rainbow-mint);
}

.map-field-chip.style {
  border-left-color: var(--rainbow-blue);
}

.map-field-chip.exclude {
  border-left-color: var(--rainbow-pink);
}

.map-field-chip strong,
.map-field-chip span,
.map-field-chip small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-field-chip strong {
  color: var(--template-ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
}

.map-field-chip span {
  color: var(--template-ink);
  font-weight: 900;
  line-height: 1.2;
}

.map-field-chip small {
  color: var(--muted);
  line-height: 1.32;
}

.curriculum-phase {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 246, 234, 0.62);
}

.phase-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--wild-orange);
  color: var(--wild-black);
}

.phase-header h3 {
  margin: 0;
  font-family: var(--wild-serif);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
}

.phase-header p {
  margin: 6px 0 0;
  max-width: 68ch;
  line-height: 1.35;
}

.phase-marker {
  display: grid;
  place-items: center;
  min-width: 78px;
  min-height: 78px;
  padding: 10px;
  border-radius: var(--arch-radius);
  background: #fff6ea;
  font-family: var(--wild-serif);
  font-size: 0.96rem;
  text-align: center;
}

.phase-count {
  justify-self: end;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.72);
  font-weight: 900;
  white-space: nowrap;
}

.phase-lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.phase-lesson-grid .lesson-card {
  overflow: visible;
  min-height: auto;
  padding: 20px;
  border-radius: 28px 28px 10px 10px;
  align-content: start;
}

.phase-lesson-grid .lesson-card > * {
  position: relative;
  z-index: 1;
}

.phase-lesson-grid .lesson-card::before {
  inset: 14px 14px auto auto;
  width: 34px;
  height: 34px;
  opacity: 0.2;
  z-index: 0;
}

.phase-lesson-grid .lesson-card .badge-row {
  padding-right: 42px;
}

.phase-lesson-grid .lesson-card h3,
.phase-lesson-grid .lesson-term {
  overflow-wrap: anywhere;
}

.map-note {
  background: rgba(255, 246, 234, 0.5);
}

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

.curriculum-note-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.32);
}

.curriculum-note-label {
  color: rgba(19, 15, 18, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.curriculum-note-summary {
  overflow: hidden;
  color: rgba(19, 15, 18, 0.62);
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.curriculum-note-button {
  min-height: 30px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.78);
  color: var(--wild-black);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.today-mission-row .mission-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 22px);
}

.mission-control-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1.05fr);
  gap: clamp(12px, 2vw, 20px);
  align-items: end;
}

.mission-select-field {
  max-width: none;
}

.mission-select-field label {
  color: rgba(19, 15, 18, 0.78);
  font-size: 0.82rem;
}

.mission-select-field .select-shell select {
  min-height: 58px;
}

.mission-content-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  padding-top: 12px;
}

.mission-term-card {
  min-height: clamp(310px, 28vw, 420px);
  padding: clamp(24px, 3vw, 40px);
  padding-right: clamp(300px, 30vw, 430px);
  align-content: start;
}

.lesson-focus-card.mission-term-card h2 {
  font-size: clamp(2.45rem, 5vw, 4.6rem);
  line-height: 0.94;
}

.lesson-focus-card.mission-term-card > p {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.48;
}

.mission-action-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 249, 215, 0.88), rgba(255, 224, 238, 0.74) 48%, rgba(211, 247, 231, 0.72)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
}

.mission-action-sticker {
  position: absolute;
  top: 0;
  right: clamp(12px, 2vw, 24px);
  z-index: 2;
  width: min(360px, 34%);
  min-height: auto;
  transform: translateY(-10px) rotate(2.5deg);
  transform-origin: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 20px 20px 8px 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72) 0 10px, transparent 11px),
    radial-gradient(circle at 86% 74%, rgba(183, 226, 255, 0.54) 0 12px, transparent 13px),
    linear-gradient(145deg, rgba(255, 248, 196, 0.95), rgba(250, 187, 219, 0.82) 52%, rgba(199, 239, 217, 0.84));
  box-shadow: 0 18px 34px rgba(157, 91, 130, 0.2);
}

.mission-action-sticker::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(166, 96, 130, 0.24);
}

.mission-action-card .eyebrow {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #a64872;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

.mission-action-card h3 {
  margin: 0;
  padding-right: 36px;
  color: #4f3654;
  font: 900 clamp(1.15rem, 2vw, 1.75rem) / 1.08 var(--font-display);
}

.mission-action-card p {
  color: #6d5a73;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.45;
}

.mission-action-focus {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 3px solid rgba(166, 96, 130, 0.2);
}

.mission-action-focus span {
  color: #9d4f77;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-action-focus strong {
  color: #49364f;
  font-size: 0.96rem;
}

.mission-learning-line {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: #634e68;
  font-weight: 800;
}

.lesson-focus-field {
  position: relative;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 246, 234, 0.56);
  outline: 3px solid rgba(19, 15, 18, 0.1);
}

.context-field {
  gap: 8px;
}

.field-learning-cue {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 246, 234, 0.36);
  color: rgba(19, 15, 18, 0.7);
  font-size: 0.88rem;
  line-height: 1.38;
}

.field-learning-cue.active {
  background: rgba(255, 246, 234, 0.78);
}

.field-learning-cue > span {
  color: var(--wild-black);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-learning-cue p {
  margin: 0;
}

.listen-for-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.listen-label-tag {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 246, 234, 0.72);
  color: var(--wild-black);
  box-shadow: inset 0 0 0 1px rgba(19, 15, 18, 0.08);
}

.listen-label-tag strong {
  white-space: nowrap;
}

.composition-options-grid {
  display: grid;
  gap: 14px;
}

.composition-option-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.composition-option-control {
  display: grid;
  gap: 8px;
  width: min(100%, 430px);
  min-width: 0;
}

.learning-impact-strip {
  display: grid;
  gap: 12px;
  margin: 6px 0 16px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 246, 234, 0.5);
}

.learning-impact-strip h3 {
  margin: 0;
  font: 900 clamp(1.15rem, 2vw, 1.65rem) / 1.08 var(--font-display);
}

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

.learning-impact-pill {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 246, 234, 0.58);
}

.learning-impact-pill span {
  color: rgba(19, 15, 18, 0.56);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.learning-impact-pill strong,
.learning-impact-pill p {
  overflow-wrap: anywhere;
}

.learning-impact-pill p {
  margin: 0;
  color: rgba(19, 15, 18, 0.66);
  font-size: 0.82rem;
  line-height: 1.35;
}

.create-readiness {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 246, 234, 0.58);
  color: rgba(19, 15, 18, 0.72);
}

.create-readiness strong {
  color: var(--wild-black);
  font-size: 0.95rem;
}

.create-readiness p {
  margin: 0;
  line-height: 1.4;
}

.create-readiness.blocked {
  background: rgba(255, 246, 234, 0.44);
  outline: 3px solid rgba(19, 15, 18, 0.12);
}

.create-readiness.ready {
  background: rgba(199, 231, 152, 0.45);
}

@media (max-width: 760px) {
  .phase-header {
    grid-template-columns: 1fr;
  }

  .phase-count {
    justify-self: start;
    white-space: normal;
  }

  .mission-control-row,
  .mission-content-grid,
  .learning-impact-grid {
    grid-template-columns: 1fr;
  }

  .phase-lesson-grid {
    grid-template-columns: 1fr;
  }
}

/* Rainbow social template design system from the attached references. */
:root {
  --rainbow-pink: #f5b3d3;
  --rainbow-lilac: #d9c8ff;
  --rainbow-blue: #b7e2ff;
  --rainbow-mint: #c7efd9;
  --rainbow-yellow: #fff0a8;
  --rainbow-peach: #ffd3bd;
  --template-card: rgba(255, 255, 255, 0.82);
  --template-card-strong: #ffffff;
  --template-ink: #4b3f4d;
  --template-muted: #8f7f8c;
  --template-line: rgba(117, 94, 124, 0.18);
  --template-shadow: 0 18px 42px rgba(141, 101, 128, 0.18);
  --template-soft-shadow: 0 8px 24px rgba(141, 101, 128, 0.12);
  --paper: #fff7fb;
  --paper-strong: #fffdf8;
  --ink: var(--template-ink);
  --muted: var(--template-muted);
  --line: var(--template-line);
  --mint: var(--rainbow-mint);
  --mint-dark: #6aa889;
  --coral: var(--rainbow-pink);
  --coral-dark: #a66082;
  --sun: var(--rainbow-yellow);
  --sky: var(--rainbow-blue);
  --leaf: var(--rainbow-mint);
  --white: #ffffff;
  --shadow: var(--template-shadow);
  --radius: 8px;
  --font-display-en: "Playpen Sans", "Comic Neue", "Bradley Hand", "Comic Sans MS", cursive;
  --font-body-en: "Comic Neue", "Playpen Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-display-ko: "Gamja Flower", "Jua", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-body-ko: "Gowun Dodum", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: var(--font-display-en);
  --font-body: var(--font-body-en);
  --wild-serif: var(--font-display);
  --wild-sans: var(--font-body);
}

html[lang="en"] {
  --font-display: var(--font-display-en);
  --font-body: var(--font-body-en);
}

html[lang="ko"] {
  --font-display: var(--font-display-ko);
  --font-body: var(--font-body-ko);
  word-break: keep-all;
  overflow-wrap: break-word;
}

body {
  background-color: #f8c8dc;
  background-image:
    linear-gradient(115deg, rgba(245, 179, 211, 0.78) 0%, rgba(255, 240, 168, 0.74) 30%, rgba(183, 226, 255, 0.76) 62%, rgba(199, 239, 217, 0.72) 100%),
    repeating-linear-gradient(0deg, transparent 0 78px, rgba(255, 255, 255, 0.3) 78px 80px, transparent 80px 88px, rgba(255, 255, 255, 0.2) 88px 90px, transparent 90px 98px),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.46) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 74%, rgba(255, 240, 168, 0.38) 0 4px, transparent 6px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px);
  background-size: 100% 100%, 100% 196px, 220px 220px, 260px 260px, 320px 320px, 34px 34px, 34px 34px;
  color: var(--template-ink);
  font-family: var(--font-body);
}

.template-frame {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--template-shadow);
}

.template-card-surface,
.mission-peek,
.step-panel,
.next-card,
.copy-card,
.panel,
.recipe-card,
.recipe-setting,
.song-card,
.lesson-card,
.version-card,
.compare-card,
.field-output,
.full-copy-panel,
.advanced-options,
.curriculum-phase,
.curriculum-card,
.curriculum-mini {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: var(--template-card);
  box-shadow: var(--template-shadow);
  backdrop-filter: blur(10px);
}

.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  max-width: 1360px;
  margin: 0 auto;
  background: transparent;
}

.app-shell::before {
  content: "";
  width: 165px;
  height: 230px;
  inset: 42px 5vw auto auto;
  border: 10px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink) 45%, var(--rainbow-blue));
  box-shadow: var(--template-soft-shadow);
  opacity: 0.36;
  transform: rotate(5deg);
}

.app-shell::after {
  content: "";
  position: fixed;
  left: max(280px, calc((100vw - 1360px) / 2 + 278px));
  bottom: 28px;
  z-index: -1;
  width: min(44vw, 520px);
  height: 128px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(75, 63, 77, 0.16) 0 12px, transparent 12px 34px, rgba(75, 63, 77, 0.12) 34px 42px, transparent 42px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.34) 0 8px, rgba(255, 255, 255, 0.05) 8px 18px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(245, 179, 211, 0.22), rgba(183, 226, 255, 0.22));
  box-shadow: var(--template-soft-shadow);
  opacity: 0.26;
  pointer-events: none;
  transform: rotate(-2deg);
}

.workspace {
  isolation: isolate;
  padding: clamp(22px, 4vw, 46px);
}

/* Music production room background graphics. */
.workspace::before {
  content: "";
  position: absolute;
  right: clamp(24px, 7vw, 110px);
  top: 44px;
  z-index: -1;
  width: min(34vw, 420px);
  height: 138px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 48%, rgba(245, 179, 211, 0.42) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 58%, rgba(183, 226, 255, 0.4) 0 6px, transparent 7px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(75, 63, 77, 0.11) 22px 25px, transparent 25px 44px),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(255, 255, 255, 0.38) 17px 19px, transparent 19px 26px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 240, 168, 0.16), rgba(183, 226, 255, 0.15));
  box-shadow: 0 12px 28px rgba(141, 101, 128, 0.08);
  opacity: 0.24;
  pointer-events: none;
  transform: rotate(-1deg);
}

.sidebar {
  margin: 18px 0 18px 18px;
  height: calc(100vh - 36px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--template-shadow);
  backdrop-filter: blur(12px);
}

.brand {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 2px 0 16px;
  border-bottom: 1px solid rgba(117, 94, 124, 0.12);
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: 6px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68) 0 28%, transparent 28% 72%, rgba(255, 255, 255, 0.62) 72% 100%),
    linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink), var(--rainbow-blue));
  color: var(--template-card-strong);
  box-shadow: var(--template-soft-shadow);
  font: 900 1.28rem/1 var(--font-display);
}

.brand-mark::before {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(94, 81, 97, 0.26), rgba(183, 226, 255, 0.76));
  box-shadow: 0 3px 8px rgba(94, 81, 97, 0.16);
}

.brand-mark::after {
  content: "";
  right: -7px;
  top: -7px;
  width: 18px;
  height: 18px;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: var(--rainbow-mint);
  color: transparent;
}

.brand h1,
.page-title,
.panel-title h2,
.step-panel-title h2,
.lesson-focus-card h2,
.recipe-card h3,
.song-card h3,
.lesson-card h3,
.version-card h3,
.compact-title {
  font-family: var(--font-display);
  letter-spacing: 0;
  text-shadow: none;
}

.brand h1 {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.08;
}

.brand p {
  margin-top: 5px;
  font-size: 0.84rem;
  line-height: 1.38;
}

.brand p,
.hint,
.muted,
.page-subtitle,
.step-panel-title p,
.step-card p {
  color: var(--template-muted);
}

.tabs {
  gap: 10px;
}

.ui-language-toggle {
  color: var(--template-muted);
}

.ui-language-button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--template-ink);
  box-shadow: none;
}

.ui-language-button.active {
  background: transparent;
  color: var(--mint-dark);
  box-shadow: none;
}

.tab-button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--template-ink);
  box-shadow: var(--template-soft-shadow);
  text-align: left;
}

.tab-button.active {
  background: linear-gradient(135deg, rgba(255, 240, 168, 0.92), rgba(245, 179, 211, 0.84), rgba(183, 226, 255, 0.8));
  color: var(--template-ink);
  box-shadow: var(--template-soft-shadow);
}

.sidebar-stat {
  border-top: 1px solid var(--template-line);
}

.ring {
  border: 8px solid rgba(255, 255, 255, 0.74);
  background:
    conic-gradient(var(--rainbow-pink) var(--progress), rgba(255, 255, 255, 0.52) 0);
  color: var(--template-ink);
  box-shadow: var(--template-soft-shadow);
}

.top-strip {
  min-height: 150px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.today-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, clamp(185px, 18vw, 230px));
  grid-template-rows: auto auto;
  gap: 14px clamp(18px, 3vw, 38px);
  min-height: clamp(190px, 20vw, 260px);
  align-items: center;
}

.today-hero::before {
  content: "";
  position: absolute;
  left: clamp(10px, 3vw, 36px);
  right: min(250px, 22vw);
  bottom: clamp(12px, 2vw, 26px);
  z-index: -1;
  height: 58px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 52%, rgba(255, 255, 255, 0.72) 0 7px, transparent 8px),
    radial-gradient(circle at 34% 36%, rgba(245, 179, 211, 0.55) 0 6px, transparent 7px),
    radial-gradient(circle at 60% 58%, rgba(183, 226, 255, 0.55) 0 6px, transparent 7px),
    radial-gradient(circle at 84% 34%, rgba(199, 239, 217, 0.55) 0 6px, transparent 7px),
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(255, 255, 255, 0.3) 11px 13px, transparent 13px 19px),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
  opacity: 0.46;
  pointer-events: none;
}

.today-hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.today-hero .toolbar {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.music-room-hero-art {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  width: min(100%, 230px);
  aspect-ratio: 4 / 5;
  margin: 0 2px 0 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.55) 0 9px, transparent 10px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.5)),
    linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink), var(--rainbow-blue));
  box-shadow:
    0 14px 30px rgba(117, 94, 124, 0.16),
    0 8px 24px rgba(255, 255, 255, 0.34) inset;
  transform: translateX(-20px) rotate(3deg);
  transform-origin: center;
  pointer-events: none;
}

.music-room-hero-art::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 20%;
  height: 28%;
  border-radius: 999px;
  border-top: 4px solid rgba(94, 81, 97, 0.26);
  border-bottom: 4px solid rgba(255, 255, 255, 0.55);
  transform: rotate(-8deg);
  opacity: 0.82;
}

.music-room-hero-art::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 12%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 26%, transparent 28%),
    radial-gradient(circle, rgba(94, 81, 97, 0.22) 0 58%, transparent 60%),
    linear-gradient(135deg, rgba(199, 239, 217, 0.92), rgba(183, 226, 255, 0.72));
  box-shadow: var(--template-soft-shadow);
}

.studio-keyboard,
.studio-mic,
.studio-headphones {
  display: block;
  position: absolute;
}

.studio-keyboard {
  left: 11%;
  right: 11%;
  bottom: 15%;
  height: 22%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0 12%, rgba(255, 255, 255, 0.95) 12% 15%, rgba(94, 81, 97, 0.15) 15% 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 240, 168, 0.58));
  box-shadow: var(--template-soft-shadow);
}

.studio-keyboard::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 0;
  height: 46%;
  border-radius: 0 0 4px 4px;
  background: repeating-linear-gradient(90deg, transparent 0 12%, rgba(94, 81, 97, 0.72) 12% 17%, transparent 17% 25%);
  opacity: 0.72;
}

.studio-mic {
  left: 16%;
  bottom: 39%;
  width: 18%;
  height: 30%;
  border-radius: 999px 999px 8px 8px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.36) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(94, 81, 97, 0.46), rgba(94, 81, 97, 0.24));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.5),
    var(--template-soft-shadow);
}

.studio-mic::after {
  content: "";
  position: absolute;
  left: 45%;
  top: 100%;
  width: 10%;
  height: 42%;
  border-radius: 999px;
  background: rgba(94, 81, 97, 0.32);
  box-shadow: -16px 32px 0 -5px rgba(94, 81, 97, 0.25), 16px 32px 0 -5px rgba(94, 81, 97, 0.25);
}

.studio-headphones {
  right: 14%;
  top: 22%;
  width: 32%;
  aspect-ratio: 1.1;
  border: 6px solid rgba(94, 81, 97, 0.24);
  border-bottom-color: transparent;
  border-radius: 999px 999px 18px 18px;
}

.studio-headphones::before,
.studio-headphones::after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 24%;
  height: 43%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 179, 211, 0.86), rgba(255, 255, 255, 0.64));
  box-shadow: var(--template-soft-shadow);
}

.studio-headphones::before {
  left: -13%;
}

.studio-headphones::after {
  right: -13%;
}

/* Top-level tab hero graphics. */
.tab-hero-strip {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, clamp(168px, 16vw, 218px));
  gap: 14px clamp(18px, 3vw, 34px);
  min-height: clamp(132px, 14vw, 184px);
  align-items: center;
}

.tab-hero-copy {
  grid-column: 1;
  align-self: center;
}

.tab-hero-art {
  position: relative;
  grid-column: 2;
  justify-self: end;
  width: min(100%, 218px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.8) 0 6px, transparent 7px),
    radial-gradient(circle at 88% 24%, rgba(255, 255, 255, 0.56) 0 10px, transparent 11px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.45)),
    linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink), var(--rainbow-blue));
  box-shadow:
    0 14px 30px rgba(117, 94, 124, 0.14),
    0 8px 24px rgba(255, 255, 255, 0.32) inset;
  pointer-events: none;
  transform: rotate(var(--tab-hero-tilt, -2deg));
  transform-origin: center;
}

.tab-hero-art::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(94, 81, 97, 0.14) 15px 17px, transparent 17px 32px),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  opacity: 0.44;
}

.tab-hero-art::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -18%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 28%, rgba(183, 226, 255, 0.26) 30% 62%, transparent 64%);
}

.tab-hero-art > span,
.tab-hero-art > span::before,
.tab-hero-art > span::after {
  position: absolute;
  display: block;
}

.recipe-hero-art {
  --tab-hero-tilt: -2deg;
}

.recipe-card-stack {
  left: 13%;
  top: 18%;
  z-index: 1;
  width: 36%;
  height: 55%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(94, 81, 97, 0.18) 0 3px, transparent 3px 16px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 168, 0.72));
  box-shadow:
    13px 9px 0 rgba(245, 179, 211, 0.5),
    25px 18px 0 rgba(183, 226, 255, 0.42),
    var(--template-soft-shadow);
  transform: rotate(-6deg);
}

.recipe-card-stack::before {
  content: "";
  left: 12%;
  right: 12%;
  top: 14%;
  height: 10px;
  border-radius: 999px;
  background: rgba(94, 81, 97, 0.24);
}

.recipe-mixer {
  right: 13%;
  bottom: 15%;
  z-index: 2;
  width: 37%;
  height: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 24%, rgba(94, 81, 97, 0.38) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 24%, rgba(94, 81, 97, 0.26) 0 5px, transparent 6px),
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(94, 81, 97, 0.14) 19px 22px, transparent 22px 33px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(199, 239, 217, 0.58));
  box-shadow: var(--template-soft-shadow);
}

.recipe-mixer::after {
  content: "";
  left: 23%;
  right: 23%;
  bottom: 14%;
  height: 8px;
  border-radius: 999px;
  background: rgba(94, 81, 97, 0.24);
}

.recipe-knob {
  right: 25%;
  top: 22%;
  z-index: 3;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.86) 0 16%, transparent 18%),
    conic-gradient(from 40deg, rgba(245, 179, 211, 0.92), rgba(255, 240, 168, 0.86), rgba(183, 226, 255, 0.84), rgba(245, 179, 211, 0.92));
  box-shadow: var(--template-soft-shadow);
}

.map-hero-art {
  --tab-hero-tilt: 2deg;
}

.map-route {
  left: 15%;
  right: 16%;
  top: 25%;
  z-index: 1;
  height: 45%;
  border-bottom: 5px dashed rgba(94, 81, 97, 0.28);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.map-route::before,
.map-route::after {
  content: "";
  bottom: -8px;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rainbow-pink), var(--rainbow-yellow));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.52), var(--template-soft-shadow);
}

.map-route::before {
  left: 0;
}

.map-route::after {
  right: 0;
  background: linear-gradient(135deg, var(--rainbow-mint), var(--rainbow-blue));
}

.map-flag {
  right: 21%;
  top: 18%;
  z-index: 2;
  width: 8px;
  height: 56px;
  border-radius: 999px;
  background: rgba(94, 81, 97, 0.34);
  box-shadow: var(--template-soft-shadow);
}

.map-flag::after {
  content: "";
  left: 6px;
  top: 2px;
  width: 36px;
  height: 24px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(135deg, rgba(245, 179, 211, 0.88), rgba(255, 240, 168, 0.78));
}

.map-note-dot {
  left: 27%;
  bottom: 20%;
  z-index: 2;
  width: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(217, 200, 255, 0.76));
  box-shadow: var(--template-soft-shadow);
}

.map-note-dot::after {
  content: "";
  left: 18px;
  top: -12px;
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: rgba(94, 81, 97, 0.3);
}

.songs-hero-art {
  --tab-hero-tilt: -1deg;
}

.song-cover-stack {
  left: 12%;
  top: 17%;
  z-index: 2;
  width: 39%;
  height: 58%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background:
    radial-gradient(circle at 55% 42%, rgba(255, 255, 255, 0.72) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(245, 179, 211, 0.9), rgba(183, 226, 255, 0.76));
  box-shadow:
    12px 8px 0 rgba(255, 240, 168, 0.56),
    23px 17px 0 rgba(199, 239, 217, 0.48),
    var(--template-soft-shadow);
  transform: rotate(-5deg);
}

.song-cover-stack::after {
  content: "";
  left: 50%;
  top: 50%;
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(94, 81, 97, 0.22);
  transform: translate(-50%, -50%);
}

.song-waveform {
  right: 11%;
  bottom: 19%;
  z-index: 1;
  width: 46%;
  height: 34%;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--template-soft-shadow);
}

.song-waveform::before {
  content: "";
  inset: 22% 10%;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(94, 81, 97, 0.24) 0 4px, transparent 4px 9px, rgba(245, 179, 211, 0.52) 9px 14px, transparent 14px 20px);
}

.song-playhead {
  right: 22%;
  top: 22%;
  z-index: 3;
  width: 31px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 168, 0.78));
  box-shadow: var(--template-soft-shadow);
}

.song-playhead::after {
  content: "";
  left: 12px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid rgba(94, 81, 97, 0.44);
}

.parent-hero-art {
  --tab-hero-tilt: 1.5deg;
}

.parent-laptop {
  left: 10%;
  bottom: 17%;
  z-index: 1;
  width: 48%;
  height: 40%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(90deg, rgba(94, 81, 97, 0.16) 0 20%, transparent 20% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(183, 226, 255, 0.56));
  box-shadow: var(--template-soft-shadow);
}

.parent-laptop::after {
  content: "";
  left: -8%;
  right: -8%;
  bottom: -12px;
  height: 12px;
  border-radius: 0 0 8px 8px;
  background: rgba(94, 81, 97, 0.18);
}

.parent-checklist {
  right: 12%;
  top: 17%;
  z-index: 2;
  width: 38%;
  height: 58%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(199, 239, 217, 0.86) 0 16px, transparent 16px 100%),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(94, 81, 97, 0.14) 17px 20px, transparent 20px 32px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 168, 0.62));
  box-shadow: var(--template-soft-shadow);
}

.parent-checklist::before {
  content: "";
  left: 18%;
  top: 19%;
  width: 11px;
  height: 7px;
  border-left: 3px solid rgba(94, 81, 97, 0.44);
  border-bottom: 3px solid rgba(94, 81, 97, 0.44);
  transform: rotate(-45deg);
  box-shadow: 0 23px 0 rgba(94, 81, 97, 0.38), 0 46px 0 rgba(94, 81, 97, 0.32);
}

.parent-progress-ring {
  left: 22%;
  top: 18%;
  z-index: 3;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 42%, transparent 43%),
    conic-gradient(rgba(199, 239, 217, 0.92) 0 68%, rgba(255, 255, 255, 0.64) 68% 100%);
  box-shadow: var(--template-soft-shadow);
}

.page-title {
  max-width: 760px;
  color: #5e5161;
  font-size: clamp(1.95rem, 4.7vw, 4.65rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

html[lang="ko"] .page-title {
  max-width: 760px;
  font-family: var(--font-display-ko);
  font-size: clamp(1.72rem, 3.7vw, 3.65rem);
  font-weight: 700;
  line-height: 1.12;
  color: #5e5161;
  background: linear-gradient(96deg, #5e5161 0%, #b45c86 38%, #6aa889 68%, #5f8fb0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.35px rgba(94, 81, 97, 0.12);
  filter: drop-shadow(0 9px 18px rgba(94, 81, 97, 0.14));
}

html[lang="ko"] body {
  font-size: 16.5px;
  line-height: 1.62;
}

html[lang="ko"] .workspace {
  padding: clamp(14px, 2vw, 28px) clamp(18px, 3.6vw, 44px) clamp(22px, 3vw, 40px);
}

html[lang="ko"] .top-strip {
  margin-bottom: 10px;
}

html[lang="ko"] .today-hero {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 170px);
  gap: 8px clamp(14px, 2.3vw, 30px);
  min-height: clamp(132px, 12vw, 184px);
  align-items: start;
}

html[lang="ko"] .today-hero-copy {
  align-self: start;
  padding-top: clamp(2px, 0.45vw, 8px);
}

html[lang="ko"] .music-room-hero-art {
  width: min(100%, 165px);
  transform: translateX(-48px) rotate(3deg);
}

html[lang="ko"] .brand h1,
html[lang="ko"] .panel-title h2,
html[lang="ko"] .step-panel-title h2,
html[lang="ko"] .lesson-focus-card h2,
html[lang="ko"] .recipe-card h3,
html[lang="ko"] .song-card h3,
html[lang="ko"] .lesson-card h3,
html[lang="ko"] .version-card h3,
html[lang="ko"] .compact-title {
  font-weight: 700;
  line-height: 1.22;
}

html[lang="ko"] .brand h1 {
  font-size: 1.08rem;
  line-height: 1.12;
}

html[lang="ko"] .page-subtitle,
html[lang="ko"] .brand p,
html[lang="ko"] .hint,
html[lang="ko"] .step-panel-title p,
html[lang="ko"] .step-card p {
  line-height: 1.62;
}

html[lang="ko"] .brand p {
  font-size: 0.84rem;
  line-height: 1.42;
}

html[lang="ko"] .page-subtitle {
  max-width: 640px;
  margin-top: 8px;
  font-size: clamp(1rem, 1.04vw, 1.13rem);
}

html[lang="ko"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}

html[lang="ko"] .tab-button,
html[lang="ko"] .ui-language-button,
html[lang="ko"] .choice-button,
html[lang="ko"] .seg-button,
html[lang="ko"] .secondary,
html[lang="ko"] .ghost,
html[lang="ko"] .primary,
html[lang="ko"] .field-random-button,
html[lang="ko"] .copy-button,
html[lang="ko"] .badge,
html[lang="ko"] .focus-pill,
html[lang="ko"] .listen-label-tag {
  font-family: var(--font-display-ko);
  font-weight: 700;
}

html[lang="ko"] .tab-button {
  min-height: 50px;
  padding: 10px 13px;
  font-size: 1.08rem;
  line-height: 1.22;
}

html[lang="ko"] .ui-language-button {
  min-height: 24px;
  font-size: 0.9rem;
  line-height: 1.18;
}

html[lang="ko"] .step-panel,
html[lang="ko"] .next-card,
html[lang="ko"] .copy-card,
html[lang="ko"] .panel {
  padding: clamp(18px, 2.1vw, 26px);
}

html[lang="ko"] .step-panel-title {
  gap: 10px;
  margin-bottom: 14px;
}

html[lang="ko"] .choice-button {
  min-height: 88px;
  padding: 14px 15px;
  font-size: 1.04rem;
  line-height: 1.3;
}

html[lang="ko"] .lesson-focus-card.mission-term-card h2 {
  font-size: clamp(1.85rem, 4vw, 3.6rem);
  line-height: 1.1;
}

html[lang="ko"] .mission-term-card > p {
  font-size: clamp(1.04rem, 1.22vw, 1.18rem);
  line-height: 1.64;
}

html[lang="ko"] .panel,
html[lang="ko"] .step-panel,
html[lang="ko"] .next-card,
html[lang="ko"] .copy-card,
html[lang="ko"] .recipe-card,
html[lang="ko"] .recipe-setting,
html[lang="ko"] .song-card,
html[lang="ko"] .version-card,
html[lang="ko"] .compare-card,
html[lang="ko"] .curriculum-card,
html[lang="ko"] .curriculum-mini,
html[lang="ko"] .learning-log,
html[lang="ko"] .empty-state,
html[lang="ko"] .field-learning-cue,
html[lang="ko"] .lesson-card,
html[lang="ko"] .learning-impact-pill {
  line-height: 1.58;
}

html[lang="ko"] .badge,
html[lang="ko"] .focus-pill {
  line-height: 1.26;
  white-space: normal;
}

html[lang="ko"] button,
html[lang="ko"] input,
html[lang="ko"] textarea,
html[lang="ko"] select {
  font-family: var(--font-body-ko);
}

html[lang="ko"] .learning-map-panel,
html[lang="ko"] .suno-quick-start,
html[lang="ko"] .learning-map-panel p,
html[lang="ko"] .suno-quick-start p,
html[lang="ko"] .learning-map-panel span,
html[lang="ko"] .suno-quick-start span,
html[lang="ko"] .learning-map-panel small,
html[lang="ko"] .suno-quick-start small,
html[lang="ko"] .learning-map-panel summary,
html[lang="ko"] .suno-quick-start strong,
html[lang="ko"] .learning-map-panel li,
html[lang="ko"] .suno-quick-start li {
  font-family: var(--font-body-ko);
}

html[lang="ko"] .learning-map-panel h2,
html[lang="ko"] .learning-map-panel h3,
html[lang="ko"] .suno-quick-start h2,
html[lang="ko"] .map-field-chip strong,
html[lang="ko"] .learning-map-panel .phase-marker,
html[lang="ko"] .learning-map-panel .lesson-term {
  font-family: var(--font-display-ko);
}

html[lang="en"] body {
  font-size: 15.5px;
  line-height: 1.5;
}

html[lang="en"] .workspace {
  padding: clamp(2px, 0.5vw, 8px) clamp(20px, 3.4vw, 42px) clamp(18px, 2.8vw, 34px);
}

html[lang="en"] .top-strip {
  margin-bottom: 0;
}

html[lang="en"] .today-hero {
  grid-template-columns: minmax(0, 1fr) minmax(130px, 150px);
  gap: 4px clamp(12px, 2vw, 26px);
  min-height: clamp(106px, 9vw, 150px);
  align-items: start;
}

html[lang="en"] .today-hero-copy {
  align-self: start;
  padding-top: clamp(0px, 0.35vw, 6px);
}

html[lang="en"] .music-room-hero-art {
  width: min(100%, 150px);
  transform: translateX(-54px) rotate(3deg);
}

html[lang="en"] .page-title {
  max-width: 720px;
  font-family: var(--font-display-en);
  font-size: clamp(2.05rem, 4.5vw, 4.35rem);
  font-weight: 700;
  line-height: 1.18;
  padding-bottom: 0.1em;
  color: #5e5161;
  background: linear-gradient(96deg, #5e5161 0%, #935a7d 38%, #5f82a1 74%, #5e5161 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 14px rgba(94, 81, 97, 0.08));
}

html[lang="en"] .page-subtitle {
  max-width: 600px;
  margin-top: 6px;
  font-size: clamp(0.95rem, 1.05vw, 1.06rem);
  line-height: 1.42;
}

html[lang="en"] .eyebrow {
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

html[lang="en"] .today-hero .secondary {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 0.95rem;
}

html[lang="en"] .today-hero .ghost {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.84rem;
}

html[lang="en"] .today-mission-row {
  margin-bottom: clamp(14px, 2vw, 22px);
}

html[lang="en"] .mission-peek summary,
html[lang="en"] .today-mission-row .mission-peek summary {
  padding: 14px 16px;
}

html[lang="en"] .language-setup-strip {
  gap: clamp(12px, 1.6vw, 18px);
  margin-bottom: clamp(12px, 1.8vw, 20px);
}

html[lang="en"] .today-workspace-grid {
  gap: clamp(16px, 2.4vw, 26px);
}

html[lang="en"] .step-panel,
html[lang="en"] .next-card,
html[lang="en"] .copy-card,
html[lang="en"] .panel {
  padding: 18px;
}

html[lang="en"] .step-panel-title {
  gap: 10px;
  margin-bottom: 12px;
}

html[lang="en"] .panel-title h2,
html[lang="en"] .panel-title h3,
html[lang="en"] .step-panel-title h2,
html[lang="en"] .compact-title {
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  font-weight: 800;
  line-height: 1.18;
}

html[lang="en"] .lesson-focus-card h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.85rem);
  line-height: 1.1;
}

html[lang="en"] .choice-button {
  min-height: 78px;
  padding: 11px;
  font-size: 0.94rem;
  line-height: 1.25;
}

html[lang="en"] .field input,
html[lang="en"] .field textarea,
html[lang="en"] .field select,
html[lang="en"] .url-input,
html[lang="en"] .select-shell select {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 0.95rem;
}

html[lang="en"] .field textarea {
  min-height: 88px;
}

html[lang="en"] .mission-term-card {
  min-height: clamp(240px, 22vw, 320px);
  padding: clamp(20px, 2.3vw, 30px);
  padding-right: clamp(250px, 26vw, 360px);
}

html[lang="en"] .lesson-focus-card.mission-term-card h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
}

html[lang="en"] .lesson-focus-card.mission-term-card > p {
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.44;
}

html[lang="en"] .mission-action-sticker {
  width: min(320px, 32%);
}

.eyebrow {
  color: #ad7897;
  letter-spacing: 0.08em;
}

.creator-layout {
  grid-template-columns: minmax(330px, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(18px, 3vw, 34px);
}

.language-setup-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  margin: 0 0 clamp(16px, 2.4vw, 26px);
}

.language-setup-strip .step-panel-title {
  margin-bottom: 0;
}

.language-setup-strip .choice-grid {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.language-setup-strip .choice-button:not(.active) {
  background: var(--template-card-strong);
  box-shadow: inset 0 0 0 2px rgba(19, 15, 18, 0.18);
}

.language-setup-strip .sub-choice,
.language-setup-strip .lock-note {
  grid-column: 2;
}

.today-workspace-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
}

.suno-output-tray {
  position: sticky;
  top: clamp(16px, 3vw, 28px);
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  align-self: start;
}

.mission-peek {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.54)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.42), rgba(245, 179, 211, 0.42), rgba(183, 226, 255, 0.4));
}

.mission-peek summary,
.today-mission-row .mission-peek summary {
  padding: 18px;
}

.lesson-focus-card {
  border: 1px solid var(--template-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.lesson-focus-card h2 {
  color: #5e5161;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 600;
}

.step-panel,
.next-card,
.copy-card,
.panel {
  padding: 20px;
}

.step-panel.current,
.step-panel.done,
.next-card,
.copy-card,
.panel.sky,
.panel.mint,
.panel.coral {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.54)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.32), rgba(217, 200, 255, 0.3), rgba(199, 239, 217, 0.24));
}

.step-number {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, var(--rainbow-pink), var(--rainbow-blue));
  color: #ffffff;
  box-shadow: var(--template-soft-shadow);
}

.choice-button {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--template-ink);
  box-shadow: var(--template-soft-shadow);
}

.choice-button:nth-child(2) {
  background: linear-gradient(135deg, rgba(199, 239, 217, 0.74), rgba(255, 255, 255, 0.66));
}

.choice-button:nth-child(3) {
  background: linear-gradient(135deg, rgba(217, 200, 255, 0.74), rgba(255, 255, 255, 0.66));
}

.choice-button.active {
  background: linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink), var(--rainbow-blue));
  box-shadow:
    inset 0 0 0 2px rgba(75, 63, 77, 0.4),
    0 8px 20px rgba(141, 101, 128, 0.16),
    var(--template-soft-shadow);
}

.cue-panel {
  transform-origin: center;
  will-change: transform;
  animation: cuePanelMotion 2.8s ease-in-out infinite;
}

.action-cue {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.action-cue::before {
  content: "";
  position: absolute;
  inset: -34px;
  z-index: 0;
  background:
    radial-gradient(circle at 6% 26%, rgba(255, 240, 168, 1) 0 3px, transparent 5px),
    radial-gradient(circle at 12% 72%, rgba(245, 179, 211, 0.96) 0 2.8px, transparent 4.8px),
    radial-gradient(circle at 19% 44%, rgba(255, 255, 255, 0.98) 0 2px, transparent 4px),
    radial-gradient(circle at 27% 91%, rgba(183, 226, 255, 0.98) 0 3px, transparent 5px),
    radial-gradient(circle at 34% 13%, rgba(217, 200, 255, 1) 0 2.6px, transparent 4.6px),
    radial-gradient(circle at 41% 64%, rgba(199, 239, 217, 0.96) 0 2.8px, transparent 4.8px),
    radial-gradient(circle at 49% 31%, rgba(255, 211, 189, 0.98) 0 3px, transparent 5px),
    radial-gradient(circle at 56% 88%, rgba(255, 240, 168, 0.95) 0 2.4px, transparent 4.4px),
    radial-gradient(circle at 63% 11%, rgba(245, 179, 211, 0.98) 0 3px, transparent 5px),
    radial-gradient(circle at 70% 52%, rgba(255, 255, 255, 0.98) 0 2px, transparent 4px),
    radial-gradient(circle at 76% 82%, rgba(183, 226, 255, 0.98) 0 3px, transparent 5px),
    radial-gradient(circle at 83% 22%, rgba(199, 239, 217, 0.96) 0 2.8px, transparent 4.8px),
    radial-gradient(circle at 91% 38%, rgba(217, 200, 255, 1) 0 3px, transparent 5px),
    radial-gradient(circle at 96% 74%, rgba(255, 211, 189, 0.98) 0 2.8px, transparent 4.8px),
    radial-gradient(circle at 38% 101%, rgba(245, 179, 211, 0.85) 0 2.4px, transparent 4.4px),
    radial-gradient(circle at 61% -4%, rgba(255, 240, 168, 0.9) 0 2.4px, transparent 4.4px);
  background-repeat: no-repeat;
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, 1))
    drop-shadow(0 0 15px rgba(245, 179, 211, 0.58))
    drop-shadow(0 0 20px rgba(183, 226, 255, 0.38));
  opacity: 0.95;
  pointer-events: none;
  animation:
    cueSparkle 1.6s ease-in-out infinite,
    cueParticleDrift 4.8s ease-in-out infinite;
}

.choice-grid.action-cue::before {
  inset: -30px -28px;
}

.field.action-cue::before {
  inset: -30px;
}

.large-action.action-cue::before,
.big-copy.action-cue::before {
  inset: -30px -34px;
}

.action-cue::after {
  content: attr(data-cue-label);
  position: absolute;
  top: -18px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink));
  color: var(--template-ink);
  box-shadow: var(--template-soft-shadow);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes cueSparkle {
  0%,
  100% {
    opacity: 0.46;
    filter:
      drop-shadow(0 0 3px rgba(255, 255, 255, 0.75))
      drop-shadow(0 0 8px rgba(245, 179, 211, 0.34));
  }

  35% {
    opacity: 1;
    filter:
      drop-shadow(0 0 9px rgba(255, 255, 255, 1))
      drop-shadow(0 0 18px rgba(245, 179, 211, 0.68))
      drop-shadow(0 0 24px rgba(183, 226, 255, 0.48));
  }

  70% {
    opacity: 0.78;
    filter:
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.92))
      drop-shadow(0 0 13px rgba(217, 200, 255, 0.46));
  }
}

@keyframes cueParticleDrift {
  0%,
  100% {
    transform: translate3d(-3px, 3px, 0) rotate(-1deg) scale(0.98);
  }

  45% {
    transform: translate3d(5px, -7px, 0) rotate(1deg) scale(1.03);
  }

  75% {
    transform: translate3d(-5px, -4px, 0) rotate(-0.5deg) scale(1);
  }
}

@keyframes cuePanelMotion {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  42% {
    transform: translate3d(0, -5px, 0) scale(1.006);
  }

  72% {
    transform: translate3d(0, -2px, 0) scale(1.003);
  }
}

.seg-button,
.primary,
.secondary,
.ghost,
.copy-button,
.sample-button,
.field-random-button,
.mini-option,
.open-link,
.modal-close-button,
.curriculum-note-button {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--template-soft-shadow);
}

.primary,
.copy-button {
  background: linear-gradient(135deg, #5e5161, #8f7f8c);
  color: #ffffff;
}

.secondary,
.sample-button,
.field-random-button,
.mini-option,
.open-link,
.modal-close-button,
.curriculum-note-button {
  background: rgba(255, 255, 255, 0.74);
  color: var(--template-ink);
}

.today-hero .toolbar {
  gap: 10px;
  align-items: center;
}

.today-hero .secondary {
  min-height: 40px;
  padding: 9px 14px;
  font-weight: 900;
}

.today-hero .ghost {
  min-height: 34px;
  padding: 7px 10px;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.26);
  color: rgba(75, 63, 77, 0.66);
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.seg-button.active {
  background: linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-mint));
}

.field input,
.field textarea,
.field select,
.url-input,
.select-shell select {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--template-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.field-label-row {
  align-items: flex-start;
}

.field-random-button {
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--template-ink);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.field-random-button:disabled {
  opacity: 0.42;
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
}

.badge,
.focus-pill,
.inline-lock {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--template-ink);
  box-shadow: none;
}

.badge.available {
  background: rgba(183, 226, 255, 0.72);
}

.badge.in_progress {
  background: rgba(255, 240, 168, 0.78);
}

.badge.completed {
  background: rgba(199, 239, 217, 0.78);
}

.badge.mastered {
  background: rgba(245, 179, 211, 0.78);
  color: var(--template-ink);
}

.learning-map-panel {
  gap: 18px;
}

.curriculum-phase {
  padding: 14px;
}

.phase-header {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.5)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.36), rgba(245, 179, 211, 0.32));
}

.phase-marker {
  min-width: 70px;
  min-height: 70px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink));
  color: #ffffff;
  font-family: var(--font-display);
}

.phase-header h3,
.phase-marker {
  font-family: var(--font-display);
}

.phase-count {
  background: rgba(255, 255, 255, 0.64);
}

.phase-lesson-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.phase-lesson-grid .lesson-card {
  min-height: 220px;
  padding: 16px;
  border: 8px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink), var(--rainbow-blue));
  box-shadow: var(--template-shadow);
}

.lesson-card {
  border: 8px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0 34%, rgba(255, 255, 255, 0.62) 34% 100%),
    linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink), var(--rainbow-blue));
}

.lesson-card::before,
.phase-lesson-grid .lesson-card::before {
  inset: 14px 14px auto auto;
  width: 42px;
  height: 42px;
  border: 7px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(135deg, var(--rainbow-mint), var(--rainbow-blue));
  opacity: 1;
}

.lesson-card:nth-child(4n + 1) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0 34%, rgba(255, 255, 255, 0.62) 34% 100%),
    linear-gradient(135deg, var(--rainbow-yellow), var(--rainbow-pink));
}

.lesson-card:nth-child(4n + 2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0 34%, rgba(255, 255, 255, 0.62) 34% 100%),
    linear-gradient(135deg, var(--rainbow-mint), var(--rainbow-blue));
}

.lesson-card:nth-child(4n + 3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0 34%, rgba(255, 255, 255, 0.62) 34% 100%),
    linear-gradient(135deg, var(--rainbow-pink), var(--rainbow-lilac));
}

.lesson-card:nth-child(4n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0 34%, rgba(255, 255, 255, 0.62) 34% 100%),
    linear-gradient(135deg, var(--rainbow-blue), var(--rainbow-yellow));
}

.phase-lesson-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  align-items: stretch;
}

.phase-lesson-grid .lesson-card {
  --map-card-accent-a: var(--rainbow-yellow);
  --map-card-accent-b: var(--rainbow-pink);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(38px, auto) minmax(96px, auto) auto minmax(0, 1fr);
  gap: 8px;
  min-height: 360px;
  overflow: hidden;
  padding: 12px;
  border: 8px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, var(--map-card-accent-a), var(--map-card-accent-b));
  box-shadow: var(--template-shadow);
}

.phase-lesson-grid .lesson-card:nth-child(4n + 1) {
  --map-card-accent-a: var(--rainbow-yellow);
  --map-card-accent-b: var(--rainbow-pink);
}

.phase-lesson-grid .lesson-card:nth-child(4n + 2) {
  --map-card-accent-a: var(--rainbow-mint);
  --map-card-accent-b: var(--rainbow-blue);
}

.phase-lesson-grid .lesson-card:nth-child(4n + 3) {
  --map-card-accent-a: var(--rainbow-pink);
  --map-card-accent-b: var(--rainbow-lilac);
}

.phase-lesson-grid .lesson-card:nth-child(4n) {
  --map-card-accent-a: var(--rainbow-blue);
  --map-card-accent-b: var(--rainbow-yellow);
}

.phase-lesson-grid .lesson-card::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 36px;
  height: 36px;
  border: 6px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rainbow-mint), var(--rainbow-blue));
  opacity: 0.72;
  z-index: 0;
}

.phase-lesson-grid .lesson-card > * {
  position: relative;
  z-index: 1;
}

.phase-lesson-grid .lesson-card .badge-row {
  min-height: 32px;
  padding-right: 56px;
}

.phase-lesson-grid .lesson-card h3 {
  max-width: calc(100% - 70px);
  overflow-wrap: anywhere;
}

.phase-lesson-grid .lesson-card h3 {
  display: flex;
  align-items: end;
  font-size: 0.96rem;
  line-height: 1.08;
}

.phase-lesson-grid .lesson-card p {
  margin: 0;
}

.phase-lesson-grid .lesson-concept-block {
  display: grid;
  gap: 6px;
  align-self: stretch;
  padding: 10px 11px 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-left: 6px solid var(--map-card-accent-a);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.42), rgba(183, 226, 255, 0.32));
  box-shadow:
    0 10px 20px rgba(117, 94, 124, 0.12),
    inset 0 0 0 1px rgba(117, 94, 124, 0.06);
}

.phase-lesson-grid .lesson-concept-label {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--map-card-accent-a), var(--map-card-accent-b));
  color: var(--template-ink);
  font-size: 0.66rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.phase-lesson-grid .lesson-concept-block .lesson-term {
  display: flex;
  align-items: center;
  max-width: none;
  overflow-wrap: anywhere;
  color: var(--template-ink);
  font-size: 1.14rem;
  line-height: 1.08;
}

.phase-lesson-grid .lesson-concept-block .hint {
  line-height: 1.26;
}

.phase-lesson-grid .lesson-focus-line {
  align-self: center;
  font-weight: 800;
}

.phase-lesson-grid .lesson-action-strip {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(19, 15, 18, 0.32);
  background: rgba(255, 255, 255, 0.44);
}

.phase-lesson-grid .lesson-section-label {
  width: fit-content;
  color: rgba(19, 15, 18, 0.7);
  font-size: 0.67rem;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.phase-lesson-grid .lesson-action-strip p {
  color: var(--template-ink);
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.phase-lesson-grid .lesson-card .lesson-progress-coach {
  align-self: end;
  margin-top: auto;
  gap: 6px;
}

.phase-lesson-grid .lesson-card .lesson-progress-next {
  padding: 7px 9px;
  border: 1px solid rgba(19, 15, 18, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

.phase-lesson-grid .lesson-card.locked {
  opacity: 0.82;
}

.song-card.active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    linear-gradient(120deg, rgba(245, 179, 211, 0.34), rgba(183, 226, 255, 0.3));
  box-shadow: var(--template-shadow);
}

.field-output pre,
.full-copy-panel pre,
.compare-card pre {
  border: 1px solid var(--template-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.curriculum-modal {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.42), rgba(245, 179, 211, 0.34), rgba(183, 226, 255, 0.32));
  box-shadow: var(--template-shadow);
}

.curriculum-modal-header {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
}

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.recipe-list,
.recipe-workspace {
  display: grid;
  gap: 12px;
}

.recipe-list {
  grid-template-rows: minmax(0, 1fr);
}

.recipe-card-shell {
  position: relative;
  min-width: 0;
}

.recipe-card-shell .recipe-card {
  width: 100%;
  padding-right: 52px;
}

.recipe-favorite-button {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(35, 49, 61, 0.16);
}

.recipe-favorite-button[aria-pressed="true"] {
  background: var(--sun);
}

.recipe-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.32), rgba(199, 239, 217, 0.26));
  color: var(--template-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--template-shadow);
  backdrop-filter: blur(10px);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.recipe-card.active {
  background: linear-gradient(135deg, rgba(255, 240, 168, 0.92), rgba(245, 179, 211, 0.84), rgba(183, 226, 255, 0.8));
  color: var(--template-ink);
  box-shadow: var(--template-soft-shadow);
}

.recipe-card h3 {
  margin: 0;
  font: 900 1.04rem/1.18 var(--font-display);
}

.recipe-card p,
.recipe-card small,
.recipe-why {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.recipe-card small {
  font-weight: 900;
}

.exploration-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(44px, auto) auto;
  gap: 8px;
  min-height: 150px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.3), rgba(199, 239, 217, 0.22), rgba(183, 226, 255, 0.18));
  color: var(--template-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--template-shadow);
  backdrop-filter: blur(10px);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.exploration-card.active {
  background: linear-gradient(135deg, rgba(255, 240, 168, 0.92), rgba(245, 179, 211, 0.84), rgba(183, 226, 255, 0.8));
  color: var(--template-ink);
  box-shadow: var(--template-soft-shadow);
}

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

.exploration-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.exploration-card h3 {
  margin: 0;
  font: 900 1.04rem/1.18 var(--font-display);
  overflow-wrap: anywhere;
}

.exploration-card p,
.exploration-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.exploration-card small {
  font-weight: 900;
}

.recipe-workflow-stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.recipe-fixed-block,
.recipe-editable-block {
  display: grid;
  gap: 12px;
}

.recipe-fixed-block {
  padding: 2px 0 2px 14px;
  border-left: 4px solid rgba(117, 94, 124, 0.18);
}

.recipe-editable-block {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    linear-gradient(120deg, rgba(255, 240, 168, 0.32), rgba(199, 239, 217, 0.24));
}

.recipe-section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.recipe-section-heading h3,
.recipe-section-heading p {
  margin: 0;
}

.recipe-section-heading h3 {
  font: 900 1.05rem/1.2 var(--font-display);
}

.recipe-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.recipe-state-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.recipe-state-pill.fixed {
  border: 1px solid rgba(117, 94, 124, 0.16);
  background: rgba(117, 94, 124, 0.08);
  color: var(--muted);
}

.recipe-state-pill.editable {
  border: 1px solid rgba(245, 179, 211, 0.46);
  background: rgba(255, 240, 168, 0.72);
  color: var(--coral-dark);
}

.recipe-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.recipe-setting {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--template-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--template-soft-shadow);
}

.recipe-fixed-block .recipe-setting {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.recipe-setting span {
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recipe-setting strong {
  line-height: 1.35;
}

.recipe-fields {
  margin-top: 0;
}

.recipe-result-card {
  align-self: start;
}

.notice {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(94, 81, 97, 0.92);
  color: #ffffff;
  box-shadow: var(--template-shadow);
}

/* Language-specific reading rhythm for repeated tab content. */
html[lang="ko"] .panel,
html[lang="ko"] .step-panel,
html[lang="ko"] .next-card,
html[lang="ko"] .copy-card,
html[lang="ko"] .recipe-card,
html[lang="ko"] .recipe-setting,
html[lang="ko"] .song-card,
html[lang="ko"] .version-card,
html[lang="ko"] .compare-card,
html[lang="ko"] .curriculum-card,
html[lang="ko"] .curriculum-mini,
html[lang="ko"] .learning-log,
html[lang="ko"] .empty-state,
html[lang="ko"] .field-learning-cue,
html[lang="ko"] .lesson-card,
html[lang="ko"] .learning-impact-pill {
  line-height: 1.58;
}

html[lang="ko"] .panel p,
html[lang="ko"] .recipe-card p,
html[lang="ko"] .recipe-card small,
html[lang="ko"] .recipe-why,
html[lang="ko"] .recipe-section-heading p,
html[lang="ko"] .recipe-setting strong,
html[lang="ko"] .field-learning-cue,
html[lang="ko"] .listen-for-line,
html[lang="ko"] .learning-impact-pill p,
html[lang="ko"] .create-readiness p,
html[lang="ko"] .lesson-progress-next span,
html[lang="ko"] .suno-quick-start p,
html[lang="ko"] .map-note p,
html[lang="ko"] .mission-action-card p {
  line-height: 1.58;
}

html[lang="en"] .panel,
html[lang="en"] .step-panel,
html[lang="en"] .next-card,
html[lang="en"] .copy-card,
html[lang="en"] .recipe-card,
html[lang="en"] .recipe-setting,
html[lang="en"] .song-card,
html[lang="en"] .version-card,
html[lang="en"] .compare-card,
html[lang="en"] .curriculum-card,
html[lang="en"] .curriculum-mini,
html[lang="en"] .learning-log,
html[lang="en"] .empty-state,
html[lang="en"] .field-learning-cue,
html[lang="en"] .lesson-card,
html[lang="en"] .learning-impact-pill {
  line-height: 1.5;
}

html[lang="en"] .panel p,
html[lang="en"] .recipe-card p,
html[lang="en"] .recipe-card small,
html[lang="en"] .recipe-why,
html[lang="en"] .recipe-section-heading p,
html[lang="en"] .recipe-setting strong,
html[lang="en"] .field-learning-cue,
html[lang="en"] .listen-for-line,
html[lang="en"] .learning-impact-pill p,
html[lang="en"] .create-readiness p,
html[lang="en"] .lesson-progress-next span,
html[lang="en"] .suno-quick-start p,
html[lang="en"] .map-note p,
html[lang="en"] .mission-action-card p {
  line-height: 1.5;
}

@media (max-width: 980px) {
  .sidebar {
    margin: 12px;
    height: auto;
  }

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

@media (max-width: 680px) {
  .workspace {
    padding: 14px;
  }

  .top-strip {
    min-height: auto;
  }

  .page-title {
    font-size: 2.45rem;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .app-shell::after,
  .workspace::before,
  .today-hero::before {
    display: none;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
  }

  .workspace {
    padding-inline: clamp(16px, 5vw, 36px);
  }

  .top-strip {
    min-height: auto;
  }

  .today-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
  }

  .today-hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .music-room-hero-art {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: min(58vw, 220px);
    margin: 0 0 0 6px;
    transform: rotate(2deg);
  }

  .tab-hero-strip {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 14px;
  }

  .tab-hero-copy {
    grid-column: 1;
  }

  .tab-hero-art {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: min(58vw, 220px);
    margin-left: 6px;
    transform: rotate(var(--mobile-tab-hero-tilt, -1deg));
  }

  .today-hero .toolbar {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .creator-layout,
  .today-workspace-grid,
  .language-setup-strip,
  .grid.two,
  .song-layout,
  .recipe-layout,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .recipe-list,
  .dictionary-word-list,
  .recipe-workspace,
  .dictionary-detail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .card-browser-list {
    overflow-y: visible;
    max-height: none;
    padding-right: 0;
  }

  .language-setup-strip .sub-choice,
  .language-setup-strip .lock-note {
    grid-column: auto;
  }

  .suno-output-tray {
    position: static;
    top: auto;
  }

  .mission-control-row,
  .mission-content-grid {
    grid-template-columns: 1fr;
  }

  .mission-content-grid {
    padding-top: 0;
    gap: 12px;
  }

  .mission-term-card {
    min-height: auto;
    padding-right: 20px;
  }

  .mission-action-sticker {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    transform: none;
    margin-top: -6px;
  }

  .mission-select-field .select-shell select {
    min-height: 52px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cue-panel,
  .action-cue,
  .action-cue::before {
    animation: none;
  }
}
