/* 面试间 · candidate app */

:root {
  --ink: #191c28;
  --ink-2: #343849;
  --muted: #747889;
  --faint: #9b9eac;
  --paper: #f2f3f7;
  --surface: #ffffff;
  --line: #e2e4ec;
  --line-strong: #cfd3df;
  --indigo: #2b3a8f;
  --indigo-2: #4157d4;
  --indigo-soft: #eceefb;
  --saffron: #f0b429;
  --saffron-soft: #fdf3d7;
  --seal: #c2452f;
  --mint: #1b8f6c;
  --danger: #c94a4a;
  --room: #12141f;
  --room-surface: #1b1e2c;
  --radius: 20px;
  --radius-lg: 26px;
  --shadow: 0 26px 60px -42px rgba(24, 30, 80, 0.55);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Songti SC", "STSong", "STZhongsong", "Noto Serif SC", "Source Han Serif SC", SimSun, Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: #e8eaf1;
  background-image:
    radial-gradient(900px 520px at 12% -10%, rgba(65, 87, 212, 0.18), transparent 62%),
    radial-gradient(760px 620px at 108% 18%, rgba(240, 180, 41, 0.16), transparent 58%),
    radial-gradient(rgba(25, 28, 40, 0.075) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
p, h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

#app { min-height: 100dvh; }
.app-frame {
  position: relative;
  width: min(100%, 560px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}
@media (min-width: 760px) {
  .app-frame {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 90px -30px rgba(25, 28, 40, 0.14);
  }
}

.page {
  min-height: 100dvh;
  padding: 26px 20px calc(110px + env(safe-area-inset-bottom));
  animation: page-in 0.4s cubic-bezier(0.22, 0.9, 0.32, 1) both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.26;
}
.h1 { font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.h2 { font-size: 20px; font-weight: 700; line-height: 1.4; }
.h3 { font-size: 16px; font-weight: 700; line-height: 1.45; }
.body { font-size: 15px; line-height: 1.68; color: var(--ink-2); }
.small { font-size: 13px; line-height: 1.6; color: var(--muted); }
.tiny { font-size: 11.5px; line-height: 1.5; color: var(--faint); }
.strong { font-weight: 700; color: var(--ink); }
.muted { color: var(--muted); }
.saffron { color: #b47f05; }
.indigo { color: var(--indigo); }
.seal-color { color: var(--seal); }

/* ---------- brand ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.13em;
  color: var(--ink);
}
.wordmark::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--saffron);
  margin-top: 3px;
}
.wordmark.on-dark { color: #fff; }

/* ---------- layout helpers ---------- */
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt-6 { margin-top: 6px; } .mt-10 { margin-top: 10px; } .mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; }

.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 18px;
}
.page-head .page-title { font-size: 17px; font-weight: 700; }
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  color: var(--ink-2);
  flex: none;
  transition: background 0.18s, transform 0.12s;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn.subtle { border-color: transparent; background: transparent; }
.icon-btn.on-dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  color: #fff;
}

/* ---------- surfaces ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.panel-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-tint {
  background: var(--indigo-soft);
  border: 1px solid rgba(43, 58, 143, 0.1);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.panel-warm {
  background: #fffaf0;
  border: 1px solid #f2e3bf;
  border-radius: var(--radius);
  padding: 18px 20px;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  border: 0;
  border-radius: 15px;
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.14s ease, box-shadow 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, #26347e 0%, #3e54c9 100%);
  box-shadow: 0 18px 34px -20px rgba(43, 58, 143, 0.8);
}
.btn-primary:hover { box-shadow: 0 20px 36px -18px rgba(43, 58, 143, 0.75); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-soft { background: var(--indigo-soft); color: var(--indigo); }
.btn-warm { background: var(--saffron-soft); color: #8a5d00; }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 0 14px; border-radius: 12px; font-size: 13.5px; }
.btn-danger {
  background: linear-gradient(140deg, #ab3728 0%, #cf523c 100%);
  color: #fff;
  box-shadow: 0 18px 34px -22px rgba(171, 55, 40, 0.8);
}
.icon { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon svg { width: 100%; height: 100%; }
.btn-text {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-text.danger { color: var(--danger); }
.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--indigo);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- inputs ---------- */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 14px;
  padding: 0 15px;
  height: 52px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-size: 15px;
}
.textarea {
  height: auto;
  min-height: 140px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.65;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--indigo-2);
  box-shadow: 0 0 0 3px rgba(65, 87, 212, 0.14);
}
.input::placeholder, .textarea::placeholder { color: #a9acba; }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }
.input-group .btn { flex: none; min-height: 52px; padding: 0 16px; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.16s ease;
  text-align: center;
}
.chip:hover { border-color: #aab0c4; }
.chip.active {
  border-color: var(--indigo);
  background: var(--indigo-soft);
  color: var(--indigo);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(43, 58, 143, 0.12) inset;
}
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-grid.cols-2 { display: grid; grid-template-columns: 1fr 1fr; }
.chip-grid.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.chip.sm { min-height: 30px; padding: 4px 10px; font-size: 12px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f2f6;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  display: inline-block;
}

/* ---------- selection cards ---------- */
.choice-card {
  position: relative;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  transition: border-color 0.16s, background 0.16s, transform 0.12s;
  width: 100%;
}
.choice-card:active { transform: scale(0.985); }
.choice-card.active {
  border-color: var(--indigo);
  background: linear-gradient(180deg, #f6f7ff 0%, #ffffff 100%);
  box-shadow: 0 0 0 1px rgba(43, 58, 143, 0.16) inset;
}
.choice-card .choice-title { font-weight: 700; font-size: 15px; }
.choice-card .choice-desc { margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.choice-card .check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: #fff;
  transition: all 0.16s;
}
.choice-card.active .check {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 560px);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(226, 228, 236, 0.9);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.16s;
  background: none;
  border: 0;
}
.nav-item.active { color: var(--indigo); }
.nav-item .nav-icon {
  width: 34px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  transition: background 0.16s;
}
.nav-item.active .nav-icon { background: var(--indigo-soft); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(88vw, 420px);
  background: rgba(25, 28, 40, 0.94);
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease both;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 19, 32, 0.52);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fade-in 0.2s ease both;
}
@media (min-width: 760px) {
  .overlay { align-items: center; padding: 24px; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: min(100%, 520px);
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  animation: sheet-up 0.3s cubic-bezier(0.22, 0.9, 0.32, 1) both;
  max-height: 88dvh;
  overflow: auto;
}
@media (min-width: 760px) {
  .sheet { border-radius: 26px; padding-bottom: 24px; }
}
@keyframes sheet-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sheet-title { font-size: 18px; font-weight: 700; }

/* =========================================================
   LOGIN
   ========================================================= */
.login-screen {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 65% at 85% 0%, rgba(75, 98, 220, 0.5) 0%, transparent 60%),
    radial-gradient(80% 55% at 6% 8%, rgba(240, 180, 41, 0.2) 0%, transparent 55%),
    linear-gradient(165deg, #141726 0%, #191d30 52%, #101321 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 0;
}
.login-rings {
  position: absolute;
  top: -90px;
  right: -120px;
  width: 380px;
  height: 380px;
  opacity: 0.55;
  pointer-events: none;
}
.login-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.login-hero { position: relative; z-index: 2; margin-top: clamp(38px, 12vh, 96px); }
.login-hero .display { font-size: clamp(34px, 9vw, 42px); line-height: 1.28; letter-spacing: 0.02em; }
.login-hero .display em { font-style: normal; color: var(--saffron); }
.login-sub {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
  max-width: 330px;
}
.login-sheet {
  position: relative;
  z-index: 2;
  margin: auto -24px 0;
  margin-top: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 30px 30px 0 0;
  padding: 26px 24px calc(28px + env(safe-area-inset-bottom));
  box-shadow: 0 -24px 60px -40px rgba(0, 0, 0, 0.6);
}
@media (min-width: 760px) {
  .login-sheet { border-radius: 30px; margin: auto 8px 24px; padding-bottom: 26px; }
}
.login-sheet h2 { font-size: 19px; font-weight: 700; }
.login-sheet .small { margin-top: 6px; }
.login-form { margin-top: 20px; }
.login-dev {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron-soft);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  color: #7f5a00;
}
.login-foot { margin-top: 16px; text-align: center; font-size: 11.5px; color: var(--faint); }
.login-switch {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.login-switch .link { font-size: 12.5px; }

/* =========================================================
   HOME
   ========================================================= */
.home-greet { display: flex; align-items: center; justify-content: space-between; }
.home-greet .who { font-size: 13px; color: var(--muted); }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #2b3a8f, #4157d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.hero { position: relative; margin-top: 18px; }
.hero h1 { font-size: 30px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; position: relative; z-index: 1; }
.hero h1 .accent {
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: -2px;
  bottom: 3px;
  height: 9px;
  background: rgba(240, 180, 41, 0.38);
  z-index: -1;
  border-radius: 2px;
}
.hero-art {
  position: absolute;
  right: -8px;
  top: -26px;
  width: 140px;
  opacity: 0.75;
  pointer-events: none;
}
.hero-sub { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.65; max-width: 300px; }

.practice-card {
  position: relative;
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(240, 180, 41, 0.18) 0%, transparent 52%),
    linear-gradient(150deg, #202c6e 0%, #2b3a8f 48%, #3e54c9 100%);
  color: #fff;
  padding: 22px;
  box-shadow: 0 28px 50px -34px rgba(30, 40, 110, 0.85);
}
.practice-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  right: -110px;
  bottom: -150px;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.045),
    0 0 0 58px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.practice-card .pc-kicker { font-size: 12px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.05em; }
.practice-card h2 { margin-top: 8px; font-size: 23px; line-height: 1.4; font-weight: 700; }
.practice-card p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.68); max-width: 250px; }
.practice-card .btn {
  margin-top: 20px;
  background: #fff;
  color: var(--indigo);
  min-height: 48px;
  padding: 0 22px;
  position: relative;
  z-index: 1;
  box-shadow: none;
}
.practice-card .pc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.practice-card .pc-stat {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
  line-height: 1.6;
}

