:root {
  --bg: #06110e;
  --ink: #effff8;
  --muted: #91aaa1;
  --line: rgba(204, 255, 235, 0.14);
  --mint: #77ffd0;
  --cyan: #79dfff;
  --violet: #9e8cff;
  --danger: #ff8b91;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
}
body {
  min-height: 100vh;
  background: radial-gradient(
    circle at 50% 45%,
    #123126 0,
    #081713 42%,
    #030a08 100%
  );
}
button,
input {
  font: inherit;
}
.hidden {
  display: none !important;
}
.error {
  min-height: 22px;
  color: var(--danger);
  font-size: 14px;
}
.kicker {
  color: var(--mint);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.login-view {
  width: min(520px, calc(100% - 40px));
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.login-panel .mini-orb {
  width: 72px;
  height: 72px;
  margin: 0 0 24px;
}
.login-panel h1 {
  margin: 8px 0 12px;
  font-size: 30px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.login-brand > span,
.voice-brand > span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(119, 255, 208, 0.4);
  border-radius: 50%;
  background: rgba(119, 255, 208, 0.08);
  color: var(--mint);
  font-family: serif;
}
.login-brand > span {
  width: 76px;
  height: 76px;
  font-size: 38px;
}
.login-brand small {
  color: var(--muted);
  font-size: 15px;
}
.login-brand h1 {
  font-size: 42px;
  margin: 7px 0;
}
.login-panel {
  padding: 40px;
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(16, 38, 31, 0.92),
    rgba(7, 21, 17, 0.96)
  );
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}
.login-panel h2 {
  font-size: 29px;
  margin: 8px 0;
}
.login-panel > p:not(.kicker):not(.error) {
  color: var(--muted);
  line-height: 1.7;
}
.login-panel label {
  display: block;
  margin-top: 22px;
  font-weight: 650;
}
.login-panel input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  outline: 0;
}
.login-panel input:focus {
  border-color: rgba(119, 255, 208, 0.65);
  box-shadow: 0 0 0 3px rgba(119, 255, 208, 0.08);
}
.login-panel button,
.enter-button {
  width: 100%;
  margin-top: 26px;
  padding: 15px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(110deg, #a4ffe0, #72dfc0);
  color: #062018;
  font-weight: 800;
  cursor: pointer;
}
.permission-view {
  width: min(640px, calc(100% - 28px));
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.home-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}
.home-header h2 {
  margin-left: 0;
}
.ghost-button.compact {
  width: auto;
  margin: 9px 0 0;
  padding: 8px 4px 8px 16px;
}
.student-profile {
  width: 100%;
  margin: 0 0 18px;
  text-align: left;
}
.module-heading {
  width: 100%;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
}
.module-heading span {
  color: var(--muted);
  font-size: 13px;
}
.module-grid {
  width: 100%;
  margin: 14px 0 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.module-card {
  min-height: 104px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.module-card span,
.module-card b,
.module-card small {
  display: block;
}
.module-card span {
  color: var(--mint);
  font-size: 12px;
}
.module-card b {
  margin: 5px 0 8px;
  font-size: 16px;
}
.module-card small {
  color: var(--muted);
}
.module-card.selected {
  border-color: rgba(119, 255, 208, 0.65);
  background: rgba(119, 255, 208, 0.09);
  box-shadow: 0 0 0 2px rgba(119, 255, 208, 0.08);
}
.module-card.disabled {
  opacity: 0.46;
  cursor: not-allowed;
}
.module-card.locked {
  cursor: pointer;
}
.selected-module-summary {
  width: 100%;
  min-height: 22px;
  margin: 4px 0 0 !important;
  font-size: 13px;
  text-align: left;
}
.permission-view h2 {
  font-size: 34px;
  margin: 8px;
}
.permission-view > p:not(.kicker):not(.error) {
  color: var(--muted);
  line-height: 1.7;
}
.ghost-button {
  padding: 13px 20px;
  margin-top: 14px;
  background: transparent;
  color: var(--muted);
  border: 0;
  cursor: pointer;
}
.secondary-button {
  width: 100%;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(119, 255, 208, 0.28);
  border-radius: 13px;
  background: rgba(119, 255, 208, 0.06);
  color: var(--mint);
  font-weight: 750;
  cursor: pointer;
}
.resume-summary {
  width: 100%;
  margin: 12px 0 -10px !important;
  padding: 12px 15px;
  border: 1px solid rgba(119, 255, 208, 0.18);
  border-radius: 12px;
  background: rgba(119, 255, 208, 0.055);
  color: #bfeede !important;
  font-size: 14px;
}
.mini-orb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 30px;
  background: radial-gradient(
    circle at 35% 30%,
    #e6fff7 0,
    #72eac7 18%,
    #176f5c 52%,
    #071511 75%
  );
  box-shadow: 0 0 50px rgba(119, 255, 208, 0.3);
  animation: breathe 3s ease-in-out infinite;
}
.voice-view {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  position: relative;
}
.voice-view:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(86, 255, 194, 0.08),
      transparent 42%
    ),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size:
    auto,
    48px 48px,
    48px 48px;
}
.voice-header {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 34px;
  position: relative;
  z-index: 5;
}
.voice-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.voice-brand > span {
  width: 34px;
  height: 34px;
}
.round-info {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.mode-label {
  padding: 4px 9px;
  border: 1px solid rgba(119, 255, 208, 0.22);
  border-radius: 999px;
  color: var(--mint);
  line-height: 1;
}
.timer-label {
  min-width: 52px;
  color: #d8fff1;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}
.timer-label.urgent {
  color: #ff9ba0;
}
.assessment-session .mode-label {
  border-color: rgba(255, 204, 112, 0.42);
  background: rgba(255, 204, 112, 0.08);
  color: #ffd58a;
}
.assessment-session::before {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 190, 92, 0.08), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.icon-button {
  justify-self: end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 25px;
  cursor: pointer;
}
.voice-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 15px 20px 5px;
}
.orb-wrap {
  width: min(42vw, 350px);
  height: min(42vw, 350px);
  min-width: 250px;
  min-height: 250px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 45px;
}
.voice-orb {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s,
    filter 0.5s;
  background: radial-gradient(
    circle at 38% 30%,
    #ecfff9 0,
    #8affd7 12%,
    #35ba99 34%,
    #0a5948 60%,
    #04251e 78%
  );
  box-shadow:
    inset -25px -30px 50px rgba(0, 0, 0, 0.36),
    inset 18px 15px 42px rgba(255, 255, 255, 0.18),
    0 0 55px rgba(65, 255, 194, 0.28),
    0 0 120px rgba(53, 188, 153, 0.16);
  animation: breathe 3.3s ease-in-out infinite;
}
.orb-core {
  position: absolute;
  inset: 18%;
  border-radius: 45% 55% 52% 48%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(224, 255, 247, 0.8),
    rgba(100, 255, 211, 0.08) 55%,
    transparent 70%
  );
  filter: blur(5px);
  animation: morph 5s ease-in-out infinite;
}
.orb-shine {
  position: absolute;
  width: 35%;
  height: 18%;
  left: 22%;
  top: 15%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(14px);
  transform: rotate(-20deg);
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(119, 255, 208, 0.18);
  opacity: 0.4;
}
.orbit-a {
  inset: 3%;
  animation: ring 3.6s ease-out infinite;
}
.orbit-b {
  inset: 12%;
  animation: ring 3.6s 1.2s ease-out infinite;
}
.state-speaking .voice-orb {
  animation: speak 0.8s ease-in-out infinite;
  box-shadow:
    0 0 70px rgba(121, 223, 255, 0.42),
    0 0 150px rgba(119, 255, 208, 0.22);
}
.state-speaking .orbit {
  border-color: rgba(121, 223, 255, 0.45);
  animation-duration: 1.6s;
}
.state-listening .voice-orb {
  background: radial-gradient(
    circle at 38% 30%,
    #fff 0,
    #a9e7ff 12%,
    #678bff 36%,
    #5945bb 64%,
    #171338 82%
  );
  box-shadow:
    0 0 70px rgba(158, 140, 255, 0.4),
    0 0 150px rgba(89, 69, 187, 0.22);
  animation: listen 1.4s ease-in-out infinite;
}
.state-listening .orbit {
  border-color: rgba(158, 140, 255, 0.5);
  animation-duration: 2s;
}
.orb-wrap.long-pause .voice-orb {
  background: radial-gradient(
    circle at 38% 30%,
    #fff5f5 0,
    #ffb0b5 13%,
    #d74f5a 38%,
    #76232b 66%,
    #25080c 84%
  );
  box-shadow:
    0 0 72px rgba(255, 100, 111, 0.42),
    0 0 155px rgba(170, 43, 53, 0.24);
}
.orb-wrap.long-pause .orbit {
  border-color: rgba(255, 139, 145, 0.56);
}
.state-thinking .voice-orb {
  filter: hue-rotate(25deg);
  animation: think 1.8s linear infinite;
}
.state-transition .voice-orb {
  animation: answerSaved 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: saturate(0.88) brightness(1.08);
}
.state-transition .orbit {
  animation: transitionRing 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.state-transition + .state-label,
.state-transition ~ .caption {
  animation: captionEase 0.68s ease both;
}
.state-paused .voice-orb {
  filter: grayscale(0.8);
  opacity: 0.6;
  animation: none;
}
.state-label {
  color: var(--mint);
  font-size: 14px;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}
.caption {
  max-width: 760px;
  text-align: center;
  font-size: clamp(23px, 3vw, 35px);
  font-weight: 650;
  line-height: 1.55;
  margin: 0;
  min-height: 54px;
}
.transcript {
  max-width: 680px;
  text-align: center;
  color: var(--muted);
  min-height: 26px;
  margin: 13px 0 0;
  line-height: 1.6;
}
.pause-warning {
  margin: 10px 0 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 139, 145, 0.32);
  border-radius: 999px;
  background: rgba(112, 25, 32, 0.26);
  color: #ffc5c8;
  font-size: 13px;
}
.voice-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 4;
}
.control-button {
  min-width: 112px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
}
.control-button span {
  margin-right: 7px;
}
.control-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.primary-control:not(:disabled) {
  border-color: rgba(158, 140, 255, 0.45);
  color: #e5e0ff;
  background: rgba(158, 140, 255, 0.09);
}
.auto-hint {
  text-align: center;
  color: #587069;
  font-size: 12px;
  margin: 16px 0 26px;
  position: relative;
  z-index: 3;
}
.wake-hint {
  max-width: 520px;
  margin: -14px auto 18px;
  padding: 8px 14px;
  color: #ffd374;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  position: relative;
  z-index: 3;
}
.test-answer-button {
  margin: -12px auto 22px;
  border: 0;
  background: transparent;
  color: #90bcae;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  position: relative;
  z-index: 4;
}
.test-answer-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.test-answer-panel {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 12;
  width: min(620px, calc(100% - 24px));
  max-height: min(68vh, 620px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(119, 255, 208, 0.3);
  border-radius: 18px;
  background: rgba(5, 22, 17, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}
.test-answer-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.test-answer-heading small,
.test-answer-heading b {
  display: block;
}
.test-answer-heading small,
.test-answer-panel > div > small {
  color: #ffd374;
}
.test-answer-heading b {
  margin-top: 5px;
  font-size: 20px;
}
.test-answer-heading button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}
#answer-reference {
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--ink);
}
#answer-points {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(119, 255, 208, 0.06);
  color: var(--muted);
  line-height: 1.65;
}
#answer-points ol {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.voice-error {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 10;
  width: min(440px, calc(100% - 30px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 139, 145, 0.3);
  border-radius: 14px;
  background: rgba(39, 13, 15, 0.94);
  text-align: center;
}
.voice-error p {
  margin: 0 0 10px;
  color: #ffd4d6;
}
.voice-error button {
  border: 0;
  background: #ffd4d6;
  color: #351214;
  padding: 9px 15px;
  border-radius: 8px;
  cursor: pointer;
}
.history-view,
.report-view {
  width: min(820px, calc(100% - 34px));
  margin: auto;
  padding: 60px 0;
}
.history-view h1 {
  font-size: 40px;
}
.back-button {
  border: 0;
  background: transparent;
  color: var(--mint);
  padding: 0;
  margin-bottom: 35px;
  cursor: pointer;
}
.history-card,
.report-card {
  padding: 25px;
  margin: 17px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}
