:root {
  --navy: #142337;
  --ink: #1c2d3e;
  --muted: #647485;
  --blue: #315edf;
  --blue-dark: #244cc1;
  --lime: #b9ed86;
  --bg: #f4f6f8;
  --line: #dce3e9;
  --white: #fff;
  --radius: 16px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button {
  border: 0;
  background: transparent;
  color: inherit;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7d9cff;
  outline-offset: 4px;
}
input,
textarea,
select {
  min-width: 0;
  border: 1px solid #c9d3dd;
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #315edf19;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  margin: 0;
}
input[type="range"] {
  padding: 0;
  box-shadow: none;
  accent-color: var(--blue);
  border: 0;
  background: transparent;
  cursor: pointer;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
label > input,
label > textarea,
label > select {
  margin-top: 7px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
  font-weight: 750;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin-bottom: 0;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 6px;
}
p {
  margin-bottom: 16px;
}
strong,
b {
  font-weight: 650;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.small-label,
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.eyebrow {
  color: #52747b;
  margin-bottom: 12px;
}
.primary,
.secondary {
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 650;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 44px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover {
  background: var(--blue-dark);
}
.secondary {
  background: #fff;
  border: 1px solid #ccd6df;
}
.secondary:hover {
  background: #eef2f7;
}
.text-button {
  font-size: 14px;
  font-weight: 650;
  color: var(--blue);
  padding: 8px 0;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.text-button:hover {
  text-decoration: underline;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 7px;
  color: var(--muted);
}
.icon-button:hover {
  background: #e7edf3;
  color: var(--ink);
}
.wide {
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.6px;
  font-size: 22px;
  font-weight: 750;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}
.brand .icon {
  color: var(--lime);
  height: 30px;
  width: 30px;
}
.brand-dot {
  color: var(--lime);
  margin-left: -9px;
}
.tag {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
  background: #e2ebfb;
  color: #3d5c8a;
  white-space: nowrap;
}
.role-pill {
  padding: 5px 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 12px;
  text-transform: capitalize;
}
.error {
  color: #b42335;
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.loading,
.fatal {
  max-width: 600px;
  padding: 60px;
  margin: auto;
}
.loading {
  font-size: 20px;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: var(--navy);
  color: #fff;
  padding: 44px 10%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-copy {
  margin-top: 90px;
}
.login-copy .eyebrow {
  color: #a9b9ca;
}
.login-copy h1 {
  font-size: 64px;
  letter-spacing: -3px;
  line-height: 1.05;
  margin: 24px 0;
}
.login-copy h1 span {
  color: var(--lime);
}
.login-copy p {
  color: #b7c4d2;
  font-size: 18px;
  line-height: 1.7;
}
.equalizer {
  height: 180px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 32px 0;
  opacity: 0.8;
}
.equalizer i {
  width: 11px;
  flex: 1;
  max-width: 14px;
  background: var(--lime);
  border-radius: 10px;
}
.login-art small {
  color: #879aad;
  margin-top: auto;
  padding-top: 20px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.login-form-inner {
  max-width: 390px;
  width: 100%;
}
.login-form h2 {
  font-size: 38px;
  letter-spacing: -1.1px;
  margin-bottom: 18px;
}
.login-form form {
  margin-top: 35px;
}
.login-form label {
  font-size: 14px;
}
.login-form input {
  padding: 15px;
}
.login-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 40px;
}
.demo {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.demo p {
  font-size: 14px;
  margin-top: 10px;
}
.demo-buttons {
  display: flex;
  gap: 8px;
}
.demo-buttons button {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 15px;
  border-radius: 7px;
  font-size: 14px;
}
.demo-buttons button:hover {
  border-color: var(--blue);
}
.app-shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #b6c4d4;
  padding: 32px 18px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  font-size: 20px;
  padding-left: 7px;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #7f94aa;
  font-weight: 700;
  margin: 45px 15px 15px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 9px;
  font-weight: 550;
  font-size: 14px;
  text-align: left;
}
.nav-item:hover {
  background: #22374b;
  color: #fff;
}
.nav-item.active {
  background: var(--lime);
  color: #203928;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  margin: 40px 15px 34px;
  font-size: 17px;
  line-height: 1.65;
  color: #859caf;
}
.sidebar-note b {
  color: #dbe8f1;
}
.profile {
  border-top: 1px solid #2b3d50;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.profile strong {
  display: block;
  font-size: 12px;
  color: #e8edf4;
}
.profile span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  margin-top: 2px;
}
.profile .icon-button {
  min-width: 30px;
  color: #a1b1c2;
}
.profile .icon-button:hover {
  background: #2b3d50;
  color: white;
}
.avatar {
  height: 31px;
  width: 31px;
  display: grid;
  place-items: center;
  background: #365169;
  color: #e1ecf8;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #697887;
  font-size: 14px;
}
.breadcrumb .icon {
  color: #99a7b4;
  width: 18px;
}
.topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.content {
  max-width: 1440px;
  margin: auto;
  padding: 40px 36px 60px;
}
.page-heading,
.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading p,
.studio-heading p {
  margin-bottom: 0;
}
.page-heading .eyebrow,
.studio-heading .eyebrow {
  font-size: 11px;
}
.count-badge {
  background: #e5ecee;
  color: #476167;
  font-size: 13px;
  border-radius: 8px;
  padding: 9px 14px;
  white-space: nowrap;
}
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 24px;
  gap: 20px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  max-width: 390px;
  flex: 1;
}
.search-field .icon {
  color: #8a9bad;
}
.search-field input {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  padding: 12px 0;
  font-weight: 400;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.lesson-card {
  padding: 0;
  border-radius: 15px;
  background: white;
  border: 1px solid var(--line);
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px #1b344510;
}
.lesson-art {
  height: 184px;
  position: relative;
  padding: 20px 22px;
  background: #dce8fd;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.subject-tag {
  background: #ffffffbb;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 9px;
  font-weight: 750;
  position: absolute;
  top: 20px;
  left: 22px;
}
.lesson-glyph {
  position: absolute;
  right: 20px;
  top: 16px;
  opacity: 0.9;
  transform: rotate(-12deg);
}
.lesson-glyph .icon {
  width: 155px;
  height: 155px;
  color: #436bbd;
  stroke-width: 0.9;
}
.lesson-number {
  font-size: 11px;
  letter-spacing: 2px;
  color: #426298;
  font-weight: 750;
  z-index: 1;
  max-width: 100%;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.art-living {
  background: #dcf0cb;
}
.art-living .lesson-glyph .icon,
.art-living .lesson-number {
  color: #689343;
}
.lesson-card-body {
  padding: 25px;
}
.lesson-card-body .small-label {
  color: #738896;
  font-size: 10px;
}
.lesson-card h3 {
  font-size: 23px;
  margin: 10px 0;
}
.lesson-card p {
  font-size: 14px;
  color: var(--muted);
  min-height: 42px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lesson-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  border-top: 1px solid #edf0f3;
  padding-top: 18px;
  color: var(--muted);
}
.start-text {
  color: var(--blue);
  font-weight: 700;
}
.status {
  display: inline-block;
  border-radius: 6px;
  background: #eef1f5;
  color: #607083;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.status.success {
  background: #e2f3df;
  color: #3b7439;
}
.empty {
  text-align: center;
  border: 1px dashed #cbd6df;
  padding: 45px 30px;
  border-radius: 12px;
  grid-column: 1/-1;
  color: var(--muted);
}
.empty .icon {
  width: 32px;
  height: 32px;
  color: #6e8996;
  margin-bottom: 16px;
}
.empty h3 {
  color: var(--ink);
  font-weight: 600;
}
.empty p {
  font-size: 14px;
  margin-bottom: 0;
}
.rap-item,
.submission-item {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  padding: 21px;
  text-align: left;
  margin-bottom: 12px;
}
.rap-item:hover,
.submission-item:hover {
  border-color: #9fb4e0;
}
.rap-item > div:nth-child(2) {
  flex: 1;
}
.rap-item h3,
.submission-item h3 {
  font-size: 17px;
}
.rap-item p,
.submission-item p {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}
.rap-icon,
.lesson-mini-icon {
  background: #edf2ff;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue);
  flex-shrink: 0;
}
.studio-content {
  max-width: 1500px;
}
.studio-heading h1 {
  font-size: 32px;
}
.studio-heading p {
  font-size: 14px;
  max-width: 780px;
  white-space: pre-line;
}
.vocab-panel {
  background: #eaf1ed;
  border: 1px solid #d8e4dd;
  border-radius: 13px;
  padding: 23px 26px;
  margin-bottom: 26px;
}
.section-top,
.notebook-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.section-top > div,
.notebook-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.step-label {
  font-size: 11px;
  font-weight: 800;
  background: #fff;
  color: #648077;
  padding: 5px 7px;
  border-radius: 5px;
}
.section-top h2,
.notebook-head h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.section-top > span {
  font-size: 12px;
  color: #5a716a;
  white-space: nowrap;
}
.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 16px;
}
.keyword {
  background: #fff;
  border: 1px solid #cbdad2;
  border-radius: 30px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 550;
  display: flex;
  gap: 5px;
  align-items: center;
  transition: 0.15s;
}
.keyword:hover {
  border-color: #458564;
  transform: translateY(-1px);
}
.keyword.used {
  background: #d0e8c6;
  border-color: #a4c895;
  color: #355b2c;
}
.keyword .icon {
  width: 14px;
  height: 14px;
}
.vocab-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #698174;
  font-size: 11px;
  gap: 14px;
}
.progress {
  height: 4px;
  width: 130px;
  border-radius: 4px;
  background: #d2dfd5;
  overflow: hidden;
}
.progress i {
  height: 100%;
  display: block;
  background: #6aa457;
  transition: width 0.3s;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.notebook {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.notebook-head {
  padding: 24px 25px 0;
}
.notebook-head .step-label {
  background: #edf1fc;
  color: #5270ad;
}
.save-status {
  font-size: 11px;
  color: #698174;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: right;
  max-width: 240px;
}
.save-status .icon {
  width: 13px;
  height: 13px;
}
.notebook-intro {
  padding: 11px 25px 0;
}
.notebook-intro > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}
.title-label input {
  font-size: 20px;
  font-weight: 650;
  border: 0;
  border-bottom: 1px solid #e5ebef;
  border-radius: 0;
  padding: 6px 0 15px;
  box-shadow: none;
  margin: 0;
}
.title-label input::placeholder {
  color: #a1aeb9;
  font-weight: 450;
}
.line-row {
  padding: 22px 25px 0;
}
.line-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}
.line-label label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  cursor: text;
}
.line-label label b {
  font-size: 12px;
}
.line-label label span {
  font-weight: 400;
  font-size: 12px;
  color: #738090;
  line-height: 1.55;
}
.line-label .icon-button {
  width: 27px;
  min-width: 27px;
  min-height: 27px;
  opacity: 0.45;
}
.line-label .icon {
  width: 15px;
  height: 15px;
}
.line-row:hover .icon-button {
  opacity: 1;
}
.line-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9fafc;
  border: 1px solid #dbe2e9;
  border-radius: 9px;
  padding-left: 14px;
}
.line-input:focus-within {
  border-color: #6080d6;
  box-shadow: 0 0 0 3px #315edf0c;
  background: white;
}
.pair-label {
  font-size: 11px;
  color: #99a8b7;
  font-weight: 700;
}
.line-input textarea {
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 14px 13px 14px 0;
  font-size: 15px;
  line-height: 24px;
  min-height: 53px;
  resize: none;
  box-shadow: none;
  overflow: hidden;
}
.line-input textarea::placeholder {
  color: #9ca9b7;
  font-size: 14px;
}
.notebook-bottom {
  padding: 24px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.notebook-bottom .small {
  font-size: 11px;
}
.notebook-bottom .text-button {
  font-size: 12px;
}
.notebook-bottom .icon {
  width: 16px;
}
.submit-bar {
  background: #f8f9fc;
  border-top: 1px solid #e7ecf1;
  padding: 21px 25px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.submit-bar strong {
  font-size: 13px;
}
.submit-bar p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
.submit-actions {
  display: flex;
  gap: 8px;
}
.submit-actions button {
  font-size: 12px;
  padding: 9px 13px;
  min-height: 38px;
}
.studio-tools {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.beat-panel {
  background: #1d3049;
  color: white;
  border-radius: 13px;
  padding: 22px;
}
.tool-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 17px;
}
.tool-heading .icon {
  width: 18px;
  height: 18px;
}
.tool-heading h2 {
  font-size: 17px;
}
.beat-panel .tool-heading .icon {
  color: var(--lime);
}
.beat-panel select {
  background: #2b405a;
  border: 1px solid #455a72;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 7px;
  padding: 11px;
}
.audio-display {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 22px 0 18px;
}
.play-button {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--lime);
  color: #1c3528;
  flex-shrink: 0;
}
.play-button .icon {
  fill: currentColor;
  width: 19px;
  height: 19px;
}
.play-button:hover {
  background: #c9f5a0;
}
.mini-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 40px;
  overflow: hidden;
}
.mini-wave i {
  width: 3px;
  min-width: 3px;
  background: #7d9b93;
  border-radius: 3px;
}
.mini-wave.playing i {
  animation: beat 1.1s ease-in-out infinite alternate;
}
.mini-wave.playing i:nth-child(2n) {
  animation-delay: 0.4s;
}
.mini-wave.playing i:nth-child(3n) {
  animation-delay: 0.8s;
}
@keyframes beat {
  to {
    transform: scaleY(0.4);
  }
}
.beat-panel input[type="range"] {
  accent-color: var(--lime);
  height: 5px;
  display: block;
}
.audio-time {
  display: flex;
  justify-content: space-between;
  color: #a5b8cd;
  font-size: 10px;
  margin-top: 9px;
}
.audio-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 8px;
}
.loop-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #c2cfde;
  font-weight: 400;
  white-space: nowrap;
}
.loop-label input {
  width: 13px;
  height: 13px;
  accent-color: var(--lime);
}
.volume-label {
  display: flex;
  gap: 7px;
  align-items: center;
  width: 82px;
}
.volume-label .icon {
  height: 15px;
  width: 15px;
  color: #b6c7da;
}
.beat-panel .volume-label input {
  margin: 0;
}
.beat-note {
  color: #8fa7bf;
  font-size: 11px;
  margin: 20px 0 0;
}
.rhyme-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}
.rhyme-panel .tool-heading {
  margin-bottom: 8px;
}
.rhyme-panel .tool-heading .icon {
  color: var(--blue);
}
.rhyme-panel .small {
  font-size: 12px;
}
.rhyme-search {
  display: flex;
  align-items: center;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  background: #f9fbfd;
  margin-top: 17px;
}
.rhyme-search input {
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  padding: 11px;
  flex: 1;
}
.rhyme-search .icon-button {
  margin-right: 4px;
}
.rhyme-search .icon {
  width: 18px;
  height: 18px;
}
.rhyme-empty {
  color: #7a8898;
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0;
}
.rhyme-panel h3 {
  font-size: 12px;
  margin: 19px 0 10px;
}
.rhyme-panel h3 span {
  display: block;
  font-weight: 400;
  color: #91a0af;
  font-size: 10px;
  margin-top: 3px;
}
.rhyme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 230px;
  overflow: auto;
}
.rhyme-chips button {
  background: #eef2fd;
  border: 1px solid #d9e1f6;
  color: #49669f;
  font-size: 12px;
  border-radius: 6px;
  padding: 5px 9px;
}
.rhyme-chips button:hover {
  background: #dce5fc;
}
.rhyme-chips.near button {
  background: #f2f4f7;
  border-color: #e2e6ee;
  color: #6b778c;
}
.safe-note {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #8a99a9;
  font-size: 10px;
  border-top: 1px solid #eef1f4;
  padding-top: 13px;
}
.safe-note .icon {
  width: 13px;
  height: 13px;
}
.writing-tip {
  padding: 4px 14px;
  color: #7c8d9b;
}
.writing-tip .small-label {
  font-size: 9px;
  letter-spacing: 1.2px;
}
.writing-tip p {
  font-size: 12px;
  line-height: 1.75;
  margin-top: 9px;
}
.notice,
.feedback-banner {
  padding: 14px 18px;
  background: #fff6dd;
  border: 1px solid #eddfb9;
  border-radius: 9px;
  margin: 0 0 20px;
  font-size: 13px;
}
.feedback-banner {
  background: #eaf2ff;
  border-color: #cfddf4;
}
.feedback-banner p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.class-bar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 34px;
}
.class-bar > label {
  min-width: 200px;
  max-width: 320px;
  flex: 1;
}
.class-metrics {
  display: flex;
  gap: 23px;
  color: var(--muted);
  font-size: 12px;
}
.class-metrics b {
  display: block;
  font-size: 24px;
  color: var(--ink);
  font-weight: 650;
}
.teacher-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 16px;
  gap: 15px;
}
.teacher-section-head.compact {
  margin: 22px 0 10px;
}
.teacher-section-head h2 {
  font-size: 21px;
}
.unit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.unit-header {
  padding: 22px 24px;
  background: #f9fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.unit-header .small-label {
  font-size: 10px;
  color: #728c98;
  overflow-wrap: anywhere;
}
.unit-header > div:first-child {
  min-width: 0;
}
.unit-header .button-group {
  flex-shrink: 0;
}
.unit-header h3 {
  margin: 5px 0 0;
  font-size: 20px;
}
.button-group {
  display: flex;
  gap: 18px;
  align-items: center;
}
.teacher-lesson {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 24px;
  border-bottom: 1px solid #edf0f4;
}
.teacher-lesson:last-child {
  border-bottom: 0;
}
.teacher-lesson b {
  font-size: 15px;
}
.teacher-lesson p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.teacher-lesson .secondary {
  font-size: 12px;
  padding: 7px 12px;
  min-height: 35px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.unit-empty {
  color: var(--muted);
  padding: 22px;
  margin: 0;
  font-size: 14px;
}
.submission-item h3 {
  font-size: 16px;
}
.panel {
  padding: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  background: #fafbfd;
}
th,
td {
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
.track-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.track-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  min-width: 0;
}
.track-card > div:last-child {
  min-width: 0;
  flex: 1;
}
.track-art {
  width: 75px;
  height: 110px;
  border-radius: 9px;
  background: #213955;
  display: grid;
  place-items: center;
  color: #b5ec8a;
  flex-shrink: 0;
}
.track-art-1 {
  background: #dce9fc;
  color: #5579bd;
}
.track-art-2 {
  background: #dfeccb;
  color: #6f903d;
}
.track-art .icon {
  width: 47px;
  height: 47px;
}
.track-card .small-label {
  font-size: 9px;
  color: #8797a4;
}
.track-card h2 {
  font-size: 19px;
  margin: 6px 0 12px;
}
.track-card audio {
  width: 100%;
  height: 36px;
}
.table-wrap .secondary {
  font-size: 12px;
  min-height: 34px;
  padding: 7px 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  width: min(650px, calc(100vw - 32px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 24px 80px #14233733;
}
dialog::backdrop {
  background: #10233880;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  right: 13px;
  top: 13px;
}
.definition {
  padding: 6px 0;
}
.definition h2 {
  font-size: 32px;
  margin: 10px 0 18px;
}
.definition p {
  font-size: 17px;
  line-height: 1.75;
}
.definition > .primary {
  margin-top: 8px;
}
.modal-form > h2 {
  font-size: 28px;
  margin-bottom: 24px;
}
.modal-form > label {
  margin-bottom: 18px;
}
.modal-form textarea {
  line-height: 1.55;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.keyword-fields {
  display: grid;
  grid-template-columns: 150px 1fr 30px;
  gap: 9px;
  align-items: center;
  margin-bottom: 8px;
}
.keyword-fields input {
  font-size: 13px;
  margin: 0;
  padding: 10px;
}
.keyword-fields .icon {
  height: 16px;
  width: 16px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.checkbox input {
  margin: 0;
  flex-shrink: 0;
}
.year-group-fieldset {
  min-width: 0;
  padding: 0;
  margin: 0 0 18px;
  border: 0;
}
.year-group-fieldset legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.year-group-fieldset > p {
  margin: 7px 0 12px;
}
.year-group-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 8px;
}
.year-group-options .checkbox {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.year-group-options .checkbox:has(:checked) {
  border-color: #a9b9ec;
  background: #f2f5ff;
}
.year-group-options .locked-year-group {
  cursor: default;
}
.locked-year-group small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}
.roster {
  border-top: 1px solid var(--line);
  max-height: 240px;
  overflow: auto;
}
.roster > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  font-size: 14px;
}
.roster > div span {
  overflow-wrap: anywhere;
}
.review-heading {
  margin-bottom: 20px;
}
.review-heading h3 {
  font-size: 23px;
}
.review-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0;
}
.review-lyrics {
  background: #f4f7fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.review-lyrics p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #e3e9ef;
  font-size: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-lyrics p:last-child {
  border: 0;
}
.review-audio {
  width: 100%;
  margin-bottom: 22px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 100;
  background: #142337;
  color: #fff;
  border: 1px solid #40556b;
  border-radius: 10px;
  box-shadow: 0 8px 30px #0a253933;
  padding: 14px 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: calc(100vw - 35px);
  width: max-content;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
@media (min-width: 1450px) {
  .content {
    padding: 45px 50px 70px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
  }
  .lesson-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .topbar {
    padding: 0 50px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    width: 190px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar .brand {
    font-size: 18px;
    gap: 5px;
    padding: 0;
  }
  .sidebar .brand .icon {
    width: 27px;
  }
  .content {
    padding: 30px 25px 45px;
  }
  .topbar {
    padding: 0 25px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 18px;
  }
  .notebook-head {
    padding: 20px 18px 0;
  }
  .notebook-intro {
    padding: 11px 18px 0;
  }
  .line-row {
    padding: 20px 18px 0;
  }
  .section-top h2 {
    font-size: 16px;
  }
  .vocab-panel {
    padding: 20px;
  }
  .beat-panel,
  .rhyme-panel {
    padding: 18px;
  }
  .studio-heading h1 {
    font-size: 28px;
  }
  .notebook-head {
    align-items: flex-start;
  }
  .notebook-head > div {
    gap: 7px;
  }
  .notebook-head h2 {
    font-size: 17px;
  }
  .save-status {
    max-width: 105px;
    display: block;
  }
  .class-bar {
    flex-wrap: wrap;
    gap: 15px;
  }
  .track-library {
    grid-template-columns: 1fr;
  }
  .teacher-lesson {
    gap: 10px;
    padding: 18px;
  }
  .teacher-lesson .lesson-mini-icon {
    display: none;
  }
  .teacher-lesson .text-button {
    font-size: 12px;
  }
}
@media (max-width: 850px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .studio-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row: 1;
  }
  .writing-tip {
    display: none;
  }
  .beat-panel,
  .rhyme-panel {
    height: 100%;
  }
  .rhyme-chips {
    max-height: 105px;
  }
  .rhyme-empty {
    margin: 13px 0;
  }
  .notebook-head {
    align-items: center;
  }
  .save-status {
    max-width: 240px;
    display: flex;
  }
  .studio-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .filter-row > .small {
    display: none;
  }
  .lesson-grid {
    gap: 17px;
  }
  .lesson-card-body {
    padding: 18px;
  }
  .lesson-card h3 {
    font-size: 20px;
  }
  .lesson-art {
    height: 150px;
  }
  .lesson-glyph .icon {
    height: 125px;
    width: 125px;
  }
  .lesson-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .login-copy h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .login-art {
    padding: 35px;
  }
  .login-form {
    padding: 35px;
  }
  .login-copy {
    margin-top: 70px;
  }
  .teacher-lesson {
    flex-wrap: wrap;
  }
  .teacher-lesson .grow {
    min-width: 160px;
  }
  .unit-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 15px 16px 10px;
    display: block;
  }
  .sidebar .brand {
    font-size: 21px;
    padding-left: 4px;
  }
  .sidebar .brand .icon {
    width: 28px;
  }
  .workspace-label,
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    margin-top: 18px;
  }
  .nav-item {
    padding: 9px 11px;
    white-space: nowrap;
    font-size: 12px;
    gap: 6px;
    border-radius: 7px;
  }
  .nav-item .icon {
    width: 16px;
    height: 16px;
  }
  .sidebar-bottom {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  .profile {
    border: 0;
    padding: 0;
  }
  .profile > div {
    display: none;
  }
  .profile .icon-button {
    color: #cbd8e6;
  }
  .topbar {
    height: 53px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 8px;
  }
  .topbar-right {
    gap: 7px;
  }
  .role-pill {
    font-size: 10px;
    padding: 3px 8px;
  }
  .tag {
    font-size: 8px;
    padding: 4px 5px;
    letter-spacing: 0.6px;
  }
  .content {
    padding: 27px 18px 45px;
  }
  .page-heading,
  .studio-heading {
    gap: 15px;
    margin-bottom: 24px;
  }
  .page-heading h1,
  .studio-heading h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
  }
  .page-heading p,
  .studio-heading p {
    font-size: 13px;
  }
  .page-heading .eyebrow,
  .studio-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .page-heading > .primary {
    font-size: 11px;
    padding: 9px 11px;
  }
  .page-heading > .primary .icon {
    display: none;
  }
  .count-badge {
    display: none;
  }
  .lesson-grid {
    grid-template-columns: 1fr;
  }
  .lesson-card {
    display: block;
  }
  .lesson-art {
    height: 160px;
  }
  .lesson-footer {
    flex-direction: row;
    align-items: center;
  }
  .filter-row {
    margin-top: 20px;
  }
  .search-field {
    max-width: none;
  }
  .studio-heading > .secondary {
    font-size: 10px;
    padding: 6px 10px;
    min-height: 34px;
  }
  .vocab-panel {
    padding: 17px;
  }
  .section-top {
    align-items: flex-start;
    gap: 8px;
  }
  .section-top > div {
    gap: 8px;
    align-items: flex-start;
  }
  .section-top h2 {
    font-size: 15px;
    line-height: 1.4;
  }
  .section-top .step-label {
    padding: 3px 5px;
    font-size: 9px;
  }
  .section-top > span {
    font-size: 10px;
  }
  .keyword-list {
    gap: 7px;
    margin: 15px 0;
  }
  .keyword {
    font-size: 12px;
    padding: 6px 11px;
  }
  .vocab-bottom {
    font-size: 10px;
  }
  .progress {
    width: 65px;
  }
  .studio-tools {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .beat-panel,
  .rhyme-panel {
    padding: 16px 12px;
  }
  .tool-heading {
    gap: 7px;
  }
  .tool-heading h2 {
    font-size: 14px;
  }
  .tool-heading .icon {
    width: 15px;
    height: 15px;
  }
  .beat-panel select {
    font-size: 11px;
    padding: 9px 4px;
  }
  .audio-display {
    gap: 10px;
  }
  .mini-wave {
    gap: 2px;
  }
  .mini-wave i {
    width: 2px;
    min-width: 2px;
  }
  .play-button {
    width: 36px;
    height: 36px;
  }
  .audio-options {
    flex-wrap: wrap;
    gap: 15px;
  }
  .volume-label {
    width: 100%;
    max-width: 100px;
  }
  .rhyme-search input {
    font-size: 12px;
    padding: 9px 7px;
    width: 70px;
  }
  .rhyme-search .icon-button {
    min-width: 25px;
    min-height: 25px;
    margin-right: 2px;
  }
  .rhyme-panel .small {
    font-size: 11px;
  }
  .rhyme-empty {
    font-size: 11px;
  }
  .rhyme-chips button {
    font-size: 11px;
    padding: 4px 6px;
  }
  .rhyme-panel h3 {
    font-size: 11px;
  }
  .safe-note {
    font-size: 9px;
  }
  .notebook-head h2 {
    font-size: 17px;
  }
  .notebook-head .step-label {
    font-size: 10px;
  }
  .save-status {
    font-size: 10px;
    max-width: 150px;
  }
  .notebook-intro > p {
    font-size: 11px;
  }
  .title-label input {
    font-size: 18px;
  }
  .notebook-bottom {
    padding: 20px 18px;
    gap: 10px;
  }
  .submit-bar {
    padding: 20px 18px;
  }
  .submit-actions {
    width: 100%;
  }
  .submit-actions button {
    flex: 1;
  }
  .class-bar {
    padding: 17px;
  }
  .class-bar > label {
    min-width: 100%;
    max-width: none;
  }
  .class-metrics {
    flex: 1;
    gap: 16px;
  }
  .class-metrics span {
    font-size: 10px;
  }
  .class-metrics b {
    font-size: 22px;
  }
  .class-bar > .secondary {
    font-size: 11px;
    padding: 9px;
  }
  .teacher-section-head h2 {
    font-size: 19px;
  }
  .teacher-section-head > .small {
    display: none;
  }
  .teacher-lesson .grow {
    min-width: 130px;
  }
  .teacher-lesson .status {
    margin-left: auto;
  }
  .teacher-lesson .text-button {
    margin-left: auto;
  }
  .unit-header {
    padding: 18px;
  }
  .unit-header .button-group {
    width: 100%;
    justify-content: space-between;
  }
  .submission-item,
  .rap-item {
    padding: 17px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .submission-item .rap-icon,
  .rap-item .rap-icon {
    display: none;
  }
  .submission-item .status,
  .rap-item .status {
    margin-left: auto;
  }
  .submission-item p,
  .rap-item p {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .track-card {
    gap: 15px;
    padding: 17px;
  }
  .track-art {
    width: 55px;
    height: 100px;
  }
  .track-art .icon {
    width: 35px;
    height: 35px;
  }
  .track-card h2 {
    font-size: 17px;
  }
  th,
  td {
    padding: 15px;
    font-size: 12px;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 26px 30px 35px;
  }
  .login-copy {
    margin-top: 36px;
  }
  .login-copy h1 {
    font-size: 44px;
    margin-bottom: 15px;
  }
  .login-copy p {
    font-size: 15px;
    margin: 0;
  }
  .equalizer,
  .login-art small {
    display: none;
  }
  .login-form {
    padding: 35px 30px;
  }
  .login-form h2 {
    font-size: 31px;
  }
  .login-form-inner {
    max-width: none;
  }
  .login-form .muted {
    font-size: 14px;
  }
  .login-form form {
    margin-top: 25px;
  }
  dialog {
    padding: 30px 20px;
  }
  .modal-form > h2 {
    font-size: 25px;
  }
  .keyword-fields {
    grid-template-columns: 95px minmax(0, 1fr) 25px;
    gap: 6px;
  }
  .keyword-fields input {
    font-size: 12px;
    padding: 9px 7px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .definition h2 {
    font-size: 28px;
  }
  .definition p {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
  }
  .sidebar,
  .topbar,
  .studio-tools,
  .vocab-panel,
  .studio-heading > .secondary,
  .notebook-head,
  .notebook-intro > p,
  .line-label,
  .pair-label,
  .notebook-bottom,
  .submit-bar,
  .notice,
  #toast,
  dialog {
    display: none !important;
  }
  .app-shell {
    display: block;
  }
  .content {
    padding: 0;
  }
  .studio-grid {
    display: block;
  }
  .notebook {
    border: 0;
  }
  .notebook-intro {
    padding: 0;
  }
  .line-row {
    padding: 5px 0;
    break-inside: avoid;
  }
  .line-input {
    border: 0;
    background: none;
    padding: 0;
  }
  .line-input textarea {
    font-size: 16px;
    min-height: 0;
    padding: 5px 0;
    color: black;
  }
  .title-label input {
    border: 0;
    font-size: 25px;
  }
  .studio-heading h1 {
    font-size: 27px;
  }
  .feedback-banner {
    break-inside: avoid;
  }
}