.resume-mini { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.resume-mini .rm-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--saffron-soft);
  color: #9a6a00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.resume-mini .rm-title { font-size: 14px; font-weight: 700; }
.resume-mini .rm-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.section-title h2 { font-size: 16px; font-weight: 700; }
.section-title .link { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.active-banner {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--saffron-soft);
  border: 1px solid #f0dfb2;
  border-radius: 16px;
  padding: 13px 15px;
}
.active-banner .ab-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a6a00;
  flex: none;
}
.active-banner .ab-title { font-size: 13px; font-weight: 700; color: #6d4b00; }
.active-banner .ab-sub { font-size: 11.5px; color: #8a6500; margin-top: 1px; }
.active-banner .btn { margin-left: auto; flex: none; }

.report-mini {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
}
.report-mini .score {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1;
  min-width: 46px;
}
.report-mini .score span { font-family: var(--font); font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.report-mini .ri-title { font-size: 13.5px; font-weight: 700; }
.report-mini .ri-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.report-mini .chev { margin-left: auto; color: var(--faint); }

.empty-block { padding: 26px 10px; text-align: center; }
.empty-block .empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-block p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* =========================================================
   TICKET
   ========================================================= */
.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.ticket-body { padding: 20px 20px 16px; }
.ticket-kicker { font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; }
.ticket-title { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.ticket-rows { margin-top: 14px; }
.ticket-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed #eceef4;
}
.ticket-row:last-child { border-bottom: 0; }
.ticket-row .tk-key { color: var(--muted); flex: none; }
.ticket-row .tk-val { text-align: right; font-weight: 600; line-height: 1.55; }
.ticket-cut {
  position: relative;
  height: 22px;
  border-top: 1px dashed #d9dce6;
  margin: 0 20px;
}
.ticket-cut::before, .ticket-cut::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.ticket-cut::before { left: -32px; }
.ticket-cut::after { right: -32px; }
.ticket-foot {
  padding: 4px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ticket-foot .tf-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* =========================================================
   RESUME
   ========================================================= */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e9ebf2;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}
.segmented button {
  border: 0;
  background: transparent;
  border-radius: 11px;
  min-height: 40px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.16s;
}
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 4px 10px -6px rgba(25, 28, 40, 0.35); }

.upload-zone {
  border: 1.5px dashed #c8ccda;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  padding: 34px 20px;
  text-align: center;
  transition: border-color 0.16s, background 0.16s;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--indigo-2); background: #f8f9ff; }
.upload-zone .up-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin: 0 auto 12px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-zone .up-title { font-size: 15px; font-weight: 700; }
.upload-zone .up-sub { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.upload-status { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--indigo); }

.form-section { margin-top: 22px; }
.form-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.form-section-head .h3 { font-size: 14.5px; }
.repeat-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  background: #fff;
}
.repeat-item + .repeat-item { margin-top: 10px; }
.repeat-item .remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 0;
  background: #f4f5f8;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.repeat-item .field-label { font-size: 11.5px; }
.repeat-item .input, .repeat-item .textarea { font-size: 14px; }
.repeat-item .textarea { min-height: 86px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-row {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  border-radius: 14px;
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.resume-preview .rp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.resume-preview .rp-name { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.resume-preview .rp-summary { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.resume-block { margin-top: 18px; }
.resume-block .rb-title { font-size: 11.5px; font-weight: 700; color: var(--indigo); letter-spacing: 0.08em; }
.resume-item { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); }
.resume-item .ri-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; }
.resume-item .ri-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.resume-item .ri-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.65; }
.resume-empty { margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

/* =========================================================
   SETUP
   ========================================================= */
.steps { display: flex; gap: 6px; margin: 4px 0 24px; }
.step-seg { flex: 1; }
.step-seg .bar { height: 4px; border-radius: 4px; background: #e2e4ec; overflow: hidden; }
.step-seg .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--indigo), var(--indigo-2)); border-radius: 4px; transition: width 0.3s ease; }
.step-seg.done .bar span, .step-seg.active .bar span { width: 100%; }
.step-seg .lbl { margin-top: 7px; font-size: 11px; color: var(--faint); }
.step-seg.active .lbl, .step-seg.done .lbl { color: var(--indigo); font-weight: 600; }
.setup-h { font-size: 23px; font-weight: 700; line-height: 1.4; }
.setup-sub { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.setup-block { margin-top: 24px; }
.setup-block-title { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.job-list { display: flex; flex-wrap: wrap; gap: 8px; }
.job-pick { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.job-pick .input { height: 48px; }
.job-pick-hint { margin-top: 8px; font-size: 11.5px; line-height: 1.65; color: var(--muted); }
.setup-scroll-3 {
  max-height: 132px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}
.chip-grid.cols-3.setup-scroll-3 { max-height: 166px; }
.setup-scroll-3::-webkit-scrollbar { width: 6px; }
.setup-scroll-3::-webkit-scrollbar-thumb { background: #c9cdda; border-radius: 99px; }
.random-btn {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.duration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duration-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  text-align: left;
  transition: all 0.16s;
  position: relative;
}
.duration-card.active { border-color: var(--indigo); background: linear-gradient(180deg, #f6f7ff, #fff); box-shadow: 0 0 0 1px rgba(43,58,143,.14) inset; }
.duration-card .dc-min { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1; }
.duration-card .dc-min span { font-family: var(--font); font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.duration-card .dc-name { margin-top: 7px; font-size: 13px; font-weight: 700; }
.duration-card .dc-desc { margin-top: 3px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.setup-actions { display: flex; gap: 10px; margin-top: 26px; }
.setup-actions .btn { flex: 1; }
.setup-actions .btn-primary { flex: 1.6; }

/* =========================================================
   INTERVIEW ROOM
   ========================================================= */
.room {
  position: fixed;
  inset: 0;
  z-index: 40;
  background:
    radial-gradient(90% 60% at 50% -8%, rgba(72, 92, 190, 0.45) 0%, transparent 60%),
    radial-gradient(60% 40% at 100% 100%, rgba(240, 180, 41, 0.12) 0%, transparent 60%),
    linear-gradient(175deg, #171a2b 0%, #121420 56%, #0e1019 100%);
  color: #fff;
  display: flex;
  justify-content: center;
}
.room-inner {
  width: min(100%, 560px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px 22px calc(26px + env(safe-area-inset-bottom));
  position: relative;
}
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.room-meta { text-align: center; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }
.room-progress { margin-top: 18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.11); overflow: hidden; }
.room-progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--saffron), #f7d06b); transition: width 0.5s ease; }
.room-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 12px 0; min-height: 0; }
.room-question { animation: q-in 0.42s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
@keyframes q-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.q-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--saffron); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.q-text {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(23px, 6.2vw, 29px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
  max-height: 46vh;
  overflow-y: auto;
}
.q-hint { margin-top: 16px; font-size: 12.5px; color: rgba(255, 255, 255, 0.45); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.q-actions { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
}
.listen-btn.playing { color: var(--saffron); border-color: rgba(240, 180, 41, 0.4); }

.answer-zone { margin-top: 26px; }
.voice-zone { display: flex; flex-direction: column; align-items: center; padding: 4px 0 8px; }
.mic-wrap { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.timer-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 3; }
.timer-ring .track { stroke: rgba(255, 255, 255, 0.1); }
.timer-ring .bar { stroke: var(--saffron); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke 0.3s; }
.mic-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(150deg, #33448f 0%, #2b3a8f 55%, #1e2a68 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.7), 0 0 0 10px rgba(255, 255, 255, 0.03);
  transition: background 0.25s, transform 0.15s;
}
.mic-orb:active { transform: scale(0.96); }
.mic-orb.recording {
  background: linear-gradient(150deg, #d5543c 0%, #b83f2a 100%);
  animation: orb-pulse 1.8s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 22px 48px -20px rgba(0,0,0,.7), 0 0 0 10px rgba(213, 84, 60, 0.08); }
  50% { box-shadow: 0 22px 48px -20px rgba(0,0,0,.7), 0 0 0 18px rgba(213, 84, 60, 0.13); }
}
.mic-label { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.62); }
.mic-time { margin-top: 4px; font-family: var(--serif); font-size: 17px; color: rgba(255, 255, 255, 0.9); font-variant-numeric: tabular-nums; }
.waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 26px; margin-top: 10px; }
.waveform i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: rgba(240, 180, 41, 0.8);
  height: 6px;
  animation: wave 0.9s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0.35;
}
.waveform.live i { animation-play-state: running; opacity: 1; }
@keyframes wave {
  0%, 100% { height: 5px; }
  50% { height: 20px; }
}
.answer-tools { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.room-textarea {
  width: 100%;
  min-height: 156px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  color: #fff;
  padding: 15px 16px;
  line-height: 1.7;
  font-size: 14.5px;
  resize: vertical;
  outline: none;
}
.room-textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.room-textarea:focus { border-color: rgba(240, 180, 41, 0.5); box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.08); }
.room-bottom { padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.room-bottom-row { display: flex; align-items: center; justify-content: space-between; }
.room-link {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.room-link.danger { color: rgba(240, 140, 120, 0.8); }
.room-processing {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(14, 16, 26, 0.86);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 30px;
}
.processing-dots { display: flex; gap: 7px; }
.processing-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--saffron);
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.processing-dots i:nth-child(2) { animation-delay: 0.15s; }
.processing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
}
.processing-title { font-size: 17px; font-weight: 700; }
.processing-sub { font-size: 13px; color: rgba(255, 255, 255, 0.5); line-height: 1.7; max-width: 280px; }

.room-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 20px;
}
.room-intro .ri-kicker { color: var(--saffron); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.room-intro h1 { margin-top: 14px; font-family: var(--serif); font-size: 34px; line-height: 1.35; font-weight: 600; }
.room-intro .ri-job { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.room-intro .ri-facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.room-fact {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}
.room-intro .ri-note { margin-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, 0.38); line-height: 1.7; max-width: 300px; }
.room-intro .btn { margin-top: 28px; width: 100%; background: #fff; color: var(--indigo); min-height: 54px; }

/* =========================================================
   REPORT
   ========================================================= */
.report-page .page-title { font-size: 16px; }
.report-sheet {
  position: relative;
  background: #fff;
  border: 1px solid #e6e2d8;
  border-radius: 4px;
  padding: 24px 20px 22px;
  box-shadow: 0 30px 60px -44px rgba(30, 30, 40, 0.55);
  background-image: linear-gradient(90deg, rgba(194, 69, 47, 0.05) 0, rgba(194, 69, 47, 0.05) 1px, transparent 1px);
  background-size: 100% 100%;
}
.report-head { padding-right: 84px; }
.report-head .rh-kicker { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.report-head h1 { margin-top: 8px; font-family: var(--serif); font-size: 26px; line-height: 1.4; font-weight: 700; }
.report-head .rh-sub { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.seal {
  position: absolute;
  top: 22px;
  right: 18px;
  width: 82px;
  height: 82px;
  border: 2px solid rgba(194, 69, 47, 0.72);
  border-radius: 50%;
  color: var(--seal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.5);
}
.seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(194, 69, 47, 0.5);
  border-radius: 50%;
}
.seal .seal-num { font-family: var(--serif); font-size: 29px; font-weight: 700; line-height: 1; }
.seal .seal-label { font-size: 9px; letter-spacing: 0.18em; margin-top: 4px; }
.seal.partial { font-size: 13px; text-align: center; line-height: 1.4; padding: 0 10px; }
.report-rule { height: 1px; background: #e9e4d9; margin: 18px 0; }
.report-note {
  display: flex;
  gap: 10px;
  background: #fdf7e7;
  border: 1px solid #f2e4bd;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
  color: #7f5a00;
  line-height: 1.6;
}
.report-section { margin-top: 24px; }
.report-section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.report-section-title h2 { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.report-section-title span { font-size: 11px; color: var(--faint); }
.relative-block { }
.relative-label { font-size: 13.5px; font-weight: 700; }
.relative-track {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef0f8 0%, #dfe3f5 55%, #d4d9f0 100%);
  margin: 18px 0 8px;
}
.relative-track .marker {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--indigo);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--indigo);
  transform: translate(-50%, -50%);
}
.relative-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); }
.relative-note { margin-top: 10px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.radar-wrap { display: flex; justify-content: center; margin: 2px 0 6px; }
.radar-wrap svg { width: 100%; max-width: 320px; height: auto; }
.dim-list { margin-top: 8px; }
.dim-row { padding: 11px 0; border-bottom: 1px solid #f0ede6; }
.dim-row:last-child { border-bottom: 0; }
.dim-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dim-name { font-size: 13.5px; font-weight: 700; }
.dim-score { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--indigo); }
.dim-score small { font-family: var(--font); font-size: 10px; color: var(--faint); font-weight: 500; margin-left: 2px; }
.dim-bar { height: 4px; background: #edeff6; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.dim-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--indigo), var(--indigo-2)); }
.dim-comment { margin-top: 7px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.insight-grid { display: grid; gap: 12px; }
.insight-card { border-radius: 14px; padding: 14px 15px; }
.insight-card.good { background: #f1f8f4; border: 1px solid #d9ece2; }
.insight-card.improve { background: #fdf7ef; border: 1px solid #f0e2cd; }
.insight-card .ic-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; }
.insight-card.good .ic-head { color: #177a5c; }
.insight-card.improve .ic-head { color: #9a6200; }
.insight-card ul { margin-top: 8px; display: grid; gap: 6px; }
.insight-card li { position: relative; padding-left: 13px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.insight-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.review-list { border-top: 1px solid #ece8df; }
.review-item { border-bottom: 1px solid #ece8df; }
.review-q {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 15px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.review-q .rq-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ddd8cc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}
.review-q .rq-text { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.6; }
.review-q .rq-score { flex: none; font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--indigo); }
.review-q .rq-score.none { font-family: var(--font); font-size: 10.5px; color: var(--faint); font-weight: 500; }
.review-q .rq-chev { flex: none; color: var(--faint); transition: transform 0.2s; margin-top: 2px; }
.review-q.open .rq-chev { transform: rotate(180deg); }
.review-body { padding: 0 0 16px 36px; }
.review-answer {
  background: #f7f6f2;
  border-left: 2px solid #ddd8cc;
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.72;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.review-line { margin-top: 10px; font-size: 12px; line-height: 1.7; }
.review-line b { font-size: 11.5px; color: var(--muted); font-weight: 700; display: block; margin-bottom: 3px; }
.review-line.suggestion { background: #f4f7ff; border-radius: 8px; padding: 10px 12px; color: #33427e; }
.review-unanswered { font-size: 12px; color: var(--faint); padding: 2px 0 14px 36px; }

.plan-list { display: grid; gap: 11px; }
.plan-item { display: flex; gap: 11px; align-items: flex-start; }
.plan-item .pi-check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #d8d2c4;
  margin-top: 1px;
}
.plan-item .pi-text { font-size: 12.5px; line-height: 1.68; color: var(--ink-2); }
.report-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid #ece8df; font-size: 10.5px; color: var(--faint); line-height: 1.7; text-align: center; }
.report-actions { margin-top: 18px; display: flex; gap: 10px; }
.report-actions .btn { flex: 1; }

.report-loading {
  margin-top: 30px;
  padding: 40px 24px;
  text-align: center;
}
.report-loading .rl-orbit {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid var(--indigo-soft);
  border-top-color: var(--indigo);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.report-loading .rl-title { font-size: 16px; font-weight: 700; }
.report-loading .rl-sub { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* =========================================================
   HISTORY / ME
   ========================================================= */
.history-group-title { font-size: 11.5px; font-weight: 700; color: var(--faint); margin: 22px 0 8px; letter-spacing: 0.06em; }
.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.16s, transform 0.12s;
}
.history-item + .history-item { margin-top: 9px; }
.history-item:active { transform: scale(0.99); }
.history-score {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.history-score small { font-family: var(--font); font-size: 8px; font-weight: 500; margin-top: 2px; opacity: 0.7; }
.history-score.pending { background: var(--saffron-soft); color: #9a6a00; font-family: var(--font); font-size: 10px; text-align: center; line-height: 1.3; }
.history-score.ongoing { background: #eef3ff; color: var(--indigo); font-family: var(--font); font-size: 10px; text-align: center; line-height: 1.3; }
.history-main { flex: 1; min-width: 0; }
.history-main .hm-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-main .hm-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.history-item .chev { color: var(--faint); flex: none; }
.history-filters { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 2px; }
.history-filters .chip { flex: none; min-height: 34px; font-size: 12.5px; }

.profile-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; }
.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(145deg, #26347e, #4157d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  flex: none;
}
.profile-name { font-size: 20px; font-weight: 700; }
.profile-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.menu-list { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row .mi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f2f3f7;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.menu-row .chev { margin-left: auto; color: var(--faint); }
.menu-row.danger { color: var(--danger); }
.menu-row.danger .mi-icon { background: #fdf0ef; color: var(--danger); }
.profile-stats { display: flex; gap: 10px; margin-bottom: 18px; }
.profile-stat {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.profile-stat .ps-num { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--indigo); line-height: 1; }
.profile-stat .ps-label { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* =========================================================
   MISC
   ========================================================= */
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(43, 58, 143, 0.18);
  border-top-color: var(--indigo);
  animation: spin 0.9s linear infinite;
}
.spinner.on-dark { border-color: rgba(255,255,255,.2); border-top-color: #fff; }
.loading-block { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 0; color: var(--muted); font-size: 12.5px; }

.fade-list > * { animation: fade-up 0.35s ease both; }
.fade-list > *:nth-child(2) { animation-delay: 0.04s; }
.fade-list > *:nth-child(3) { animation-delay: 0.08s; }
.fade-list > *:nth-child(4) { animation-delay: 0.12s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.focus-ring:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--indigo-2);
  outline-offset: 2px;
}
.room button:focus-visible, .room textarea:focus-visible, .login-screen button:focus-visible, .login-screen input:focus-visible {
  outline-color: var(--saffron);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
