:root {
  --ink: #14161b;
  --muted: #69717f;
  --faint: #8f98a7;
  --line: #dfe4eb;
  --line-strong: #c8d0dc;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-warm: #fff8f2;
  --red: #d01f3c;
  --red-dark: #a31932;
  --teal: #087f7a;
  --teal-soft: #e4f5f2;
  --gold: #d9902f;
  --cheese: #f5c94f;
  --crust: #b76424;
  --mushroom: #4f3424;
  --blue: #2f64b1;
  --violet: #6947bf;
  --green: #278654;
  --danger: #b42318;
  --shadow: 0 26px 80px rgba(20, 22, 27, 0.14);
  --soft-shadow: 0 14px 34px rgba(20, 22, 27, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eef2f7;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app {
  isolation: isolate;
}

[dir] {
  unicode-bidi: isolate;
}

input,
select,
textarea {
  unicode-bidi: plaintext;
}

input[type="email"],
input[type="password"],
input[type="url"] {
  direction: ltr;
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(246, 248, 251, 0.94)),
    linear-gradient(90deg, rgba(208, 31, 60, 0.11), rgba(8, 127, 122, 0.12), rgba(217, 144, 47, 0.1));
}

.legal-shell {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 52px 0 72px;
}

.legal-home-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 0 12px;
  font-weight: 900;
  text-decoration: none;
}

.legal-shell h1 {
  margin: 28px 0 6px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

.legal-updated {
  margin: 0 0 30px;
  color: var(--muted);
  font-weight: 800;
}

.legal-shell section {
  border-top: 1px solid rgba(20, 22, 27, 0.12);
  padding: 22px 0;
}

.legal-shell h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.legal-shell p {
  margin: 0;
  color: #3b4656;
  font-size: 17px;
  line-height: 1.65;
}

button,
input,
select,
textarea {
  font: inherit;
  font-size: 16px;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.cache-reset-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(208, 31, 60, 0.1), transparent 34%),
    linear-gradient(135deg, #fbfcfe, #edf4ff);
}

.cache-reset-card {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  padding: 28px;
}

.cache-reset-card h1,
.cache-reset-card p {
  margin: 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: start;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 201, 79, 0.18) 0 9px, transparent 10px),
    radial-gradient(circle at 24% 34%, rgba(208, 31, 60, 0.14) 0 8px, transparent 9px),
    radial-gradient(circle at 8% 54%, rgba(8, 127, 122, 0.13) 0 7px, transparent 8px),
    radial-gradient(circle at 36% 68%, rgba(79, 52, 36, 0.08) 0 7px, transparent 8px),
    linear-gradient(135deg, rgba(255, 252, 246, 0.78), rgba(246, 248, 251, 0.92)),
    linear-gradient(90deg, rgba(208, 31, 60, 0.14), rgba(8, 127, 122, 0.12), rgba(217, 144, 47, 0.14));
}

.auth-brand {
  display: flex;
  min-height: 100%;
  padding: 52px;
  align-items: flex-start;
}

.brand-panel {
  width: min(100%, 860px);
}

.logo-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.compact-logo {
  margin-bottom: 0;
}

.mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #14181f url("/assets/zapiekanka-mark.svg") center / cover no-repeat;
  border: 1px solid rgba(20, 22, 27, 0.1);
  box-shadow: 0 14px 24px rgba(20, 22, 27, 0.16);
  overflow: hidden;
}

.mark span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auth-brand h1 {
  margin: 18px 0 0;
  max-width: 820px;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-brand p {
  margin: 24px 0 0;
  max-width: 760px;
  color: #3b4656;
  font-size: 19px;
  line-height: 1.52;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-link,
.secondary-link {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-weight: 950;
  text-decoration: none;
}

.primary-link {
  color: white;
  background: var(--red);
  box-shadow: 0 14px 34px rgba(208, 31, 60, 0.24);
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 10px;
  margin-top: 24px;
  max-width: 560px;
}

.landing-proof div {
  min-height: 78px;
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 3px;
  box-shadow: var(--soft-shadow);
}

.landing-proof strong {
  font-size: 25px;
  line-height: 1;
}

.landing-proof span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 880px;
  margin-top: 18px;
}

.landing-feature-grid div {
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 15px;
  box-shadow: var(--soft-shadow);
}

.feature-icon {
  min-width: 38px;
  min-height: 32px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #15181e;
  color: white;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 950;
}

.culture-feature-icon {
  background: var(--teal);
}

.school-feature-icon {
  background: var(--blue);
}

.landing-feature-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 16px;
}

.landing-feature-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.landing-school-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  max-width: 880px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(47, 100, 177, 0.18);
  border-radius: 8px;
  background: rgba(237, 244, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.landing-school-strip strong {
  display: block;
  font-size: 16px;
}

.landing-school-strip p {
  margin: 6px 0 0;
  color: #3b4656;
  font-size: 13px;
  line-height: 1.45;
}

.teacher-preview-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.teacher-preview-steps span {
  min-height: 44px;
  border: 1px solid rgba(47, 100, 177, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 10px;
  color: #3b4656;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.landing-teacher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.auth-preview {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(150px, 220px);
  grid-auto-rows: 116px;
  gap: 14px;
  width: min(100%, 540px);
  margin-top: 34px;
}

.preview-card {
  border: 1px solid rgba(20, 22, 27, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
  padding: 18px;
  display: grid;
  align-content: space-between;
  backdrop-filter: blur(16px);
}

.preview-main {
  grid-row: span 2;
  background: #15181e;
  color: white;
}

.preview-label,
.eyebrow {
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preview-card strong {
  font-size: 28px;
  letter-spacing: 0;
}

.preview-card span:last-child {
  color: var(--red);
  font-weight: 850;
}

.preview-main span:last-child {
  color: #f7d7dd;
  font-size: 24px;
}

.auth-card {
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(20, 22, 27, 0.1);
  box-shadow: var(--shadow);
  padding: 38px;
  padding-top: 56px;
  display: grid;
  align-content: start;
  overflow-y: auto;
}

.auth-form {
  width: 100%;
}

.form-heading {
  margin-bottom: 20px;
}

.form-heading h2 {
  margin: 8px 0 0;
  font-size: 30px;
  letter-spacing: 0;
}

.form-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.auth-tabs,
.mode-tabs {
  display: grid;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #eef2f7;
  border-radius: 8px;
}

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

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

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

.advanced-mode-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.tab-button,
.mode-button {
  min-height: 42px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.tab-button.active,
.mode-button.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.field-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

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

.field span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 850;
}

.field input,
.field select,
.answer-input,
.sentence-input,
.sidebar-search input {
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 15px;
  outline: none;
}

.field input:focus,
.field select:focus,
.answer-input:focus,
.sentence-input:focus,
.sidebar-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 100, 177, 0.14);
}

.primary-button,
.secondary-button,
.choice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.wide-button {
  width: 100%;
}

.primary-button {
  color: white;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(208, 31, 60, 0.22);
}

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

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

.onboarding-card {
  border: 1px solid rgba(47, 100, 177, 0.18);
  border-radius: 8px;
  background: rgba(237, 244, 255, 0.7);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.onboarding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onboarding-head strong {
  font-size: 16px;
}

.onboarding-card p {
  margin: 0;
  color: #3b4656;
  font-size: 13px;
  line-height: 1.45;
}

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

.auth-actions {
  min-height: 28px;
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.text-button {
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font-weight: 850;
  padding: 0 10px;
}

.text-button:hover {
  background: rgba(47, 100, 177, 0.1);
}

.auth-message,
.auth-error,
.feedback {
  min-height: 28px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 800;
}

.auth-message {
  color: var(--teal);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

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

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 850;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--ink);
}

.referral-note,
.paid-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.referral-note {
  color: var(--teal);
  font-weight: 850;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  background:
    linear-gradient(120deg, rgba(208, 31, 60, 0.08), transparent 28%),
    linear-gradient(300deg, rgba(8, 127, 122, 0.12), transparent 28%),
    var(--surface-soft);
}

.sidebar {
  height: 100vh;
  overflow: auto;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.84);
  border-inline-end: 1px solid var(--line);
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 18px;
  backdrop-filter: blur(18px);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.user-block {
  min-width: 0;
}

.user-block strong,
.set-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-block span,
.set-meta,
.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.signout-button {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 8px;
  background: #fff0f3;
  color: var(--red-dark);
  border: 1px solid rgba(208, 31, 60, 0.18);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.signout-button:hover {
  background: #ffe4ea;
}

.signout-door {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.signout-door::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 9px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.signout-door::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 10px;
  height: 2px;
  background: currentColor;
  box-shadow: 4px -4px 0 -1px currentColor, 4px 4px 0 -1px currentColor;
}

.library-card,
.daily-panel {
  border: 1px solid var(--line);
  background: #15181e;
  color: white;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  box-shadow: var(--soft-shadow);
}

.quest-card {
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 248, 242, 0.96), rgba(228, 245, 242, 0.96)),
    var(--surface);
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 12px;
}

.review-card {
  border: 1px solid rgba(47, 100, 177, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(240, 246, 255, 0.92), rgba(255, 248, 242, 0.9)),
    var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  box-shadow: var(--soft-shadow);
}

.culture-card {
  border: 1px solid rgba(8, 127, 122, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(228, 245, 242, 0.92), rgba(255, 240, 243, 0.74)),
    var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  box-shadow: var(--soft-shadow);
}

.review-card strong {
  display: block;
  margin-top: 3px;
  font-size: 30px;
  line-height: 1;
}

.culture-card strong {
  display: block;
  margin-top: 3px;
  font-size: 30px;
  line-height: 1;
}

.review-card p,
.culture-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.review-start-button {
  min-width: 92px;
  color: white;
  background: var(--blue);
}

.culture-open-button {
  min-width: 108px;
  min-height: 58px;
  color: white;
  background: var(--teal);
}

.offline-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 8px;
}

.offline-card strong {
  display: block;
  margin-top: 3px;
  font-size: 28px;
  line-height: 1;
}

.offline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.billing-card {
  border: 1px solid rgba(47, 100, 177, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(237, 244, 255, 0.9), rgba(255, 248, 242, 0.82)),
    var(--surface);
  display: grid;
  gap: 10px;
  box-shadow: var(--soft-shadow);
}

.billing-card strong {
  display: block;
  margin-top: 3px;
  font-size: 26px;
  line-height: 1;
}

.billing-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.billing-button {
  width: 100%;
  min-width: 0;
}

.billing-message {
  color: var(--danger) !important;
  font-weight: 850;
}

.affiliate-card {
  border: 1px solid rgba(8, 127, 122, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(228, 245, 242, 0.92), rgba(255, 248, 242, 0.86)),
    var(--surface);
  display: grid;
  gap: 12px;
  box-shadow: var(--soft-shadow);
}

.affiliate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.affiliate-head strong {
  min-height: 30px;
  border-radius: 8px;
  background: #15181e;
  color: white;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  font-size: 13px;
  letter-spacing: 0;
}

.affiliate-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.share-link-row input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  padding: 0 11px;
  font-size: 13px;
  outline: none;
}

