/* 面试间 · PC browser layout (candidate app) */

.app-frame {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  background: var(--paper);
  overflow: visible;
  box-shadow: none;
}

.page {
  width: 100%;
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 36px 32px 72px;
}
.narrow-page { max-width: 720px; }

.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.page-title-lg {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.page-sub {
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.page-head { min-height: 44px; margin-bottom: 26px; }

/* ---------- top navigation ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  background: rgba(246, 247, 250, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 228, 236, 0.92);
}
.topnav-inner {
  width: 100%;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 38px;
}
.topnav-brand {
  border: 0;
  background: transparent;
  padding: 0;
  flex: none;
}
.topnav-brand .wordmark { font-size: 21px; }
.topnav-links { display: flex; align-items: center; gap: 2px; }
.topnav-links button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 10px;
  transition: color 0.16s, background 0.16s;
}
.topnav-links button:hover { color: var(--ink); background: rgba(43, 58, 143, 0.05); }
.topnav-links button.active {
  color: var(--indigo);
  background: var(--indigo-soft);
  font-weight: 600;
}
.topnav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topnav-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
  border-radius: 12px;
}
.topnav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 0;
  font-size: 15px;
}

/* ---------- auth ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.98fr);
}
.auth-brand {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 46px 56px 40px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(80% 60% at 92% 0%, rgba(75, 98, 220, 0.5) 0%, transparent 60%),
    radial-gradient(70% 55% at 0% 100%, rgba(240, 180, 41, 0.15) 0%, transparent 58%),
    linear-gradient(165deg, #151827 0%, #191d30 55%, #10131f 100%);
}
.auth-rings {
  position: absolute;
  right: -140px;
  top: -120px;
  width: 620px;
  height: 620px;
  opacity: 0.6;
  pointer-events: none;
}
.auth-brand-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-brand-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.06em;
}
.auth-brand-main {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: 46px 0;
  max-width: 560px;
}
.auth-eyebrow {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.16em;
}
.auth-brand-main h1 {
  margin-top: 16px;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
.auth-brand-main h1 em { font-style: normal; color: var(--saffron); }
.auth-brand-sub {
  margin-top: 20px;
  max-width: 430px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.58);
}
.auth-points {
  margin-top: 38px;
  display: grid;
  gap: 18px;
  max-width: 450px;
}
.auth-point { display: flex; align-items: flex-start; gap: 13px; }
.auth-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  margin-top: 7px;
  flex: none;
  box-shadow: 0 0 0 5px rgba(240, 180, 41, 0.08);
}
.auth-point b { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.auth-point span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.42);
}
.auth-brand-foot {
  position: relative;
  z-index: 2;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}
.auth-panel {
  background: var(--paper);
  min-height: 100vh;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-panel-scroll {
  align-items: flex-start;
  overflow-y: auto;
  padding-top: 56px;
  padding-bottom: 56px;
}
.auth-card { width: min(100%, 400px); }
.auth-card-wide { width: min(100%, 440px); }
.auth-card-head h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-card-head p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.auth-card .login-form { margin-top: 28px; }
.auth-card .login-foot { text-align: center; }
.auth-card .login-switch { margin-top: 12px; }
.auth-card .field + .field { margin-top: 14px; }
.auth-card .chip-grid { gap: 8px; }
.auth-card .chip { font-size: 12.5px; min-height: 34px; padding: 6px 11px; }

/* ---------- home ---------- */
.home-page { max-width: 1180px; }
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.9fr);
  gap: 38px;
  align-items: start;
}
.home-main { min-width: 0; padding-top: 8px; }
.home-greet { position: relative; }
.home-greet .who { font-size: 13px; color: var(--muted); }
.home-title {
  margin-top: 12px;
  font-size: 48px;
  line-height: 1.23;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 680px;
}
.home-title .accent::after { height: 12px; bottom: 4px; }
.home-hero-art {
  width: 220px;
  right: 10px;
  top: -10px;
  opacity: 0.75;
}
.home-greet .hero-sub {
  margin-top: 16px;
  max-width: 440px;
  font-size: 14.5px;
  line-height: 1.7;
}
.home-practice {
  margin-top: 32px;
  padding: 30px 32px 28px;
  border-radius: 26px;
  min-height: 0;
}
.home-practice .pc-row { align-items: flex-end; }
.home-practice h2 {
  margin-top: 10px;
  font-size: 27px;
  line-height: 1.38;
  max-width: 430px;
}
.home-practice p { font-size: 13.5px; max-width: 360px; }
.home-practice .pc-stat { font-size: 11.5px; }
.home-practice .pc-stat b { font-size: 22px !important; }
.home-practice .btn {
  width: auto;
  margin-top: 24px;
  min-height: 48px;
  padding: 0 26px;
}
.home-figures {
  display: flex;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.home-figures > div {
  flex: 1;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.home-figures > div:first-child { padding-left: 0; border-left: 0; }
.home-figures b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--indigo);
}
.home-figures span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.home-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home-side .active-banner { margin-top: 0; }
.home-side-card { width: 100%; text-align: left; }
.home-side-card.resume-mini { margin-top: 0; padding: 18px 20px; }
.home-report-card { cursor: pointer; transition: border-color 0.16s, transform 0.12s; }
.home-report-card:hover { border-color: var(--line-strong); }
.section-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.section-mini-head .link { font-size: 11.5px; font-weight: 500; color: var(--indigo); }
.home-report-body {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.home-report-score {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--indigo);
}
.home-report-score small {
  font-family: var(--font);
  font-size: 11px;
  color: var(--muted);
  margin-left: 3px;
}
.home-report-body .chev { margin-left: auto; color: var(--faint); }
.home-empty-card { display: flex; align-items: center; gap: 13px; }
.home-empty-card .empty-icon { margin: 0; width: 42px; height: 42px; border-radius: 13px; flex: none; }
.home-note { padding: 16px 18px; }
.home-recent { margin-top: 46px; }
.home-recent .section-title { margin: 0 0 14px; }
.home-recent .section-title .link { color: var(--indigo); font-weight: 500; }
.recent-table { padding: 4px 0; overflow: hidden; }
.recent-row {
  width: 100%;
  display: grid;
  grid-template-columns: 84px minmax(130px, 1.2fr) minmax(160px, 1.5fr) 92px 72px 22px;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 13px;
}
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { background: #fafbfd; }
.rr-date { font-size: 12px; color: var(--muted); }
.rr-job { font-weight: 700; }
.rr-meta { font-size: 12px; color: var(--muted); }
.rr-score { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--indigo); white-space: nowrap; }
.rr-score.muted { font-family: var(--font); font-size: 11.5px; font-weight: 500; color: var(--faint); }
.rr-status {
  display: inline-flex;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  background: #eaf6f0;
  color: #16795a;
}
.rr-status.ongoing { background: #fdf3d7; color: #8a5d00; }
.recent-row .icon { color: var(--faint); }
.home-empty-recent { padding: 42px; }

/* ---------- setup ---------- */
.setup-page { max-width: 1120px; }
.setup-page .steps { max-width: 820px; margin: 2px 0 30px; }
.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: start;
}
.setup-main { min-width: 0; }
.setup-step-head { margin-bottom: 28px; }
.setup-step-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--indigo);
}
.setup-page .setup-h { font-size: 34px; margin-top: 10px; }
.setup-page .setup-sub { max-width: 580px; margin-top: 10px; font-size: 13.5px; }
.setup-page .setup-block { margin-top: 28px; }
.choice-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-grid-3 .choice-card { min-height: 126px; padding: 18px; }
.choice-grid-3 .choice-card .choice-title { font-size: 16px; }
.choice-grid-3 .choice-card .choice-desc { font-size: 12px; max-width: 220px; }
.chip-grid.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.setup-category { justify-content: center; min-height: 48px; font-size: 13.5px; }
.duration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.duration-card { padding: 18px; min-height: 132px; }
.duration-card .dc-min { font-size: 32px; }
.setup-actions { margin-top: 34px; display: flex; justify-content: flex-start; gap: 10px; }
.setup-actions .btn-primary { min-width: 180px; }
.setup-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.setup-aside .ticket { margin: 0; }
.setup-aside .ticket-title { font-size: 21px; }
.setup-aside .ticket-foot { padding-top: 12px; }
.setup-resume-warning { padding: 16px; }
.setup-tip { padding: 16px 18px; }

