:root {
  --bg: #f7f8fc;
  --surface: #fff;
  --ink: #282a40;
  --ink-2: #5c5f74;
  --muted: #777a8d;
  --primary: #6954c7;
  --primary-d: #5540ad;
  --primary-t: #f0edfa;
  --line: #ececf3;
  --line-2: #dcdce8;
  --good: #28785c;
  --warn: #a15f16;
  --bad: #bc3b4d;
  --font: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 86px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button,
a {
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #a693ea;
  outline-offset: 4px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
svg use {
  pointer-events: none;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.45;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
  line-height: 1.5;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
.hidden,
[hidden] {
  display: none !important;
}
.onboarding-screen {
  min-height: 100dvh;
  background: #fbfaff;
  color: var(--ink);
}
.onboarding-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 6vw, 92px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.onboarding-header .brand {
  color: var(--ink);
}
.onboarding-shell {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100dvh - 78px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 8vw, 100px);
  align-items: center;
  margin: auto;
  padding: 60px 0;
}
.onboarding-story {
  padding: 10px 0;
}
.onboarding-story h1 {
  color: var(--primary-d);
  font-size: clamp(31px, 4vw, 47px);
  line-height: 1.35;
  margin: 15px 0;
}
#onboarding-title:focus {
  outline: none;
}
.onboarding-story > p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2;
}
.onboarding-steps {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 52px 0 35px;
}
.onboarding-steps li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  opacity: 0.75;
}
.onboarding-steps li > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0edf7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.onboarding-steps li.active,
.onboarding-steps li.done {
  color: var(--ink);
  opacity: 1;
}
.onboarding-steps li.active > span {
  color: #fff;
  background: var(--primary);
}
.onboarding-steps li.done > span {
  color: var(--good);
  background: #e5f4eb;
}
.onboarding-steps b,
.onboarding-steps small {
  display: block;
}
.onboarding-steps b {
  font-size: 13px;
}
.onboarding-steps small {
  margin-top: 2px;
  font-size: 11px;
}
.onboarding-private {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted) !important;
  font-size: 11px !important;
}
.onboarding-private svg {
  width: 16px;
  height: 16px;
  color: var(--good);
}
.onboarding-card {
  padding: clamp(26px, 4vw, 46px);
  max-width: 560px;
  width: 100%;
  margin-left: auto;
}
.onboarding-card h2 {
  font-size: 25px;
  margin: 20px 0 7px;
}
.onboarding-card > form,
.onboarding-card > div {
  min-width: 0;
}
.onboarding-card .field {
  margin-top: 22px;
}
.required-mark {
  color: var(--bad);
}
.optional-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.candidate-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.onboarding-card .candidate-form-grid {
  margin-top: 2px;
}
.onboarding-card textarea {
  min-height: 76px;
}
.onboarding-card .btn-block {
  margin-top: 23px;
}
.resume-upload-zone {
  width: 100%;
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  margin-top: 27px;
  padding: 22px;
  color: var(--primary-d);
  background: #faf8ff;
  border: 1px dashed #b9a9e8;
  border-radius: 14px;
}
.resume-upload-zone:hover {
  background: var(--primary-t);
  border-color: var(--primary);
}
.resume-upload-zone svg {
  width: 28px;
  height: 28px;
}
.resume-upload-zone strong {
  font-size: 14px;
}
.resume-upload-zone span {
  color: var(--muted);
  font-size: 11px;
}
.resume-privacy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.onboarding-actions .btn {
  white-space: normal;
}
.onboarding-actions .btn-primary {
  margin-top: 0;
}
.target-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 18px;
  margin: -4px 0 22px;
  background: #fbf9ff;
  border: 1px solid #ebe6f8;
  border-radius: 12px;
}
.target-summary span,
.target-summary p {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.target-summary strong {
  display: block;
  color: var(--primary-d);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.target-summary p {
  margin-top: 2px;
}
.candidate-profile-card {
  margin-top: 24px;
  padding: 30px;
}
.candidate-profile-card .section-heading {
  align-items: flex-start;
}
.candidate-profile-card form {
  margin-top: 22px;
}
.candidate-profile-card .field {
  margin-top: 0;
}
.candidate-profile-card form > .field {
  margin-top: 15px;
}
.candidate-resume-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.candidate-resume-section .section-heading {
  margin-bottom: 14px;
}
.candidate-resume-section h3 {
  font-size: 15px;
}
.resume-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px;
  background: #fbfaff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.resume-summary > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.resume-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resume-summary p,
.resume-empty {
  color: var(--muted);
  font-size: 11px;
}
.resume-actions {
  display: flex;
  gap: 11px;
  align-items: center;
}
.resume-text {
  max-height: 55vh;
  overflow: auto;
  padding: 15px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #fbfaff;
  border-radius: 9px;
  color: var(--ink-2);
  font: 12px/1.8 var(--font);
}
.resume-preview-note {
  color: var(--muted);
  font-size: 12px;
}
.screen,
.pane {
  display: none;
}
.screen.active,
.pane.active {
  display: block;
}
.hint,
.foot-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.lede {
  color: var(--muted);
  line-height: 1.8;
}
.center {
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: var(--primary);
  color: white;
  z-index: 200;
}
.skip-link:focus {
  top: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-t);
  color: var(--primary);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.tag.neutral {
  background: #f3f4f8;
  color: var(--muted);
}
.tag.success {
  color: var(--good);
  background: #eaf6ef;
}
.tag.warning {
  color: var(--warn);
  background: #fff4df;
}
.tag.error {
  color: var(--bad);
  background: #fff0f2;
}
.count-label {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 7px #6954c718;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-d);
}
.btn-soft {
  color: var(--primary);
  background: var(--primary-t);
}
.btn-soft:hover:not(:disabled) {
  background: #e7e1f7;
}
.btn-ghost {
  color: var(--ink-2);
  background: white;
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: #fafafd;
}
.btn-danger {
  background: var(--bad);
  color: white;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 8px 14px;
}
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--primary);
  font-size: 12px;
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 36px;
  white-space: nowrap;
}
.btn-text:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-text svg {
  width: 14px;
  height: 14px;
}
.icon-btn,
.btn-back {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--muted);
}
.icon-btn {
  border: 0;
  background: transparent;
}
.icon-btn:hover,
.btn-back:hover {
  background: var(--primary-t);
  color: var(--primary);
}
input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
input::placeholder,
textarea::placeholder {
  color: #9293a3;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px #6954c722;
}
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
textarea {
  resize: vertical;
  line-height: 1.9;
}
.field {
  display: block;
  margin-bottom: 20px;
}
.field > span:first-child {
  display: block;
  margin-bottom: 8px;
  font-weight: 550;
  font-size: 13px;
}
.field-error {
  font-size: 12px;
  line-height: 1.8;
  color: var(--bad);
  margin: 10px 0;
  white-space: pre-line;
}
.field-error:empty {
  display: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  font-size: 21px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  border-radius: 11px;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 10px #6954c718;
}
.brand-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.1px;
  color: var(--muted);
  font-weight: 550;
  line-height: 1.5;
  margin-top: 1px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: #eae4fa;
  color: var(--primary);
  border: 3px solid #f7f5fe;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}