.copy-button {
  min-height: 42px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  padding: 0 13px;
  font-weight: 950;
}

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

.affiliate-metrics div {
  min-height: 58px;
  border: 1px solid rgba(20, 22, 27, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 3px;
}

.affiliate-metrics strong {
  font-size: 22px;
  line-height: 1;
}

.affiliate-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.teacher-feedback-card {
  border: 1px solid rgba(105, 71, 191, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(241, 237, 255, 0.88), rgba(228, 245, 242, 0.76)),
    var(--surface);
  box-shadow: var(--soft-shadow);
}

.teacher-feedback-card form {
  display: grid;
  gap: 10px;
}

.teacher-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teacher-feedback-head strong {
  font-size: 18px;
}

.compact-field {
  gap: 6px;
}

.compact-field input,
.compact-field select,
.compact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

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

.teacher-feedback-button {
  width: 100%;
  background: var(--violet);
  color: white;
}

.teacher-feedback-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.quest-head,
.quest-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quest-head strong {
  font-size: 28px;
  line-height: 1;
}

.quest-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 22, 27, 0.1);
}

.quest-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal), var(--blue));
}

.quest-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

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

.game-stats div {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.game-stats strong {
  font-size: 22px;
  line-height: 1;
}

.game-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.weekly-challenge-card,
.achievement-card {
  display: grid;
  gap: 10px;
}

.weekly-challenge-list {
  display: grid;
  gap: 8px;
}

.weekly-challenge-row {
  display: grid;
  gap: 5px;
}

.weekly-challenge-row div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.weekly-challenge-row strong {
  color: var(--ink);
}

.weekly-challenge-row i {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(47, 100, 177, 0.12);
}

.weekly-challenge-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.achievement-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.achievement-badges span {
  min-height: 25px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--faint);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 950;
}

.achievement-badges span.earned {
  border-color: rgba(8, 127, 122, 0.24);
  background: var(--teal-soft);
  color: var(--teal);
}

.leaderboard-card {
  display: grid;
  gap: 10px;
}

.leaderboard-head,
.leaderboard-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leaderboard-head strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.leaderboard-head > span {
  min-height: 26px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.leaderboard-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(20, 22, 27, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 6px 8px;
}

.leaderboard-list li.is-current {
  border-color: rgba(8, 127, 122, 0.34);
  background: var(--teal-soft);
}

.leaderboard-list strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-rank,
.leaderboard-score {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.leaderboard-score {
  color: var(--ink);
}

.leaderboard-current {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.leaderboard-current span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.leaderboard-current strong {
  font-size: 20px;
}

.leaderboard-empty,
.leaderboard-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.library-card strong,
.daily-panel strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
}

.sidebar-search {
  position: relative;
}

.sidebar-search span::before,
.sidebar-search span::after {
  content: "";
  position: absolute;
  z-index: 1;
}

.sidebar-search span::before {
  inset-inline-start: 15px;
  top: 16px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.sidebar-search span::after {
  inset-inline-start: 27px;
  top: 29px;
  width: 8px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left center;
}

.sidebar-search input {
  padding-inline-start: 42px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.topic-filter-card {
  display: grid;
  gap: 10px;
}

.level-picker-card {
  display: grid;
  gap: 10px;
}

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

.level-picker-button {
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 10px;
  text-align: start;
}

.level-picker-button strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.level-picker-button span,
.level-picker-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-picker-button span {
  font-size: 12px;
  font-weight: 900;
}

.level-picker-button small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
}

.level-picker-button.active {
  border-color: rgba(208, 31, 60, 0.34);
  background: #fff0f3;
  color: var(--red-dark);
  box-shadow: 0 12px 28px rgba(208, 31, 60, 0.1);
}

.level-picker-button.active strong,
.level-picker-button.active small {
  color: var(--red-dark);
}

.source-card {
  display: grid;
  gap: 12px;
}

.language-card {
  display: grid;
  gap: 10px;
}

.language-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.language-card-head strong {
  font-size: 18px;
}

.account-settings-card {
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.9)),
    var(--surface);
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 14px;
  padding: 14px;
}

.account-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-settings-head strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.1;
}

.account-settings-head > span {
  min-height: 28px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue);
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-settings-grid {
  display: grid;
  gap: 10px;
}

.leaderboard-privacy-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.leaderboard-opt-in-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
}

.leaderboard-opt-in-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.leaderboard-opt-in-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.leaderboard-opt-in-row strong {
  font-size: 13px;
  line-height: 1.25;
}

.leaderboard-opt-in-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

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

.plan-choice {
  min-width: 0;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  text-align: start;
}

.plan-choice span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.plan-choice strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.plan-choice.active {
  border-color: rgba(8, 127, 122, 0.3);
  background: var(--teal-soft);
  color: var(--teal);
  box-shadow: 0 10px 24px rgba(8, 127, 122, 0.1);
}

.plan-choice.active strong {
  color: var(--teal);
}

.plan-preference-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.plan-preference-panel .section-row {
  margin-bottom: 0;
}

.plan-preference-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.source-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.source-card-head strong {
  font-size: 20px;
}

.source-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
}

.source-toggle button {
  min-height: 38px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.source-toggle button.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.partner-upload {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.partner-upload input {
  width: 100%;
  font-size: 12px;
}

.category-button {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: anywhere;
}

.category-button.active {
  border-color: rgba(208, 31, 60, 0.3);
  background: #fff0f3;
  color: var(--red-dark);
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.section-label,
.section-row span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.level-set-sections,
.level-set-list {
  display: grid;
  gap: 9px;
}

.level-set-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.level-set-section summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  list-style: none;
}

.level-set-section summary::-webkit-details-marker {
  display: none;
}

.level-set-section summary::after {
  content: "+";
  grid-column: 3;
  grid-row: 1;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--muted);
  font-weight: 950;
}

.level-set-section[open] summary::after {
  content: "-";
  background: #15181e;
  color: white;
}

.level-set-section.active {
  border-color: rgba(208, 31, 60, 0.28);
  background: rgba(255, 240, 243, 0.4);
}

.level-set-section.empty {
  opacity: 0.76;
}

.level-section-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.level-section-title strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.level-section-title span,
.level-section-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-section-meta {
  justify-self: end;
}

.level-set-list {
  border-top: 1px solid var(--line);
  padding: 10px;
  background: rgba(246, 248, 251, 0.72);
}

.set-button {
  width: 100%;
  min-height: 94px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: start;
  padding: 14px;
}

.set-button:hover,
.set-button.active {
  border-color: rgba(208, 31, 60, 0.42);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(208, 31, 60, 0.1);
}

.set-icon {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 16px;
  color: var(--set-icon-accent);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(20, 22, 27, 0.13);
}

.set-icon-art {
  width: 64px;
  height: 64px;
  display: block;
}

.icon-card {
  fill: #fff;
  stroke: rgba(20, 22, 27, 0.12);
  stroke-width: 1.5;
}

.icon-flag {
  fill: var(--set-icon-soft);
}

.icon-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3;
  stroke-linecap: round;
}

