/* ============================================================
   星桥计划 · NPC语言训练系统
   Visual system: backstage paper / stage ink / brass accents
   ============================================================ */

/* ---------- 1. Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
  --paper: #f3eee4;
  --paper-2: #ece5d7;
  --paper-3: #e4dccb;
  --card: #fffaf1;
  --card-2: #f8f1e5;
  --ink: #1d1b17;
  --ink-2: #37332b;
  --muted: #746d60;
  --muted-2: #9a9182;
  --line: #d9cfbf;
  --line-strong: #bfb3a1;
  --gold: #b9843e;
  --gold-2: #d9a45b;
  --gold-3: #f0cf97;
  --red: #b64b37;
  --red-2: #d4634b;
  --teal: #4f8f82;
  --teal-2: #6fb7a8;
  --blue: #4f7f9f;
  --violet: #7a6aa8;
  --sidebar: #12141a;
  --sidebar-2: #191c24;
  --sidebar-3: #22262f;
  --dark-line: rgba(245, 238, 226, 0.12);
  --dark-muted: rgba(245, 238, 226, 0.56);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --shadow: 0 20px 55px rgba(52, 42, 26, 0.08);
  --shadow-soft: 0 10px 30px rgba(52, 42, 26, 0.06);
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: rgba(185, 132, 62, 0.25); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfc4b2; border-radius: 20px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #b9ac98; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 2. Brand & shared ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 164, 91, 0.5);
  border-radius: 50%;
  color: var(--gold-2);
  background: radial-gradient(circle at 50% 35%, rgba(217, 164, 91, 0.16), transparent 70%);
}
.brand-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink); }
.brand-text small { margin-top: 2px; font-family: var(--mono); font-size: 7px; letter-spacing: 0.15em; color: var(--muted-2); }
.brand--light .brand-text strong { color: #f6eddd; }
.brand--light .brand-text small { color: rgba(246, 237, 221, 0.45); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }

.pulse-dot {
  position: relative;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 12px rgba(217, 164, 91, 0.9);
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border: 1px solid rgba(217, 164, 91, 0.5);
  border-radius: 50%; animation: pulse 2.4s ease-out infinite;
}
.eyebrow .pulse-dot { order: 3; }

.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.dot--gold { background: var(--gold-2); }
.dot--teal { background: var(--teal); }
.dot--red { background: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--ink);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--ink); color: #fbf4e7; box-shadow: 0 8px 20px rgba(29, 27, 23, 0.16); }
.btn-primary:hover { background: #2c2821; }
.btn-gold { background: linear-gradient(135deg, #d9ad68, #b9843e); color: #1d170d; box-shadow: 0 8px 22px rgba(185, 132, 62, 0.22); }
.btn-gold:hover { filter: brightness(1.03); }
.btn-red { background: var(--red); color: #fff4e8; }
.btn-outline { border-color: var(--line-strong); color: var(--ink-2); background: rgba(255, 250, 241, 0.55); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(185, 132, 62, 0.06); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { background: rgba(29, 27, 23, 0.05); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 11px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); background: var(--card-2); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.text-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--muted); font-size: 11px; }
.text-btn:hover { color: var(--gold); }
.text-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent;
  color: var(--muted); font-size: 10px; line-height: 1; white-space: nowrap;
  cursor: pointer;
}
.pill--gold { border-color: rgba(185, 132, 62, 0.35); color: var(--gold); background: rgba(185, 132, 62, 0.07); }
.pill--teal { border-color: rgba(79, 143, 130, 0.3); color: var(--teal); background: rgba(79, 143, 130, 0.07); }
.pill--red { border-color: rgba(182, 75, 55, 0.28); color: var(--red); background: rgba(182, 75, 55, 0.06); }
.pill--dark { border-color: var(--dark-line); color: var(--dark-muted); }

.tag {
  display: inline-flex; align-items: center; height: 21px; padding: 0 7px;
  border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); font-size: 9.5px; white-space: nowrap;
}
.tag--gold { border-color: rgba(185, 132, 62, 0.3); color: var(--gold); }
.tag--teal { border-color: rgba(79, 143, 130, 0.3); color: var(--teal); }
.tag--red { border-color: rgba(182, 75, 55, 0.3); color: var(--red); }

/* ---------- 3. Landing ---------- */
.landing {
  position: relative;
  min-height: 100vh;
  padding: 0 40px;
  background:
    radial-gradient(900px 600px at 74% 18%, rgba(185, 132, 62, 0.13), transparent 62%),
    radial-gradient(700px 500px at 12% 80%, rgba(79, 143, 130, 0.09), transparent 65%),
    linear-gradient(160deg, #101218 0%, #12141a 55%, #0b0d12 100%);
  color: #f4ecdf;
  overflow: hidden;
}
.landing-glow {
  position: absolute; left: 50%; top: -340px; width: 1000px; height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(217, 164, 91, 0.2), transparent 65%);
  pointer-events: none;
}
.landing-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245, 238, 226, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 238, 226, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  pointer-events: none;
}
.landing-header {
  position: relative; z-index: 2;
  max-width: 1240px; height: 84px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--dark-line);
}
.landing-header-right { display: flex; align-items: center; gap: 16px; color: var(--dark-muted); font-size: 10px; letter-spacing: 0.03em; }
.version-pill { padding: 3px 9px; border: 1px solid var(--dark-line); border-radius: 999px; font-family: var(--mono); font-size: 8px; color: var(--gold-2); }
.landing-main {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  min-height: calc(100vh - 260px);
  min-width: 0;
  padding: 58px 0 42px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 70px; align-items: center;
}
.landing-main > * { min-width: 0; }
.landing-copy { min-width: 0; max-width: 100%; }
.landing-copy h1 {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 78px);
  font-weight: 700; line-height: 1.18; letter-spacing: 0.01em;
}
.landing-copy h1 em { color: var(--gold-2); font-style: normal; }
.landing-lead { max-width: 550px; color: rgba(244, 236, 223, 0.62); font-size: 14px; line-height: 2; overflow-wrap: break-word; }
.landing-stats { display: flex; flex-wrap: wrap; gap: 26px 38px; margin: 32px 0 28px; }
.landing-stats div { display: flex; flex-direction: column; gap: 2px; }
.landing-stats strong { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; color: var(--gold-3); }
.landing-stats strong span { font-size: 14px; }
.landing-stats div > span { color: var(--dark-muted); font-size: 9.5px; letter-spacing: 0.05em; }
.landing-note { display: flex; align-items: center; gap: 7px; color: rgba(244, 236, 223, 0.38); font-size: 9.5px; }
.landing-note svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.landing-mobile-enter { display: none; }