.avatar.large {
  width: 76px;
  height: 76px;
  font-size: 28px;
  border-width: 5px;
}
/* Welcome */
.auth-screen {
  display: none;
  min-height: 100dvh;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-screen.active {
  display: grid;
}
.auth-story {
  background: #f0ecf9;
  padding: 40px 9%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-pitch {
  margin: auto 0;
  max-width: 530px;
  padding: 56px 0 32px;
}
.auth-pitch .eyebrow {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 2px;
}
.auth-pitch h1 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.6;
  letter-spacing: -1px;
  margin: 18px 0;
  color: #30264f;
}
.auth-pitch > p {
  font-size: 15px;
  color: #746b8e;
  line-height: 2;
}
.auth-art {
  display: block;
  width: 100%;
  height: 260px;
  max-width: 400px;
  margin: 20px auto;
  stroke: none;
}
.auth-features {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6f6388;
}
.auth-features span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.auth-features svg {
  width: 15px;
  height: 15px;
}
.auth-foot {
  font-size: 11px;
  color: #847897;
}
.auth-form-wrap {
  padding: 40px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.auth-form {
  width: 100%;
  max-width: 370px;
}
.auth-form h2 {
  font-size: 30px;
  margin: 22px 0 6px;
  letter-spacing: -0.6px;
}
.auth-form .lede {
  font-size: 13px;
}
.tabs {
  display: flex;
  background: #f5f5f9;
  border-radius: 9px;
  padding: 4px;
  margin: 32px 0 26px;
  gap: 4px;
}
.tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 6px;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
}
.tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 4px #2020300b;
  font-weight: 650;
}
.password-field {
  display: flex;
  position: relative;
}
.password-field input {
  padding-right: 65px;
}
.password-field button {
  position: absolute;
  right: 8px;
  top: 4px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  padding: 0 8px;
}
.auth-form .btn-block {
  margin-top: 8px;
  min-height: 48px;
}
.auth-form .foot-note {
  text-align: center;
  margin-top: 18px;
}
.auth-terms {
  font-size: 11px;
  color: var(--muted);
  margin-top: 40px;
  text-align: center;
}
.auth-terms .btn-text {
  font-size: 11px;
}
.auth-bottom {
  position: absolute;
  bottom: 30px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.5px;
}
/* Workspace */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: white;
  border-right: 1px solid var(--line);
  z-index: 30;
  padding: 31px 20px 18px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin: 0 9px 45px;
  font-size: 20px;
}
.sidebar .brand-icon {
  width: 37px;
  height: 37px;
}
.nav-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.3px;
  padding: 0 16px;
  margin-bottom: 13px;
}
.nav-item {
  border: 0;
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 47px;
  border-radius: 9px;
  margin-bottom: 7px;
  padding: 0 16px;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  color: #818397;
}
.nav-item:hover {
  background: #fafafd;
}
.nav-item.active {
  background: var(--primary-t);
  color: var(--primary);
  font-weight: 600;
}
.nav-item.active svg {
  color: var(--primary);
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 48px;
}
.credit-card {
  padding: 19px 15px;
  background: #f8f6fd;
  border: 1px solid #eee8f8;
  border-radius: 11px;
}
.credit-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #e4dcf6;
  background: white;
  color: var(--primary);
  border-radius: 8px;
  margin-bottom: 12px;
}
.credit-icon svg {
  width: 17px;
  height: 17px;
}
.credit-card > b {
  font-size: 12px;
}
.credit-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 13px;
}
.credit-card strong {
  color: var(--primary);
}
.credit-card .btn {
  font-size: 11px;
  padding: 7px;
  min-height: 36px;
  background: #ece6fa;
}
.credit-card .btn svg {
  width: 14px;
}
.sidebar-help {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 18px 12px 7px;
  font-size: 12px;
}
.sidebar-help svg {
  width: 16px;
}
.sidebar-caption {
  font-size: 10px;
  color: var(--muted);
  padding: 8px 12px;
}
.workspace-main {
  margin-left: 232px;
}
.topbar {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  background: #ffffffeb;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.breadcrumb {
  display: flex;
  gap: 13px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb span {
  color: #b9b8c5;
}
.breadcrumb b {
  font-weight: 500;
  color: var(--ink-2);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.today {
  color: var(--muted);
  font-size: 11px;
}
.topbar .icon-btn {
  width: 32px;
  height: 32px;
}
.topbar .icon-btn svg {
  width: 18px;
  height: 18px;
}
.user-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  font-size: 12px;
  padding: 0;
  min-height: 44px;
}
.user-button > svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
main {
  padding: 30px 38px 0;
  max-width: 1536px;
  margin: auto;
  min-height: calc(100dvh - 78px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading .eyebrow {
  margin-bottom: 6px;
  font-size: 9px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.8;
}
.greeting-dot {
  color: var(--primary);
  padding-left: 3px;
}
.quiet-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: white;
  font-size: 10px;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 30px;
  white-space: nowrap;
}
.quiet-badge > span {
  width: 5px;
  height: 5px;
  background: #75a78d;
  border-radius: 50%;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px;
  box-shadow: 0 4px 24px #23214303;
  margin-bottom: 22px;
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-heading h2 svg {
  vertical-align: middle;
  color: var(--primary);
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.section-heading .btn-text {
  margin: -7px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.stat-icon {
  width: 41px;
  height: 41px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 21px;
  height: 21px;
}
.lavender {
  background: #f0ebfc;
  color: #8b71ce;
}
.peach {
  background: #fcf0e9;
  color: #c08c62;
}
.mint {
  background: #eaf5ee;
  color: #70a28b;
}
.blue {
  background: #eaf1fc;
  color: #789acb;
}
.stat-card > div > span {
  font-size: 11px;
  color: var(--muted);
}
.stat-card strong {
  display: block;
  font-size: 27px;
  line-height: 1.7;
  font-weight: 650;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.stat-card small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}
.stat-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
}
.training-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.training-hero {
  background: #eeebfa;
  position: relative;
  min-height: 192px;
  padding: 28px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.training-hero > div {
  position: relative;
  z-index: 1;
  max-width: 75%;
}
.training-hero .eyebrow {
  font-size: 8px;
  color: #8170a8;
  letter-spacing: 1.5px;
}
.training-hero h2 {
  font-size: 22px;
  color: #3e315e;
  letter-spacing: -0.6px;
  margin: 9px 0;
}
.training-hero p {
  font-size: 11px;
  color: #78688a;
}
.hero-pill {
  margin-top: 17px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffffb5;
  font-size: 9px;
  padding: 4px 9px;
  border-radius: 20px;
  color: #766099;
}
.hero-pill svg {
  width: 13px;
  height: 13px;
}
.hero-art {
  position: absolute;
  right: -15px;
  bottom: -10px;
  width: 235px;
  height: 188px;
  stroke: none;
}
.training-config {
  padding: 24px 27px 20px;
}
.training-config .section-heading {
  margin-bottom: 17px;
}
.training-config .section-heading .hint {
  font-size: 10px;
}
.mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mode-option {
  border: 1px solid var(--line-2);
  background: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 13px;
  border-radius: 9px;
  position: relative;
  text-align: left;
  min-height: 76px;
}
.mode-option:hover {
  border-color: #b1a0de;
}
.mode-option.active {
  border-color: #a38bdc;
  background: #faf8ff;
  box-shadow: 0 0 0 1px #b5a0e522;
}
.mode-option b {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 4px;
}
.mode-option small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}
.mode-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 33px;
  border-radius: 8px;
  background: #f3f2f8;
  color: #888399;
  flex-shrink: 0;
}
.mode-option.active .mode-icon {
  color: var(--primary);
  background: #eee7fa;
}
.mode-icon svg {
  width: 18px;
  height: 18px;
}
.radio-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border: 1px solid #c9c7d6;
  border-radius: 50%;
  margin-left: auto;
  position: relative;
  align-self: flex-start;
  margin-top: 3px;
}
.active > .radio-dot {
  border-color: var(--primary);
}
.active > .radio-dot:after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--primary);
  border-radius: 50%;
}
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 21px;
}
.config-label {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 9px;
}
.config-grid select {
  min-height: 36px;
  font-size: 11px;
  padding: 7px 10px;
  height: 36px;
  border-color: var(--line);
}
.count-pills {
  display: flex;
  gap: 8px;
}
.count-pills button {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 36px;
  flex: 1;
  max-width: 76px;
  font-size: 11px;
  background: white;
  color: var(--ink-2);
}
.count-pills button.active {
  background: var(--primary-t);
  border-color: #dcd2f5;
  color: var(--primary);
  font-weight: 600;
}
.scope-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 22px;
}
.scope-row > span {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  gap: 6px;
}
.scope-row svg {
  width: 14px;
  height: 14px;
}
.scope-row b {
  font-weight: 500;
  color: var(--ink-2);
}
.scope-row .btn-text {
  font-size: 10px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--ink-2);
  cursor: pointer;
  min-height: 34px;
}
.check-line input {
  width: 13px;
  height: 13px;
  min-height: 13px;
}
.check-line .hint {
  font-size: 9px;
  margin-left: 3px;
}
.start-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.estimate {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ink-2);
}
.estimate b {
  font-weight: 550;
}
.estimate svg {
  width: 14px;
  height: 14px;
}
.start-row p {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.start-row p b {
  font-weight: 500;
  color: var(--ink-2);
}
.start-row .btn {
  padding: 12px 22px;
  font-size: 12px;
}
.ability-card {
  padding: 22px 20px;
}
.ability-card h2 {
  font-size: 14px;
}
.ability-card .tag {
  font-size: 9px;
  padding: 3px 6px;
}
.radar-chart {
  height: 215px;
  margin: -5px -2px 3px;
  display: grid;
  place-items: center;
}
.radar-chart svg {
  height: 100%;
  width: 100%;
  max-width: 275px;
  stroke: none;
  overflow: visible;
}
.radar-chart text {
  font-size: 10px;
  fill: var(--muted);
  font-family: var(--font);
}
.radar-chart .grid {
  fill: none;
  stroke: #e9e8f1;
  stroke-width: 1;
}
.radar-chart .axis {
  stroke: #eeedf5;
  stroke-width: 1;
}
.radar-chart .area {
  fill: #9c86de29;
  stroke: #9881ce;
  stroke-width: 1.6;
}
.radar-chart .dot {
  fill: #9881ce;
  stroke: white;
  stroke-width: 2;
}
.ability-card .center {
  font-size: 10px;
}
.aside-divider {
  height: 1px;
  background: var(--line);
  margin: 21px 0 17px;
}
.insight-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #7560a7;
}
.insight-title svg {
  width: 15px;
  height: 15px;
}
.insight-text {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin: 9px 0 16px;
}
.ability-card .btn {
  font-size: 11px;
  min-height: 38px;
  padding: 8px 11px;
}
.steps-card {
  padding: 21px;
}
.steps-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.steps-card h2 {
  margin: 7px 0 21px;
  font-size: 14px;
}
.step {
  display: flex;
  gap: 12px;
  margin-bottom: 21px;
}
.step > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  color: #8b76a7;
  background: #f5f2fa;
  border: 1px solid #ebe5f4;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
}
.step b {
  font-size: 11px;
  font-weight: 550;
}
.step p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.steps-card > .btn-text {
  font-size: 10px;
  padding: 0;
  min-height: 24px;
}
.small-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.9;
}
.small-note svg {
  width: 24px;
  height: 24px;
  color: #9296a5;
  stroke-width: 1.3;
}
.recent-card .section-heading {
  margin-bottom: 12px;
}
.recent-card h2 {
  font-size: 14px;
}
.recent-card .btn-text {
  font-size: 10px;
}
.history-table {
  width: 100%;
}
.history-head,
.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 1fr 0.8fr 0.7fr 70px;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}
.history-head {
  background: #fafafd;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 10px;
}
.history-row {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  min-height: 69px;
}
.history-row:last-child {
  border-bottom: 0;
}
.history-row b {
  font-size: 11px;
  font-weight: 550;
}
.history-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.history-row .score {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.history-row .btn-text {
  font-size: 10px;
  justify-self: end;
}
.history-row .tag {
  font-size: 9px;
  justify-self: start;
  padding: 3px 7px;
}
.history-row .progress {
  color: var(--muted);
  font-size: 10px;
}
.recent-card .history-head,
.recent-card .history-row {
  grid-template-columns: minmax(0, 1.4fr) 0.9fr 0.7fr 55px;
  gap: 8px;
}
.recent-card .history-date {
  display: none;
}
.empty-state {
  text-align: center;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.empty-state .empty-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f4f1fb;
  color: #aa9acb;
  margin-bottom: 12px;
}
.empty-state b {
  font-size: 12px;
  font-weight: 550;
}
.empty-state p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  max-width: 360px;
  line-height: 1.9;
}
.empty-state .btn {
  margin-top: 18px;
}
.resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #efebfa;
  border: 1px solid #e2d9f7;
  border-radius: 11px;
  padding: 14px 20px;
  margin-bottom: 22px;
  font-size: 12px;
}
.resume-banner p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.resume-banner .btn {
  font-size: 11px;
  min-height: 36px;
}
.workspace-footer {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0 22px;
  font-size: 9px;
  color: var(--muted);
}
.workspace-footer .btn-text {
  font-size: 9px;
  color: var(--muted);
  min-height: 28px;
  padding: 0;
}
/* Library, account and growth */
.upload-zone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 215px;
  border: 1px dashed #cfc6e7;
  background: #faf8ff;
  border-radius: 14px;
  margin-bottom: 25px;
  padding: 25px;
  color: var(--ink-2);
}
.upload-zone:hover,
.upload-zone.dragging {
  border-color: var(--primary);
  background: var(--primary-t);
}
.upload-symbol {
  display: grid;
  place-items: center;
  background: #eee7fa;
  color: #9881c7;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  margin-bottom: 7px;
}
.upload-zone b {
  font-size: 13px;
  font-weight: 550;
}
.upload-zone > span:not(.upload-symbol) {
  font-size: 11px;
  color: var(--muted);
}
.upload-zone small {
  font-size: 10px;
  color: var(--muted);
}
.search-field {
  display: flex;
  align-items: center;
  position: relative;
  width: 230px;
}
.search-field svg {
  position: absolute;
  left: 11px;
  width: 16px;
  color: #8c8d9e;
}
.search-field input {
  min-height: 37px;
  font-size: 11px;
  padding-left: 35px;
  border-color: var(--line);
}
.selection-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 14px;
  background: #fafafd;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 10px;
}
.selection-hint .btn-text {
  min-height: 24px;
  padding: 0;
  font-size: 11px;
}
.referral-card {
  margin: 20px 0;
}
.referral-card > p {
  margin: 8px 0;
}
.referral-sharing {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.referral-sharing .field {
  flex: 1 1 180px;
  max-width: 320px;
  margin: 0;
}
#referral-code {
  font-family: monospace;
  letter-spacing: 0.12em;
}
.profile-matching-hint {
  margin: 12px 0;
  padding: 10px 12px;
  background: #f5f7f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.material-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.material-row:last-child {
  border-bottom: 0;
}
.material-check {
  display: grid;
  place-items: center;
  min-width: 35px;
  min-height: 44px;
}
.file-icon {
  width: 40px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--primary-t);
  color: #9983c8;
  border-radius: 8px;
  flex-shrink: 0;
}
.material-open {
  border: 0;
  background: none;
  padding: 4px 0;
  min-width: 0;
  text-align: left;
  flex: 1;
}
.material-title {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.material-title .tag {
  margin-left: 8px;
  font-size: 9px;
}
.material-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.material-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.material-actions .btn-text {
  font-size: 11px;
}
.material-error {
  font-size: 11px;
  color: var(--bad);
  margin-top: 5px;
  max-width: 550px;
}
.danger {
  color: var(--bad);
}
.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  padding: 0 15px;
}
.privacy-note svg {
  width: 16px;
  height: 16px;
}
.filter-select select {
  font-size: 12px;
  min-height: 36px;
  padding: 6px 12px;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  gap: 24px;
  max-width: 1050px;
}
.account-card {
  text-align: center;
  padding: 38px 27px 25px;
}
.account-card h2 {
  font-size: 20px;
  margin: 15px 0 9px;
  overflow-wrap: anywhere;
}
.account-card .tag {
  font-size: 10px;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0;
}
.account-stats > div + div {
  border-left: 1px solid var(--line);
}
.account-stats strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
}
.account-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.redeem-card {
  padding: 38px;
}
.redeem-card h2 {
  font-size: 21px;
  margin: 23px 0 7px;
}
.redeem-card .lede {
  font-size: 12px;
}
.redeem-card form {
  margin-top: 26px;
}
.redeem-card .hint {
  margin-top: 22px;
}
.redeem-card input {
  text-transform: uppercase;
  letter-spacing: 1px;
}
.avatar-customizer {
  grid-column: 1 / -1;
  padding: 30px;
}
.account-grid > .redeem-card {
  grid-column: 2;
  grid-row: 1;
}
.avatar-customizer .section-heading {
  align-items: flex-start;
}
.avatar-customizer .section-heading h2 {
  margin-top: 4px;
  font-size: 21px;
}
.avatar-customizer .lede {
  max-width: 730px;
  margin: 5px 0 26px;
}
.avatar-customizer-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.avatar-preview {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  background: #dfe3e8;
}
.digital-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.avatar-preview .digital-portrait {
  position: absolute;
  inset: 0;
}
.avatar-preview-caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  padding: 48px 20px 20px;
  color: white;
  background: linear-gradient(transparent, #131a2bdf);
  line-height: 1.6;
}
.avatar-preview-caption > span {
  font-size: 10px;
  color: #e3e6ee;
  letter-spacing: 2px;
}
.avatar-preview-caption strong {
  font-size: 19px;
  margin-top: 3px;
}
.avatar-preview-caption small {
  font-size: 11px;
  color: #e3e6ee;
}
.avatar-controls {
  display: grid;
  gap: 16px;
}
.avatar-controls fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.avatar-controls legend {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 12px;
}
.avatar-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.avatar-options:has(#avatar-custom-option:not([hidden])) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.avatar-options button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 4px;
  color: var(--ink-2);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.avatar-options button:hover {
  border-color: #b5a4ec;
}
.avatar-options button.active {
  color: var(--primary-d);
  background: var(--primary-t);
  border-color: var(--primary);
}
.avatar-options button img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 7px;
}
.avatar-options button > span {
  display: grid;
  gap: 1px;
  padding: 9px 7px 7px;
}
.avatar-options strong {
  font-size: 12px;
}
.avatar-options small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.portrait-selected {
  position: absolute;
  display: none;
  top: 11px;
  right: 11px;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--primary);
  border: 2px solid white;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  text-align: center;
  line-height: 18px;
  box-shadow: 0 2px 8px #16133633;
}
.avatar-options button.active .portrait-selected {
  display: block;
}
.portrait-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: #fafafe;
}
.portrait-upload > div {
  flex: 1;
  min-width: 0;
}
.portrait-upload strong {
  font-size: 12px;
  color: var(--ink);
}
.portrait-upload p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 3px 0 0;
}
.portrait-upload .btn {
  flex-shrink: 0;
  min-height: 44px;
  font-size: 12px;
  padding: 8px 13px;
}
.portrait-manage {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}
.portrait-manage p,
.portrait-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.portrait-manage button {
  flex-shrink: 0;
  font-size: 11px;
}
.avatar-save-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.avatar-save-actions .btn {
  min-width: 112px;
}
@media (max-width: 760px) {
  .onboarding-header {
    height: 68px;
    padding: 0 20px;
  }
  .onboarding-header .brand {
    font-size: 17px;
  }
  .onboarding-header .brand-icon {
    width: 34px;
    height: 34px;
  }
  .onboarding-shell {
    width: calc(100% - 32px);
    min-height: calc(100dvh - 68px);
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0 80px;
  }
  .onboarding-story {
    padding: 0 4px;
  }
  .onboarding-story h1 {
    font-size: 29px;
    margin: 9px 0;
  }
  .onboarding-story > p {
    font-size: 12px;
    line-height: 1.75;
  }
  .onboarding-steps {
    display: flex;
    gap: 10px;
    margin: 22px 0 0;
  }
  .onboarding-steps li {
    flex: 1;
    gap: 7px;
    align-items: flex-start;
  }
  .onboarding-steps li > span {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 9px;
  }
  .onboarding-steps b {
    font-size: 10px;
  }
  .onboarding-steps small {
    font-size: 9px;
    line-height: 1.5;
  }
  .onboarding-private {
    display: none !important;
  }
  .onboarding-card {
    padding: 24px 20px;
    max-width: none;
  }
  .onboarding-card h2 {
    font-size: 21px;
  }
  .candidate-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .candidate-profile-card {
    padding: 22px 20px;
  }
  .candidate-profile-card .section-heading {
    gap: 8px;
  }
  .candidate-profile-card .section-heading h2 {
    font-size: 17px;
  }
  .resume-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .resume-summary .resume-actions {
    width: 100%;
    margin-left: 44px;
  }
  .target-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .target-summary .btn-text {
    align-self: flex-end;
  }
  .avatar-customizer-body {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }
  .avatar-options {
    gap: 8px;
  }
  .avatar-options:has(#avatar-custom-option:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portrait-upload {
    flex-wrap: wrap;
    padding: 12px;
  }
  .portrait-upload .file-icon {
    display: none;
  }
}
@media (max-width: 540px) {
  .account-grid > .redeem-card {
    grid-column: auto;
    grid-row: auto;
  }
  .avatar-customizer {
    padding: 24px 20px;
  }
  .avatar-customizer .section-heading h2 {
    font-size: 18px;
  }
  .avatar-customizer .section-heading {
    gap: 10px;
  }
  .avatar-customizer-body {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .avatar-preview {
    width: 100%;
    height: 265px;
    aspect-ratio: auto;
  }
  .avatar-preview .digital-portrait {
    object-position: 50% 20%;
  }
  .avatar-options {
    gap: 8px;
  }
  .avatar-options button > span {
    padding: 7px 3px 5px;
  }
  .avatar-options strong {
    font-size: 11px;
  }
  .avatar-options small {
    font-size: 9px;
  }
  .portrait-upload {
    gap: 10px;
  }
  .portrait-upload > div {
    flex-basis: 100%;
  }
  .portrait-upload .btn {
    width: 100%;
  }
  .portrait-manage {
    flex-direction: column;
    gap: 4px;
  }
  .avatar-save-actions .btn {
    min-width: 0;
    flex: 1;
  }
  .interviewer-copy {
    left: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .interviewer-wave i {
    animation: none !important;
  }
}
.growth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
}
.trend-chart {
  height: 255px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trend-chart svg {
  width: 100%;
  height: 100%;
  stroke: none;
  overflow: visible;
}
.trend-chart text {
  font-size: 10px;
  fill: var(--muted);
  font-family: var(--font);
}
.trend-chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}
.trend-chart .curve {
  fill: none;
  stroke: #9780d5;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.trend-chart .dot {
  fill: #9780d5;
  stroke: white;
  stroke-width: 2;
}
.trend-chart .area {
  fill: #f2eefb;
}
.weak-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.weak-row .tag {
  font-size: 10px;
}
.growth-advice {
  max-width: 800px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 2;
  margin-bottom: 25px;
}
.growth-advice p + p {
  margin-top: 9px;
}
.dim-row {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  gap: 13px;
  align-items: center;
  margin-top: 21px;
}
.dim-name {
  font-size: 12px;
  color: var(--ink-2);
}
.dim-track {
  height: 7px;
  border-radius: 10px;
  background: #f1eef7;
  overflow: hidden;
}
.dim-fill {
  height: 100%;
  background: #a18ad7;
  border-radius: 10px;
}
.dim-val {
  font-size: 12px;
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.q-stack {
  display: grid;
  gap: 18px;
}
.q-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.q-head,
.q-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.q-stem {
  font-size: 14px;
  line-height: 1.9;
  margin: 17px 0;
  white-space: pre-wrap;
}
.q-kp {
  background: #f8f6fc;
  padding: 15px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 2;
  border-radius: 8px;
}
.q-edit-box {
  margin-top: 22px;
}
.q-edit-box .row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.meta-strip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--muted);
}
.meta-strip .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meta-strip p {
  margin-top: 7px;
}
/* Practice */
.detail-screen,
.interview-screen,
.report-screen {
  max-width: 1120px;
  margin: auto;
}
.appbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
  min-height: 52px;
}
.appbar h1 {
  font-size: 24px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.appbar .eyebrow {
  font-size: 9px;
  margin-bottom: 4px;
}
.appbar > .btn:last-child,
.appbar > .appbar-actions:last-child {
  margin-left: auto;
}
.appbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  padding: 20px;
  gap: 18px;
}
.loading h2 {
  font-size: 16px;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #eae4f744;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
.feedback-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 24px;
}
.score-hero {
  text-align: center;
  padding: 30px;
}
.ring {
  width: 150px;
  height: 150px;
  margin: 22px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, white 84%, transparent 85%),
    conic-gradient(var(--primary) calc(var(--p, 0) * 1%), #f0edf6 0);
}
.ring strong {
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.4;
}
.ring span {
  font-size: 10px;
  color: var(--muted);
}
.score-hero > .hint {
  margin-top: 12px;
}
.transcript {
  font-size: 13px;
  line-height: 2;
  white-space: pre-wrap;
  background: #faf9fd;
  padding: 20px;
  border-radius: 9px;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.review-grid .card h2 {
  font-size: 14px;
  margin-bottom: 12px;
}
.review-grid .card p {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.9;
  margin-top: 7px;
}
.evidence p,
.tips p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
  margin-top: 12px;
}
.plain-list {
  padding-left: 19px;
  margin: 16px 0 0;
  line-height: 2;
  font-size: 13px;
  color: var(--ink-2);
}
.plain-list li {
  padding-left: 4px;
  margin-top: 7px;
}
.plain-list li::marker {
  color: #a68dd7;
}
.advice-card {
  background: #f9f7fe;
  border-color: #eae2f7;
}
.report-question {
  border-bottom: 1px solid var(--line);
}
.report-question:last-child {
  border-bottom: 0;
}
.report-question summary {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
}
.report-question summary::-webkit-details-marker {
  display: none;
}
.question-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  font-size: 12px;
  min-width: 0;
}
.question-order {
  font-size: 10px;
  color: #816a9f;
  padding: 5px 8px;
  background: #f2eef8;
  border-radius: 6px;
  white-space: nowrap;
}
.question-preview {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.report-question summary strong {
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
}
.report-question summary > svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.16s;
}
.report-question[open] summary > svg {
  transform: rotate(90deg);
}
.report-detail {
  padding: 0 8px 24px;
  font-size: 12px;
  color: var(--ink-2);
}
.reference-answer {
  white-space: pre-line;
  line-height: 1.8;
  color: var(--ink-2);
}
.q-reference {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  background: #f7f8f6;
}
.q-reference b,
.q-kp b {
  font-size: 11px;
}
.q-reference p {
  margin: 8px 0 0;
}
.report-detail > h3 {
  font-size: 13px;
  margin: 22px 0 9px;
}
.report-detail > p {
  white-space: pre-wrap;
  line-height: 2;
}
.report-detail .review-grid {
  margin-top: 18px;
  gap: 15px;
}
.report-detail .review-grid > .card {
  padding: 17px;
  background: #fafafd;
  box-shadow: none;
  margin-bottom: 0;
}
.report-detail .dim-row {
  margin-top: 14px;
}
.dim-reason {
  margin-top: 11px;
  font-size: 12px;
  line-height: 1.9;
}
.dim-reason > b {
  font-weight: 550;
  color: var(--primary);
}
.report-detail ul {
  padding-left: 18px;
  margin-top: 6px;
}
.report-detail li {
  line-height: 1.9;
  margin-top: 6px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: calc(50% + 100px);
  transform: translate(-50%, 20px);
  max-width: min(520px, calc(100vw - 32px));
  background: #353146;
  color: white;
  box-shadow: 0 8px 24px #25203020;
  padding: 13px 22px;
  border-radius: 10px;
  z-index: 100;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #9f3545;
}
body[data-auth="false"] .toast {
  left: 50%;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
  width: min(540px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 25px 90px #21163035;
}
dialog::backdrop {
  background: #21193555;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.dialog-header h2 {
  font-size: 19px;
}
.dialog-header .icon-btn {
  font-size: 26px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
#dialog-body {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.95;
}
#dialog-body p + p {
  margin-top: 15px;
}
#dialog-body h3 {
  font-size: 14px;
  margin-top: 18px;
  margin-bottom: 7px;
}
#dialog-body ul,
#dialog-body ol {
  padding-left: 20px;
}
#dialog-body li {
  margin-bottom: 9px;
}
.skeleton {
  min-height: 120px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f8f7fa, #f0edf5, #f8f7fa);
  background-size: 200%;
  animation: shimmer 1.8s infinite;
}
.error-state {
  text-align: center;
  padding: 28px;
  color: var(--bad);
  font-size: 12px;
}
.error-state .btn-text {
  display: block;
  margin: 10px auto;
}
.inline-form {
  display: flex;
  gap: 10px;
}
.q-actions button {
  min-height: 40px;
}
#voice-notice {
  font-size: 11px;
  margin-bottom: 12px;
}
#voice-retry {
  background: #f8f5fc;
  padding: 15px;
  border-radius: 8px;
}
#voice-retry .hint {
  margin-bottom: 10px;
}
#voice-retry .btn {
  font-size: 11px;
}
#voice-retry .btn-text {
  margin-left: 10px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