.assessment-card,
.assessment-level-card {
  border-color: rgba(255, 204, 112, 0.28);
  background: rgba(255, 204, 112, 0.045);
}
.assessment-level-mini {
  display: inline-block;
  margin-top: 4px;
  color: #ffd58a;
  font-size: 12px;
}
.assessment-level-card {
  text-align: center !important;
}
.assessment-level-card small,
.assessment-level-card strong {
  display: block;
}
.assessment-level-card small,
.assessment-level-card p {
  color: var(--muted);
}
.assessment-level-card strong {
  margin: 8px 0;
  color: #ffd58a;
  font-size: 30px;
}
.history-report-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.history-report-button .history-card {
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}
.history-report-button:active .history-card {
  transform: scale(0.985);
  border-color: rgba(119, 255, 208, 0.35);
  background: rgba(119, 255, 208, 0.055);
}
.history-report-button .open-report-hint {
  display: block;
  margin-top: 12px;
  color: var(--mint);
  font-size: 12px;
}
.counts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.counts span {
  padding: 7px 11px;
  border-radius: 99px;
}
.result-complete {
  background: rgba(119, 255, 208, 0.12);
  color: var(--mint);
}
.result-partial {
  background: rgba(125, 198, 255, 0.12);
  color: #a7d9ff;
}
.result-incorrect {
  background: rgba(255, 255, 255, 0.07);
  color: #d5ddd9;
}
.report-view {
  text-align: center;
}
.report-view h1 {
  font-size: 42px;
}
.report-view .report-card {
  text-align: left;
}
.report-view button {
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--mint);
  color: #062018;
  font-weight: 750;
  cursor: pointer;
}
.round-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.round-score h2 {
  margin: 3px 0;
  font-size: 32px;
}
.score-ring {
  width: 116px;
  height: 116px;
  margin: 22px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(119, 255, 208, 0.38);
  background: radial-gradient(
    circle,
    rgba(119, 255, 208, 0.16),
    rgba(119, 255, 208, 0.025)
  );
  box-shadow: 0 0 45px rgba(119, 255, 208, 0.12);
}
.score-ring b {
  font-size: 38px;
  color: var(--mint);
}
.score-ring span,
.report-notice,
.feedback-list small {
  color: var(--muted);
  font-size: 12px;
}
.score-ring.assessment-score {
  border-color: rgba(255, 204, 112, 0.44);
  background: radial-gradient(circle, rgba(255, 204, 112, 0.15), rgba(255, 204, 112, 0.02));
  box-shadow: 0 0 45px rgba(255, 204, 112, 0.1);
}
.score-ring.assessment-score b,
.assessment-trend > b {
  color: #ffd58a;
}
.assessment-trend .trend-track i {
  background: linear-gradient(#ffd58a, #9d6823);
}
.feedback-list {
  padding-left: 23px;
  line-height: 1.7;
}
.feedback-list li {
  padding: 8px 0;
}
.feedback-list p {
  margin: 4px 0;
}
.trend-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  text-align: left;
}
.trend-heading h2 {
  margin: 4px 0;
}
.trend-heading > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
}
.trend-chart {
  height: 250px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.trend-item {
  height: 100%;
  min-width: 58px;
  display: grid;
  grid-template-rows: 22px 1fr 26px 20px;
  justify-items: center;
  gap: 5px;
}
.trend-item > b {
  color: var(--mint);
}
.trend-track {
  width: 30px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.trend-track i {
  display: block;
  width: 100%;
  min-height: 3px;
  background: linear-gradient(#8affd7, #1d866e);
  border-radius: 8px 8px 0 0;
}
.trend-item > span {
  font-size: 12px;
  color: var(--muted);
}
.trend-item > small {
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
}
.trend-wait {
  text-align: left;
  color: var(--muted);
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(0.97);
  }
  50% {
    transform: scale(1.035);
  }
}
@keyframes speak {
  0%,
  100% {
    transform: scale(0.96) rotate(-1deg);
  }
  45% {
    transform: scale(1.06) rotate(1deg);
  }
  70% {
    transform: scale(1.01);
  }
}
@keyframes listen {
  0%,
  100% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.045);
  }
}
@keyframes think {
  to {
    transform: rotate(360deg);
  }
}
@keyframes answerSaved {
  0% {
    transform: scale(1.02);
  }
  48% {
    transform: scale(0.88);
    box-shadow:
      0 0 38px rgba(119, 255, 208, 0.22),
      0 0 80px rgba(53, 188, 153, 0.1);
  }
  100% {
    transform: scale(0.98);
  }
}
@keyframes transitionRing {
  0% {
    transform: scale(1.06);
    opacity: 0.45;
  }
  100% {
    transform: scale(0.82);
    opacity: 0;
  }
}
@keyframes captionEase {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  48% {
    opacity: 0.58;
    transform: translateY(4px);
  }
}
@keyframes morph {
  0%,
  100% {
    border-radius: 45% 55% 52% 48%;
    transform: rotate(0);
  }
  50% {
    border-radius: 58% 42% 46% 54%;
    transform: rotate(180deg);
  }
}
@keyframes ring {
  0% {
    transform: scale(0.75);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}
@media (max-width: 760px) {
  .login-view {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }
  .login-brand {
    justify-content: center;
  }
  .login-brand h1 {
    font-size: 30px;
  }
  .login-brand > span {
    width: 58px;
    height: 58px;
    font-size: 29px;
  }
  .login-panel {
    padding: 27px;
  }
  .permission-view {
    justify-content: flex-start;
    padding: 28px 0 42px;
  }
  .permission-view h2 {
    font-size: 27px;
  }
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
  .module-card {
    min-height: 96px;
    padding: 12px;
  }
  .module-card b {
    font-size: 14px;
  }
  .voice-header {
    height: 66px;
    padding: 0 16px;
    grid-template-columns: 1fr auto;
  }
  .round-info {
    grid-row: 2;
    grid-column: 1/3;
    justify-content: center;
    margin-top: -10px;
  }
  .icon-button {
    grid-column: 2;
    grid-row: 1;
  }
  .voice-stage {
    padding-top: 35px;
  }
  .orb-wrap {
    min-width: 235px;
    min-height: 235px;
    margin-bottom: 28px;
  }
  .caption {
    font-size: 22px;
  }
  .voice-controls {
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 12px;
  }
  .control-button {
    min-width: 88px;
    padding: 11px 12px;
    font-size: 13px;
  }
  .auto-hint {
    margin-bottom: 18px;
  }
  .round-score,
  .trend-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .trend-heading {
    gap: 4px;
  }
  .history-view,
  .report-view {
    padding-top: 35px;
  }
  .report-view h1 {
    font-size: 34px;
  }
}

/* Compact home: keep all ten modules and the next action in the first viewport.
   Content may still grow for accessibility text sizes; never clip controls. */
.permission-view {
  min-height: 100svh;
  padding: 18px 0;
  justify-content: center;
}
.permission-view .home-header { align-items: center; }
.permission-view .kicker { margin: 0 0 4px; font-size: 11px; }
.permission-view h2 { margin: 0; font-size: 25px; line-height: 1.3; }
.permission-view .student-profile {
  margin: 5px 0 12px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.permission-view .compact { margin: 0; min-height: 44px; }
.permission-view .module-heading { margin: 0; align-items: center; font-size: 14px; }
.permission-view .module-heading span { font-size: 12px; white-space: nowrap; }
.permission-view .module-grid { margin: 10px 0 0; gap: 8px; }
.permission-view .module-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 4px;
  min-height: 70px;
  padding: 10px 12px;
  border-radius: 12px;
}
.permission-view .module-card span,
.permission-view .module-card small { font-size: 11px; line-height: 1.3; }
.permission-view .module-card small { text-align: right; }
.permission-view .module-card b {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}
.permission-view .module-card.selected { border-width: 2px; padding: 9px 11px; }
.home-actions {
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 10px;
  padding: 8px 0 max(6px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(6,17,14,.96), #06110e 30%);
}
.home-actions .selected-module-summary {
  margin: 0 0 7px !important;
  min-height: 0;
  color: var(--mint);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.home-actions .enter-button { margin: 0; min-height: 48px; padding: 12px; }
.home-records { display: flex; gap: 10px; margin-top: 8px; }
.home-records .secondary-button { flex: 1; margin: 0; min-height: 44px; padding: 9px; font-size: 14px; }
.home-actions .error { margin: 0 0 8px; line-height: 1.4; }
.home-actions .error:empty { display: none; }
.permission-view .resume-summary { margin: 0 0 8px !important; padding: 6px 9px; font-size: 12px; line-height: 1.4; }
.permission-view button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
@media (max-width: 760px) {
  .permission-view { padding: 10px 0 0; justify-content: flex-start; }
  .permission-view h2 { font-size: 23px; }
  .permission-view .student-profile { margin-bottom: 10px; font-size: 12px; }
  .permission-view .module-grid { gap: 6px; margin-top: 8px; }
  .permission-view .module-card { min-height: 60px; padding: 8px 10px; gap: 3px; }
  .permission-view .module-card.selected { padding: 7px 9px; }
  .permission-view .module-card b { font-size: 14px; }
  .home-actions { margin-top: 6px; }
}
@media (max-width: 760px) and (max-height: 640px) {
  .permission-view { padding-top: 6px; }
  .permission-view .kicker { display: none; }
  .permission-view h2 { font-size: 21px; }
  .permission-view .student-profile { margin-top: 0; margin-bottom: 8px; }
  .permission-view .module-card { min-height: 54px; padding: 6px 8px; }
  .permission-view .module-card.selected { padding: 5px 7px; }
  .home-actions { padding-top: 4px; }
}