/* ---------- resume ---------- */
.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.resume-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.resume-main > .panel { margin: 0; }
.resume-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.resume-preview { padding: 30px 32px; }
.resume-preview .rp-name { font-size: 30px; }
.resume-preview .rp-summary { max-width: 700px; font-size: 14px; }
.resume-status-name { margin-top: 12px; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.resume-tips { padding: 18px; }
.tip-list { margin-top: 12px; display: grid; gap: 9px; }
.tip-list li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
}
.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--indigo);
  opacity: 0.5;
}
.resume-aside .panel { padding: 18px; }
.resume-aside .panel-tint { padding: 16px 18px; }

/* ---------- interview ---------- */
.room-inner { width: 100%; max-width: 1180px; height: 100dvh; max-height: 100dvh; padding: 24px 32px 28px; }
.room-progress { margin-top: 20px; }
.room-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.room-avatar-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 100%;
  min-width: 0;
}
.avatar-stage {
  position: relative;
  flex: none;
  width: 170px;
  aspect-ratio: 704 / 1248;
  border-radius: 24px;
  overflow: hidden;
  background: #1a1d2c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.avatar-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 20, 0.75));
  pointer-events: none;
}
.avatar-stage.speaking {
  border-color: rgba(240, 180, 41, 0.42);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9), 0 0 55px -12px rgba(240, 180, 41, 0.45);
}
.avatar-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
.avatar-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 14, 24, 0.55);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.avatar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(240, 180, 41, 0.12);
}
.avatar-stage.speaking .avatar-dot { animation: avatar-pulse 1.4s ease-in-out infinite; }
@keyframes avatar-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
}
.avatar-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 9px;
  border-radius: 10px;
  text-align: center;
  background: rgba(12, 14, 24, 0.55);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 10.5px;
  line-height: 1.4;
}
.room-card {
  width: min(100%, 780px);
  flex: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.026));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 18px 26px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 34px 80px -52px rgba(0, 0, 0, 0.95);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.room-card.is-recording {
  border-color: rgba(240, 180, 41, 0.34);
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.06) inset, 0 0 70px -26px rgba(240, 180, 41, 0.4);
}
.room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.answer-timer {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--saffron);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.room-card .q-eyebrow { gap: 0; }
.q-eyebrow-sep {
  margin: 0 7px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
}
.room-card .q-text {
  margin-top: 0;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.45;
  max-height: 30vh;
  overflow-y: auto;
}
.room-card .q-hint { margin-top: 8px; }
.room-card .q-actions { margin-top: 12px; }
.room-card .answer-zone { margin-top: 0; }
.room-card .voice-zone {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  padding: 2px 0 0;
}
.room-card .mic-wrap {
  grid-column: 1;
  grid-row: 1;
  width: 100px;
  height: 100px;
  align-self: center;
}
.room-card .mic-orb { width: 64px; height: 64px; }
.room-card .voice-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.room-card .mic-label { margin-top: 0; text-align: left; }
.room-card .mic-time { margin-top: 3px; text-align: left; }
.room-card .waveform { justify-content: flex-start; margin-top: 8px; height: 22px; }
.room-card .answer-tools {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: flex-start;
  margin-top: 0;
}
.room-card .answer-tools.is-done { justify-content: center; }
.answer-done-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #18203f;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.85), 0 0 0 6px rgba(255, 255, 255, 0.04);
  transition: transform 0.16s, background 0.16s;
}
.answer-done-btn .icon { color: var(--indigo); }
.answer-done-btn:hover { background: #f2f4f9; }
.answer-done-btn:active { transform: scale(0.97); }
.room-card .answer-error {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 2px;
}
.room-card .room-textarea { min-height: 140px; }
.room-card .answer-zone .btn { margin-top: 10px; }
.room-card .room-bottom {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.q-text {
  margin-top: 18px;
  font-size: clamp(32px, 3.1vw, 42px);
  line-height: 1.5;
  max-height: none;
  overflow: visible;
}
.q-hint { margin-top: 18px; font-size: 13px; }
.q-actions { margin-top: 24px; }
.mic-wrap { width: 180px; height: 180px; }
.mic-orb { width: 112px; height: 112px; }
.voice-zone { padding: 6px 0 2px; }
.room-intro { max-width: 780px; padding: 20px 0; }
.room-intro h1 { font-size: clamp(38px, 4vw, 54px); }
.room-intro .ri-note { max-width: 460px; }
.room-intro .btn { max-width: 320px; }
.device-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 460px);
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}
.device-check-main { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.device-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}
.device-title { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.9); }
.device-text { margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.45); }
.device-check.passed { border-color: rgba(240, 180, 41, 0.38); background: rgba(240, 180, 41, 0.07); }
.device-check.passed .device-icon { background: rgba(240, 180, 41, 0.16); color: var(--saffron); }
.device-check.failed { border-color: rgba(201, 74, 74, 0.42); background: rgba(201, 74, 74, 0.09); }
.device-check.failed .device-icon { background: rgba(201, 74, 74, 0.16); color: #ffb7aa; }
.device-check.failed .device-title { color: #ffd0c6; }
.device-btn {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
}
.device-btn:disabled { opacity: 0.55; }
.room-intro .device-check + .btn { margin-top: 18px; }
.room-processing { border-radius: 24px; }

/* ---------- report ---------- */
.report-page { max-width: 1120px; }
.report-page .page-head { margin-bottom: 20px; }
.report-sheet {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 40px 30px;
}
.report-head { padding-right: 134px; }
.report-head h1 { font-size: 32px; }
.report-head .rh-sub { font-size: 12.5px; }
.seal { width: 96px; height: 96px; top: 30px; right: 36px; }
.seal .seal-num { font-size: 34px; }
.report-rule { margin: 22px 0; }
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 46px;
  margin-top: 4px;
}
.report-col { min-width: 0; }
.report-col .report-section:first-child { margin-top: 0; }
.report-section { margin-top: 26px; }
.report-reviews { margin-top: 34px; }
.report-sheet .radar-wrap svg { max-width: 360px; }
.report-actions { max-width: 1080px; margin: 20px auto 0; }
.report-loading { max-width: 720px; margin: 50px auto; padding: 54px 30px; }

/* ---------- history ---------- */
.history-page { max-width: 1180px; }
.hist-head { align-items: flex-end; justify-content: space-between; gap: 24px; }
.hist-head .history-filters { margin: 0 0 4px; }
.history-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.history-filters .chip { min-height: 34px; font-size: 12.5px; }
.history-panel { padding: 0; overflow-x: auto; }
.hist-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.hist-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  background: #f8f9fc;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.hist-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  vertical-align: middle;
}
.hist-table tbody tr { cursor: pointer; transition: background 0.14s; }
.hist-table tbody tr:hover td { background: #fafbfd; }
.hist-table tbody tr:last-child td { border-bottom: 0; }
.ht-job { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ht-sub { margin-top: 3px; font-size: 10.5px; color: var(--faint); }
.ht-time { white-space: nowrap; color: var(--muted); font-size: 12px; }
.ht-score { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--indigo); white-space: nowrap; }
.ht-score.pending { font-family: var(--font); font-size: 11px; font-weight: 600; color: #8a5d00; }
.ht-status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 6px;
  background: #eaf6f0;
  color: #16795a;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ht-status.ongoing { background: #fdf3d7; color: #8a5d00; }
.ht-status.muted { background: #f1f2f6; color: #777b8a; }
.ht-arrow { width: 28px; color: var(--faint); }
.history-empty { padding: 60px; }

/* ---------- me ---------- */
.me-page { max-width: 1000px; }
.me-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.me-profile { position: sticky; top: 96px; padding: 28px 24px; }
.me-profile .profile-head { flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
.me-profile .profile-avatar { width: 72px; height: 72px; border-radius: 22px; font-size: 28px; }
.me-profile .profile-name { font-size: 22px; }
.me-edit-btn { margin-top: 16px; width: 100%; }
.me-profile .profile-stats { margin-top: 24px; gap: 8px; }
.me-profile .profile-stat { padding: 12px 14px; background: #f8f9fc; }
.me-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.me-stage span { color: var(--muted); }
.me-stage b { font-weight: 600; color: var(--ink); }
.me-main { display: flex; flex-direction: column; gap: 16px; }
.me-main .menu-list { margin: 0; }
.me-main > p { margin: 4px 2px 0; }
.me-danger-list { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .home-title { font-size: 40px; }
  .room-body { gap: 14px; }
  .avatar-stage { width: 160px; }
  .room-card .q-text { font-size: 28px; }
  .setup-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; }
}

@media (max-width: 960px) {
  .page { padding: 28px 24px 56px; }
  .topnav-inner { padding: 0 24px; gap: 20px; }
  .topnav-links { display: none; }
  .home-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .home-side .home-note { grid-column: 1 / -1; }
  .home-title { font-size: 38px; }
  .setup-layout, .resume-layout, .me-layout { grid-template-columns: 1fr; }
  .setup-aside, .resume-aside, .me-profile { position: static; }
  .setup-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .setup-aside .ticket { grid-row: span 2; }
  .choice-grid-3 { grid-template-columns: 1fr; }
  .chip-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .duration-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; gap: 0; }
  .report-sheet { padding: 28px 24px 24px; }
  .room-body { gap: 14px; padding-top: 14px; }
  .avatar-stage { width: 150px; }
  .room-card { padding: 18px 22px 12px; }
  .room-card .q-text { font-size: 26px; }
  .room-inner { padding: 20px 22px 24px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { min-height: auto; padding: 30px 32px 36px; }
  .auth-brand-main { padding: 34px 0 10px; }
  .auth-brand-main h1 { font-size: 38px; }
  .auth-points, .auth-brand-foot { display: none; }
  .auth-panel { min-height: auto; padding: 40px 24px 56px; }
}

@media (max-width: 640px) {
  .page { padding: 22px 16px 44px; }
  .topnav { height: 64px; }
  .topnav-inner { padding: 0 16px; }
  .topnav-cta { padding: 0 14px; }
  .home-title { font-size: 32px; }
  .home-hero-art { display: none; }
  .home-figures > div { padding: 0 14px; }
  .home-figures b { font-size: 23px; }
  .home-side { grid-template-columns: 1fr; }
  .home-side .home-note { grid-column: auto; }
  .recent-row { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 16px; }
  .rr-date, .rr-meta { display: none; }
  .rr-status { justify-self: start; }
  .recent-row .icon { display: none; }
  .setup-page .setup-h { font-size: 27px; }
  .setup-aside { grid-template-columns: 1fr; }
  .setup-aside .ticket { grid-row: auto; }
  .duration-grid { grid-template-columns: 1fr 1fr; }
  .auth-brand { padding: 24px 20px 26px; }
  .auth-brand-main h1 { font-size: 32px; }
  .auth-brand-sub { font-size: 13px; }
  .auth-panel { padding: 30px 18px 44px; }
  .auth-card-head h2 { font-size: 24px; }
  .report-head { padding-right: 90px; }
  .report-head h1 { font-size: 26px; }
  .seal { width: 76px; height: 76px; right: 18px; top: 24px; }
  .seal .seal-num { font-size: 27px; }
  .room-inner { padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); }
  .room-body { gap: 16px; padding: 16px 0 24px; }
  .avatar-stage { width: 132px; }
  .room-card { padding: 16px 16px 12px; border-radius: 22px; gap: 10px; }
  .room-card .q-text { font-size: 22px; max-height: 32vh; }
  .room-card-head { gap: 10px; font-size: 11px; }
  .room-card-head .q-eyebrow { font-size: 11px; }
  .room-card-head .answer-timer { font-size: 14px; }
  .room-card .voice-zone { grid-template-columns: 1fr; justify-items: center; row-gap: 4px; }
  .room-card .mic-wrap { grid-column: 1; grid-row: 1; width: 108px; height: 108px; }
  .room-card .mic-orb { width: 68px; height: 68px; }
  .room-card .voice-copy { grid-column: 1; grid-row: 2; align-items: center; }
  .room-card .mic-label, .room-card .mic-time { text-align: center; }
  .room-card .waveform { justify-content: center; }
  .room-card .answer-tools { justify-content: center; }
  .device-check { flex-direction: column; align-items: stretch; }
  .device-btn { width: 100%; }
  .hist-head { flex-direction: column; align-items: flex-start; }
  .history-filters { margin-top: 4px; }
}

/* ---------- voice answer states ---------- */
.mic-orb.counting {
  background: linear-gradient(150deg, #b47f05 0%, #f0b429 100%);
  color: #201800;
  animation: none;
  box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.7), 0 0 0 12px rgba(240, 180, 41, 0.1);
}
.countdown-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.answer-error {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(201, 74, 74, 0.13);
  border: 1px solid rgba(201, 74, 74, 0.28);
  color: #ffb7aa;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: left;
}
.answer-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  line-height: 1.65;
}
.answer-note .icon { margin-top: 1px; color: var(--saffron); }
.room-card .answer-zone .btn { margin-top: 12px; }
.room-card .answer-tools { flex-wrap: wrap; }
.room-card .room-textarea { width: 100%; }
@media (max-width: 640px) {
  .countdown-num { font-size: 38px; }
}
.listen-btn:disabled { opacity: 0.45; pointer-events: none; }