.icon-stamp {
  fill: #15181e;
}

.icon-stamp-text {
  fill: #fff;
  font-size: 6px;
  font-weight: 950;
  text-anchor: middle;
  letter-spacing: 0;
}

.icon-float {
  transform-origin: center;
  transition: transform 180ms ease;
}

.set-button:hover .icon-float,
.set-button.active .icon-float {
  transform: translateY(-2px) rotate(-2deg);
}

.icon-line,
.icon-white-stroke {
  fill: none;
  stroke: #15181e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-white-stroke {
  fill: #fff;
}

.icon-fill,
.icon-dot {
  fill: var(--set-icon-accent);
}

.icon-red {
  fill: var(--red);
}

.icon-money {
  fill: #15181e;
  font-size: 15px;
  font-weight: 950;
  text-anchor: middle;
  letter-spacing: 0;
}

.set-title {
  font-weight: 900;
}

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

.set-level-pill {
  min-height: 24px;
  border-radius: 999px;
  background: #15181e;
  color: white;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 950;
}

.set-meta,
.set-empty {
  color: var(--muted);
  font-size: 13px;
}

.set-progress-mini {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.set-progress-mini {
  background: var(--teal-soft);
  color: var(--teal);
}

.set-search-match {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.topbar {
  min-height: 104px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 251, 0.74);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(22px, 4vw, 46px);
}

.study-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.study-control-stack {
  width: min(100%, 620px);
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.practice-profile-panel {
  display: grid;
  gap: 8px;
}

.practice-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.practice-profile-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.practice-profile-head strong {
  font-size: 14px;
  font-weight: 950;
}

.practice-profile-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 6px;
}

.practice-profile-option {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 0 12px;
  text-align: start;
}

.practice-profile-option strong,
.practice-profile-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.practice-profile-option strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.practice-profile-option span {
  display: none;
  font-size: 11px;
  font-weight: 850;
}

.practice-profile-option.active {
  border-color: rgba(47, 100, 177, 0.34);
  background: #edf4ff;
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(47, 100, 177, 0.12);
}

.practice-profile-option.active strong {
  color: var(--blue);
}

.advanced-mode-disclosure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px;
}

.advanced-mode-disclosure summary {
  min-height: 30px;
  display: flex;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style-position: inside;
}

.tool-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 900;
}

.tool-toggle.active {
  border-color: rgba(8, 127, 122, 0.26);
  background: var(--teal-soft);
  color: var(--teal);
}