.landing-preview { position: relative; justify-self: center; width: min(430px, 100%); min-width: 0; max-width: 100%; }
.preview-main {
  position: relative; z-index: 2;
  min-width: 0; max-width: 100%;
  padding: 24px 26px 20px;
  border: 1px solid rgba(217, 164, 91, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(185, 132, 62, 0.14), transparent 55%),
    linear-gradient(155deg, #1b1e26, #111319);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.2deg);
}
.preview-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--dark-line); color: var(--dark-muted); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; }
.live-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-2); }
.live-dot i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); }
.preview-role { margin-top: 21px; color: rgba(244, 236, 223, 0.45); font-size: 9px; letter-spacing: 0.05em; }
.preview-main h2 { margin: 5px 0 8px; font-family: var(--serif); font-size: 31px; font-weight: 700; color: #f8f0e2; letter-spacing: 0.04em; }
.preview-line { color: rgba(244, 236, 223, 0.62); font-size: 11.5px; }
.preview-wave { display: flex; align-items: center; gap: 4px; height: 56px; margin: 22px 0 18px; }
.preview-wave i { flex: 1; height: var(--h); min-height: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--gold-2), rgba(217, 164, 91, 0.28)); opacity: 0.9; }
.preview-score { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-top: 1px solid var(--dark-line); }
.score-ring {
  --p: 84;
  position: relative; display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%;
  background: conic-gradient(var(--gold-2) calc(var(--p) * 1%), rgba(245, 238, 226, 0.1) 0);
}
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #14161d; }
.score-ring span { position: relative; z-index: 1; font-family: var(--serif); font-size: 27px; font-weight: 700; color: var(--gold-3); }
.preview-score strong { display: block; color: rgba(244, 236, 223, 0.78); font-size: 11px; font-weight: 500; }
.preview-score p { margin-top: 4px; color: var(--dark-muted); font-size: 9px; }
.preview-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--dark-line); color: var(--dark-muted); font-size: 8px; }
.preview-foot span { display: inline-flex; align-items: center; gap: 5px; }
.preview-float {
  position: absolute; z-index: 3;
  min-width: 118px; padding: 10px 12px;
  border: 1px solid var(--dark-line); border-radius: 9px;
  background: rgba(19, 22, 28, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.preview-float span { display: block; color: var(--dark-muted); font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.12em; }
.preview-float strong { display: block; margin-top: 3px; color: var(--gold-2); font-family: var(--serif); font-size: 18px; }
.preview-float p { margin-top: 1px; color: var(--dark-muted); font-size: 8px; }
.preview-float--top { top: 14%; left: -128px; }
.preview-float--bottom { right: -36px; bottom: 14%; }

.role-select {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  padding-bottom: 38px;
}
.role-enter {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px;
  border: 1px solid var(--dark-line); border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #f4ecdf; text-align: left;
  transition: transform 0.28s var(--ease), border-color 0.28s, background 0.28s;
}
.role-enter:hover { transform: translateY(-4px); border-color: rgba(217, 164, 91, 0.5); background: rgba(217, 164, 91, 0.06); }
.role-enter-no { align-self: flex-start; color: rgba(217, 164, 91, 0.5); font-family: var(--mono); font-size: 8px; }
.role-enter-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(217, 164, 91, 0.28); border-radius: 50%; color: var(--gold-2); }
.role-enter-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.role-enter-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.role-enter-text strong { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: 0.05em; }
.role-enter-text small { color: rgba(244, 236, 223, 0.48); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-enter-text em { color: rgba(244, 236, 223, 0.35); font-style: normal; font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-enter-arrow { margin-left: auto; color: rgba(244, 236, 223, 0.35); transition: transform 0.25s, color 0.25s; }
.role-enter-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.role-enter:hover .role-enter-arrow { color: var(--gold-2); transform: translateX(3px); }
.landing-footer {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; padding: 16px 0 22px;
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--dark-line);
  color: rgba(244, 236, 223, 0.3); font-size: 8.5px; letter-spacing: 0.05em;
}

/* ---------- 4. App shell ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: 244px; padding: 22px 16px 18px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(100% 55% at 50% 0%, rgba(185, 132, 62, 0.08), transparent 55%),
    var(--sidebar);
  border-right: 1px solid rgba(245, 238, 226, 0.06);
  color: #f4ecdf;
}
.sidebar-brand { margin: 2px 6px 24px; }
.side-role {
  margin: 0 4px 18px; padding: 12px;
  border: 1px solid var(--dark-line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.side-role-top { display: flex; align-items: center; gap: 9px; }
.side-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: rgba(217, 164, 91, 0.13); color: var(--gold-2); font-family: var(--serif); font-size: 14px; border: 1px solid rgba(217, 164, 91, 0.25); }
.side-role-copy { min-width: 0; }
.side-role-copy strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-role-copy span { display: block; color: var(--dark-muted); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-role-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--dark-line); color: var(--dark-muted); font-size: 8px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  min-height: 40px; padding: 0 11px;
  border-radius: 8px; color: rgba(244, 236, 223, 0.5);
  font-size: 11.5px; transition: color 0.2s, background 0.2s;
}
.side-nav a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.side-nav a:hover { color: #f4ecdf; background: rgba(255, 255, 255, 0.04); }
.side-nav a.is-active { color: #1b170f; background: linear-gradient(135deg, #e2b970, #c89751); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.side-nav a.is-active svg { stroke-width: 1.8; }
.side-nav .nav-count { margin-left: auto; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; background: rgba(182, 75, 55, 0.9); color: #fff4e8; font-size: 8px; }
.side-nav a.is-active .nav-count { background: rgba(29, 27, 23, 0.8); color: #f7e9ce; }
.sidebar-foot { margin-top: auto; padding: 16px 4px 0; border-top: 1px solid var(--dark-line); }
.side-progress { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--dark-muted); font-size: 8.5px; }
.side-progress strong { color: var(--gold-2); font-family: var(--mono); font-size: 9px; font-weight: 500; }
.side-progress-bar { height: 3px; margin: 7px 0 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.side-progress-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-3)); transition: width 0.5s var(--ease); }
.side-link { display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px 0; border: 0; background: none; color: rgba(244, 236, 223, 0.4); font-size: 9px; text-align: left; }
.side-link:hover { color: var(--gold-2); }
.side-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.workspace { min-height: 100vh; margin-left: 244px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  min-height: 86px; padding: 16px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(243, 238, 228, 0.86);
  border-bottom: 1px solid rgba(191, 179, 161, 0.45);
  backdrop-filter: blur(14px);
}
.topbar-kicker { color: var(--muted-2); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.16em; }
.topbar h1 { margin-top: 2px; font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.25; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8.5px; background: rgba(255, 250, 241, 0.5); }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 7px rgba(79, 143, 130, 0.7); }
.topbar-switch { background: rgba(255, 250, 241, 0.6); }
.main { max-width: 1320px; margin: 0 auto; padding: 28px 34px 64px; }
.mobile-nav { display: none; }

/* ---------- 5. Shared layout ---------- */
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-intro h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: 0.02em; }
.page-intro p { color: var(--muted); font-size: 11.5px; }
.page-intro-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.panel {
  min-width: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow-soft);
}
.panel--flat { box-shadow: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 19px 12px; }
.panel-head h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.panel-head p { color: var(--muted-2); font-size: 9.5px; }
.panel-body { padding: 0 19px 19px; }
.panel-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9.5px; border: 0; background: none; padding: 0; }
.panel-link:hover { color: var(--gold); }
.panel-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  position: relative; padding: 16px 17px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); overflow: hidden;
}
.kpi::after { content: ""; position: absolute; right: -22px; bottom: -35px; width: 90px; height: 90px; border: 1px solid rgba(185, 132, 62, 0.12); border-radius: 50%; }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9.5px; }
.kpi-label svg { width: 14px; height: 14px; fill: none; stroke: var(--muted-2); stroke-width: 1.6; }
.kpi-value { margin-top: 7px; font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.kpi-value small { margin-left: 2px; font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--muted); }
.kpi-foot { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--muted-2); font-size: 8.5px; }
.kpi-foot .up { color: var(--teal); }
.kpi-foot .down { color: var(--red); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(290px, 0.68fr); gap: 14px; }
.dashboard-grid > * { min-width: 0; }
.stack { display: grid; gap: 14px; min-width: 0; }

.progress-ring {
  --p: 62;
  position: relative; display: grid; place-items: center;
  width: 88px; height: 88px; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(185, 132, 62, 0.12) 0);
  flex: 0 0 auto;
}
.progress-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.progress-ring strong { position: relative; z-index: 1; font-family: var(--serif); font-size: 22px; line-height: 1; }
.progress-ring small { position: relative; z-index: 1; color: var(--muted-2); font-size: 7.5px; }