/* Responsive workspace */
@media (min-width: 1600px) {
  main {
    padding-top: 38px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .training-hero {
    min-height: 215px;
  }
  .hero-art {
    right: 12px;
    width: 280px;
    height: 215px;
  }
  .training-hero h2 {
    font-size: 26px;
  }
  .mode-option {
    padding: 19px;
  }
  .mode-option b {
    font-size: 14px;
  }
  .mode-option small {
    font-size: 11px;
  }
  .training-config {
    padding: 26px 30px;
  }
  .config-label,
  .config-grid select,
  .count-pills button {
    font-size: 12px;
  }
  .check-line,
  .scope-row > span,
  .scope-row .btn-text {
    font-size: 11px;
  }
  .radar-chart {
    height: 235px;
  }
  .insight-text {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 208px;
    padding: 28px 15px 16px;
  }
  .sidebar .brand {
    font-size: 18px;
    margin-left: 6px;
  }
  .sidebar .brand-icon {
    width: 34px;
    height: 34px;
  }
  .brand small {
    font-size: 7px;
  }
  .workspace-main {
    margin-left: 208px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 27px 26px 0;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 19px;
  }
  .stats-grid {
    gap: 13px;
  }
  .stat-card {
    padding: 16px 13px;
    gap: 10px;
  }
  .stat-icon {
    width: 34px;
    height: 34px;
  }
  .stat-card strong {
    font-size: 25px;
  }
  .stat-card p {
    font-size: 9px;
  }
  .training-hero {
    padding: 25px 23px;
    min-height: 185px;
  }
  .training-hero h2 {
    font-size: 19px;
  }
  .hero-art {
    right: -32px;
    width: 204px;
    height: 170px;
  }
  .training-config {
    padding: 22px;
  }
  .mode-option {
    gap: 7px;
    padding: 13px 9px;
  }
  .mode-icon {
    width: 26px;
    height: 30px;
  }
  .mode-option small {
    font-size: 8px;
  }
  .mode-option b {
    font-size: 11px;
  }
  .radio-dot {
    width: 10px;
    height: 10px;
  }
  .mode-options {
    gap: 9px;
  }
  .training-config .section-heading .hint {
    display: none;
  }
  .radar-chart {
    height: 195px;
  }
  .ability-card {
    padding: 20px 17px;
  }
  .card {
    padding: 21px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .topbar-actions {
    gap: 13px;
  }
  .growth-grid,
  .account-grid {
    gap: 20px;
  }
  .question-text {
    font-size: 16px;
  }
}
@media (max-width: 1050px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .dashboard-aside .small-note {
    display: none;
  }
  .radar-chart {
    height: 190px;
  }
  .hero-art {
    right: 0;
    width: 250px;
    height: 190px;
  }
  .training-hero h2 {
    font-size: 23px;
  }
  .mode-option {
    padding: 17px 15px;
  }
  .mode-option b {
    font-size: 13px;
  }
  .mode-option small {
    font-size: 10px;
  }
  .mode-icon {
    width: 34px;
    height: 37px;
  }
  .mode-options {
    gap: 15px;
  }
  .radio-dot {
    width: 13px;
    height: 13px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-icon {
    display: none;
  }
  .stat-card {
    padding: 15px 18px;
  }
  .quiet-badge {
    display: none;
  }
  .recent-card .history-date {
    display: block;
  }
  .recent-card .history-head,
  .recent-card .history-row {
    grid-template-columns: 1.4fr 1.1fr 0.8fr 0.7fr 60px;
  }
  .growth-grid {
    grid-template-columns: 1fr;
  }
  .account-grid {
    grid-template-columns: 1fr 1.3fr;
  }
  .redeem-card {
    padding: 26px;
  }
  .auth-pitch h1 {
    font-size: 33px;
  }
  .auth-art {
    height: 240px;
  }
  .auth-features {
    gap: 9px;
    font-size: 10px;
  }
  .auth-form-wrap {
    padding: 40px 8%;
  }
}
@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-grid > .redeem-card {
    grid-column: auto;
    grid-row: auto;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    min-height: 66px;
    padding: 4px 7px calc(4px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: #fffffff5;
    backdrop-filter: blur(12px);
  }
  .sidebar .brand,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
  }
  .nav-item {
    margin: 0;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 55px;
    border-radius: 8px;
    font-size: 10px;
    padding: 5px 2px;
  }
  .nav-item svg {
    width: 19px;
    height: 19px;
  }
  .nav-dot {
    display: none;
  }
  .workspace-main {
    margin-left: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .today {
    display: none;
  }
  .user-button #top-user {
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 8px;
  }
  main {
    padding: 24px 20px calc(80px + env(safe-area-inset-bottom));
    min-height: 100dvh;
  }
  .page-heading {
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .btn {
    font-size: 11px;
    padding: 8px 12px;
    min-height: 39px;
  }
  .stats-grid {
    gap: 9px;
    margin-bottom: 21px;
  }
  .stat-card {
    padding: 12px 10px;
    display: block;
  }
  .stat-card strong {
    font-size: 23px;
  }
  .stat-card small {
    font-size: 9px;
    margin-left: 3px;
  }
  .stat-card p {
    display: none;
  }
  .stat-card > div > span {
    font-size: 10px;
  }
  .dashboard-grid {
    gap: 0;
  }
  .dashboard-aside {
    gap: 17px;
  }
  .training-hero {
    padding: 25px;
    min-height: 183px;
  }
  .training-hero h2 {
    font-size: 22px;
  }
  .hero-art {
    right: -6px;
    width: 230px;
    height: 180px;
  }
  .training-hero p {
    font-size: 10px;
  }
  .mode-option small {
    font-size: 9px;
  }
  .toast {
    left: 50%;
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .history-row,
  .history-head,
  .recent-card .history-head,
  .recent-card .history-row {
    grid-template-columns: 1.3fr 1fr 0.8fr 0.6fr 50px;
    gap: 8px;
  }
  .history-head {
    font-size: 9px;
  }
  .history-row b {
    font-size: 10px;
  }
  .card {
    padding: 20px;
    margin-bottom: 20px;
  }
  .account-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .redeem-card {
    padding: 25px;
  }
  .redeem-card h2 {
    font-size: 18px;
  }
  .account-card {
    padding: 30px 20px 20px;
  }
  .appbar {
    margin-bottom: 22px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .appbar h1 {
    font-size: 21px;
  }
  .appbar .btn {
    font-size: 11px;
    padding: 8px 12px;
    min-height: 38px;
  }
  .appbar-actions {
    gap: 6px;
  }
  .feedback-grid {
    gap: 18px;
  }
  .dim-row {
    grid-template-columns: 60px 1fr 27px;
    gap: 8px;
  }
  .privacy-note {
    font-size: 10px;
    align-items: flex-start;
  }
  .privacy-note svg {
    margin-top: 3px;
  }
  .material-row {
    gap: 10px;
    padding: 15px 0;
  }
  .file-icon {
    width: 32px;
    height: 38px;
  }
  .material-check {
    min-width: 25px;
  }
  .material-title {
    font-size: 12px;
  }
  .material-meta,
  .material-error {
    font-size: 10px;
  }
  .material-actions {
    gap: 8px;
  }
  .search-field {
    width: 185px;
  }
  .selection-hint {
    font-size: 10px;
    padding: 10px;
  }
  .workspace-footer {
    margin-top: 20px;
  }
  .auth-story {
    padding: 28px 30px;
  }
  .auth-pitch h1 {
    font-size: 28px;
  }
  .auth-pitch > p {
    font-size: 12px;
  }
  .auth-art {
    height: 210px;
  }
  .auth-features {
    flex-direction: column;
    gap: 8px;
  }
  .auth-form-wrap {
    padding: 40px 25px;
  }
}
@media (max-width: 540px) {
  .auth-screen.active {
    display: block;
  }
  .auth-story {
    padding: 25px;
  }
  .auth-pitch {
    padding: 26px 0 6px;
    position: relative;
  }
  .auth-pitch .eyebrow {
    font-size: 9px;
  }
  .auth-pitch h1 {
    font-size: 27px;
    line-height: 1.55;
    margin: 10px 0;
  }
  .auth-pitch > p {
    font-size: 11px;
  }
  .auth-art {
    position: absolute;
    right: -23px;
    bottom: -13px;
    width: 155px;
    height: 140px;
  }
  .auth-features,
  .auth-foot {
    display: none;
  }
  .auth-form-wrap {
    padding: 30px 26px 70px;
  }
  .auth-form h2 {
    font-size: 26px;
    margin-top: 15px;
  }
  .auth-form > .tag {
    display: none;
  }
  .auth-form .tabs {
    margin: 22px 0;
  }
  .auth-bottom {
    bottom: 20px;
  }
  .auth-terms {
    margin-top: 18px;
  }
  main {
    padding: 22px 16px calc(83px + env(safe-area-inset-bottom));
  }
  .topbar {
    padding: 0 16px;
  }
  .topbar-actions .icon-btn,
  .user-button > svg {
    display: none;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading {
    gap: 12px;
  }
  .page-heading > .btn {
    padding: 7px 10px;
    font-size: 10px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }
  .stat-card {
    display: flex;
    gap: 11px;
    padding: 14px 15px;
  }
  .stat-icon {
    display: grid;
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .stat-icon svg {
    width: 18px;
    height: 18px;
  }
  .stat-card strong {
    font-size: 24px;
    line-height: 1.6;
  }
  .training-hero {
    padding: 24px 20px;
    min-height: 174px;
  }
  .training-hero h2 {
    font-size: 19px;
    max-width: 230px;
    line-height: 1.6;
  }
  .training-hero .eyebrow {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .training-hero p {
    font-size: 9px;
    max-width: 200px;
  }
  .hero-art {
    width: 166px;
    height: 148px;
    right: -25px;
    bottom: -2px;
    opacity: 0.83;
  }
  .hero-pill {
    font-size: 8px;
    padding: 3px 7px;
    margin-top: 12px;
  }
  .training-config {
    padding: 21px 18px 19px;
  }
  .mode-options {
    gap: 10px;
  }
  .mode-option {
    padding: 13px 10px;
    align-items: flex-start;
    gap: 7px;
    min-height: 90px;
  }
  .mode-option > .mode-icon {
    width: 27px;
    height: 27px;
  }
  .mode-option > .mode-icon svg {
    width: 16px;
    height: 16px;
  }
  .mode-option > span:nth-child(2) {
    width: calc(100% - 30px);
    padding-top: 2px;
  }
  .mode-option b {
    font-size: 11px;
    margin-bottom: 7px;
  }
  .mode-option small {
    font-size: 9px;
    line-height: 1.75;
  }
  .mode-option > .radio-dot {
    position: absolute;
    right: 6px;
    top: 5px;
    width: 9px;
    height: 9px;
    margin: 0;
  }
  .config-grid {
    gap: 14px;
    margin-top: 18px;
  }
  .config-grid select {
    font-size: 10px;
    padding: 7px;
  }
  .count-pills {
    gap: 5px;
  }
  .count-pills button {
    font-size: 10px;
  }
  .config-label {
    font-size: 10px;
  }
  .scope-row {
    margin-top: 18px;
  }
  .check-line {
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 5px;
  }
  .check-line .hint {
    font-size: 9px;
    margin-left: 21px;
    flex-basis: 100%;
    margin-top: -7px;
  }
  .start-row {
    margin-top: 17px;
    padding-top: 18px;
    gap: 10px;
  }
  .start-row .btn {
    font-size: 11px;
    padding: 11px 15px;
    gap: 6px;
  }
  .start-row .btn svg {
    width: 15px;
  }
  .start-row p {
    font-size: 8px;
  }
  .estimate {
    font-size: 10px;
  }
  .scope-row > span,
  .scope-row .btn-text {
    font-size: 9px;
  }
  .dashboard-aside {
    grid-template-columns: 1fr;
  }
  .radar-chart {
    height: 230px;
  }
  .ability-card .center {
    font-size: 11px;
  }
  .insight-text {
    font-size: 12px;
  }
  .ability-card .btn {
    font-size: 12px;
  }
  .step p {
    font-size: 11px;
  }
  .step b {
    font-size: 12px;
  }
  .steps-card h2 {
    font-size: 16px;
  }
  .card {
    padding: 19px;
  }
  .history-head,
  .history-row,
  .recent-card .history-head,
  .recent-card .history-row {
    grid-template-columns: minmax(0, 1.25fr) 0.85fr 0.6fr 49px;
    gap: 7px;
    padding-left: 3px;
    padding-right: 3px;
  }
  .history-date,
  .recent-card .history-date {
    display: none;
  }
  .history-head {
    padding: 9px 5px;
  }
  .history-row .progress {
    font-size: 9px;
  }
  .history-row .tag {
    font-size: 8px;
    padding: 2px 5px;
  }
  .history-row .btn-text {
    font-size: 9px;
    min-height: 44px;
  }
  .resume-banner {
    padding: 13px 15px;
    gap: 12px;
    font-size: 11px;
  }
  .resume-banner p {
    font-size: 10px;
  }
  .resume-banner .btn {
    font-size: 10px;
    padding: 8px 11px;
  }
  .resume-banner .btn svg {
    display: none;
  }
  .upload-zone {
    min-height: 200px;
    padding: 22px 14px;
  }
  .upload-zone b {
    font-size: 12px;
  }
  .upload-zone > span:not(.upload-symbol),
  .upload-zone small {
    font-size: 9px;
  }
  .search-field {
    width: 151px;
  }
  .search-field input {
    font-size: 10px;
    padding-left: 30px;
    min-height: 36px;
  }
  .search-field svg {
    width: 14px;
    left: 9px;
  }
  .selection-hint {
    align-items: flex-start;
    line-height: 1.8;
  }
  .selection-hint .btn-text {
    font-size: 10px;
  }
  .material-row {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
  }
  .material-open {
    max-width: calc(100% - 80px);
    flex-basis: 60%;
  }
  .material-actions {
    margin-left: auto;
    margin-top: -5px;
    gap: 16px;
  }
  .material-actions .tag {
    font-size: 9px;
  }
  .material-title .tag {
    margin-left: 5px;
  }
  .account-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .growth-grid {
    gap: 0;
  }
  .trend-chart {
    height: 210px;
  }
  .growth-advice {
    font-size: 12px;
  }
  .feedback-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .score-hero {
    padding: 25px;
  }
  .appbar h1 {
    font-size: 20px;
  }
  .appbar-actions {
    width: 100%;
    margin-top: 8px;
  }
  .appbar-actions .btn {
    flex: 1;
    font-size: 10px;
    padding: 8px 10px;
  }
  .appbar > .tag {
    font-size: 10px;
    margin-left: auto;
  }
  .appbar > #iv-save-exit {
    display: none;
  }
  .question-text {
    font-size: 16px;
    line-height: 2;
  }
  .countdown {
    font-size: 72px;
  }
  #iv-text {
    font-size: 14px;
    min-height: 280px;
  }
  .answer-meta .hint {
    font-size: 9px;
  }
  .review-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .report-detail .review-grid {
    gap: 12px;
  }
  .report-question summary {
    gap: 9px;
  }
  .report-question summary strong {
    font-size: 17px;
  }
  .question-label {
    gap: 8px;
  }
  .question-order {
    font-size: 8px;
    padding: 3px 5px;
  }
  .question-label b {
    font-size: 10px;
  }
  .question-preview {
    max-width: 150px;
    font-size: 9px;
  }
  .report-question summary > svg {
    width: 12px;
  }
  .report-detail {
    padding: 0 0 22px;
  }
  .plain-list {
    font-size: 12px;
  }
  .transcript {
    font-size: 12px;
    padding: 16px;
  }
  .workspace-footer,
  .workspace-footer .btn-text {
    font-size: 8px;
  }
  .user-button {
    font-size: 11px;
  }
  dialog {
    padding: 22px;
  }
  #dialog-body {
    font-size: 12px;
  }
  body[data-auth="false"] .toast {
    bottom: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .appbar-actions,
  .workspace-footer,
  .toast,
  .auth-screen,
  .btn,
  .btn-text {
    display: none !important;
  }
  .workspace-main {
    margin: 0;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .card,
  .report-question {
    break-inside: avoid;
    box-shadow: none;
  }
  .screen {
    display: none !important;
  }
  #screen-report {
    display: block !important;
  }
  body {
    background: white;
  }
  .report-question .report-detail {
    display: block !important;
  }
  .question-preview {
    white-space: normal;
  }
  .appbar {
    margin-top: 20px;
  }
}
/* Keep compact layouts readable and avoid isolated Chinese characters. */
.training-hero h2,
.mode-option small {
  text-wrap: balance;
}
@media (max-width: 540px) {
  .page-heading p {
    font-size: 12px;
  }
  .stat-card > div > span {
    font-size: 11px;
  }
  .stat-card small {
    font-size: 11px;
  }
  .training-hero h2 {
    font-size: 21px;
    max-width: 225px;
  }
  .training-hero p {
    font-size: 10px;
  }
  .hero-art {
    width: 150px;
    right: -22px;
  }
  .mode-option {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 7px;
    min-height: 104px;
  }
  .mode-option > span:nth-child(2) {
    width: auto;
  }
  .mode-option b {
    font-size: 12px;
  }
  .mode-option small {
    font-size: 11px;
  }
  .mode-icon {
    width: 25px !important;
  }
  .config-label {
    font-size: 12px;
  }
  .config-grid select {
    font-size: 12px;
    min-height: 44px;
    height: 44px;
  }
  .count-pills button {
    min-height: 44px;
    font-size: 12px;
  }
  .scope-row > span,
  .scope-row .btn-text {
    font-size: 11px;
  }
  .check-line {
    font-size: 12px;
  }
  .check-line .hint {
    font-size: 11px;
  }
  .start-row .btn {
    font-size: 12px;
    min-height: 44px;
  }
  .estimate {
    font-size: 12px;
  }
  .start-row p {
    font-size: 10px;
  }
  .auth-form input,
  .redeem-card input,
  #iv-text,
  .q-edit-box input,
  .q-edit-box textarea {
    font-size: 16px;
  }
  .btn-text,
  .appbar .btn,
  .account-card .btn {
    min-height: 44px;
  }
  .card .hint {
    font-size: 11px;
  }
  .field > span:first-child {
    font-size: 13px;
  }
  .material-title {
    font-size: 13px;
  }
  .history-row b {
    font-size: 11px;
  }
  .history-row small {
    font-size: 10px;
  }
  .insight-title {
    font-size: 12px;
  }
  .steps-card > .btn-text {
    font-size: 12px;
  }
  .workspace-footer {
    font-size: 9px;
  }
  .workspace-footer .btn-text {
    font-size: 10px;
  }
}

/* Empty media states reserve portrait space when assets are unavailable. */
.portrait-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #dce1ee;
  background: radial-gradient(ellipse at 50% 25%, #495169, #222936 80%);
  text-align: center;
  padding: 20px;
}
.portrait-empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: #c4b9eb;
}
.portrait-empty strong {
  font-size: 15px;
  font-weight: 500;
}
.portrait-empty > span {
  font-size: 10px;
  color: #cbd0df;
}
[data-has-portrait="true"] .portrait-empty {
  display: none;
}
.interviewer-visual .portrait-empty {
  justify-content: flex-start;
  padding-top: 50px;
}
.avatar-options .portrait-option-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #f0f1f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.avatar-options .portrait-unavailable .portrait-option-placeholder {
  display: flex;
}
.avatar-options .portrait-unavailable {
  cursor: not-allowed;
}

/* Immersive interview: the stage stays visible through answering and completion. */
body[data-screen="interview"] {
  background: #1d1f28;
}
body[data-screen="interview"] .sidebar,
body[data-screen="interview"] .topbar,
body[data-screen="interview"] .workspace-footer {
  display: none;
}
body[data-screen="interview"] .workspace-main {
  margin: 0;
}
body[data-screen="interview"] #main-content {
  padding: 0;
  margin: 0;
  max-width: none;
  min-height: 100dvh;
}
body[data-screen="interview"] .skip-link {
  z-index: 70;
}
#screen-interview {
  --studio-bg: #272934;
  --studio-muted: #b8bdcc;
  --studio-line: #ffffff1a;
  --studio-accent: #b7a6f0;
  max-width: none;
  margin: 0;
  color: #f5f5fa;
  background: var(--studio-bg);
}
#screen-interview.active {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  height: 100dvh;
  min-height: 700px;
}
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(20px, 3vw, 48px);
  border-bottom: 1px solid var(--studio-line);
  background: #1d1f28;
}
.studio-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.studio-brand {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 1px;
}
.studio-brand > span {
  font-size: 8px;
  font-weight: 500;
  color: #9c9daf;
  letter-spacing: 2px;
  margin-left: 12px;
}
#iv-mode-label {
  font-size: 10px;
  color: var(--studio-muted);
  margin: 3px 0 0;
}
#screen-interview .btn-back {
  color: #e9e8f2;
  background: #ffffff08;
  border-color: #ffffff26;
  width: 40px;
  height: 40px;
}
.studio-progress-wrap {
  width: 160px;
  flex-shrink: 0;
  text-align: center;
}
#iv-progress {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}
#iv-steps {
  display: flex;
  gap: 5px;
  margin: 8px 0 0;
}
#iv-steps > span {
  flex: 1;
  height: 3px;
  border-radius: 4px;
  background: #ffffff20;
}
#iv-steps > .done {
  background: #9588c8;
}
#iv-steps > .current {
  background: #dfd3ff;
}
#screen-interview .btn-ghost {
  color: #e7e5f0;
  background: transparent;
  border: 1px solid #c6c2d377;
}
#screen-interview .btn-ghost:hover {
  background: #ffffff0d;
  border-color: #dfd9ef;
}
#iv-save-exit {
  margin-left: auto;
  min-width: 116px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 12px;
}
.studio-scene {
  min-height: 0;
  overflow: hidden;
  background: #4d5060;
}
#screen-interview .interviewer-stage {
  height: 100%;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#screen-interview .interviewer-visual {
  position: absolute;
  inset: 0;
}
#screen-interview .interviewer-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #17192425,
    transparent 30%,
    transparent 70%,
    #22242f80
  );
  pointer-events: none;
}
#screen-interview .interviewer-backdrop {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(40px) brightness(0.58) saturate(0.5);
  pointer-events: none;
}
#screen-interview .interviewer-visual .digital-portrait {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}
#screen-interview .interviewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  left: 32px;
  top: 24px;
  padding: 5px 11px;
  color: #fff;
  background: #20232f8a;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  font-size: 11px;
  backdrop-filter: blur(12px);
}
#screen-interview .studio-video-controls:not([hidden]) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
}
#screen-interview #iv-video-play {
  min-height: 44px;
  color: #dcd2ff;
  font-size: 13px;
}
#iv-video-status {
  margin: 0;
  color: #e2dcec;
  font-size: 12px;
  line-height: 1.6;
}
#interviewer-stage[data-video-playing="true"] img.digital-portrait {
  visibility: hidden;
}
#interviewer-stage:not([data-video-playing="true"]) #interviewer-video {
  visibility: hidden;
}
#interviewer-stage:not([data-video-playing="true"]) #interviewer-video {
  visibility: hidden;
}
#screen-interview .interviewer-badge svg {
  width: 14px;
  height: 14px;
}
#screen-interview .interviewer-copy {
  position: absolute;
  z-index: 1;
  left: 32px;
  bottom: 26px;
  display: grid;
  gap: 5px;
  text-shadow: 0 1px 8px #0004;
}
#screen-interview .interviewer-copy .eyebrow {
  font-size: 8px;
  color: #ddd5f0;
  letter-spacing: 2px;
}
#screen-interview .interviewer-copy strong {
  font-size: 16px;
  font-weight: 500;
}
.interviewer-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
#interviewer-status {
  color: #e9e7f1;
  font-size: 11px;
}
.interviewer-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7b3ff;
  box-shadow: 0 0 0 3px #b7a4ff26;
  flex-shrink: 0;
}
[data-avatar-state="listening"] .interviewer-pulse {
  background: #80deb3;
  box-shadow: 0 0 0 3px #80deb326;
}
[data-avatar-state="evaluating"] .interviewer-pulse {
  background: #f1cc8c;
}
[data-avatar-state="completed"] .interviewer-pulse {
  background: #80deb3;
}
#screen-interview .interviewer-wave {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  opacity: 0.6;
}
.interviewer-wave i {
  height: 6px;
  width: 3px;
  background: #e7dcff;
  border-radius: 4px;
}
.interviewer-wave i:nth-child(2),
.interviewer-wave i:nth-child(4) {
  height: 14px;
  animation-delay: -0.3s !important;
}
.interviewer-wave i:nth-child(3) {
  height: 24px;
  animation-delay: -0.5s !important;
}
[data-avatar-state="speaking"] .interviewer-wave {
  opacity: 1;
}
[data-avatar-state="speaking"] .interviewer-wave i {
  animation: portrait-wave 0.65s ease-in-out infinite alternate;
}
@keyframes portrait-wave {
  to {
    transform: scaleY(0.3);
  }
}
.studio-scene-note {
  position: absolute;
  right: 32px;
  top: 28px;
  color: #f3efffba;
  font-size: 10px;
  letter-spacing: 1px;
}
.studio-dock {
  padding: 18px clamp(20px, 4vw, 60px) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #ffffff24;
  background: linear-gradient(135deg, #30313e, #252732);
  box-shadow: 0 -12px 60px #1719231c;
}
.studio-question {
  max-width: 1000px;
  margin: 0 auto;
}
.studio-question-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d1ccdf;
  font-size: 11px;
}
#iv-category {
  color: #e0d4ff;
  font-weight: 600;
}
#iv-difficulty {
  color: #b7b4c8;
  padding-left: 12px;
  border-left: 1px solid #ffffff20;
}
.studio-question-tools {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
#screen-interview .btn-text {
  color: #d0c7e9;
  font-size: 11px;
}
#screen-interview .btn-text:hover {
  color: white;
}
#iv-play,
#iv-question-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  min-height: 32px;
}
#iv-play svg,
#iv-question-toggle svg {
  width: 14px;
  height: 14px;
}
#iv-question-toggle[aria-expanded="true"] svg {
  transform: rotate(-90deg);
}
#iv-stem {
  color: #f2f0f8;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  max-height: 3.7em;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: center;
  margin: 9px 0 12px;
  scroll-margin: 20px;
}
#screen-interview.question-expanded #iv-stem {
  max-height: min(32dvh, 240px);
  overflow-y: auto;
  scrollbar-color: #777086 #33333f;
  padding-right: 10px;
}
.studio-caption {
  color: #d2ccdf;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  margin: 9px auto 16px;
  max-width: 900px;
}
.studio-controls {
  max-width: 900px;
  margin: auto;
}
#screen-interview .btn-primary,
#screen-interview .rec-btn {
  color: white;
  background: #8973c6;
  border: 1px solid #a48ddc;
  box-shadow: 0 3px 12px #15131f18;
  border-radius: 28px;
}
#screen-interview .btn-primary:hover,
#screen-interview .rec-btn:hover {
  background: #9a81dc;
}
#screen-interview .btn:disabled,
#screen-interview .btn-text:disabled {
  opacity: 0.48;
}
#iv-thinking {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  text-align: left;
}
.thinking-clock {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #c9c3d9;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.thinking-clock svg {
  width: 15px;
  height: 15px;
  align-self: center;
  margin-right: 3px;
}
#iv-countdown {
  font-size: 26px;
  line-height: 1;
  font-weight: 500;
  color: white;
  margin-left: 4px;
  letter-spacing: 0;
}
#iv-skip-think {
  min-width: 230px;
  padding: 12px 24px;
  font-size: 14px;
  min-height: 48px;
}
#iv-skip-think svg {
  width: 17px;
  height: 17px;
}
.studio-controls-note {
  color: #b7b1c5;
  font-size: 11px;
}
#iv-answering {
  max-width: 850px;
  margin: 0 auto;
}
#screen-interview .answer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
  gap: 12px;
}
#screen-interview .answer-head h2 {
  font-size: 13px;
  font-weight: 500;
  color: #d6d0e3;
}
#screen-interview .clock {
  color: #bcb5cf;
  font-size: 12px;
  background: #ffffff08;
  border: 1px solid #ffffff12;
  padding: 3px 9px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
