:root {
  --ink: #202326;
  --muted: #697177;
  --line: #dce1e3;
  --surface: #ffffff;
  --soft: #f5f7f2;
  --panel: #eef5f6;
  --green: #23715d;
  --green-dark: #155443;
  --coral: #d15d4f;
  --gold: #c8943f;
  --blue: #2f6f8f;
  --shadow: 0 18px 50px rgba(31, 43, 48, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  padding: 24px;
  background: #192c2d;
  color: #f9fbf7;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #132224;
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sidebar-panel span {
  color: rgba(249, 251, 247, 0.72);
  font-size: 0.88rem;
}

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

.nav-item {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: rgba(249, 251, 247, 0.76);
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sidebar-panel {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.sidebar-panel strong {
  display: block;
  font-size: 1.7rem;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1,
.section-heading h2,
.lesson-header h2,
.business-panel h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.topbar h1 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 4.3rem);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

.lesson-stage,
.micro-card,
.business-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lesson-stage {
  padding: 18px;
}

.lesson-stage[data-theme^="kid"] .lesson-visual {
  background: #eef7ff;
}

.lesson-stage[data-theme^="adult"] .lesson-visual {
  background: #f3ead8;
}

.lesson-visual {
  aspect-ratio: 19 / 8;
  overflow: hidden;
  border-radius: 8px;
  background: #f3ead8;
  margin-bottom: 18px;
}

.lesson-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lesson-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.play-mission {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.student-summary {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
}

.setup-panel {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.setup-panel h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.profile-preview {
  align-self: start;
  background: #f8f3e8;
}

.path-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.path-list span {
  display: block;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
}

.translator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.translator-panel {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.translator-panel h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.translator-note {
  color: var(--muted);
  font-weight: 750;
}

.translator-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 14px 0;
}

.translator-link input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
  color: var(--ink);
}

.translator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.translation-flow,
.translator-steps {
  display: grid;
  gap: 12px;
}

.translation-flow div,
.translator-steps span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfc;
}

.translation-flow span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.translation-flow strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1.25;
}

.translator-steps {
  margin-top: 14px;
}

.translator-steps span {
  border-left: 4px solid var(--blue);
  color: var(--ink);
  font-weight: 850;
}

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e9f2ee;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.84rem;
}

.dialogue {
  display: grid;
  gap: 10px;
  min-height: 184px;
}

.line {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
  opacity: 0.48;
}

.line.current {
  border-color: var(--green);
  box-shadow: inset 4px 0 0 var(--green);
  opacity: 1;
}

.speaker {
  color: var(--muted);
  font-weight: 800;
}

.line p {
  margin: 0;
}

.coach-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.practice-panel,
.business-grid {
  display: grid;
  gap: 20px;
  align-content: start;
}

.micro-card,
.business-panel {
  padding: 18px;
}

.micro-card h3 {
  margin: 0 0 8px;
}

.tutor-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.avatar {
  position: relative;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8d58f, #d15d4f 58%, #2f6f8f);
  color: #ffffff;
  font-weight: 900;
}

.avatar-face {
  position: relative;
  z-index: 2;
}

.voice-ring {
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(35, 113, 93, 0.35);
  border-radius: 50%;
  opacity: 0;
}

.avatar.speaking .voice-ring,
.avatar.listening .voice-ring {
  animation: pulse 1.1s ease-in-out infinite;
  opacity: 1;
}

.coach-bubble {
  margin: 0;
  color: var(--muted);
}

.voice-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.voice-option {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfc;
  color: var(--ink);
  text-align: left;
}

.voice-option strong,
.voice-option span {
  display: block;
}

.voice-option span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.voice-option.active {
  border-color: var(--coral);
  background: #fff7f2;
  box-shadow: inset 4px 0 0 var(--coral);
}

.theme-panel {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

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

.theme-group + .theme-group {
  margin-top: 8px;
}

.theme-group span {
  flex: 0 0 72px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.theme-option {
  flex: 1 1 86px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.theme-option.active {
  border-color: var(--blue);
  background: #edf7fb;
  color: #194f68;
}

.mode-panel {
  margin-bottom: 14px;
}

.mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-option {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.mode-option strong,
.mode-option span {
  display: block;
}

.mode-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.mode-option.active {
  border-color: var(--green);
  background: #e9f2ee;
  box-shadow: inset 4px 0 0 var(--green);
}

.learner-options {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

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

.option-block span {
  flex: 0 0 82px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.learner-option {
  flex: 1 1 78px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.learner-option.active {
  border-color: var(--gold);
  background: #fff8e8;
  color: #6b4a10;
}

.group-card,
.choice-card {
  display: none;
}

.group-card.active,
.choice-card.active {
  display: block;
}

.relay-track {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.relay-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  opacity: 0.62;
}

.relay-step.current {
  border-color: var(--green);
  background: #eef8f4;
  box-shadow: inset 4px 0 0 var(--green);
  opacity: 1;
}

.relay-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.relay-step strong,
.relay-step span {
  display: block;
}

.relay-step span {
  color: var(--muted);
  font-size: 0.86rem;
}

.relay-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.choice-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.choice-answer {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.choice-answer strong,
.choice-answer span {
  display: block;
}

.choice-answer span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.choice-answer.correct {
  border-color: var(--green);
  background: #e9f2ee;
  box-shadow: inset 4px 0 0 var(--green);
}

.choice-answer.wrong {
  border-color: var(--coral);
  background: #fff7f2;
  box-shadow: inset 4px 0 0 var(--coral);
}

.story-picker,
.story-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

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

.story-option {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.story-option.active {
  border-color: var(--coral);
  background: #fff7f2;
  color: #8b322b;
}

.story-line {
  min-height: 82px;
  display: grid;
  place-items: center;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfc;
  color: var(--ink);
  text-align: center;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.25;
}

.learning-quiz p {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 800;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-option {
  flex: 1 1 126px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.profile-option:hover {
  border-color: var(--blue);
  background: #edf7fb;
}

.profile-bars {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.profile-bar {
  display: grid;
  gap: 5px;
}

.profile-bar label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.profile-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece8;
}

.profile-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 180ms ease;
}

.student-target {
  margin: 0 0 12px;
  padding: 14px;
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  background: #fff7f2;
  font-size: 1.05rem;
  font-weight: 800;
}

.voice-status {
  min-height: 34px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.voice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 112px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(35, 113, 93, 0.22);
  outline-offset: 2px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 8px;
  border: 0;
  padding: 0 16px;
  font-weight: 850;
}

.primary-button {
  background: var(--green);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button {
  background: #edf1ef;
  color: var(--ink);
}

.full {
  width: 100%;
}

.feedback {
  min-height: 48px;
  margin: 12px 0 0;
  color: var(--muted);
}

.self-coach {
  display: grid;
  gap: 8px;
}

.self-step {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfc;
  color: var(--ink);
  text-align: left;
}

.self-step strong,
.self-step span {
  display: block;
}

.self-step span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.self-step.active {
  border-color: var(--blue);
  background: #edf7fb;
  box-shadow: inset 4px 0 0 var(--blue);
}

.confidence-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.confidence {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 850;
}

.confidence.active {
  border-color: var(--green);
  background: #e9f2ee;
  color: var(--green-dark);
}

@keyframes pulse {
  0% {
    transform: scale(0.94);
    opacity: 0.2;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(0.94);
    opacity: 0.2;
  }
}

.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e6ece9;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--coral));
  transition: width 180ms ease;
}

.stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: #e8ece8;
  border-radius: 8px;
}

.segment {
  border: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segment.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(20, 33, 34, 0.1);
}

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

.lesson-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  min-height: 190px;
  align-content: space-between;
}

.lesson-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lesson-card p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #f0f3ee;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.78rem;
}

.tag.paid {
  background: #fff2dc;
  color: #80530c;
}

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

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0;
}

.price span {
  font-size: 1.5rem;
  font-weight: 900;
}

.price strong {
  font-size: 5rem;
  line-height: 0.85;
}

.price small {
  color: var(--muted);
  font-weight: 800;
}

.business-panel p:not(.eyebrow) {
  color: var(--muted);
  max-width: 640px;
}

.checklist {
  display: grid;
  gap: 14px;
}

.checklist label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.owner-panel {
  box-shadow: none;
}

.legal-box {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfc;
}

.legal-box strong,
.legal-box span {
  display: block;
}

.legal-box span {
  color: var(--muted);
  font-weight: 800;
}

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

.editor-grid label,
.wide-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.editor-grid input,
.editor-grid select,
.wide-label textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
  color: var(--ink);
}

.wide-label {
  margin-bottom: 12px;
}

.market-grid,
.payment-methods,
.plan-grid {
  display: grid;
  gap: 10px;
}

.market-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 4px;
}

.market-grid label,
.payment-methods label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fbfcfc;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.market-grid input,
.payment-methods input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.payment-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 4px 0 12px;
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.plan-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.plan-grid input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: var(--ink);
}

.regional-price-guide {
  display: grid;
  gap: 8px;
  margin: 2px 0 12px;
}

.regional-price-guide span {
  display: block;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff9eb;
  color: #6b4a10;
  font-size: 0.84rem;
  font-weight: 850;
}

.product-access-panel {
  grid-column: 1 / -1;
}

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

.product-plans article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfc;
}

.product-plans span,
.product-plans strong,
.product-plans small {
  display: block;
}

.product-plans span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-plans strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.product-plans small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 850;
}

.product-plans p {
  margin: 12px 0 0;
  color: var(--muted);
}

.minute-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.minute-plans span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.access-rule {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  padding: 12px;
  background: #fff7f2;
}

.access-rule strong,
.access-rule span {
  display: block;
}

.access-rule span {
  color: var(--muted);
  font-weight: 800;
}

.marketing-panel {
  grid-column: 1 / -1;
}

.marketing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.marketing-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfcfc;
  color: var(--ink);
  font-weight: 850;
}

.marketing-tab.active {
  border-color: var(--blue);
  background: #edf7fb;
  color: #194f68;
}

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

.marketing-copy label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.marketing-copy textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfc;
  color: var(--ink);
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

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

  .sidebar {
    min-height: auto;
  }

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

  .sidebar-panel {
    display: none;
  }

  .practice-grid,
  .onboarding-grid,
  .translator-grid,
  .business-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .section-heading,
  .lesson-header {
    display: grid;
  }

  .topbar h1 {
    font-size: 2.35rem;
  }

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

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

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

  .coach-row {
    display: grid;
  }

  .voice-actions,
  .tutor-card,
  .voice-picker,
  .editor-grid,
  .market-grid,
  .payment-methods,
  .plan-grid,
  .product-plans,
  .minute-plans,
  .marketing-copy,
  .mode-picker,
  .story-picker,
  .story-actions,
  .translator-link,
  .relay-controls {
    grid-template-columns: 1fr;
  }
}