.lesson-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.lesson-dot { min-width: 0; padding: 7px 4px; border: 1px solid var(--line); border-radius: 7px; text-align: center; background: var(--card-2); }
.lesson-dot strong { display: block; font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.lesson-dot span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-dot.is-done { border-color: rgba(79, 143, 130, 0.35); background: rgba(79, 143, 130, 0.08); }
.lesson-dot.is-done strong { color: var(--teal); }
.lesson-dot.is-current { border-color: var(--gold); background: rgba(185, 132, 62, 0.1); box-shadow: 0 0 0 2px rgba(185, 132, 62, 0.08); }
.lesson-dot.is-current strong { color: var(--gold); }

.mini-bars { display: grid; gap: 9px; }
.mini-bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9.5px; }
.mini-bar-head strong { color: var(--ink-2); font-family: var(--mono); font-size: 9px; font-weight: 500; }
.mini-bar { height: 4px; border-radius: 4px; background: rgba(29, 27, 23, 0.07); overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.mini-bar i.teal { background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.mini-bar i.red { background: linear-gradient(90deg, var(--red), var(--red-2)); }

.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: rgba(29, 27, 23, 0.08); stroke-width: 1; }
.chart-axis { fill: var(--muted-2); font-family: var(--sans); font-size: 8px; }
.chart-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-line--teal { stroke: var(--teal); }
.chart-area { fill: url(#areaGold); }
.chart-dot { fill: var(--card); stroke: var(--gold); stroke-width: 2; }
.chart-dot--teal { stroke: var(--teal); }

/* ---------- 6. Student home ---------- */
.welcome-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 28px;
  padding: 25px 27px;
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(185, 132, 62, 0.09), transparent 55%),
    var(--card);
  box-shadow: var(--shadow-soft);
}
.welcome-card::after { content: ""; position: absolute; right: 16%; top: -60px; width: 190px; height: 190px; border: 1px solid rgba(185, 132, 62, 0.15); border-radius: 50%; pointer-events: none; }
.welcome-copy { flex: 1; min-width: 0; }
.welcome-copy h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: 0.02em; }
.welcome-copy h2 em { color: var(--gold); font-style: normal; }
.welcome-copy p { margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.welcome-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.welcome-progress { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.welcome-progress-copy { text-align: right; }
.welcome-progress-copy strong { display: block; font-family: var(--serif); font-size: 18px; }
.welcome-progress-copy span { color: var(--muted-2); font-size: 8.5px; }

.today-card {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(185, 132, 62, 0.3); border-radius: 13px;
  background: linear-gradient(135deg, rgba(185, 132, 62, 0.11), rgba(255, 250, 241, 0.75));
}
.today-index { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border: 1px solid rgba(185, 132, 62, 0.35); border-radius: 50%; color: var(--gold); font-family: var(--serif); font-size: 18px; }
.today-copy { flex: 1; min-width: 0; }
.today-copy small { color: var(--gold); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; }
.today-copy h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.today-copy p { color: var(--muted); font-size: 10px; }
.today-card .btn { flex: 0 0 auto; }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-card {
  position: relative; padding: 15px 15px 13px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--card); text-align: left;
  transition: transform 0.24s var(--ease), border-color 0.24s, box-shadow 0.24s;
  overflow: hidden;
}
.quick-card:hover { transform: translateY(-3px); border-color: rgba(185, 132, 62, 0.45); box-shadow: var(--shadow-soft); }
.quick-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 8px; background: rgba(185, 132, 62, 0.08); color: var(--gold); }
.quick-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quick-card strong { display: block; font-family: var(--serif); font-size: 14px; }
.quick-card span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8.5px; line-height: 1.5; }
.quick-card em { display: block; margin-top: 8px; color: var(--gold); font-style: normal; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.05em; }

.record-list { display: grid; gap: 7px; }
.record-row {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center; gap: 11px;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--card-2);
}
.record-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(185, 132, 62, 0.09); color: var(--gold); }
.record-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.record-main { min-width: 0; }
.record-main strong { display: block; font-size: 10.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-main span { display: block; color: var(--muted-2); font-size: 8px; }
.record-score { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink-2); }
.record-score small { font-family: var(--sans); font-size: 8px; color: var(--muted-2); }
.record-status { font-size: 8px; color: var(--teal); white-space: nowrap; }
.record-status.pending { color: var(--gold); }

.empty-box { padding: 34px 20px; border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center; color: var(--muted-2); font-size: 10.5px; }

/* ---------- 7. Training library ---------- */
.module-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.module-card {
  position: relative; padding: 17px 15px 15px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); text-align: left; overflow: hidden;
  transition: transform 0.24s var(--ease), border-color 0.24s;
}
.module-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--module-color, var(--gold)); opacity: 0.55; }
.module-card:hover { transform: translateY(-3px); border-color: rgba(185, 132, 62, 0.4); }
.module-card small { color: var(--muted-2); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.08em; }
.module-card strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 15px; line-height: 1.35; }
.module-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.module-card em { display: block; margin-top: 11px; color: var(--module-color, var(--gold)); font-style: normal; font-size: 8px; }

.script-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.script-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 17px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--card); text-align: left;
  transition: transform 0.24s var(--ease), border-color 0.24s, box-shadow 0.24s;
}
.script-card:hover { transform: translateY(-2px); border-color: rgba(185, 132, 62, 0.45); box-shadow: var(--shadow-soft); }
.script-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.script-lesson { color: var(--gold); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; }
.script-card h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.script-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.script-preview { color: var(--muted); font-size: 9.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.script-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted-2); font-size: 8px; }
.script-foot span { display: inline-flex; align-items: center; gap: 4px; }
.script-foot svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- 8. AI practice ---------- */
.ai-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: stretch; min-height: 580px; }
.ai-side { display: flex; flex-direction: column; gap: 10px; }
.ai-scene-list { display: grid; gap: 7px; }
.ai-scene {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.ai-scene:hover { border-color: rgba(185, 132, 62, 0.45); background: var(--card-2); }
.ai-scene.is-active { border-color: var(--gold); background: rgba(185, 132, 62, 0.08); }
.ai-scene strong { display: block; font-size: 10.5px; font-weight: 500; }
.ai-scene > span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.ai-scene .tag { display: inline-flex; width: fit-content; margin-top: 6px; color: var(--muted); font-size: 8px; }
.ai-scene .tag--gold { color: var(--gold); }
.ai-scene .tag--teal { color: var(--teal); }
.ai-scene .tag--red { color: var(--red); }
.ai-chat { display: flex; flex-direction: column; min-height: 580px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.chat-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(79, 143, 130, 0.12); color: var(--teal); font-family: var(--serif); font-size: 14px; }
.chat-head-copy { min-width: 0; }
.chat-head-copy strong { display: block; font-size: 11px; }
.chat-head-copy span { display: block; color: var(--muted-2); font-size: 8px; }
.chat-head .pill { margin-left: auto; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: linear-gradient(180deg, #f7f1e6, #f3ece0); }
.chat-day { margin: 0 auto 14px; width: fit-content; padding: 3px 8px; border-radius: 999px; background: rgba(29, 27, 23, 0.06); color: var(--muted-2); font-size: 8px; }
.bubble-row { display: flex; gap: 8px; margin-bottom: 13px; align-items: flex-start; }
.bubble-row.is-user { flex-direction: row-reverse; }
.bubble-avatar { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: var(--paper-3); color: var(--ink-2); font-size: 9px; }
.bubble-row.is-user .bubble-avatar { background: var(--ink); color: #f7eedf; }
.bubble { max-width: 78%; }
.bubble-name { margin-bottom: 3px; color: var(--muted-2); font-size: 8px; }
.bubble-row.is-user .bubble-name { text-align: right; }
.bubble-text { padding: 10px 13px; border: 1px solid var(--line); border-radius: 3px 11px 11px 11px; background: var(--card); font-size: 11px; line-height: 1.75; }
.bubble-row.is-user .bubble-text { border-color: var(--ink); border-radius: 11px 3px 11px 11px; background: var(--ink); color: #f8f0e2; }
.bubble-feedback { margin-top: 5px; padding: 8px 10px; border-left: 2px solid var(--gold); background: rgba(185, 132, 62, 0.07); color: var(--muted); font-size: 8.5px; line-height: 1.65; }
.bubble-feedback strong { color: var(--gold); font-weight: 500; }
.chat-foot { padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--card); }
.chat-composer { display: flex; align-items: flex-end; gap: 8px; }
.chat-composer textarea { flex: 1; min-height: 44px; max-height: 100px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); resize: none; font-size: 11px; line-height: 1.6; outline: 0; }
.chat-composer textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185, 132, 62, 0.08); }
.chat-composer .btn { flex: 0 0 auto; height: 44px; }
.chat-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--muted-2); font-size: 8px; }
.chat-tools .text-btn { font-size: 8.5px; }
.ai-summary { margin: 0 14px 14px; padding: 14px; border: 1px solid rgba(79, 143, 130, 0.3); border-radius: 9px; background: rgba(79, 143, 130, 0.06); }
.ai-summary h4 { font-family: var(--serif); font-size: 13px; }
.ai-summary p { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.7; }

/* ---------- 9. Report ---------- */
.report-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 14px; align-items: start; }
.report-hero { display: flex; align-items: center; gap: 22px; padding: 20px; }
.report-hero-copy { flex: 1; }
.report-hero-copy h2 { font-family: var(--serif); font-size: 22px; }
.report-hero-copy p { color: var(--muted); font-size: 10px; }
.report-hero-stats { display: flex; gap: 18px; margin-top: 13px; }
.report-stat strong { display: block; font-family: var(--serif); font-size: 23px; line-height: 1; }
.report-stat span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.report-radar-wrap { padding: 6px 8px 0; }
.report-radar { width: 100%; height: auto; }
.radar-grid { fill: none; stroke: rgba(29, 27, 23, 0.1); stroke-width: 0.8; }
.radar-axis { stroke: rgba(29, 27, 23, 0.08); stroke-width: 0.8; }
.radar-label { fill: var(--muted); font-size: 8.5px; }
.radar-baseline { fill: rgba(154, 145, 130, 0.08); stroke: var(--muted-2); stroke-width: 1.2; stroke-dasharray: 3 3; }
.radar-current { fill: rgba(185, 132, 62, 0.16); stroke: var(--gold); stroke-width: 1.8; }
.radar-dot { fill: var(--gold); }

