:root {
  --ink: #1d2a3d;
  --muted: #52637a;
  --blue: #3d51bd;
  --blue-dark: #31429f;
  --blue-light: #edf0fc;
  --bg: #f3f5f9;
  --line: #dce3ee;
  --sp-green: #d4ebdf;
  --sp-dark: #202c55;
}

.sidebar { width: 224px; min-width: 224px; padding: 29px 17px; }
.brand { margin-bottom: 44px; min-height: 44px; }
.brand-mark { background: var(--sp-dark); box-shadow: none; }
.nav-button { font-size: .9rem; color: #485975; gap: 10px; padding-inline: 12px; }
.nav-button.is-active, .mobile-nav-item.is-active { color: #3448a9; background: var(--blue-light); }
.topbar { height: 62px; padding-inline: 37px; }
.topbar-crumb, .topbar-right { color: #52637a; font-size: .875rem; }
#app { max-width: 1130px; padding-inline: 37px; }
.toast { font-size: .875rem; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible,
[tabindex="0"]:focus-visible, audio:focus-visible { outline: 3px solid #5068dc; outline-offset: 3px; }
.primary, .secondary { min-height: 44px; }
.sp-workspace { line-height: 1.65; overflow-wrap: anywhere; }
.sp-inner { max-width: 760px; margin: 0 auto; }
.sp-workspace h1, .sp-workspace h2, .sp-workspace p { margin: 0; }
.sp-heading { margin-bottom: 22px; }
.sp-heading h1 { font-size: clamp(1.75rem, 4.2vw, 2.55rem); letter-spacing: -.045em; line-height: 1.2; font-weight: 800; }
.sp-heading h1:focus, .sp-prompt:focus, #sp-step:focus { outline: none; }
.sp-heading p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.sp-back {
  min-height: 44px;
  margin: -6px 0 11px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue-dark);
  font-size: .875rem;
  font-weight: 750;
}
.sp-back:hover { text-decoration: underline; text-underline-offset: .22em; }
.sp-hero {
  display: grid;
  gap: 18px;
  padding: 22px;
  color: white;
  background: var(--sp-dark);
  border: 1px solid #202c55;
  border-radius: 22px;
}
.sp-hero-copy { align-self: center; }
.sp-kicker { color: #4255b0; font-weight: 750; font-size: .875rem; }
.sp-hero .sp-kicker { color: #c0d5ff; }
.sp-hero h2 {
  margin-top: 5px;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -.035em;
}
.sp-hero-copy p { margin-top: 10px; color: #e0e6f7; max-width: 33ch; }
.sp-hero-copy .primary { background: var(--sp-green); color: #163c3b; margin-top: 17px; box-shadow: none; }
.sp-hero-copy .primary:hover { background: #e9f8ef; }
.sp-preview {
  align-self: stretch;
  border-radius: 15px;
  border: 1px solid #526493;
  background: #2b3865;
  padding: 16px 19px;
}
.sp-preview > div { display: flex; align-items: center; gap: 9px; color: #e0e7ff; font-size: .875rem; font-weight: 700; }
.sp-preview-icon { color: #c3d4fe; display: grid; place-items: center; }
.sp-preview-icon svg { width: 21px; height: 21px; }
.sp-preview p { font-size: clamp(1.22rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.28; margin-top: 8px; max-width: 24ch; }
.sp-preview ul { display: flex; gap: 6px; flex-wrap: wrap; margin: 13px 0 0; padding: 0; list-style: none; }
.sp-preview li { border-radius: 6px; padding: 2px 7px; color: #eef2ff; font-size: .875rem; background: #3e4b7a; white-space: nowrap; }
.sp-section { margin-top: 25px; }
.sp-section h2 { font-size: 1.125rem; margin-bottom: 10px; }
.sp-scenes, .sp-modes { display: grid; gap: 8px; }
.sp-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-scene, .sp-mode {
  display: flex;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 13px;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-width: 0;
}
.sp-scene { min-height: 57px; padding: 9px; }
.sp-mode { min-height: 72px; padding: 11px 13px; }
.sp-scene:hover, .sp-mode:hover { border-color: #9faee9; background: #fbfcff; }
.sp-tile-icon { flex: none; width: 33px; height: 33px; border-radius: 8px; display: grid; place-items: center; background: #edf0fc; color: #4555ab; }
.sp-tile-icon svg { width: 19px; height: 19px; }
.sp-scene strong { font-size: .875rem; }
.sp-mode small { display: block; margin-top: 2px; font-size: .875rem; color: var(--muted); }
.sp-workspace .primary, .sp-workspace .secondary { min-height: 44px; padding: 9px 14px; font-size: .9375rem; font-weight: 720; box-shadow: none; line-height: 1.4; }
.sp-workspace button svg { width: 19px; height: 19px; flex: none; }
.sp-workspace .secondary { color: #354775; border-color: #cdd6e7; }
.sp-card {
  padding: clamp(16px, 4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
}
.sp-card h2 { font-size: 1.25rem; line-height: 1.35; }
.sp-card h2.sp-kicker { font-size: .9375rem; }
.sp-form { display: grid; gap: 17px; }
.sp-form h2 { margin-bottom: 8px; }
.sp-form .sp-muted + button { margin-top: 10px; }
.sp-form .sp-actions { margin-top: 0; }
.sp-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sp-label { display: block; font-size: .94rem; font-weight: 780; margin-bottom: 5px; }
.sp-muted, .sp-details { font-size: .875rem; color: var(--muted); }
.sp-card select + .sp-muted { margin-top: 5px; }
.sp-card select { color: var(--ink); background: #fff; border: 1px solid #bdc9dd; border-radius: 9px; padding: 9px 12px; width: 100%; min-height: 46px; }
.sp-options { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-options label { position: relative; min-width: 69px; text-align: center; cursor: pointer; }
.sp-options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sp-options span { display: block; padding: 9px 12px; min-height: 44px; border: 1px solid #bdc9dd; border-radius: 9px; }
.sp-options input:checked + span { background: #edf0fc; border-color: #8c9ce0; color: #31429f; font-weight: 750; }
.sp-options input:focus-visible + span { outline: 3px solid #5068dc; outline-offset: 3px; }
.sp-check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.sp-check input { accent-color: var(--blue); flex: 0 0 auto; margin: 0; width: 20px; height: 20px; }
.sp-form > .sp-check + p { margin-top: -14px; }
.sp-question { margin: 8px 0 13px; }
.sp-workspace .sp-prompt { font-size: clamp(1.36rem, 3.6vw, 2.15rem); font-weight: 780; line-height: 1.42; margin: 4px 0 12px; }
.sp-details { margin-top: 10px; }
.sp-details summary { cursor: pointer; min-height: 40px; align-content: center; font-weight: 700; color: var(--blue-dark); }
.sp-workspace .sp-instruction { margin-top: 8px; }
.sp-workspace .sp-focus { background: #edf0fc; color: #354775; border-radius: 9px; padding: 8px 12px; margin-top: 11px; }
.sp-focus span { margin-inline-start: 8px; font-weight: 720; }
.sp-roles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; }
.sp-roles li { padding: 7px 10px; background: #f1f4f9; border-radius: 7px; line-height: 1.4; }
.sp-roles strong { color: #364c7f; display: block; font-size: .875rem; }
.sp-roles span { color: var(--muted); font-size: .875rem; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.sp-next { margin-top: 17px; }
.sp-clock { display: flex; gap: 9px 13px; flex-wrap: wrap; align-items: center; margin-top: 15px; min-height: 44px; }
.sp-clock > span:first-child { border-radius: 8px; padding: 3px 10px; background: #ebf4ee; color: #20563e; font-size: 1.1rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.sp-clock [hidden], .sp-mic [hidden] { display: none !important; }
.sp-mic { margin-top: 8px; }
.sp-mic > .sp-muted { display: block; }
.sp-mic button + .sp-muted { margin-top: 5px; }
.sp-mic .sp-muted:empty { display: none; }
.sp-player { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 8px; font-size: .875rem; font-weight: 700; }
.sp-player audio { width: 100%; max-width: 325px; }
.sp-clips { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sp-model { background: #f2f5fc; border-radius: 12px; padding: 12px; margin-top: 11px; }
.sp-model ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.sp-model li { display: grid; grid-template-columns: minmax(0, 1fr); padding: 5px 0; }
.sp-model li span { color: #435a8c; font-weight: 720; font-size: .875rem; }
.sp-model li strong, .sp-answer { color: #23365e; font-size: 1.09rem; font-weight: 730; }
.sp-card .sp-reflect { margin-top: 14px; }
.sp-reflect .sp-check + .sp-check { border-top: 1px solid var(--line); }
.sp-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.sp-record-summary { margin: 17px 0; }
.sp-record-summary p { margin: 7px 0 10px; }
.hero h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 4vw, 2rem); }
.word-example { margin-top: 4px; }
.word-example summary { width: fit-content; min-height: 44px; align-content: center; color: var(--blue-dark); font-size: .875rem; font-weight: 750; cursor: pointer; }
.word-example p { margin: 2px 0 8px; max-width: 65ch; color: var(--ink); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.word-example .secondary { padding: 6px 11px; font-size: .875rem; }
.word-row:has(.word-example[open]) { align-items: flex-start; }
.card-example[lang="en"] { color: #52637a; font-size: .9375rem; }

@media (min-width: 580px) {
  .sp-hero { padding: 28px; grid-template-columns: 1.08fr 1fr; gap: 24px; }
  .sp-scenes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sp-scene { flex-direction: column; align-items: flex-start; padding: 12px; }
  .sp-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-mode { align-items: flex-start; }
  .sp-roles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-model li { grid-template-columns: 5rem minmax(0, 1fr); align-items: baseline; gap: 8px; }
}
@media (min-width: 1020px) {
  .sp-hero { padding: 30px 36px; gap: 38px; }
  .sp-preview { padding: 20px 24px; }
  .sp-scene { flex-direction: row; align-items: center; }
  .sp-mode { align-items: center; }
}
@media (max-width: 760px) {
  .topbar { height: 48px; padding-inline: 16px; }
  #app { padding: 19px 14px calc(86px + env(safe-area-inset-bottom)); }
  .bottom-nav { padding-inline: 4px; }
  .mobile-nav-item { min-width: 0; flex: 1 1 0; min-height: 48px; border-radius: 8px; padding-inline: 1px; }
  .mobile-nav-item small { font-size: .75rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