#iv-elapsed {
  color: #eee7ff;
}
#iv-elapsed.overdue {
  color: #ffc192;
}
#screen-interview #iv-text {
  display: block;
  width: 100%;
  min-height: 100px;
  height: 12dvh;
  max-height: 220px;
  resize: vertical;
  padding: 13px 16px;
  color: #f3f0fa;
  background: #1e202b;
  border: 1px solid #ffffff2a;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
}
#screen-interview #iv-text::placeholder {
  color: #a6a0b5;
}
.text-answer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}
#screen-interview .answer-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
}
#screen-interview .hint {
  color: #bcb5cd;
  font-size: 11px;
  line-height: 1.75;
}
#iv-submit {
  min-width: 160px;
  min-height: 44px;
}
.studio-answer-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
#screen-interview .answer-mode {
  margin: 0;
  min-height: 36px;
  flex-shrink: 0;
}
#screen-interview .field-error {
  color: #ffc0ca;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}
#screen-interview .field-error:empty {
  display: none;
}
#screen-interview .recorder {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
#screen-interview .wave {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin: 0;
}
#screen-interview .wave > i {
  width: 3px;
  height: 3px;
  background: #bba6e7;
  border-radius: 4px;
  transition: height 0.1s;
  max-height: 36px;
}
#screen-interview .wave.idle > i {
  height: 3px !important;
}
#screen-interview .rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 230px;
  min-height: 50px;
  padding: 12px 26px;
  margin: 0;
  font-size: 14px;
}
#screen-interview .rec-btn svg {
  width: 18px;
  height: 18px;
}
#screen-interview .rec-btn.recording {
  background: #ab556a;
  border-color: #db8da0;
}
#screen-interview #rec-hint {
  text-align: left;
  margin: 0;
  max-width: 220px;
}
#voice-retry {
  text-align: center;
  padding: 10px 0;
}
#voice-retry .btn {
  padding: 9px 20px;
  min-height: 42px;
}
#voice-retry .btn-soft {
  background: #514665;
  border: 1px solid #9b87bb;
  color: white;
}
#voice-retry .btn-text {
  margin-left: 12px;
}
#iv-loading {
  min-height: 70px;
  padding: 5px 0;
  flex-direction: row;
  gap: 18px;
  text-align: left;
}
#iv-loading h2 {
  color: #eee9f7;
  font-size: 14px;
  font-weight: 500;
}
#iv-loading .hint {
  margin-top: 4px;
}
#screen-interview .spinner {
  border-color: #ffffff26;
  border-top-color: #d0bcff;
}
.studio-disclaimer {
  color: #aaa3b8;
  font-size: 9px;
  text-align: center;
  margin: 16px 0 0;
  letter-spacing: 0.5px;
}
#screen-interview[data-phase="complete"] .studio-question {
  display: none;
}
#screen-interview[data-phase="complete"] .studio-caption {
  font-size: 21px;
  color: #f5f1fc;
  margin: 10px auto 28px;
  letter-spacing: 0.5px;
}
#screen-interview[data-phase="complete"] .studio-dock {
  padding-top: 25px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.studio-complete-actions {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.studio-complete-actions > .btn {
  min-width: 240px;
  min-height: 48px;
  border-radius: 30px;
  font-size: 15px;
  padding: 11px 28px;
}
#iv-view-report .spinner {
  width: 17px;
  height: 17px;
}
#screen-interview :focus-visible {
  outline: 2px solid #d4c3ff;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  #screen-interview.active {
    min-height: 650px;
  }
  .studio-header {
    padding: 12px 20px;
    gap: 15px;
    min-height: 68px;
  }
  .studio-heading {
    gap: 10px;
  }
  .studio-brand > span {
    display: none;
  }
  .studio-progress-wrap {
    width: 120px;
  }
  #iv-mode-label {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }
  .studio-controls-note {
    display: none;
  }
  .studio-dock {
    padding: 16px 24px calc(14px + env(safe-area-inset-bottom));
  }
  #screen-interview .recorder {
    grid-template-columns: 1fr auto;
    max-width: 440px;
    margin: auto;
  }
  #screen-interview .wave {
    justify-content: center;
  }
  #screen-interview #rec-hint {
    grid-column: 1 / -1;
    text-align: center;
    max-width: none;
  }
  .studio-complete-actions {
    gap: 20px;
  }
  .studio-complete-actions > .btn {
    min-width: 200px;
  }
}
@media (max-width: 540px) {
  #screen-interview.active {
    grid-template-rows: auto minmax(240px, 1fr) auto;
    min-height: 650px;
  }
  .studio-header {
    padding: 10px 16px;
    min-height: 64px;
    gap: 8px;
  }
  .studio-heading {
    gap: 10px;
  }
  .studio-brand {
    font-size: 13px;
  }
  #iv-mode-label {
    display: none;
  }
  #screen-interview .btn-back {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .studio-progress-wrap {
    width: 88px;
  }
  #iv-progress {
    font-size: 11px;
    letter-spacing: 0;
  }
  #iv-steps {
    gap: 3px;
    margin-top: 6px;
  }
  #iv-save-exit {
    min-width: 0;
    padding: 8px 10px;
    font-size: 10px;
    min-height: 44px;
  }
  #screen-interview .interviewer-stage {
    min-height: 240px;
  }
  #screen-interview .interviewer-badge {
    left: 16px;
    top: 16px;
    font-size: 9px;
  }
  #screen-interview .interviewer-copy {
    left: 18px;
    bottom: 18px;
    gap: 3px;
  }
  #screen-interview .interviewer-copy strong {
    font-size: 13px;
  }
  #interviewer-status {
    font-size: 10px;
  }
  #screen-interview .interviewer-wave {
    right: 20px;
    bottom: 24px;
  }
  .studio-scene-note {
    display: none;
  }
  .studio-dock {
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }
  .studio-question-meta {
    gap: 9px;
    font-size: 9px;
  }
  #iv-difficulty {
    display: none;
  }
  .studio-question-tools {
    gap: 12px;
  }
  #screen-interview .btn-text {
    font-size: 10px;
  }
  #iv-play,
  #iv-question-toggle {
    min-height: 44px;
  }
  #iv-stem {
    font-size: 16px;
    margin: 5px 0 9px;
  }
  .studio-caption {
    font-size: 10px;
    margin: 8px auto 13px;
  }
  #iv-thinking {
    gap: 12px;
  }
  .thinking-clock {
    font-size: 10px;
    gap: 5px;
  }
  .thinking-clock svg {
    display: none;
  }
  #iv-countdown {
    font-size: 22px;
  }
  #iv-skip-think {
    min-width: 0;
    padding: 11px 16px;
    font-size: 12px;
    min-height: 44px;
  }
  #iv-skip-think svg {
    width: 15px;
  }
  #screen-interview #iv-text {
    font-size: 16px;
    min-height: 100px;
  }
  #screen-interview .answer-head {
    margin-bottom: 8px;
  }
  .text-answer-footer {
    gap: 10px;
    margin-top: 9px;
  }
  #screen-interview .answer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
  #screen-interview .hint {
    font-size: 9px;
  }
  #iv-submit {
    min-width: 112px;
    font-size: 12px;
  }
  .studio-answer-options {
    gap: 10px;
    align-items: flex-start;
    margin-top: 8px;
  }
  #screen-interview .answer-mode {
    min-height: 44px;
  }
  #screen-interview .recorder {
    gap: 10px;
  }
  #screen-interview .rec-btn {
    min-width: 180px;
    font-size: 12px;
    padding: 12px 16px;
    min-height: 46px;
  }
  #screen-interview .wave {
    gap: 2px;
  }
  #screen-interview .wave > i:nth-child(n + 16) {
    display: none;
  }
  .studio-disclaimer {
    margin-top: 12px;
    font-size: 8px;
  }
  #screen-interview[data-phase="complete"] .studio-caption {
    font-size: 16px;
    line-height: 1.9;
    max-width: 290px;
    margin: 8px auto 25px;
  }
  .studio-complete-actions {
    gap: 14px;
  }
  .studio-complete-actions > .btn {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px 13px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #screen-interview .spinner,
  .interviewer-wave i {
    animation: none !important;
  }
}

@media (max-width: 540px) {
  #screen-interview .interviewer-visual .digital-portrait {
    max-width: none;
    width: auto;
    height: 100%;
    mask-image: none;
  }
  #screen-interview[data-phase="complete"] .studio-caption {
    text-wrap: balance;
  }
}