.error-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.error-word { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(182, 75, 55, 0.2); border-radius: 6px; background: rgba(182, 75, 55, 0.04); color: var(--red); font-size: 9.5px; }
.error-word em { color: var(--muted-2); font-style: normal; font-family: var(--mono); font-size: 7px; }
.error-word small { color: var(--muted-2); font-size: 7.5px; }
.report-next { margin-top: 14px; padding: 13px 14px; border: 1px solid rgba(185, 132, 62, 0.28); border-radius: 9px; background: rgba(185, 132, 62, 0.06); }
.report-next > span { display: block; color: var(--gold); font-family: var(--mono); font-size: 7px; letter-spacing: 0.12em; }
.report-next h4 { margin-top: 3px; font-family: var(--serif); font-size: 13px; }
.report-next p { margin-top: 3px; color: var(--muted); font-size: 8.5px; line-height: 1.7; }
.report-next .btn { margin-top: 9px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.data-table th { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 8px; font-weight: 500; text-align: left; letter-spacing: 0.05em; white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid rgba(217, 207, 191, 0.6); font-size: 9.5px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(185, 132, 62, 0.03); }
.table-student { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--paper-3); color: var(--ink-2); font-family: var(--serif); font-size: 11px; }
.avatar--gold { background: rgba(185, 132, 62, 0.13); color: var(--gold); }
.table-student strong { display: block; font-size: 9.5px; font-weight: 500; }
.table-student span { display: block; color: var(--muted-2); font-size: 7.5px; }
.score-text { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.score-text small { font-family: var(--sans); font-size: 7px; color: var(--muted-2); }
.table-bar { width: 72px; height: 4px; border-radius: 4px; background: rgba(29, 27, 23, 0.08); overflow: hidden; }
.table-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

.heatmap { display: grid; gap: 4px; min-width: 360px; }
.heatmap-row { display: grid; grid-template-columns: 86px repeat(4, minmax(28px, 1fr)); gap: 4px; align-items: center; }
.heatmap-name { font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat-cell { display: grid; place-items: center; height: 25px; border-radius: 4px; font-family: var(--mono); font-size: 7.5px; color: rgba(29, 27, 23, 0.62); }
.heat-cell.is-empty { background: rgba(29, 27, 23, 0.035); color: var(--muted-2); }
.heatmap-head { font-family: var(--mono); font-size: 7px; color: var(--muted-2); text-align: center; }

/* ---------- 10. Teacher / admin ---------- */
.role-guide {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  margin-bottom: 14px; padding: 18px 20px;
  border: 1px solid rgba(185, 132, 62, 0.28); border-radius: 12px;
  background:
    radial-gradient(80% 150% at 100% 0%, rgba(185, 132, 62, 0.1), transparent 58%),
    var(--card);
}
.role-guide h3 { margin-top: 4px; font-family: var(--serif); font-size: 21px; }
.role-guide p:not(.eyebrow) { max-width: 620px; margin-top: 4px; color: var(--muted); font-size: 9.5px; line-height: 1.75; }
.role-guide-steps { display: grid; grid-template-columns: repeat(2, auto); gap: 9px 18px; flex: 0 0 auto; }
.role-guide-steps span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.role-guide-steps b { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(185, 132, 62, 0.35); border-radius: 50%; color: var(--gold); font-family: var(--mono); font-size: 7px; font-weight: 500; }

.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.npc-card {
  display: flex; flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--card); box-shadow: var(--shadow-soft);
}
.npc-head { display: flex; align-items: flex-start; gap: 12px; }
.npc-avatar {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: 0 0 auto;
  border: 1px solid currentColor; border-radius: 50%;
  font-family: var(--serif); font-size: 19px;
}
.npc-head-copy { flex: 1; min-width: 0; }
.npc-head-copy h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 5px; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.npc-head-copy h3 small { color: var(--muted); font-family: var(--sans); font-size: 8.5px; font-weight: 400; }
.npc-persona { margin-top: 12px; color: var(--ink-2); font-size: 10px; line-height: 1.8; }
.npc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; margin-top: 12px; padding: 11px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.npc-facts > div { min-width: 0; }
.npc-facts > div > span { display: block; color: var(--muted-2); font-size: 7.5px; }
.npc-facts strong { display: block; margin-top: 1px; color: var(--ink-2); font-size: 9.5px; font-weight: 500; }
.npc-facts p { margin-top: 1px; color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.npc-voice { display: flex; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 8.5px; line-height: 1.65; }
.npc-voice > span { flex: 0 0 auto; color: var(--gold); font-family: var(--mono); font-size: 7px; letter-spacing: 0.06em; padding-top: 2px; }
.npc-voice p { min-width: 0; }
.npc-quote { margin: 11px 0 0; padding: 8px 10px; border-left: 2px solid rgba(185, 132, 62, 0.55); background: rgba(185, 132, 62, 0.05); color: var(--ink-2); font-family: var(--serif); font-size: 11px; line-height: 1.65; }
.npc-scripts { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; color: var(--muted-2); font-size: 7.5px; }
.npc-scripts > span { flex: 0 0 auto; padding-top: 3px; }
.npc-scripts > div { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.npc-scripts em { color: var(--muted-2); font-style: normal; }
.npc-actions { display: flex; gap: 7px; margin-top: auto; padding-top: 13px; }
.npc-actions .btn { flex: 1; }
.role-form-owner { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-2); }
.role-form-owner strong { display: block; font-size: 11px; font-weight: 500; }
.role-form-owner span:not(.npc-avatar) { display: block; color: var(--muted-2); font-size: 8px; }
.role-form-owner .npc-avatar { width: 36px; height: 36px; font-size: 15px; }

.student-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.search-box { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.search-box svg { width: 14px; height: 14px; fill: none; stroke: var(--muted-2); stroke-width: 1.7; }
.search-box input { width: 180px; border: 0; outline: 0; background: transparent; font-size: 10px; }
.student-toolbar .btn { margin-left: auto; }

.review-list { display: grid; gap: 8px; }
.review-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 9px; align-items: center; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-2); }
.review-row-main { min-width: 0; overflow: hidden; }
.review-row-main strong { display: block; font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-row-main span { display: block; color: var(--muted-2); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-row-score { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.review-row .btn { height: 30px; padding: 0 10px; font-size: 8.5px; white-space: nowrap; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.resource-card { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.resource-card h4 { font-family: var(--serif); font-size: 15px; }
.resource-card p { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.65; }
.resource-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.resource-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--muted-2); font-size: 8px; }
.resource-foot .btn { height: 26px; padding: 0 8px; font-size: 8px; }

.assignment-list { display: grid; gap: 9px; }
.assignment-card { display: flex; align-items: center; gap: 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.assignment-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; background: rgba(185, 132, 62, 0.09); color: var(--gold); }
.assignment-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.assignment-copy { flex: 1; min-width: 0; }
.assignment-copy strong { display: block; font-size: 11px; font-weight: 500; }
.assignment-copy span { display: block; color: var(--muted-2); font-size: 8px; }
.assignment-copy p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.assignment-card .pill { flex: 0 0 auto; }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.content-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.content-row:last-child { border-bottom: 0; }
.content-row-main { flex: 1; min-width: 0; }
.content-row-main strong { display: block; font-size: 10px; font-weight: 500; }
.content-row-main span { display: block; color: var(--muted-2); font-size: 8px; }
.content-row-actions { display: flex; gap: 5px; }
.content-row-actions .btn { height: 26px; padding: 0 8px; font-size: 8px; }
.admin-privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; }

/* ---------- 11. Overlay / studio ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; }
.overlay-backdrop { position: absolute; inset: 0; background: rgba(15, 15, 18, 0.7); backdrop-filter: blur(7px); }
.overlay-panel {
  position: relative; z-index: 1;
  width: min(1200px, 100%); max-height: 94vh; overflow-y: auto;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--paper); box-shadow: 0 45px 140px rgba(0, 0, 0, 0.45);
  animation: overlayIn 0.28s var(--ease);
}
@keyframes overlayIn { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }
.overlay-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.94); backdrop-filter: blur(12px);
}
.overlay-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.overlay-head p { color: var(--muted-2); font-size: 8.5px; }
.overlay-close { flex: 0 0 auto; }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 0; min-height: 600px; min-width: 0; }
.studio-script { min-width: 0; padding: 24px 26px 28px; border-right: 1px solid var(--line); }
.studio-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 15px; }
.studio-title { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1.35; }
.studio-sub { margin-top: 5px; color: var(--muted); font-size: 10px; }
.script-paper {
  position: relative; margin-top: 20px; padding: 24px 25px;
  border: 1px solid var(--line); border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 31px, rgba(182, 75, 55, 0.12) 31px, rgba(182, 75, 55, 0.12) 32px, transparent 32px),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(29, 27, 23, 0.05) 31px, rgba(29, 27, 23, 0.05) 32px),
    #fffaf1;
  font-family: var(--serif);
  font-size: 20px; line-height: 2.05; letter-spacing: 0.04em;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
  box-shadow: inset 0 0 30px rgba(52, 42, 26, 0.03);
}
.script-paper mark { background: rgba(217, 164, 91, 0.26); color: inherit; padding: 1px 1px; border-bottom: 1px solid var(--gold); }
.script-paper mark.dialect { background: rgba(79, 143, 130, 0.16); border-bottom-color: var(--teal); }
.script-paper .focus-tip { display: inline-block; margin-left: 3px; color: var(--gold); font-family: var(--mono); font-size: 8px; vertical-align: super; }
.script-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: var(--muted-2); font-size: 8px; }
.script-legend span { display: inline-flex; align-items: center; gap: 4px; }
.script-legend i { width: 10px; height: 7px; border-radius: 2px; background: rgba(217, 164, 91, 0.35); }
.script-legend i.dialect { background: rgba(79, 143, 130, 0.25); }
.focus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 16px; max-width: 100%; }
.focus-item { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-2); }
.focus-item strong { display: flex; align-items: baseline; gap: 5px; font-size: 11px; font-weight: 500; }
.focus-item strong em { color: var(--gold); font-style: normal; font-family: var(--mono); font-size: 8px; }
.focus-item span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; line-height: 1.5; }
.persona-box { display: flex; gap: 11px; margin-top: 18px; padding: 12px 13px; border-left: 2px solid var(--gold); background: rgba(185, 132, 62, 0.05); }
.persona-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: rgba(185, 132, 62, 0.12); color: var(--gold); font-family: var(--serif); font-size: 15px; }
.persona-box strong { display: block; font-size: 10.5px; }
.persona-box p { color: var(--muted); font-size: 8.5px; line-height: 1.65; }

.studio-booth {
  display: flex; flex-direction: column; min-width: 0;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(217, 164, 91, 0.08), transparent 55%),
    #14161d;
  color: #f4ecdf;
  padding: 24px 24px 22px;
}
.booth-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--dark-muted); font-size: 8px; }
.booth-live { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-2); font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.1em; }
.booth-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 9px var(--gold-2); }
.booth-timer { margin: 26px 0 10px; text-align: center; font-family: var(--mono); font-size: 38px; font-weight: 300; letter-spacing: 0.06em; color: #f8f0e2; }
.booth-timer small { display: block; margin-top: 2px; color: var(--dark-muted); font-family: var(--sans); font-size: 8px; letter-spacing: 0.1em; }
.booth-wave { height: 72px; display: flex; align-items: center; gap: 2px; margin: 8px 0 20px; }
.booth-wave i { flex: 1; min-height: 2px; height: 3px; border-radius: 3px; background: rgba(244, 236, 223, 0.13); transition: height 0.08s linear, background 0.1s; }
.booth-wave.is-active i { background: linear-gradient(180deg, var(--gold-2), rgba(217, 164, 91, 0.25)); }
.record-actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0 13px; }
.record-main-btn {
  display: grid; place-items: center;
  width: 76px; height: 76px; border: 0; border-radius: 50%;
  background: linear-gradient(145deg, #d2654b, #a84031);
  color: #fff4e8; box-shadow: 0 12px 34px rgba(182, 75, 55, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.record-main-btn:hover { transform: scale(1.04); }
.record-main-btn:active { transform: scale(0.98); }
.record-main-btn svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.record-main-btn.is-recording { background: #f0e5d4; color: #b64b37; animation: recordPulse 1.8s ease-in-out infinite; }
@keyframes recordPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(182, 75, 55, 0.35); } 50% { box-shadow: 0 0 0 14px rgba(182, 75, 55, 0); } }
.record-side-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--dark-line); border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: rgba(244, 236, 223, 0.66); }
.record-side-btn:hover { color: var(--gold-2); border-color: rgba(217, 164, 91, 0.45); }
.record-side-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.record-hint { text-align: center; color: var(--dark-muted); font-size: 8.5px; line-height: 1.7; }
.booth-status { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 9px; color: var(--dark-muted); font-size: 8px; }
.booth-status i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal-2); }
.booth-divider { height: 1px; margin: 18px 0; background: var(--dark-line); }
.audio-result { padding: 12px; border: 1px solid var(--dark-line); border-radius: 9px; background: rgba(255, 255, 255, 0.03); }
.audio-result audio { width: 100%; height: 32px; filter: sepia(0.2) saturate(0.8); }
.audio-result p { margin-top: 6px; color: var(--dark-muted); font-size: 8px; }
.transcript-box { margin-top: 12px; padding: 11px 12px; border: 1px solid var(--dark-line); border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.transcript-box label { display: flex; justify-content: space-between; gap: 8px; color: var(--dark-muted); font-size: 8px; }
.transcript-box textarea { width: 100%; min-height: 58px; margin-top: 6px; padding: 7px 8px; border: 1px solid var(--dark-line); border-radius: 6px; background: rgba(0, 0, 0, 0.18); color: #f4ecdf; resize: vertical; font-size: 10px; line-height: 1.6; outline: none; }
.transcript-box textarea:focus { border-color: rgba(217, 164, 91, 0.55); }
.booth-actions { display: flex; gap: 7px; margin-top: 12px; }
.booth-actions .btn { flex: 1; height: 36px; font-size: 10px; }
.booth .btn-outline { border-color: var(--dark-line); color: #f4ecdf; background: rgba(255, 255, 255, 0.04); }
.booth .btn-outline:hover { border-color: var(--gold-2); color: var(--gold-2); }
.booth .btn-gold { height: 38px; }
.booth-tips { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--dark-line); }
.booth-tips span { display: block; color: var(--gold-2); font-family: var(--mono); font-size: 7px; letter-spacing: 0.1em; }
.booth-tips p { margin-top: 4px; color: var(--dark-muted); font-size: 8.5px; line-height: 1.7; }
.booth-tips p + p { color: rgba(244, 236, 223, 0.4); font-family: var(--serif); font-size: 10px; }
.overlay-record-jump { display: none; }

.result-panel { padding: 20px 24px 26px; border-top: 1px solid var(--line); background: var(--paper); }
.result-summary { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; }
.result-big-score { text-align: center; }
.result-big-score strong { display: block; font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1; color: var(--gold); }
.result-big-score span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.result-big-score em { display: inline-block; margin-top: 7px; padding: 2px 7px; border: 1px solid rgba(185, 132, 62, 0.3); border-radius: 999px; color: var(--gold); font-style: normal; font-size: 7.5px; }
.result-dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.result-dim { padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); }
.result-dim span { display: block; color: var(--muted-2); font-size: 8px; }
.result-dim strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 18px; }
.result-dim small { display: block; margin-top: 1px; color: var(--muted-2); font-size: 7px; }
.result-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px; }
.result-block { padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.result-block h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-family: var(--serif); font-size: 13px; }
.result-block h4 span { color: var(--muted-2); font-family: var(--sans); font-size: 7.5px; font-weight: 400; }
.error-list { display: flex; flex-wrap: wrap; gap: 5px; }
.error-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 7px; border: 1px solid rgba(182, 75, 55, 0.22); border-radius: 5px; background: rgba(182, 75, 55, 0.04); color: var(--red); font-size: 9px; }
.error-chip em { color: var(--muted-2); font-style: normal; font-family: var(--mono); font-size: 7px; }
.feedback-list { display: grid; gap: 6px; }
.feedback-list li { display: flex; gap: 7px; color: var(--muted); font-size: 9px; line-height: 1.65; }
.feedback-list li::before { content: ""; width: 4px; height: 4px; margin-top: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); }
.result-footnote { margin-top: 14px; color: var(--muted-2); font-size: 8px; line-height: 1.7; text-align: center; }

/* ---------- 12. Review drawer / modal ---------- */
.review-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); }
.review-left { padding: 22px 24px; border-right: 1px solid var(--line); }
.review-right { padding: 22px 24px; }
.review-student { display: flex; align-items: center; gap: 12px; }
.review-student .avatar { width: 44px; height: 44px; font-size: 16px; }
.review-student h3 { font-family: var(--serif); font-size: 20px; }
.review-student p { color: var(--muted); font-size: 9px; }
.review-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.review-transcript { margin-top: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-family: var(--serif); font-size: 14px; line-height: 1.95; }
.review-audio { margin-top: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-2); }
.review-audio audio { width: 100%; height: 32px; }
.review-audio p { color: var(--muted-2); font-size: 8px; }
.rubric-row { margin-bottom: 13px; }
.rubric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rubric-head span { font-size: 10px; }
.rubric-head span small { color: var(--muted-2); font-size: 7.5px; }
.rubric-head strong { color: var(--gold); font-family: var(--mono); font-size: 10px; font-weight: 500; }
.rubric-row input[type=range] { width: 100%; accent-color: var(--gold); height: 18px; }
.rubric-note { color: var(--muted-2); font-size: 7.5px; }
.final-score-card { margin: 16px 0; padding: 14px; border: 1px solid rgba(185, 132, 62, 0.32); border-radius: 10px; background: rgba(185, 132, 62, 0.07); }
.final-score-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }
.final-score-line strong { color: var(--gold); font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; }
.final-score-card p { margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--card); font-size: 10px; outline: 0; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185, 132, 62, 0.08); }
.form-field textarea { min-height: 74px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-body { padding: 22px 24px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }

/* ---------- 13. Toast ---------- */
.toast {
  position: fixed; z-index: 130; left: 50%; bottom: 30px;
  transform: translate(-50%, 12px);
  max-width: calc(100vw - 32px);
  padding: 10px 17px;
  border: 1px solid rgba(185, 132, 62, 0.35); border-radius: 999px;
  background: rgba(18, 20, 26, 0.95); color: #f4ecdf;
  font-size: 10.5px; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(182, 75, 55, 0.5); color: #ffd9d0; }

/* ---------- 14. Class edition login ---------- */
.class-login {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(800px 520px at 72% 18%, rgba(185, 132, 62, 0.16), transparent 60%),
    radial-gradient(600px 500px at 12% 84%, rgba(79, 143, 130, 0.1), transparent 62%),
    linear-gradient(155deg, #101218, #12141a 58%, #0b0d12);
  color: #f4ecdf;
}
.class-login-glow {
  position: absolute; left: 50%; top: -360px; width: 960px; height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(217, 164, 91, 0.22), transparent 65%);
  pointer-events: none;
}
.class-login-card {
  position: relative; z-index: 1;
  width: min(430px, 100%);
  padding: 30px 30px 25px;
  border: 1px solid rgba(217, 164, 91, 0.26);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(27, 30, 38, 0.96), rgba(17, 19, 25, 0.98));
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.45);
}
.class-login-card .brand { margin-bottom: 24px; }
.class-login-card h1 {
  margin: 10px 0 10px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.class-login-card h1 em { color: var(--gold-2); font-style: normal; }
.class-login-lead { margin-bottom: 20px; color: var(--dark-muted); font-size: 10.5px; line-height: 1.8; }
.class-login-card form { display: grid; gap: 6px; }
.class-login-card label { margin-top: 8px; color: rgba(244, 236, 223, 0.56); font-size: 9px; }
.class-login-card input {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid rgba(245, 238, 226, 0.16); border-radius: 8px;
  outline: 0; background: rgba(0, 0, 0, 0.2); color: #f8f0e2;
  font-size: 12px;
}
.class-login-card input:focus { border-color: rgba(217, 164, 91, 0.6); box-shadow: 0 0 0 3px rgba(217, 164, 91, 0.08); }
.class-login-card input::placeholder { color: rgba(244, 236, 223, 0.28); }
.class-login-btn { width: 100%; margin-top: 13px; height: 44px; }
.class-login-error { min-height: 16px; margin: 6px 0 0; color: #ff9d84; font-size: 9.5px; }
.class-login-demo {
  display: grid; gap: 2px; margin-top: 16px; padding: 10px 12px;
  border: 1px solid rgba(245, 238, 226, 0.1); border-radius: 8px;
  background: rgba(255, 255, 255, 0.025); color: var(--dark-muted); font-size: 8.5px;
}
.class-login-demo strong { color: var(--gold-2); font-weight: 500; }
.class-login-note { margin-top: 11px; color: rgba(244, 236, 223, 0.3); font-size: 8px; line-height: 1.6; }

/* ---------- 15. Motion ---------- */
@keyframes pulse { 0% { opacity: 0.8; transform: scale(0.7); } 75%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 0.4s var(--ease) both; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  .landing-main { gap: 42px; }
  .preview-float { display: none; }
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .main { padding: 20px 22px 92px; }
  .topbar { padding: 13px 22px; min-height: 74px; }
  .mobile-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; justify-content: space-around; gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(18, 20, 26, 0.96); border-top: 1px solid var(--dark-line);
    backdrop-filter: blur(14px);
  }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 50px; padding: 4px 6px; border-radius: 7px; color: rgba(244, 236, 223, 0.45); font-size: 7.5px; }
  .mobile-nav a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .mobile-nav a.is-active { color: var(--gold-2); background: rgba(217, 164, 91, 0.08); }
  .landing { padding: 0 24px; }
  .landing-main { grid-template-columns: 1fr; padding-top: 38px; gap: 48px; }
  .landing-preview { width: min(400px, 100%); }
  .role-select { grid-template-columns: 1fr; }
  .role-enter-text small, .role-enter-text em { white-space: normal; }
  .landing-header-right span:first-child { display: none; }
  .landing-footer { flex-direction: column; gap: 4px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-script { border-right: 0; border-bottom: 1px solid var(--line); }
  .studio-booth { min-height: 460px; }
  .review-grid { grid-template-columns: 1fr; }
  .review-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .ai-layout { grid-template-columns: 1fr; min-height: 0; }
  .ai-side { display: grid; grid-template-columns: 1fr; }
  .ai-scene-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-chat { min-height: 520px; }
  .role-guide { flex-direction: column; align-items: flex-start; gap: 12px; }
  .role-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .landing { padding: 0 18px; overflow-x: hidden; }
  .landing-header { height: 70px; min-width: 0; }
  .landing-header-right { min-width: 0; }
  .landing-copy h1 { font-size: 45px; }
  .landing-lead { max-width: 100%; font-size: 12.5px; }
  .landing-preview { width: 100%; max-width: 100%; }
  .preview-main { overflow: hidden; }
  .landing-stats { gap: 18px 24px; }
  .landing-stats strong { font-size: 25px; }
  .landing-mobile-enter { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
  .landing-mobile-enter button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid rgba(217, 164, 91, 0.35); border-radius: 8px; background: rgba(217, 164, 91, 0.07); color: var(--gold-2); font-size: 10px; }
  .landing-mobile-enter button span { opacity: 0.55; }
  .landing-mobile-enter button:active { background: rgba(217, 164, 91, 0.14); }
  .preview-float { display: none; }
  .preview-main { padding: 20px 20px 16px; }
  .preview-main h2 { font-size: 26px; }
  .landing-main { padding-bottom: 28px; }
  .role-enter { padding: 14px; }
  .topbar { padding: 11px 16px; min-height: 66px; }
  .topbar h1 { font-size: 19px; }
  .topbar-kicker { font-size: 6.5px; }
  .status-pill { display: none; }
  .main { padding: 16px 14px 88px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 8px; }
  .page-intro h2 { font-size: 23px; }
  .welcome-card { flex-direction: column; align-items: stretch; gap: 15px; padding: 19px; }
  .welcome-progress { justify-content: space-between; }
  .welcome-progress-copy { text-align: left; }
  .welcome-copy h2 { font-size: 24px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .script-grid { grid-template-columns: 1fr; }
  .dashboard-grid { gap: 10px; }
  .kpi { padding: 13px; }
  .kpi-value { font-size: 27px; }
  .kpi-grid { gap: 8px; }
  .panel-head { padding: 13px 14px 10px; }
  .panel-body { padding: 0 14px 14px; }
  .today-card { align-items: flex-start; flex-wrap: wrap; }
  .today-card .btn { width: 100%; }
  .result-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-summary { grid-template-columns: 1fr; gap: 12px; }
  .result-big-score { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .result-big-score strong { font-size: 42px; }
  .result-big-score span { display: inline; }
  .result-columns { grid-template-columns: 1fr; }
  .studio-script { padding: 18px 16px 20px; }
  .studio-title { font-size: 23px; }
  .script-paper { padding: 18px; font-size: 17px; line-height: 2; background: #fffaf1; }
  .focus-list { grid-template-columns: 1fr; }
  .studio-booth { padding: 18px 16px; min-height: 430px; }
  .overlay-record-jump { display: inline-flex; height: 32px; padding: 0 11px; font-size: 9.5px; }
  .focus-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .focus-list::-webkit-scrollbar { display: none; }
  .focus-item { flex: 0 0 190px; }
  .result-panel { padding: 17px 16px 20px; }
  .overlay { padding: 0; }
  .overlay-panel { width: 100%; max-height: 100vh; border-radius: 0; border: 0; min-height: 100vh; }
  .overlay-head { padding: 13px 16px; }
  .overlay-head h2 { font-size: 17px; }
  .overlay-head .overlay-record-jump { margin-right: 2px; }
  .review-left, .review-right { padding: 17px 16px; }
  .review-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 17px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .ai-scene-list { grid-template-columns: 1fr; }
  .ai-chat { min-height: 540px; }
  .chat-body { padding: 13px; }
  .bubble { max-width: 86%; }
  .resource-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-privacy { grid-template-columns: 1fr; }
  .landing-preview { width: 100%; }
  .lesson-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .heatmap { min-width: 340px; }
  .data-table { min-width: 580px; }
  .student-toolbar .btn { margin-left: 0; }
  .filter-row, .filters { flex-wrap: wrap; }
  .training-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .training-head > div { width: 100%; }
  .training-head .pill { height: 26px; padding: 0 10px; font-size: 9.5px; }
  .role-guide { padding: 15px; }
  .role-guide-steps { grid-template-columns: 1fr 1fr; }
  .npc-card { padding: 15px; }
  .npc-actions { flex-wrap: wrap; }
  .npc-actions .btn { flex: 1 1 100%; }
  .npc-facts { gap: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .mobile-nav, .page-intro-right, .btn, .panel-link, .result-actions, .toast { display: none !important; }
  .workspace { margin-left: 0; }
  .main { max-width: none; padding: 0; }
  .panel, .kpi, .report-hero, .today-card { box-shadow: none; break-inside: avoid; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .report-hero { border: 0; }
}


/* ---------- Character simulation inner life ---------- */
.simulation-card { margin-top: 14px; padding: 13px 14px; border: 1px solid rgba(185,132,62,.3); border-radius: 9px; background: linear-gradient(135deg, rgba(185,132,62,.08), rgba(255,250,241,.55)); }
.sim-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:8px; }
.sim-head span { color:var(--gold); font-family:var(--mono); font-size:7.5px; letter-spacing:.1em; }
.sim-head em { color:var(--muted-2); font-style:normal; font-size:8px; }
.sim-facts { display:grid; grid-template-columns:1fr 1fr; gap:7px 12px; }
.sim-facts span { display:block; color:var(--muted-2); font-size:7.5px; }
.sim-facts p { color:var(--muted); font-size:8.5px; line-height:1.6; }
.sim-secret { margin-top:8px; padding-top:7px; border-top:1px dashed rgba(185,132,62,.28); color:var(--red); font-size:8.5px; line-height:1.65; }
.sim-secret span { color:var(--gold); font-family:var(--mono); font-size:7px; margin-right:5px; }
.sim-label { display:block; margin-top:9px; color:var(--muted); font-size:8.5px; }
.simulation-card textarea { width:100%; min-height:52px; margin-top:5px; padding:8px 9px; border:1px solid var(--line-strong); border-radius:6px; background:var(--card); color:var(--ink); font-size:10px; line-height:1.6; resize:vertical; outline:0; }
.simulation-card textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(185,132,62,.08); }
.npc-secret { margin-top:8px; padding:7px 9px; border-left:2px solid var(--red); background:rgba(182,75,55,.05); color:var(--muted); font-size:8.5px; line-height:1.65; }
.npc-secret span { display:block; color:var(--red); font-family:var(--mono); font-size:6.5px; letter-spacing:.08em; }
.review-inner { margin-top:10px; padding:10px 12px; border:1px solid rgba(185,132,62,.3); border-radius:8px; background:rgba(185,132,62,.06); }
.review-inner span { color:var(--gold); font-family:var(--mono); font-size:7px; letter-spacing:.08em; }
.review-inner p { margin-top:3px; color:var(--ink-2); font-family:var(--serif); font-size:11px; line-height:1.7; }
@media (max-width:720px){ .sim-facts{grid-template-columns:1fr;} }


/* ---------- 15. 牛郎织女素材库 ---------- */
.material-hero { display:grid; grid-template-columns:1fr 180px; gap:24px; align-items:center; margin-bottom:16px; padding:26px 30px; border-radius:12px; background:linear-gradient(120deg,#1d1b23,#2b2430 60%,#3a2b2a); color:#f4ecdf; box-shadow:0 20px 50px rgba(24,20,18,.16); }
.material-hero-copy .eyebrow { color:var(--gold-2); }
.material-hero h2 { font-family:var(--serif); font-size:31px; font-weight:500; margin:7px 0 8px; letter-spacing:.08em; }
.material-hero p { max-width:700px; color:rgba(244,236,223,.7); font-size:10.5px; line-height:1.9; }
.material-themes { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.material-themes .tag { border-color:rgba(226,185,112,.35); color:rgba(244,236,223,.8); }
.material-hero-mark { display:flex; flex-direction:column; align-items:center; gap:10px; color:var(--gold-2); }
.material-hero-mark span { width:112px; height:112px; display:grid; place-items:center; border:1px solid rgba(226,185,112,.4); border-radius:50%; font-family:var(--serif); font-size:48px; background:radial-gradient(circle,rgba(226,185,112,.12),transparent 70%); }
.material-hero-mark small { text-align:center; color:rgba(244,236,223,.55); font-family:var(--mono); font-size:7px; line-height:1.8; letter-spacing:.08em; }
.material-toolbar { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.material-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.material-card { padding:17px 17px 13px; border:1px solid var(--line); border-radius:10px; background:var(--card); box-shadow:0 8px 22px rgba(60,45,30,.045); display:flex; flex-direction:column; }
.material-card-head { display:flex; gap:11px; align-items:center; }
.material-avatar { width:42px; height:42px; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; color:#fff8ec; font-family:var(--serif); font-size:18px; box-shadow:inset 0 0 0 3px rgba(255,255,255,.18); }
.material-card-head h3 { font-family:var(--serif); font-size:20px; font-weight:500; margin-top:2px; }
.material-card-head p { color:var(--muted-2); font-size:8.5px; margin-top:2px; }
.material-card-head .eyebrow { font-size:6.5px; }
.material-persona { margin:11px 0 9px; color:var(--muted); font-size:9.5px; line-height:1.75; }
.material-facts { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:8px 0; border-top:1px dashed var(--line); border-bottom:1px dashed var(--line); }
.material-facts span, .material-meta span { display:block; color:var(--gold); font-family:var(--mono); font-size:6.5px; letter-spacing:.06em; margin-bottom:2px; }
.material-facts p { color:var(--ink-2); font-size:8.5px; line-height:1.6; }
.material-secret { margin-top:8px; padding:7px 9px; border-left:2px solid var(--red); background:rgba(182,75,55,.045); color:var(--muted); font-size:8.5px; line-height:1.6; }
.material-secret span { display:block; color:var(--red); font-family:var(--mono); font-size:6.5px; margin-bottom:2px; }
.material-meta { margin-top:7px; color:var(--muted); font-size:8px; line-height:1.55; }
.material-line { margin:10px 0 9px; padding:8px 10px; border-radius:6px; background:var(--paper-2); color:var(--ink-2); font-family:var(--serif); font-size:11px; line-height:1.65; }
.material-card-foot { margin-top:auto; padding-top:9px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.material-card-foot .btn { height:26px; padding:0 8px; font-size:7.5px; }
.material-card-foot > div { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.material-story-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; }
.material-timeline { display:flex; flex-direction:column; gap:12px; }
.material-timeline > div { display:grid; grid-template-columns:30px 1fr; gap:9px; }
.material-timeline > div > span { color:var(--gold); font-family:var(--mono); font-size:8px; padding-top:1px; }
.material-timeline strong { display:block; font-family:var(--serif); font-size:12px; }
.material-timeline p { color:var(--muted); font-size:8.5px; line-height:1.6; margin-top:2px; }
.material-relations { display:flex; flex-direction:column; gap:7px; }
.material-relations > div { display:flex; align-items:center; flex-wrap:wrap; gap:5px; padding-bottom:6px; border-bottom:1px dashed var(--line); font-size:8.5px; }
.material-relations strong { color:var(--ink-2); font-weight:600; }
.material-relations span { color:var(--gold); }
.material-relations em { margin-left:auto; color:var(--muted-2); font-style:normal; font-size:7.5px; }
.material-scenes { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.material-scene { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:11px 12px; border:1px solid var(--line); border-radius:8px; background:var(--paper-2); }
.material-scene h4 { font-family:var(--serif); font-size:14px; margin:3px 0 4px; }
.material-scene p { color:var(--muted); font-size:8.5px; line-height:1.6; }
.material-scene .btn { flex:0 0 auto; height:27px; font-size:7.5px; }
@media (max-width:1100px){ .material-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:760px){ .material-hero{grid-template-columns:1fr;padding:20px;} .material-hero-mark{display:none;} .material-grid,.material-story-grid,.material-scenes{grid-template-columns:1fr;} .material-card-foot{align-items:flex-start;flex-direction:column;} .material-card-foot > div{justify-content:flex-start;} }

/* ---------- 16. 综合表达诊断与转写校对 ---------- */
.result-dims--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result-dims--six .result-dim { padding: 8px 9px; }
.result-dims--six .result-dim strong { font-size: 16px; }
.result-dims--six .result-dim small { font-size: 6.5px; line-height: 1.4; }
.result-transcript-input { width: 100%; min-height: 76px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper-2); color: var(--ink); font-size: 10px; line-height: 1.7; resize: vertical; outline: 0; }
.result-transcript-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,132,62,.08); }
.transcript-correct-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.transcript-correct-row span { color: var(--muted-2); font-size: 7.5px; line-height: 1.5; }
@media (max-width:760px){ .result-dims--six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.report-diag { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.report-diag .mini-bars { gap: 8px; }

/* ---------- 17. 每次练习与教师意见 ---------- */
.practice-list { display: flex; flex-direction: column; gap: 10px; }
.practice-card { padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.practice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.practice-head h4 { margin: 3px 0 2px; font-family: var(--serif); font-size: 15px; font-weight: 500; }
.practice-head p { color: var(--muted-2); font-size: 7.5px; }
.practice-score { text-align: right; }
.practice-score strong { display: block; font-family: var(--serif); font-size: 27px; line-height: 1; color: var(--gold); }
.practice-score small { color: var(--muted-2); font-size: 7px; }
.practice-dims { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 10px 0; padding: 7px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.practice-dims > div { text-align: center; }
.practice-dims span { display: block; color: var(--muted-2); font-size: 6.5px; }
.practice-dims strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 14px; color: var(--ink-2); }
.practice-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 9px; }
.practice-columns .eyebrow { display: block; margin-bottom: 4px; }
.practice-columns .feedback-list li { font-size: 8.5px; line-height: 1.65; }
.practice-comment { color: var(--ink-2); font-family: var(--serif); font-size: 10px; line-height: 1.75; }
.practice-final { margin-top: 5px; color: var(--gold); font-size: 8px; }
.practice-detail { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8.5px; line-height: 1.7; }
.practice-detail summary { cursor: pointer; color: var(--gold); font-size: 8px; }
.practice-detail p { margin-top: 6px; }
.practice-inner { color: var(--red); }
@media (max-width: 760px) { .practice-dims { grid-template-columns: repeat(3, minmax(0, 1fr)); } .practice-columns { grid-template-columns: 1fr; } }

.pron-category-bar { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:12px 0 2px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--paper-2); }
.pron-category-bar > span { color:var(--muted-2); font-family:var(--mono); font-size:7px; letter-spacing:.08em; margin-right:4px; }

.role-pick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:12px; max-height:285px; overflow:auto; padding-right:3px; }
.role-pick { display:flex; align-items:center; gap:8px; text-align:left; padding:8px 9px; border:1px solid var(--line); border-radius:7px; background:var(--paper-2); cursor:pointer; }
.role-pick:hover { border-color:var(--gold); background:var(--card); }
.role-pick > span { width:28px; height:28px; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; color:#fff8ec; font-family:var(--serif); font-size:13px; }
.role-pick strong { display:block; font-size:10px; }
.role-pick small { display:block; color:var(--muted-2); font-size:7px; margin-top:1px; }
@media (max-width:760px){ .role-pick-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
/* ---------- 18. Readability pass: larger UI text ---------- */
body { font-size: 16px; line-height: 1.7; }
body p, body li, body label, body td, body th,
body .panel-body, body .script-preview, body .script-text, body .resource-card p,
body .material-persona, body .material-facts p, body .material-meta,
body .material-secret, body .practice-comment, body .practice-detail,
body .review-transcript, body .review-inner p, body .bubble-text,
body .bubble-feedback, body .booth-tips p, body .rubric-note,
body .form-field input, body .form-field textarea, body .form-field select,
body .class-login-lead, body .landing-lead, body .feedback-list li,
body .record-main span, body .table-student span, body .review-row-main span,
body .mini-bar-head span, body .material-meta, body .material-facts span,
body .practice-columns .feedback-list li, body .practice-head p {
  font-size: 13.5px !important;
  line-height: 1.7 !important;
}
body .eyebrow, body .tag, body .script-meta, body .script-foot,
body .resource-meta, body .resource-foot, body .review-meta,
body .record-main span, body .review-row-main span, body .table-student span,
body .material-facts span, body .practice-head p, body .mini-bar-head span,
body .chat-tools, body .material-meta span, body .result-dim span,
body .result-dim small, body .stat-label, body .kpi-label, body .kpi-foot {
  font-size: 12px !important;
  line-height: 1.55 !important;
}
body .pill, body .btn, body .side-nav a, body .mobile-nav a,
body .panel-link, body .text-btn, body .tab, body .module-card span,
body .role-pick small, body .role-pick strong {
  font-size: 13px !important;
}
body .btn-sm, body .side-link, body .chat-tools, body .role-pick small {
  font-size: 12px !important;
}
body .side-nav a { min-height: 44px; }
body .side-role-copy strong { font-size: 16px !important; }
body .side-role-copy span { font-size: 11.5px !important; }
body .topbar-title, body .page-intro h1 { font-size: 17px !important; }
body .panel-head h3 { font-size: 17px !important; }
body .panel-head p { font-size: 12px !important; }
body .welcome-copy h2 { font-size: 29px !important; }
body .welcome-copy p { font-size: 14px !important; }
body .landing-lead { font-size: 14px !important; }
body .class-login-lead { font-size: 14px !important; }
body .material-card-head h3 { font-size: 21px !important; }
body .material-hero h2 { font-size: 36px !important; }
body .material-hero p { font-size: 13.5px !important; }
body .material-card-foot .btn { font-size: 12px !important; }
body .material-card-foot .tag { font-size: 11px !important; }
body .result-dims--six .result-dim small { font-size: 10.5px !important; }
body .result-dims--six .result-dim strong { font-size: 18px !important; }
body .practice-dims span { font-size: 10px !important; }
body .practice-dims strong { font-size: 17px !important; }
body .kpi-value { font-size: 34px !important; }
body .kpi-value small { font-size: 13px !important; }
body .record-score { font-size: 18px !important; }
body .review-row-score { font-size: 20px !important; }
body .script-card h3 { font-size: 17px !important; }
body .script-card .script-preview { font-size: 13px !important; }
body .module-card strong { font-size: 16px !important; }
body .module-card small { font-size: 11px !important; }
body .module-card em { font-size: 11px !important; }
body .chat-composer textarea, body #chat-input { font-size: 15px !important; }
body .chat-composer button { font-size: 13px !important; }
body .bubble-name { font-size: 11px !important; }
body .bubble-text { font-size: 14px !important; }
body .bubble-feedback { font-size: 12px !important; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  body p, body li, body label, body td, body th,
  body .panel-body, body .script-preview, body .material-persona,
  body .material-facts p, body .practice-comment, body .bubble-text,
  body .form-field input, body .form-field textarea, body .form-field select,
  body .class-login-lead, body .landing-lead, body .feedback-list li {
    font-size: 13px !important;
  }
  body .pill, body .btn, body .side-nav a, body .mobile-nav a { font-size: 12.5px !important; }
  body .side-nav a { min-height: 42px; }
  body .welcome-copy h2 { font-size: 25px !important; }
}