@media (min-width: 901px) {
  .app-shell.has-active-card:not(.focus-mode) .topbar {
    min-height: 0;
    align-items: start;
    padding: 12px clamp(18px, 3vw, 34px);
  }

  .app-shell.has-active-card:not(.focus-mode) .topbar-copy {
    display: none;
  }

  .app-shell.has-active-card:not(.focus-mode) .study-control-stack {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
  }

  .app-shell.has-active-card:not(.focus-mode) .practice-profile-panel {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }

  .app-shell.has-active-card:not(.focus-mode) .practice-profile-head {
    display: none;
  }

  .app-shell.has-active-card:not(.focus-mode) .practice-profile-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .app-shell.has-active-card:not(.focus-mode) .practice-profile-option {
    width: auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
  }

  .app-shell.has-active-card:not(.focus-mode) .practice-profile-option span {
    display: none;
  }

  .app-shell.has-active-card:not(.focus-mode) .practice-profile-option strong {
    font-size: 11px;
  }

  .app-shell.has-active-card:not(.focus-mode) .study-tools {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .app-shell.has-active-card:not(.focus-mode) .tool-toggle {
    min-height: 36px;
    white-space: nowrap;
    padding: 0 12px;
    font-size: 13px;
  }

  .app-shell.has-active-card:not(.focus-mode) .workspace {
    gap: 16px;
    padding: clamp(14px, 2.4vw, 28px);
  }

  .app-shell.has-active-card:not(.focus-mode) .starter-session-banner {
    display: none;
  }
}

@media (min-width: 1121px) {
  .app-shell.has-active-card:not(.focus-mode) {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .app-shell.has-active-card:not(.focus-mode) .main {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .app-shell.has-active-card:not(.focus-mode) .workspace {
    height: calc(100svh - 61px);
    min-height: 0;
    align-content: start;
    overflow: hidden;
  }

  .app-shell.has-active-card:not(.focus-mode) .trainer,
  .app-shell.has-active-card:not(.focus-mode) .details-panel {
    max-height: calc(100svh - 89px);
    overflow: auto;
  }

  .app-shell.has-active-card:not(.focus-mode) .trainer {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .app-shell.has-active-card:not(.focus-mode) .trainer-stage {
    min-height: 0;
    overflow: auto;
  }

  .app-shell.is-culture.has-active-card:not(.focus-mode) {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .app-shell.is-culture.has-active-card:not(.focus-mode) .main {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .app-shell.is-culture.has-active-card:not(.focus-mode) .workspace {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (min-width: 901px) {
  .app-shell.focus-mode {
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .app-shell.focus-mode .sidebar,
  .app-shell.focus-mode .details-panel {
    display: none;
  }

  .app-shell.focus-mode .main {
    height: 100svh;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }

  .app-shell.focus-mode .topbar {
    position: fixed;
    z-index: 12;
    top: 12px;
    right: 16px;
    width: auto;
    min-height: 0;
    justify-content: flex-end;
    border: 0;
    background: transparent;
    padding: 0;
    backdrop-filter: none;
  }

  .app-shell.focus-mode .topbar-copy,
  .app-shell.focus-mode .practice-profile-panel,
  .app-shell.focus-mode .starter-session-banner {
    display: none;
  }

  .app-shell.focus-mode .study-control-stack {
    width: auto;
    display: block;
  }

  .app-shell.focus-mode .study-tools {
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    border: 1px solid rgba(20, 22, 27, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    padding: 6px;
    backdrop-filter: blur(14px);
  }

  .app-shell.focus-mode .tool-toggle {
    min-height: 36px;
    white-space: nowrap;
    padding: 0 12px;
    font-size: 13px;
  }

  .app-shell.focus-mode .workspace {
    grid-row: 1;
    width: min(100%, 1240px);
    height: 100svh;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: clamp(12px, 2vh, 18px);
    overflow: hidden;
  }

  .app-shell.focus-mode .trainer {
    width: 100%;
    height: min(760px, calc(100svh - 28px));
    max-height: calc(100svh - 28px);
    align-self: center;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .app-shell.focus-mode .trainer-header,
  .app-shell.focus-mode .trainer-footer {
    padding: 12px 16px;
  }

  .app-shell.focus-mode .trainer-header {
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 470px) minmax(64px, auto);
  }

  .app-shell.focus-mode .trainer-stage {
    min-height: 0;
    overflow: auto;
    padding: clamp(16px, 2vh, 24px);
    gap: clamp(10px, 1.4vh, 14px);
  }

  .app-shell.focus-mode .prompt-block,
  .app-shell.focus-mode .prompt-copy {
    gap: clamp(6px, 1vh, 10px);
  }

  .app-shell.focus-mode .prompt-content-with-visual {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
    gap: clamp(14px, 2vw, 22px);
  }

  .app-shell.focus-mode .prompt-word {
    font-size: clamp(42px, 8vh, 68px);
  }

  .app-shell.focus-mode .prompt-word-compact {
    font-size: clamp(24px, 4.6vh, 36px);
  }

  .app-shell.focus-mode .prompt-note {
    font-size: 16px;
    line-height: 1.35;
  }

  .app-shell.focus-mode .memory-visual {
    min-height: 148px;
    padding: 12px;
  }

  .app-shell.focus-mode .memory-visual-art {
    min-height: 78px;
  }

  .app-shell.focus-mode .memory-visual-art .visual-prompt-icon .set-icon,
  .app-shell.focus-mode .memory-visual-art .visual-prompt-icon .set-icon-art {
    width: 82px;
    height: 82px;
    border-radius: 16px;
  }

  .app-shell.focus-mode .answer-row {
    grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
  }
}

.auto-next-note {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auto-next-note strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.topbar-copy {
  min-width: 0;
}

.topbar h2 {
  margin: 5px 0 0;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.topbar p {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 820px) minmax(280px, 380px);
  gap: 24px;
  padding: clamp(22px, 4vw, 46px);
  align-content: start;
  align-items: start;
}

.starter-session-banner {
  grid-column: 1 / -1;
  border: 1px solid rgba(8, 127, 122, 0.18);
  border-radius: 8px;
  background: rgba(228, 245, 242, 0.8);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.starter-session-banner strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.starter-session-banner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.culture-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.culture-main,
.culture-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

.culture-main {
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.culture-status {
  border: 1px solid rgba(47, 100, 177, 0.16);
  border-radius: 8px;
  background: #edf4ff;
  color: var(--blue);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 850;
}

.culture-hero {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  align-items: end;
  gap: 18px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(12, 15, 20, 0.86), rgba(12, 15, 20, 0.48) 54%, rgba(12, 15, 20, 0.2)),
    var(--culture-hero-image) center / cover,
    #15181e;
  padding: 22px;
  color: white;
}

.culture-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(0deg, rgba(12, 15, 20, 0.62), transparent);
  pointer-events: none;
}

.culture-hero-copy,
.culture-hero-actions,
.culture-hero-stats {
  position: relative;
  z-index: 1;
}

.culture-hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.culture-hero h3 {
  max-width: 620px;
  margin: 6px 0 0;
  color: white;
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: 0;
}

.culture-hero p {
  max-width: 530px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
  line-height: 1.45;
}

.culture-hero-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.culture-hero-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  color: white;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 950;
  backdrop-filter: blur(14px);
}

.culture-hero-actions button:hover,
.culture-hero-actions button:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.culture-hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.culture-hero-stats span {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.culture-hero-stats strong {
  color: white;
  font-size: 22px;
  line-height: 1;
}

.culture-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.culture-tab-button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.culture-tab-button strong,
.culture-tab-button span {
  display: block;
}

.culture-tab-button span {
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
}

.culture-tab-button.active {
  border-color: rgba(8, 127, 122, 0.3);
  background: var(--teal-soft);
  color: var(--teal);
}

.culture-tab-button.saved-tab {
  border-color: rgba(47, 100, 177, 0.16);
}

.culture-tab-head,
.culture-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.culture-tab-head h3,
.culture-section-title strong,
.culture-side-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.music-spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

.music-spotlight-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 8px;
  background: #15181e;
  box-shadow: var(--soft-shadow);
}

.music-spotlight-card.featured {
  min-height: 360px;
}

.spotify-playlist-embed {
  width: 100%;
  min-height: 352px;
  display: block;
  border: 0;
  background: #15181e;
}

.music-spotlight-card:not(.featured) .spotify-playlist-embed {
  min-height: 232px;
}

.spotify-playlist-embed.compact {
  min-height: 152px;
}

.music-spotlight-copy {
  display: grid;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(21, 24, 30, 0.82), rgba(21, 24, 30, 0.96)),
    #15181e;
  padding: 14px;
}

.music-spotlight-copy span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.music-spotlight-copy h4,
.music-spotlight-copy p {
  margin: 0;
}

.music-spotlight-copy h4 {
  color: white;
  font-size: 21px;
  line-height: 1.12;
}

.music-spotlight-copy p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.music-spotlight-copy .culture-actions a {
  color: white;
}

.music-spotlight-copy .culture-social-proof {
  color: rgba(255, 255, 255, 0.78);
}

.culture-item,
.resource-row,
.event-card,
.event-submission-form,
.template-card,
.culture-side-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.culture-item,
.template-card,
.culture-side-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.culture-card-media {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  display: grid;
  align-content: end;
  gap: 3px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(12, 15, 20, 0.72)),
    url("/assets/culture-hub-collage.png") center / cover,
    #15181e;
  padding: 12px;
  color: white;
  isolation: isolate;
}

.culture-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(208, 31, 60, 0.18), transparent 45%),
    radial-gradient(circle at 78% 20%, rgba(217, 144, 47, 0.2), transparent 28%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.culture-card-media-music {
  background-position: 72% 9%;
}

.culture-card-media-screen {
  background-position: 82% 44%;
}

.culture-card-media-reading,
.culture-card-media-practice {
  background-position: 70% 86%;
}

.culture-card-media-city {
  background-position: 18% 72%;
}

.culture-card-media-official {
  background-position: 60% 60%;
}

.culture-card-media span,
.culture-card-media strong {
  position: relative;
  z-index: 1;
  width: fit-content;
}

.culture-card-media span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.culture-card-media strong {
  color: white;
  font-size: 23px;
  line-height: 1;
}

.culture-item-top,
.template-card-head,
.event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.culture-type,
.culture-level {
  width: fit-content;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 950;
}

.culture-type {
  color: var(--red-dark);
  background: #fff0f3;
}

.culture-level {
  color: var(--teal);
  background: var(--teal-soft);
}

.culture-item h4,
.resource-row h4,
.event-card h4,
.template-card h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.14;
  letter-spacing: 0;
}

.culture-item p,
.resource-row p,
.event-card p,
.template-card p,
.culture-side-card p,
.culture-empty,
.culture-loading {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.culture-empty {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.culture-empty strong {
  color: #2d3643;
}

.culture-empty span {
  color: var(--muted);
}

.culture-note {
  min-height: 46px;
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 10px;
  color: #4d5766;
  font-size: 14px;
  line-height: 1.45;
}

.real-world-task {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(47, 100, 177, 0.18);
  border-radius: 8px;
  background: #f7faff;
  padding: 12px;
}

.real-world-task-head {
  display: grid;
  gap: 3px;
}

.real-world-task-head span,
.real-world-task small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.real-world-task-head strong {
  color: var(--blue);
  line-height: 1.2;
}

.real-world-task p {
  margin: 0;
  color: #4d5766;
  font-size: 13px;
  line-height: 1.4;
}

.real-world-task ol {
  margin: 0;
  padding-inline-start: 19px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.task-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-checklist span {
  border: 1px solid rgba(8, 127, 122, 0.18);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.culture-practice-dashboard {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border-block: 1px solid rgba(20, 22, 27, 0.08);
  padding: 12px 0;
}

.culture-practice-goal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  border: 1px solid rgba(8, 127, 122, 0.18);
  border-radius: 8px;
  background: #f3fbf8;
  padding: 10px;
}

.culture-practice-goal-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.culture-practice-goal-main span,
.culture-practice-goal-main small,
.culture-practice-section-head span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.culture-practice-goal-main strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.culture-practice-goal-track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(8, 127, 122, 0.14);
}

.culture-practice-goal-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.culture-practice-goal-controls {
  display: grid;
  gap: 6px;
  align-content: center;
}

.culture-practice-goal-controls div,
.culture-practice-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.culture-practice-goal-controls button,
.culture-practice-filter button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

.culture-practice-goal-controls button.active {
  border-color: rgba(8, 127, 122, 0.28);
  background: #dff5ec;
  color: var(--teal);
}

.culture-practice-stats,
.culture-practice-streaks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.culture-practice-stats span,
.culture-practice-streaks span {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--faint);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.culture-practice-stats strong,
.culture-practice-streaks strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.culture-practice-streaks span {
  border-color: rgba(47, 100, 177, 0.16);
  background: #edf4ff;
  color: var(--blue);
}

.culture-practice-balance {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(20, 22, 27, 0.08);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.culture-practice-balance-row {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(86px, 1.2fr) minmax(110px, 1.1fr);
  gap: 8px;
  align-items: center;
}

.culture-practice-balance-row div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.culture-practice-balance-row span,
.culture-practice-balance-row small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
}

.culture-practice-balance-row span {
  color: var(--ink);
}

.culture-practice-balance-row strong {
  color: var(--blue);
  font-size: 12px;
}

.culture-practice-balance-track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(47, 100, 177, 0.12);
}

.culture-practice-balance-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.culture-practice-balance-track.source-track {
  background: rgba(8, 127, 122, 0.12);
}

.culture-practice-balance-track.source-track i {
  background: var(--teal);
}

.culture-practice-filter button.active {
  border-color: rgba(47, 100, 177, 0.28);
  background: #edf4ff;
  color: var(--blue);
}

.culture-practice-review-queue,
.culture-practice-journal {
  display: grid;
  gap: 6px;
}

.culture-practice-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.culture-practice-section-head strong {
  color: var(--ink);
  font-size: 13px;
}

.culture-practice-review-queue button,
.culture-practice-journal button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  border: 1px solid rgba(47, 100, 177, 0.14);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 8px 10px;
  text-align: left;
}

.culture-practice-review-queue button span,
.culture-practice-journal button span {
  grid-row: span 2;
  align-self: center;
  border-radius: 8px;
  background: #edf4ff;
  color: var(--blue);
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 950;
}

.culture-practice-review-queue button strong,
.culture-practice-journal button strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.culture-practice-review-queue button span {
  background: #fff8f2;
  color: #8b5a17;
}

.culture-practice-review-queue button small,
.culture-practice-journal button small,
.culture-practice-empty {
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
}

.culture-practice-empty {
  border: 1px dashed rgba(20, 22, 27, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
}

.culture-practice-form {
  display: grid;
  gap: 8px;
}

.culture-source-category,
.culture-source-excerpt {
  display: grid;
  gap: 5px;
}

.culture-source-category span,
.culture-source-category small,
.culture-source-excerpt span,
.culture-source-excerpt small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
}

.culture-source-category span,
.culture-source-excerpt span {
  text-transform: uppercase;
}

.culture-source-category small,
.culture-source-excerpt small {
  line-height: 1.3;
}

.culture-source-category select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-weight: 850;
  outline: none;
}

.culture-source-category select:focus {
  border-color: rgba(47, 100, 177, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 100, 177, 0.1);
}

.culture-practice-form textarea {
  width: 100%;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  outline: none;
}

.culture-source-excerpt textarea {
  min-height: 70px;
  background: #fbfcff;
}

.culture-practice-form textarea:focus {
  border-color: rgba(47, 100, 177, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 100, 177, 0.1);
}

.culture-practice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.culture-practice-actions span,
.culture-practice-feedback {
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.culture-practice-rubric {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
}

.culture-practice-rubric span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(217, 144, 47, 0.22);
  border-radius: 8px;
  background: #fff8f2;
  color: #7a4c11;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.culture-practice-rubric span.complete {
  border-color: rgba(39, 134, 84, 0.2);
  background: #eef9f2;
  color: #247447;
}

.culture-practice-rubric strong {
  color: inherit;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.culture-practice-suggestions {
  display: grid;
  gap: 5px;
}

.culture-practice-suggestions span {
  border-inline-start: 3px solid var(--blue);
  border-radius: 8px;
  background: #edf4ff;
  color: var(--blue);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.culture-sentence-diagnostics {
  display: grid;
  gap: 6px;
}

.culture-sentence-diagnostic {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(47, 100, 177, 0.14);
  border-radius: 8px;
  background: #fbfcff;
  padding: 8px 9px;
}

.culture-sentence-diagnostic strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.culture-sentence-diagnostic em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}

.culture-sentence-diagnostic span,
.culture-sentence-diagnostic small {
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.culture-sentence-diagnostic small {
  border-inline-start: 3px solid var(--teal);
  border-radius: 8px;
  background: #f3fbf8;
  color: #087f7a;
  padding: 6px 8px;
}

.culture-sentence-diagnostic.register small,
.culture-sentence-diagnostic.connector small {
  border-inline-start-color: var(--blue);
  background: #edf4ff;
  color: var(--blue);
}

.culture-review-request {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(8, 127, 122, 0.18);
  border-radius: 8px;
  background: #f3fbf8;
  padding: 9px 10px;
}

.culture-review-request div,
.culture-review-request label {
  display: grid;
  gap: 3px;
}

.culture-review-request strong {
  color: var(--ink);
  font-size: 13px;
}

.culture-review-request small,
.culture-review-request span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.culture-review-request label {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.culture-review-request input {
  margin-top: 2px;
}

.culture-review-request textarea {
  min-height: 64px;
  background: white;
}

.culture-review-feedback {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(47, 100, 177, 0.16);
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px;
}

.culture-review-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.culture-review-feedback-head strong,
.culture-review-feedback-list strong,
.culture-review-next-step strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.culture-review-feedback-head span,
.culture-review-feedback p,
.culture-review-feedback-list span,
.culture-review-next-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.culture-review-feedback p {
  margin: 0;
}

.culture-review-feedback-list,
.culture-review-next-step {
  display: grid;
  gap: 5px;
}

.culture-review-feedback-list span,
.culture-review-next-step {
  border-radius: 8px;
  padding: 7px 9px;
}

.culture-review-feedback-list.strengths span {
  background: #eef9f2;
  color: #247447;
}

.culture-review-feedback-list.corrections span {
  background: #fff8f2;
  color: #8b5a17;
}

.culture-review-next-step {
  border: 1px solid rgba(8, 127, 122, 0.16);
  background: #f3fbf8;
}

.culture-practice-feedback {
  margin: 0;
  border: 1px solid rgba(47, 100, 177, 0.16);
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
}

.culture-practice-feedback.complete {
  border-color: rgba(39, 134, 84, 0.22);
  background: #eef9f2;
  color: #247447;
}

.culture-practice-feedback.draft {
  border-color: rgba(217, 144, 47, 0.22);
  background: #fff8f2;
  color: #8b5a17;
}

.vocab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vocab-row span {
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.culture-actions a,
.resource-row a,
.event-card a,
.side-link-list a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.culture-actions,
.resource-actions,
.event-actions {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.culture-actions {
  display: flex;
  align-items: center;
  justify-items: start;
  gap: 8px;
  flex-wrap: wrap;
}

.culture-save-button {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12px;
}

.culture-save-button.saved {
  border-color: rgba(8, 127, 122, 0.28);
  background: var(--teal-soft);
  color: var(--teal);
}

.culture-actions .affiliate-label {
  flex-basis: 100%;
}

.culture-social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.culture-social-proof small {
  color: inherit;
  font: inherit;
}

.culture-avatar-stack {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 4px;
}

.culture-avatar-stack span {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  margin-left: -4px;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(135deg, #d01f3c, #2f64b1);
  color: white;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.culture-item-saved {
  border-color: rgba(8, 127, 122, 0.24);
}

.saved-culture-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(8, 127, 122, 0.16);
  border-radius: 8px;
  background: #f3fbf8;
  padding: 10px 12px;
}

.saved-culture-head span,
.saved-culture-meta span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.saved-culture-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.saved-culture-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.saved-culture-meta span {
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  padding: 5px 8px;
}

.saved-culture-empty {
  min-height: 120px;
  align-content: center;
}

.culture-feed-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(47, 100, 177, 0.14);
  border-radius: 8px;
  background: #edf4ff;
  padding: 9px 11px;
}

.culture-feed-note span,
.culture-feed-note strong {
  font-size: 12px;
  font-weight: 950;
}

.culture-feed-note span {
  color: var(--blue);
  text-transform: uppercase;
}

.culture-feed-note strong {
  color: var(--ink);
}

.affiliate-label {
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: end;
  text-transform: uppercase;
}

.culture-item small {
  color: var(--faint);
  font-weight: 850;
  line-height: 1.35;
}

.culture-prompt {
  border: 1px solid rgba(217, 144, 47, 0.22);
  border-radius: 8px;
  background: #fff8f2;
  color: #7a4c11;
}

.culture-prompt summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  color: #7a4c11;
  font-size: 12px;
  font-weight: 950;
  list-style: none;
  cursor: pointer;
}

.culture-prompt summary::-webkit-details-marker {
  display: none;
}

.culture-prompt summary::after {
  content: "+";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(217, 144, 47, 0.16);
  color: #7a4c11;
}

.culture-prompt[open] summary::after {
  content: "-";
}

.culture-prompt span {
  display: block;
  border-top: 1px solid rgba(217, 144, 47, 0.18);
  padding: 9px 11px 11px;
  color: #6e4a19;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.resource-list,
.event-list,
.template-list,
.side-link-list,
.template-mini-list {
  display: grid;
  gap: 10px;
}

.resource-row,
.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 14px;
}

.event-card {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

.event-card > div:nth-child(2) {
  display: grid;
  gap: 10px;
}

.event-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.event-badge {
  width: fit-content;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: #2d3643;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
}

.event-badge-verified,
.event-badge-verified-source,
.event-badge-fresh {
  border-color: rgba(8, 127, 122, 0.24);
  background: var(--teal-soft);
  color: var(--teal);
}

.event-badge-partner-submitted {
  border-color: rgba(47, 100, 177, 0.22);
  background: #edf4ff;
  color: var(--blue);
}

.event-badge-needs-review {
  border-color: rgba(194, 54, 73, 0.22);
  background: #fff0f3;
  color: var(--red-dark);
}

.event-badge-recurring,
.event-badge-soon,
.event-badge-this-week {
  border-color: rgba(210, 153, 47, 0.28);
  background: #fff7e3;
  color: #7a5615;
}

.event-date-card {
  min-height: 58px;
  border-radius: 8px;
  background: #15181e;
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
}

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

.event-date-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.event-meta {
  justify-content: start;
  color: var(--faint);
  font-size: 12px;
  font-weight: 850;
}

.event-updated {
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
}

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

.event-facts span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
  color: #2d3643;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.event-facts strong {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.event-actions a {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  padding: 0 14px;
}

.event-actions .culture-save-button {
  min-height: 36px;
  justify-content: center;
}

.event-submission-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.event-submission-grid label,
.event-submission-grid .wide {
  display: grid;
  gap: 6px;
}

.event-submission-grid .wide {
  grid-column: 1 / -1;
}

.event-submission-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.event-submission-grid input,
.event-submission-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.event-submission-grid textarea {
  resize: vertical;
}

.event-submission-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.event-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid rgba(47, 100, 177, 0.15);
  border-radius: 8px;
  background: #f3f7fc;
  padding: 14px;
}

.event-search label {
  display: grid;
  gap: 6px;
}

.event-search input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 13px;
  outline: none;
}

.event-search p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.event-city-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-city-filters button {
  border: 1px solid rgba(47, 100, 177, 0.18);
  border-radius: 999px;
  background: white;
  color: var(--blue);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.event-label-filters,
.event-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-label-filters button,
.event-labels span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #2d3643;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
}

.event-label-filters button.active {
  border-color: var(--red);
  background: #fff0f3;
  color: var(--red-dark);
}

.copy-template-button,
.template-mini {
  border-radius: 8px;
  background: #e7ecf3;
  color: var(--ink);
  font-weight: 900;
}

.copy-template-button {
  min-height: 34px;
  padding: 0 11px;
}

.copy-template-button.copied,
.template-mini.copied {
  color: white;
  background: var(--green);
}

.template-mini {
  min-height: 64px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 4px;
  padding: 10px;
  text-align: start;
}

.template-mini span,
.side-link-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.side-link-list a {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 3px;
}

.culture-side-card.warm {
  background:
    linear-gradient(135deg, rgba(255, 248, 242, 0.95), rgba(255, 240, 243, 0.78)),
    var(--surface);
}

.trainer {
  min-height: 0;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto auto;
  overflow: hidden;
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.trainer-header,
.trainer-footer {
  padding: 18px;
  align-items: center;
  gap: 16px;
}

.trainer-header {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(250px, 410px) minmax(70px, auto);
  border-bottom: 1px solid var(--line);
}

.trainer-footer {
  display: flex;
  justify-content: space-between;
}

.trainer-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.trainer-meta {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 170px;
}

.direction-tabs {
  justify-self: center;
  width: min(100%, 410px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
}

.direction-button {
  min-height: 34px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 950;
}

.direction-button.active {
  color: var(--ink);
  background: white;
  box-shadow: var(--soft-shadow);
}

.fixed-mode-note {
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.trainer-footer {
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.more-like-this {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  border: 1px solid rgba(47, 100, 177, 0.16);
  border-radius: 8px;
  background: #f7faff;
  padding: 12px;
}

.more-like-this-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.more-like-this-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.recommendation-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px;
  text-align: start;
}

.recommendation-card:hover {
  border-color: rgba(47, 100, 177, 0.34);
  box-shadow: var(--soft-shadow);
}

.recommendation-card .set-icon,
.recommendation-card .set-icon-art {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.recommendation-card strong,
.recommendation-card small {
  display: block;
}

.recommendation-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
}

.recommendation-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.prompt-chip,
.card-count,
.mastery-chip,
.question-type-pill {
  max-width: 100%;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  vertical-align: middle;
}

.question-type-pill {
  gap: 7px;
  background: #fff8f2;
  color: #865614;
}

.question-type-pill span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(217, 144, 47, 0.18);
  font-size: 10px;
  font-weight: 950;
}

.question-type-pill.multiple_choice {
  background: #edf4ff;
  color: var(--blue);
}

.question-type-pill.multiple_choice span {
  background: rgba(47, 100, 177, 0.14);
}

.question-type-pill.fill_blank {
  background: #f1edff;
  color: var(--violet);
}

.question-type-pill.fill_blank span {
  background: rgba(105, 71, 191, 0.14);
}

.question-type-pill.dictation {
  background: #fff0f3;
  color: var(--red-dark);
}

.question-type-pill.dictation span {
  background: rgba(208, 31, 60, 0.13);
}

.question-type-pill.unscramble {
  background: #fff8e8;
  color: #8a5a00;
}

.question-type-pill.unscramble span {
  background: rgba(217, 144, 47, 0.16);
}

.question-type-pill.short_writing {
  background: rgba(39, 134, 84, 0.11);
  color: var(--green);
}

.question-type-pill.short_writing span {
  background: rgba(39, 134, 84, 0.14);
}

.prompt-chip {
  max-width: 190px;
  background: var(--teal-soft);
  color: var(--teal);
  overflow-wrap: normal;
  word-break: normal;
}

.trainer-meta .prompt-chip {
  white-space: normal;
}

.card-count {
  color: var(--muted);
  background: #eef2f7;
  white-space: nowrap;
}

.mastery-chip {
  color: var(--blue);
  background: #eef4ff;
  white-space: nowrap;
}

.mastery-chip.learning {
  color: var(--gold);
  background: #fff4e7;
}

.mastery-chip.reviewing {
  color: var(--blue);
  background: #eef4ff;
}

.mastery-chip.mastered {
  color: var(--green);
  background: rgba(39, 134, 84, 0.12);
}

.mastery-chip.lapsed {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.1);
}

.mini-score {
  min-width: 80px;
  display: grid;
  justify-self: end;
  justify-items: end;
}

.mini-score span {
  font-size: 24px;
  font-weight: 950;
}

.mini-score small {
  color: var(--muted);
  font-weight: 850;
}

.trainer-stage {
  padding: clamp(20px, 3.2vw, 34px);
  display: grid;
  align-content: start;
  gap: 16px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf2;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
}

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

.image-prompt-block {
  justify-items: center;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.audio-button {
  min-height: 38px;
  border: 1px solid rgba(8, 127, 122, 0.22);
  border-radius: 8px;
  background: #e4f5f2;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 950;
}

.audio-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.audio-button svg path:nth-child(n + 2) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.audio-button:hover {
  border-color: rgba(8, 127, 122, 0.44);
  background: #d9f0ed;
}

.mic-button {
  border-color: rgba(47, 100, 177, 0.26);
  background: #edf4ff;
  color: var(--blue);
}

.mic-button:hover {
  border-color: rgba(47, 100, 177, 0.44);
  background: #e4eefc;
}

.mic-button.listening {
  border-color: rgba(208, 31, 60, 0.28);
  background: #fff0f3;
  color: var(--danger);
}

.option-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fb;
  color: var(--muted);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 950;
}

.option-pill.active {
  border-color: rgba(47, 100, 177, 0.34);
  background: #edf4ff;
  color: var(--blue);
}

.prompt-word {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.prompt-word-compact {
  font-size: clamp(25px, 3.2vw, 40px);
  line-height: 1.12;
}

.prompt-note {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.flashcard-commerce-context {
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid rgba(8, 127, 122, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.flashcard-commerce-context span,
.flashcard-commerce-context small {
  color: var(--faint);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.flashcard-commerce-context a {
  color: var(--teal);
  font-weight: 950;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prompt-content-with-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(144px, 180px);
  gap: 22px;
  align-items: start;
}

.prompt-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.memory-visual {
  min-height: 168px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.88)),
    var(--surface-soft);
  padding: 14px;
}

.memory-visual-art {
  min-height: 92px;
  display: grid;
  place-items: center;
}

.memory-visual-art .visual-prompt-icon .set-icon,
.memory-visual-art .visual-prompt-icon .set-icon-art {
  width: 94px;
  height: 94px;
  border-radius: 18px;
}

.memory-visual-art .visual-prompt-image {
  max-height: 124px;
}

.memory-visual-copy {
  display: grid;
  gap: 3px;
}

.memory-visual-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-visual-copy strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.language-fallback-note {
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  border: 1px solid rgba(217, 144, 47, 0.3);
  border-radius: 8px;
  background: #fff8f2;
  color: #865614;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.pronunciation-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 100, 177, 0.2);
  border-radius: 8px;
  background: #f7faff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.pronunciation-panel.success {
  border-color: rgba(39, 134, 84, 0.28);
  background: #eef9f2;
  color: #247447;
}

.pronunciation-panel.partial {
  border-color: rgba(217, 144, 47, 0.3);
  background: #fff8f2;
  color: #865614;
}

.pronunciation-panel.error {
  border-color: rgba(208, 31, 60, 0.26);
  background: #fff3f5;
  color: var(--danger);
}

.pronunciation-panel.permission {
  border-color: rgba(47, 100, 177, 0.3);
  background: #edf4ff;
  color: var(--blue);
}

.pronunciation-panel p {
  margin: 0;
  font-weight: 850;
}

.pronunciation-result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pronunciation-result-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 4px 8px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.visual-prompt {
  width: min(100%, 360px);
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 22, 27, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(246, 248, 251, 0.92)),
    var(--surface-soft);
}

.visual-prompt-image {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
}

.visual-prompt-icon .set-icon {
  width: 168px;
  height: 168px;
  border-radius: 24px;
}

.visual-prompt-icon .set-icon-art {
  width: 168px;
  height: 168px;
}

.minimal-prompt-note {
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.answer-form {
  display: grid;
  gap: 12px;
}

.answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.speech-answer-status {
  width: fit-content;
  max-width: 100%;
  margin: -2px 0 0;
  border: 1px solid rgba(47, 100, 177, 0.22);
  border-radius: 8px;
  background: #f7faff;
  color: var(--blue);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.speech-answer-status.listening {
  border-color: rgba(208, 31, 60, 0.26);
  background: #fff0f3;
  color: var(--danger);
}

.speech-answer-status.done {
  border-color: rgba(39, 134, 84, 0.24);
  background: #eef9f2;
  color: #247447;
}

.sentence-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.sentence-prompt span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.sentence-prompt strong {
  overflow-wrap: anywhere;
}

.register-coach-panel {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 100, 177, 0.2);
  border-radius: 8px;
  background: #f7faff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.register-coach-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.register-coach-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.register-coach-panel strong {
  color: var(--blue);
  text-align: right;
}

.register-coach-panel p {
  margin: 0;
  color: var(--muted);
}

.sentence-input {
  min-height: 96px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.45;
}

.unscramble-form {
  gap: 10px;
}

.unscramble-build,
.unscramble-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unscramble-build {
  min-height: 52px;
  align-items: center;
  border: 1px solid rgba(47, 100, 177, 0.18);
  border-radius: 8px;
  background: #f7faff;
  padding: 10px;
}

.unscramble-build span,
.word-tile {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 11px;
  font-size: 15px;
  font-weight: 900;
}

.unscramble-build span {
  background: white;
  color: var(--blue);
}

.unscramble-build .unscramble-empty {
  color: var(--muted);
  background: transparent;
  font-size: 14px;
}

.unscramble-bank {
  align-items: stretch;
}

.word-tile {
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--ink);
}

.word-tile:hover {
  border-color: rgba(47, 100, 177, 0.4);
  background: #f3f7fc;
}

.word-tile:disabled {
  opacity: 0.44;
}

.unscramble-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compact-button {
  min-height: 40px;
  padding: 0 14px;
}

.speech-practice,
.speech-fallback {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.speech-practice p,
.speech-fallback p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.speech-fallback strong {
  color: var(--ink);
}

.choices {
  display: grid;
  gap: 11px;
}

.choice-button {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--ink);
  text-align: start;
}

[dir="rtl"] .sidebar-search span::after {
  transform: rotate(-45deg);
  transform-origin: right center;
}

.choice-button span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf1f6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.choice-button:hover {
  border-color: rgba(47, 100, 177, 0.4);
  background: #f3f7fc;
}

.choice-button.correct {
  border-color: rgba(39, 134, 84, 0.45);
  background: rgba(39, 134, 84, 0.11);
}

.choice-button.incorrect {
  border-color: rgba(180, 35, 24, 0.45);
  background: rgba(180, 35, 24, 0.1);
}

.feedback {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--muted);
  padding: 12px 14px;
  line-height: 1.45;
}

.feedback:empty {
  display: none;
}

.feedback.success {
  border-color: rgba(39, 134, 84, 0.28);
  background: rgba(39, 134, 84, 0.08);
  color: var(--green);
}

.feedback.partial {
  border-color: rgba(47, 100, 177, 0.28);
  background: rgba(47, 100, 177, 0.08);
  color: var(--blue);
}

.feedback.error {
  border-color: rgba(180, 35, 24, 0.28);
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
}

.feedback.permission {
  border-color: rgba(47, 100, 177, 0.28);
  background: rgba(47, 100, 177, 0.08);
  color: var(--blue);
}

.session-complete .trainer-stage {
  gap: 18px;
}

.session-complete .prompt-word {
  font-size: clamp(38px, 5vw, 64px);
}

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

.session-summary-grid div,
.next-recommendation {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.session-summary-grid div {
  display: grid;
  gap: 5px;
}

.session-summary-grid strong {
  font-size: 28px;
  line-height: 1;
}

.session-summary-grid span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 850;
}

.next-recommendation {
  display: grid;
  gap: 6px;
  background: #fff8f2;
  border-color: rgba(217, 144, 47, 0.28);
}

.next-recommendation strong {
  font-size: 20px;
}

.next-recommendation p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.details-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.info-panel,
.answer-panel,
.word-detail-panel,
.product-links-panel,
.fluency-panel,
.level-ladder {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.daily-panel {
  background:
    linear-gradient(135deg, rgba(208, 31, 60, 0.95), rgba(20, 22, 27, 0.98)),
    #15181e;
}

.fluency-panel {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background: #15181e;
  color: white;
}

.fluency-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #15181e 0 55%, transparent 56%),
    conic-gradient(var(--gold) var(--value), rgba(255, 255, 255, 0.18) 0);
}

.fluency-ring strong,
.fluency-ring span {
  grid-area: 1 / 1;
}

.fluency-ring strong {
  transform: translateY(-7px);
  font-size: 23px;
}

.fluency-ring span {
  transform: translateY(16px);
  color: #b8c0ce;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fluency-copy h3 {
  margin: 6px 0 6px;
  font-size: 20px;
  letter-spacing: 0;
}

.fluency-copy p {
  margin: 0;
  color: #c5ccd8;
  line-height: 1.45;
}

.level-ladder {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.level-step {
  min-height: 46px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f3f6fa;
  color: var(--muted);
}

.level-step strong {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
}

.level-step span {
  font-weight: 900;
}

.level-step small {
  color: var(--faint);
  font-weight: 850;
}

.level-step.complete {
  background: rgba(39, 134, 84, 0.12);
  color: var(--green);
}

.level-step.active {
  background: #fff4e7;
  color: var(--gold);
}

.daily-stats,
.session-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daily-stats div,
.session-grid div {
  display: grid;
  gap: 4px;
}

.daily-stats strong,
.session-grid strong {
  font-size: 24px;
  line-height: 1;
}

.daily-stats span,
.session-grid span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
}

.info-panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.info-panel p,
.answer-panel p,
.word-detail-panel p,
.product-links-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.word-detail-panel {
  display: grid;
  gap: 12px;
}

.word-detail-grid {
  display: grid;
  gap: 12px;
}

.word-detail-grid > div {
  display: grid;
  gap: 5px;
}

.word-detail-grid strong {
  color: var(--ink);
  font-size: 13px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tags span {
  border-radius: 8px;
  background: #eef2f7;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.product-links-panel {
  display: grid;
  gap: 10px;
}

.product-links-panel h3 {
  margin: 0;
  font-size: 18px;
}

.product-link-list {
  display: grid;
  gap: 8px;
}

.product-link-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 10px;
  text-decoration: none;
}

.product-link-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.answer-panel {
  display: grid;
  gap: 9px;
  background: var(--surface-warm);
}

.answer-panel strong {
  font-size: 30px;
  line-height: 1.08;
}

.answer-panel.quiet {
  background: #eef7f6;
}

.mastery-panel {
  border: 1px solid rgba(47, 100, 177, 0.14);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(238, 244, 255, 0.92), rgba(228, 245, 242, 0.68)),
    var(--surface);
  display: grid;
  gap: 12px;
  box-shadow: var(--soft-shadow);
}

.mastery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mastery-row strong {
  font-size: 18px;
}

.mastery-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 22, 27, 0.1);
}

.mastery-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--green));
}

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

.mastery-grid div {
  min-height: 58px;
  border: 1px solid rgba(20, 22, 27, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
  display: grid;
  align-content: center;
  gap: 3px;
}

.mastery-grid strong {
  font-size: 22px;
  line-height: 1;
}

.mastery-grid span,
.mastery-panel p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mastery-panel p {
  margin: 0;
}

.review-empty .trainer-stage {
  align-content: center;
}

.mobile-bottom-nav {
  display: none;
}

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

  .sidebar {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .auth-brand,
  .auth-card {
    min-height: auto;
  }

  .auth-card {
    border-left: 0;
    border-top: 1px solid rgba(20, 22, 27, 0.1);
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .main {
    order: 1;
  }

  .sidebar {
    order: 2;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 20;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    gap: 5px;
    border: 1px solid rgba(20, 22, 27, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 46px rgba(20, 22, 27, 0.22);
    padding: 7px;
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav button {
    min-width: 0;
    min-height: 52px;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-bottom-nav button.active {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 240, 243, 0.95)),
      #fff0f3;
    color: var(--red-dark);
  }

  .nav-symbol,
  .nav-symbol svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  .mobile-view-study .sidebar,
  .mobile-view-review .sidebar,
  .mobile-view-culture .sidebar,
  .mobile-view-sets .main,
  .mobile-view-leaderboard .main,
  .mobile-view-account .main {
    display: none;
  }

  .mobile-view-study .details-panel,
  .mobile-view-review .details-panel,
  .mobile-view-culture .details-panel {
    display: none;
  }

  .mobile-view-progress .sidebar,
  .mobile-view-progress .trainer,
  .mobile-view-progress .topbar {
    display: none;
  }

  .mobile-view-progress .workspace {
    grid-template-columns: 1fr;
  }

  .mobile-view-account .set-browser-panel {
    display: none;
  }

  .mobile-view-sets .account-panel:not(.sets-panel) {
    display: none;
  }

  .mobile-view-leaderboard .account-panel:not(.leaderboard-card):not(.account-settings-card) {
    display: none;
  }

  .mobile-view-leaderboard .account-settings-head,
  .mobile-view-leaderboard .account-settings-grid,
  .mobile-view-leaderboard .plan-preference-panel {
    display: none;
  }

  .mobile-view-leaderboard .leaderboard-card {
    order: -1;
  }

  .mobile-view-study .main,
  .mobile-view-review .main {
    display: flex;
    flex-direction: column;
  }

  .mobile-view-study .workspace,
  .mobile-view-review .workspace {
    order: 1;
  }

  .mobile-view-study .topbar,
  .mobile-view-review .topbar {
    order: 2;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .mobile-view-study.no-active-card .topbar,
  .mobile-view-review.no-active-card .topbar {
    display: none;
  }

  .mobile-view-study #focus-toggle,
  .mobile-view-review #focus-toggle {
    display: none;
  }

  .app-shell.focus-mode.mobile-view-sets .sidebar,
  .app-shell.focus-mode.mobile-view-leaderboard .sidebar,
  .app-shell.focus-mode.mobile-view-account .sidebar {
    display: grid;
  }
}

@media (max-width: 720px) {
  .auth-brand,
  .auth-card,
  .sidebar,
  .topbar,
  .workspace {
    padding: 18px;
  }

  .auth-brand h1 {
    font-size: 44px;
  }

  .auth-brand p {
    font-size: 16px;
  }

  .auth-preview,
  .landing-proof,
  .landing-feature-grid,
  .landing-school-strip,
  .teacher-preview-steps,
  .onboarding-grid,
  .set-list,
  .library-card,
  .daily-panel,
  .game-stats,
  .share-link-row,
  .fluency-panel,
  .level-step,
  .daily-stats,
  .session-grid,
  .session-summary-grid,
  .mastery-grid,
  .plan-choice-grid,
  .culture-workspace,
  .culture-hero,
  .culture-hero-stats,
  .culture-grid,
  .music-spotlight,
  .culture-practice-goal,
  .culture-practice-stats,
  .culture-practice-streaks,
  .culture-practice-balance-row,
  .resource-row,
  .event-card,
  .event-search {
    grid-template-columns: 1fr;
  }

  .event-facts {
    grid-template-columns: 1fr;
  }

  .culture-hero {
    min-height: 320px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(12, 15, 20, 0.2), rgba(12, 15, 20, 0.88)),
      var(--culture-hero-image) center / cover,
      #15181e;
    padding: 18px;
  }

  .culture-hero h3 {
    font-size: 25px;
  }

  .culture-hero-actions {
    justify-content: flex-start;
  }

  .culture-hero-actions button {
    flex: 1 1 74px;
  }

  .culture-hero-stats span {
    min-height: 48px;
  }

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

  .spotify-playlist-embed,
  .music-spotlight-card:not(.featured) .spotify-playlist-embed {
    min-height: 232px;
  }

  .culture-card-media {
    min-height: 118px;
  }

  .culture-practice-goal-controls,
  .culture-practice-review-queue button,
  .culture-practice-journal button,
  .culture-review-feedback-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .culture-practice-goal-controls div,
  .culture-practice-filter,
  .culture-practice-actions {
    width: 100%;
  }

  .culture-practice-goal-controls button,
  .culture-practice-filter button,
  .culture-practice-actions .compact-button {
    flex: 1 1 96px;
    justify-content: center;
  }

  .culture-practice-balance-row {
    gap: 5px;
  }

  .culture-practice-balance-row div:first-child {
    align-items: center;
  }

  .culture-practice-review-queue button span,
  .culture-practice-journal button span {
    grid-row: auto;
    justify-self: start;
  }

  .culture-source-category select,
  .culture-practice-form textarea,
  .culture-review-request textarea {
    font-size: 16px;
  }

  .culture-sentence-diagnostic,
  .culture-review-feedback,
  .culture-review-request {
    padding: 9px;
  }

  .culture-review-feedback-head {
    display: grid;
    gap: 3px;
  }

  .preview-main {
    grid-row: span 1;
  }

  .topbar,
  .starter-session-banner,
  .trainer-header,
  .trainer-footer,
  .answer-row {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .mode-tabs {
    width: 100%;
  }

  .level-picker,
  .practice-profile-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .level-set-section summary {
    grid-template-columns: minmax(0, 1fr) 26px;
  }

  .level-set-section summary::after {
    grid-column: 2;
  }

  .level-section-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .study-tools {
    width: 100%;
    justify-content: stretch;
  }

  .study-tools .tool-toggle {
    flex: 1 1 140px;
  }

  .practice-profile-control {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .practice-profile-summary {
    text-align: start;
  }

  .prompt-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .practice-actions {
    width: 100%;
    justify-content: stretch;
  }

  .practice-actions > button {
    flex: 1 1 110px;
    justify-content: center;
  }

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

  .sidebar {
    gap: 14px;
  }

  .sidebar-header {
    align-items: flex-start;
  }

  .library-card,
  .quest-card,
  .review-card,
  .culture-card,
  .culture-main,
  .culture-item,
  .event-submission-form,
  .culture-side-card,
  .game-stats div,
  .info-panel,
  .answer-panel,
  .fluency-panel,
  .level-ladder,
  .mastery-panel {
    box-shadow: none;
  }

  .game-stats {
    gap: 8px;
  }

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

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

  .culture-main {
    padding: 14px;
  }

  .event-date-card {
    min-height: 42px;
    justify-content: start;
  }

  .event-submission-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    min-height: auto;
    gap: 16px;
    background: rgba(246, 248, 251, 0.92);
  }

  .topbar h2 {
    font-size: 30px;
  }

  .topbar p {
    font-size: 14px;
  }

  .workspace {
    gap: 16px;
  }

  .trainer {
    min-height: auto;
  }

  .trainer-stage {
    min-height: 0;
    padding: 18px;
    gap: 14px;
  }

  .trainer-header,
  .trainer-footer {
    padding: 14px;
  }

  .trainer-footer-actions,
  .trainer-footer-actions .primary-button,
  .trainer-footer-actions .secondary-button {
    width: 100%;
  }

  .more-like-this-list {
    grid-template-columns: 1fr;
  }

  .direction-tabs {
    width: 100%;
    min-width: 0;
  }

  .trainer-meta {
    width: 100%;
    min-width: 0;
  }

  .prompt-chip {
    max-width: min(100%, 190px);
  }

  .mini-score {
    justify-self: start;
    justify-items: start;
  }

  .prompt-word {
    font-size: clamp(38px, 13vw, 58px);
    overflow-wrap: anywhere;
  }

  .prompt-word-compact {
    font-size: clamp(24px, 8vw, 34px);
  }

  .prompt-content-with-visual {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .memory-visual {
    min-height: 104px;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
  }

  .memory-visual-art {
    min-height: 76px;
  }

  .memory-visual-art .visual-prompt-icon .set-icon,
  .memory-visual-art .visual-prompt-icon .set-icon-art {
    width: 76px;
    height: 76px;
    border-radius: 14px;
  }

  .prompt-note {
    font-size: 16px;
  }

  .answer-input,
  .primary-button,
  .secondary-button,
  .choice-button {
    min-height: 52px;
  }

  .choice-button {
    padding: 0 14px;
  }

  .fluency-ring {
    width: 84px;
    height: 84px;
  }

  .level-step {
    gap: 4px;
  }

  .category-strip {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    padding-bottom: 0;
  }
}
