/* ============================================================
   小谷面试 Web Pro · Light Liquid Glass + Responsive H5/PC System
   3-Tier Glass Hierarchy:
     1) Liquid Glass  (--glass-liquid): Nav, Dock, Controls, Modals
     2) Frosted Card  (--glass-card):   Bento Cards, Lists, Tiles
     3) Ceramic Glass (--glass-read):   Long-form Reading & Answers
   ============================================================ */
:root {
  --canvas: #EFF3FA;
  --glass-liquid: rgba(255, 255, 255, 0.56);
  --glass-card: rgba(255, 255, 255, 0.72);
  --glass-read: rgba(255, 255, 255, 0.88);
  --glass-soft: rgba(241, 245, 252, 0.72);
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(15, 23, 42, 0.06);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.94), inset 0 -1px 0 rgba(15, 23, 42, 0.03);

  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #8392A8;
  --hairline: rgba(15, 23, 42, 0.07);

  --accent: #2563EB;
  --accent-grad: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  --accent-soft: rgba(37, 99, 235, 0.10);
  --coral: #EF4444;
  --coral-soft: rgba(239, 68, 68, 0.12);
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, 0.11);
  --danger: #DC2626;
  --danger-soft: rgba(220, 38, 38, 0.10);

  --shadow-sm: 0 4px 16px -4px rgba(30, 41, 82, 0.07);
  --shadow-md: 0 14px 36px -12px rgba(30, 41, 82, 0.12);
  --shadow-lg: 0 24px 60px -18px rgba(30, 41, 82, 0.18);

  --font-serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.tabular { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ================= LIVING AMBIENT MESH BACKGROUND ================= */
.mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(160deg, #F6F8FD 0%, #EEF2FA 52%, #F6F3FA 100%);
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.72;
  will-change: transform;
}
.mesh-orb.orb-1 {
  width: 420px; height: 420px;
  top: -120px; left: -90px;
  background: radial-gradient(circle, #BFD7FF 0%, rgba(191, 215, 255, 0) 70%);
  animation: meshFloatA 16s ease-in-out infinite alternate;
}
.mesh-orb.orb-2 {
  width: 460px; height: 460px;
  top: 18%; right: -140px;
  background: radial-gradient(circle, #DDD1FF 0%, rgba(221, 209, 255, 0) 70%);
  animation: meshFloatB 20s ease-in-out infinite alternate;
}
.mesh-orb.orb-3 {
  width: 380px; height: 380px;
  bottom: -110px; left: 26%;
  background: radial-gradient(circle, #FFDCC9 0%, rgba(255, 220, 201, 0) 70%);
  animation: meshFloatA 18s ease-in-out infinite alternate-reverse;
}

@keyframes meshFloatA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(34px, 24px) scale(1.08); }
}
@keyframes meshFloatB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 32px) scale(1.06); }
}
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}
@keyframes sheen {
  0% { transform: translateX(-140%) skewX(-20deg); }
  100% { transform: translateX(260%) skewX(-20deg); }
}

.anim-in { animation: fadeSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.d1 { animation-delay: 0.04s; }
.d2 { animation-delay: 0.08s; }
.d3 { animation-delay: 0.13s; }
.d4 { animation-delay: 0.18s; }

.tactile {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease, box-shadow 0.22s ease, background-color 0.2s ease;
  cursor: pointer;
  user-select: none;
}
.tactile:active { transform: scale(0.968); opacity: 0.9; }

/* ================= APP SHELL (MOBILE FIRST) ================= */
.app-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.desktop-sidebar { display: none; }

.main-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(96px + var(--safe-bottom));
}
.main-scroll::-webkit-scrollbar { width: 6px; }
.main-scroll::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.12); border-radius: 999px; }

.tab-view {
  display: none;
  padding: 18px 18px 24px;
  max-width: 820px;
  margin: 0 auto;
}
.tab-view.active { display: block; }

/* ================= LIQUID GLASS MIXINS ================= */
.editorial-card, .quiz-card, .mat-item-card, .mock-card, .topic-tile, .qs-cell {
  background: var(--glass-card);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
}

/* ================= TOP BAR & BRAND ================= */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.brand-lockup { display: flex; align-items: center; gap: 7px; }
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}

.points-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--glass-liquid);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
  color: var(--ink); font-size: 13px; font-weight: 700;
}
.chip-gem { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip-unit { font-size: 11px; font-weight: 500; color: var(--ink-3); }

/* ================= HOME BENTO & HERO ================= */
.home-bento { display: flex; flex-direction: column; gap: 18px; }

.hero-spread {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-radius: 26px;
  background: var(--glass-liquid);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), var(--specular);
  margin-bottom: 14px;
}
.hero-copy { flex: 1; min-width: 0; }
.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 6px;
}
.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700; line-height: 1.24; letter-spacing: -0.02em;
}
.hero-sub { margin: 9px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.hero-actions { margin-top: 16px; }
.hero-art-wrap {
  width: 110px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-art {
  width: 110px; height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 8px 18px rgba(37, 99, 235, 0.12));
  animation: gentleFloat 4.2s ease-in-out infinite;
}

.btn-obsidian {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border: none; border-radius: 999px;
  background: var(--accent-grad); color: #FFFFFF;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-obsidian-sm {
  padding: 8px 14px; border: none; border-radius: 999px;
  background: var(--ink); color: #FFFFFF;
  font-size: 12.5px; font-weight: 600;
  box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.28);
}
.btn-soft-sm {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-soft); color: var(--ink);
  font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #A5F3FC;
  animation: pulseDot 1.8s ease-in-out infinite;
}

.quick-ask-wrap { margin-bottom: 14px; }
.quick-ask-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: 18px;
  background: var(--glass-read);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
}
.quick-ask-icon { color: var(--accent); font-size: 14px; }
.quick-ask-bar input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 13.5px; color: var(--ink); font-family: inherit;
}
.quick-ask-bar input::placeholder { color: var(--ink-3); }
.quick-ask-go {
  width: 34px; height: 34px; border-radius: 12px; border: none;
  background: var(--accent-grad); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.metrics-ribbon {
  display: flex; align-items: stretch;
  padding: 12px 6px; border-radius: 20px;
  background: var(--glass-card);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
}
.metric-cell {
  flex: 1; border: none; background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.metric-divider { width: 1px; background: var(--hairline); }
.metric-k { font-size: 11px; color: var(--ink-3); }
.metric-v { font-size: 14px; font-weight: 700; color: var(--ink); }
.metric-v.accent { color: var(--accent); }
.metric-v.ok { color: var(--ok); }

/* ================= SECTIONS, CARDS & LISTS ================= */
.section-block { margin-bottom: 18px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px;
}
.section-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.section-meta { font-size: 12px; color: var(--ink-3); }
.text-action {
  border: none; background: transparent; padding: 2px 0;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
}

.editorial-card { border-radius: 22px; padding: 16px; }
.plan-empty, .plan-active-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-empty-title { font-size: 14px; font-weight: 700; }
.plan-empty-sub, .plan-meta { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.plan-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 6px;
}
.plan-company { font-size: 15.5px; font-weight: 700; }

.ob-step-list { display: flex; flex-direction: column; gap: 7px; }
.ob-step {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.ob-step.done { opacity: 0.6; }
.ob-step-l { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ob-dot {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; background: var(--accent-soft); color: var(--accent);
}
.ob-step.done .ob-dot { background: var(--ok-soft); color: var(--ok); }

.hairline-list {
  border-radius: 20px; overflow: hidden;
  background: var(--glass-card);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
}
.list-row {
  width: 100%; border: none; border-bottom: 1px solid var(--hairline);
  background: transparent; padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; color: var(--ink);
}
.list-row:last-child { border-bottom: none; }
.row-title { font-size: 14px; font-weight: 600; }
.row-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.row-meta { font-size: 12px; color: var(--ink-3); flex-shrink: 0; }
.empty-note { padding: 22px 12px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* ================= TAB 2: LIQUID GLASS VOICE & MOCK STUDIO ================= */
.voice-stage {
  display: none;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100dvh - 104px);
}
.voice-stage.active { display: flex; }

.plan-context-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.plan-picker-pill {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--glass-liquid);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
  color: var(--ink); font-size: 13px; font-weight: 700;
}
.plan-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.plan-picker-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-chev { font-size: 11px; color: var(--ink-3); margin-left: auto; }

.mini-mode-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border-radius: 999px;
  background: var(--glass-liquid);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--specular);
  flex-shrink: 0;
}
.studio-seg-btn {
  border: none; background: transparent; color: var(--ink-2);
  font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 999px; cursor: pointer;
  transition: all 0.2s ease;
}
.studio-seg-btn.active {
  background: #FFFFFF; color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.vmode-pane { display: none; flex-direction: column; gap: 12px; flex: 1; }
.vmode-pane.active { display: flex; }

.voice-split { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.voice-split-console { display: flex; flex-direction: column; gap: 10px; }

.focus-ctrl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border-radius: 16px;
  background: var(--glass-liquid);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
}
.focus-ctrl-l { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.v-dot { width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; }
.v-dot.live {
  background: var(--coral);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.65);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.voice-timer { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.focus-bal-meta { color: var(--ink-3); font-size: 11.5px; }
.voice-top-actions { display: flex; align-items: center; gap: 6px; }
.voice-pill-btn {
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink); font-size: 11.5px; font-weight: 600;
}
.voice-pill-btn.lock-on {
  background: rgba(254, 243, 199, 0.9); border-color: #F59E0B; color: #92400E;
}
.voice-pill-btn.danger {
  background: var(--coral-soft); border-color: rgba(239, 68, 68, 0.22); color: var(--danger);
}

.mic-tr-strip {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 14px; border-radius: 20px;
  background: var(--glass-liquid);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
}
.mic-circle-btn {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; border: none;
  background: var(--accent-grad); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.22s ease;
}
.mic-circle-btn.live {
  background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
  box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.16), 0 8px 20px -4px rgba(239, 68, 68, 0.45);
}
.tr-inline-body { flex: 1; min-width: 0; }
.tr-inline-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; }
.tr-meta-txt { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.tr-ask-chip {
  border: none; border-radius: 999px; padding: 3px 10px;
  background: var(--accent-grad); color: #FFFFFF;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.tr-inline-text {
  font-size: 13.5px; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mic-hairline-meter {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(15, 23, 42, 0.05);
}
.mic-hairline-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #38BDF8, #6366F1, #EF4444);
  transition: width 0.08s linear;
}

/* Ceramic High-Readability Answer Stage */
.answer-stage {
  flex: 1; min-height: 280px; border-radius: 24px; padding: 18px 20px;
  background: var(--glass-read);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), var(--specular);
  display: flex; flex-direction: column; gap: 12px;
}
.focus-empty-state {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 36px 16px;
}
.focus-empty-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.focus-empty-sub { font-size: 13px; line-height: 1.6; color: var(--ink-2); max-width: 290px; }

.answer-q-echo {
  font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45;
  padding-bottom: 10px; border-bottom: 1px dashed var(--hairline);
}
.zone-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.zone-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.zone-bar { width: 16px; height: 3px; border-radius: 999px; background: var(--accent); }
.zone-bar.accent { width: 4px; height: 15px; background: var(--accent-grad); }
.answer-meta { font-size: 11px; color: var(--ink-3); }
.gen-tag {
  font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.kp-zone, .full-zone { display: flex; flex-direction: column; gap: 8px; }
.kp-list { display: flex; flex-direction: column; gap: 7px; }
.kp-item-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.kp-num {
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.kp-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 6px; margin-right: 6px;
  background: var(--accent-soft); color: var(--accent);
}
.full-zone { padding-top: 12px; border-top: 1px dashed var(--hairline); }
.full-answer-body { font-size: 15.5px; line-height: 1.72; color: var(--ink); white-space: pre-wrap; }
.ai-foot-note {
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--hairline);
  font-size: 11px; color: var(--ink-3); text-align: center;
}

/* Algorithm Code Card (Deep Slate Contrast) */
.code-card {
  margin: 12px 0; border-radius: 16px; overflow: hidden;
  background: #0F172A; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.35);
}
.code-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; background: #1E293B;
  font-family: var(--font-mono); font-size: 11px; color: #93C5FD;
}
.code-copy-btn {
  border: none; background: rgba(255, 255, 255, 0.12); color: #F8FAFC;
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; cursor: pointer;
}
.code-card pre {
  margin: 0; padding: 14px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: #E2E8F0;
}

.voice-composer {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: 18px;
  background: var(--glass-read);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
}
.voice-composer input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  color: var(--ink); font-size: 13.5px; font-family: inherit;
}
.voice-composer input::placeholder { color: var(--ink-3); }
.voice-send-btn {
  width: 34px; height: 34px; border-radius: 12px; border: none;
  background: var(--accent-grad); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Mock Interview */
.mock-qa-wrap { display: flex; flex-direction: column; gap: 12px; }
.mock-card { border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mock-eyebrow { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.mock-title { margin: 0; font-family: var(--font-serif); font-size: 22px; }
.mock-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.mock-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.mock-track-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-chip {
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.65);
  color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; cursor: pointer;
}
.mt-chip.active { background: var(--accent-grad); border-color: transparent; color: #FFFFFF; }
.mock-primary-btn {
  width: 100%; padding: 12px; border-radius: 14px; border: none;
  background: var(--accent-grad); color: #FFFFFF; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.4);
}
.mock-ghost-btn {
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--glass-border);
  background: var(--glass-soft); color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.mock-qa-head { display: flex; align-items: center; justify-content: space-between; }
.mock-q-badge { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.mock-q-stem { font-size: 16px; font-weight: 700; line-height: 1.5; }
.mock-voice-row { display: flex; align-items: center; gap: 10px; }
.mock-mic-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22); background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 600;
}
.mock-partial { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-textarea {
  width: 100%; min-height: 100px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.8);
  color: var(--ink); font-size: 13.5px; line-height: 1.55; font-family: inherit; outline: none; resize: vertical;
}
.mock-qa-actions { display: flex; gap: 10px; }
.eval-head { display: flex; align-items: center; gap: 14px; }
.eval-score-num { font-size: 32px; font-weight: 800; color: var(--ok); }
.eval-score-lbl { font-size: 11px; color: var(--ink-3); }
.eval-verdict { font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.eval-detail { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; }
.eval-ok { color: var(--ok); }
.eval-miss { color: #D97706; }
.mock-ref-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.mock-ref-body { font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.mock-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-box { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.6); }
.ms-v { font-size: 24px; font-weight: 700; }
.ms-k { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* ================= PRACTICE, MATERIALS & PROFILE ================= */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.page-eyebrow { font-size: 11.5px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.page-title { margin: 0; font-family: var(--font-serif); font-size: 26px; font-weight: 700; }
.page-art { width: 70px; height: auto; mix-blend-mode: multiply; }

.quiz-stats-ribbon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.qs-cell { border-radius: 18px; padding: 11px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.qs-cell b { font-size: 18px; color: var(--ink); }
.qs-cell span { font-size: 11px; color: var(--ink-3); }

.seg-control {
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 16px;
  background: var(--glass-liquid); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); box-shadow: var(--specular); margin-bottom: 16px;
}
.seg-control.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg-btn {
  border: none; background: transparent; padding: 8px 4px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all 0.2s ease;
}
.seg-btn.active { background: #FFFFFF; color: var(--ink); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }

.practice-pane, .mat-pane { display: none; }
.practice-pane.active, .mat-pane.active { display: block; }

.daily-progress-bar { margin-bottom: 14px; }
.dp-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 7px; }
.dp-track { height: 6px; border-radius: 999px; background: rgba(15, 23, 42, 0.07); overflow: hidden; }
.dp-fill { height: 100%; border-radius: 999px; background: var(--accent-grad); transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1); }

.quiz-card { border-radius: 24px; padding: 20px; background: var(--glass-read); }
.quiz-topic-tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 10px;
}
.quiz-stem { font-size: 16px; font-weight: 700; line-height: 1.55; margin-bottom: 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 9px; }
.quiz-opt {
  width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.72);
  color: var(--ink); font-size: 13.5px; line-height: 1.5; display: flex; gap: 10px; cursor: pointer;
}
.quiz-opt.correct { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); font-weight: 600; }
.quiz-opt.wrong { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.quiz-explain {
  margin-top: 14px; padding: 13px 14px; border-radius: 14px;
  background: rgba(241, 245, 252, 0.85); font-size: 13px; line-height: 1.65; color: var(--ink-2);
}
.quiz-nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

.topic-filter-bar { margin-bottom: 12px; display: flex; flex-direction: column; gap: 9px; }
.topic-search-input {
  width: 100%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--glass-border);
  background: var(--glass-read); color: var(--ink); font-size: 13.5px; outline: none;
  box-shadow: var(--shadow-sm), var(--specular);
}
.domain-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.domain-chips::-webkit-scrollbar { display: none; }
.dom-chip {
  border: 1px solid var(--glass-border); background: var(--glass-liquid); color: var(--ink-2);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; cursor: pointer;
}
.dom-chip.active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.topic-tile { text-align: left; padding: 15px; border-radius: 18px; }
.topic-tile-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.topic-tile-count { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.mat-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mat-list { display: flex; flex-direction: column; gap: 10px; }
.mat-item-card { border-radius: 20px; padding: 15px 16px; }
.mat-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mat-item-title { font-size: 14.5px; font-weight: 700; }
.mat-item-sub { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.mat-item-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--hairline);
}
.skill-chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.skill-chip {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.mem-sub-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.resume-summary { font-size: 13px; line-height: 1.65; color: var(--ink-2); margin-bottom: 14px; }
.resume-btn-row { display: flex; gap: 8px; }
.file-upload-label { cursor: pointer; }

/* Profile Metallic Glass Wallet Card */
.wallet-card {
  position: relative; overflow: hidden; border-radius: 26px; padding: 22px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #1E3A8A 100%);
  color: #FFFFFF; box-shadow: var(--shadow-lg); margin-bottom: 20px;
}
.wallet-sheen {
  position: absolute; inset: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: sheen 5.5s ease-in-out infinite; pointer-events: none;
}
.wallet-top { display: flex; justify-content: space-between; align-items: center; }
.wallet-label { font-size: 12px; opacity: 0.78; }
.wallet-badge {
  font-family: var(--font-mono); font-size: 10px; padding: 3px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.16);
}
.wallet-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 18px; }
.w-num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.w-sub { font-size: 11.5px; opacity: 0.68; margin-top: 2px; }
.wallet-actions { display: flex; gap: 10px; }
.wallet-btn { flex: 1; padding: 10px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: none; }
.wallet-btn.primary { background: #FFFFFF; color: #0F172A; }
.wallet-btn.ghost { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.compliance-foot { text-align: center; font-size: 11.5px; color: var(--ink-3); padding: 10px 0 16px; }

/* ================= MOBILE FLOATING LIQUID GLASS DOCK ================= */
.floating-dock {
  position: absolute; left: 14px; right: 14px; bottom: calc(14px + var(--safe-bottom));
  z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 5px; border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: var(--shadow-lg), var(--specular);
}
.dock-pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / 5); border-radius: 22px;
  background: rgba(37, 99, 235, 0.11);
  transition: transform 0.34s cubic-bezier(0.34, 1.38, 0.64, 1); pointer-events: none;
}
.dock-item {
  position: relative; z-index: 2; border: none; background: transparent;
  padding: 7px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--ink-3); cursor: pointer;
}
.dock-item.active { color: var(--accent); }

/* ================= TELEPROMPTER, MODAL & TOAST ================= */
.tp-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 14, 24, 0.94); backdrop-filter: blur(20px);
  color: #F8FAFC; padding: 24px 28px calc(24px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 16px;
}
.tp-head { display: flex; align-items: center; justify-content: space-between; max-width: 960px; width: 100%; margin: 0 auto; }
.tp-badge { font-size: 13px; font-weight: 700; color: #93C5FD; }
.tp-controls { display: flex; align-items: center; gap: 6px; }
.tp-size-btn {
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1; font-size: 12px; padding: 4px 10px; border-radius: 8px; cursor: pointer;
}
.tp-size-btn.active { background: #2563EB; border-color: #2563EB; color: #FFFFFF; }
.tp-close-btn { border: none; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.tp-question { max-width: 960px; width: 100%; margin: 0 auto; font-size: 18px; font-weight: 700; color: #93C5FD; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.tp-content { max-width: 960px; width: 100%; margin: 0 auto; flex: 1; overflow-y: auto; font-size: 23px; line-height: 1.75; color: #FFFFFF; white-space: pre-wrap; }

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet-panel {
  width: 100%; max-width: 520px; max-height: 85dvh;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg), var(--specular);
  color: var(--ink); border-radius: 28px 28px 0 0;
  padding: 12px 22px calc(26px + var(--safe-bottom));
  overflow-y: auto; animation: fadeSlideUp 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sheet-handle { width: 40px; height: 4px; border-radius: 999px; background: var(--hairline); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-title { margin: 0; font-size: 17px; font-weight: 700; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--glass-soft); color: var(--ink-2); }
.sheet-field { margin-bottom: 12px; }
.sheet-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.sheet-field input, .sheet-field textarea, .sheet-field select {
  width: 100%; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.85); color: var(--ink); font-size: 14px; font-family: inherit; outline: none;
}
.sheet-field textarea { min-height: 110px; resize: vertical; }
.sheet-submit {
  width: 100%; margin-top: 6px; padding: 13px; border-radius: 14px; border: none;
  background: var(--accent-grad); color: #FFFFFF; font-size: 14px; font-weight: 600;
}
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); padding: 3px; border-radius: 12px; background: var(--glass-soft); margin-bottom: 14px; }
.auth-tab { border: none; background: transparent; padding: 7px 4px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.auth-tab.active { background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-sm); }
.captcha-row { display: flex; align-items: center; gap: 8px; }
.captcha-pill {
  padding: 10px 13px; border-radius: 12px; background: var(--accent-soft);
  border: 1px dashed rgba(37, 99, 235, 0.35); font-family: var(--font-mono);
  font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; cursor: pointer;
}
.pt-row { padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--hairline); margin-bottom: 9px; }
.pt-status-bar { display: flex; gap: 6px; margin-top: 8px; }
.pt-st-btn { border: 1px solid var(--hairline); background: #FFFFFF; color: var(--ink-2); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.pt-st-btn.on { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.toast-host {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.toast-pill {
  padding: 9px 18px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.88); backdrop-filter: blur(16px);
  color: #FFFFFF; font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.35);
  animation: fadeSlideUp 0.24s ease both; white-space: nowrap;
}

/* ================= DESKTOP PC WIDE-SCREEN RESPONSIVE (>= 900px) ================= */
@media (min-width: 900px) {
  body {
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 12% 10%, #E6EEFC 0%, #EDF1FA 48%, #F4ECF6 100%);
  }
  .app-shell {
    flex-direction: row;
    width: min(1260px, 100%);
    height: min(900px, calc(100dvh - 40px));
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 36px 90px -24px rgba(30, 41, 82, 0.22), var(--specular);
  }

  /* Show Liquid Glass Left Sidebar, Hide Mobile Dock & Top Mobile Brand */
  .floating-dock { display: none; }
  .top-bar { display: none; }

  .desktop-sidebar {
    position: relative; z-index: 2;
    width: 228px; flex-shrink: 0;
    display: flex; flex-direction: column;
    padding: 24px 16px 18px;
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border-right: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.04);
  }
  .sb-brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 24px; }
  .sb-nav { display: flex; flex-direction: column; gap: 5px; flex: 1; }
  .sb-item {
    border: 1px solid transparent; background: transparent;
    padding: 11px 14px; border-radius: 14px;
    display: flex; align-items: center; gap: 11px;
    font-size: 14px; font-weight: 600; color: var(--ink-2);
    cursor: pointer; transition: all 0.2s ease; text-align: left;
  }
  .sb-item:hover { background: rgba(255, 255, 255, 0.52); color: var(--ink); }
  .sb-item.active {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--accent);
    box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.18), var(--specular);
  }
  .sb-foot { padding-top: 12px; border-top: 1px solid var(--hairline); }
  .sb-account-card {
    width: 100%; border: 1px solid var(--glass-border); border-radius: 16px;
    background: rgba(255, 255, 255, 0.68); padding: 10px 12px;
    display: flex; align-items: center; gap: 10px; text-align: left;
  }
  .sb-acc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
  .sb-acc-meta { min-width: 0; }
  .sb-acc-name { font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-acc-pts { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

  .main-scroll { padding-bottom: 28px; }
  .tab-view { max-width: 100%; padding: 26px 32px 32px; }

  /* Home 2-Column Bento */
  .home-bento { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: start; }
  .hero-title { font-size: 32px; }
  .hero-art, .hero-art-wrap { width: 132px; }

  /* Voice Studio 2-Column Wide Workspace */
  .voice-stage { min-height: calc(100% - 12px); height: auto; padding-bottom: 48px; }
  .voice-split {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    align-items: start;
    flex: 1;
  }
  .voice-split-console { position: sticky; top: 0; }
  .tr-inline-text { -webkit-line-clamp: 5; }
  .answer-stage { min-height: 540px; padding: 24px 28px; }

  /* Practice / Materials / Profile Spacious Desktop Grids */
  #tab-practice, #tab-materials, #tab-me { max-width: 880px; margin: 0 auto; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  /* Bottom Sheet -> Centered Glass Modal on PC */
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet-panel { border-radius: 26px; padding: 20px 24px 24px; max-height: 82dvh; }
  .sheet-handle { display: none; }
}

/* ================= ULTRA-COMPACT UNIFIED VOICE HEADER ================= */
.voice-stage { gap: 8px; padding-top: 12px; }
.plan-picker-pill { padding: 6px 12px; font-size: 12.5px; }
.compact-voice-card {
  position: relative; overflow: hidden;
  border-radius: 18px;
  background: var(--glass-liquid);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--specular);
}
.focus-ctrl-row.compact {
  padding: 7px 11px;
  border-radius: 0; background: transparent; border: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--hairline);
}
.mic-tr-strip.compact {
  padding: 8px 11px 10px;
  border-radius: 0; background: transparent; border: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.mic-circle-btn.sm { width: 34px; height: 34px; }
.mic-circle-btn.sm.live { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }

/* ============================================================
   LUXURY LIGHT & MOTION LAYER
   1) Analogous Low-Saturation Mesh + Subtle 2.5% Film Grain
   2) True @property BorderBeam (Live Rec / AI Streaming / Focus)
   3) Wave Scanner Mic + Focus Lock Spring Damping + Specular Hover
   ============================================================ */
@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes beamSpin {
  0% { --beam-angle: 0deg; }
  100% { --beam-angle: 360deg; }
}

@keyframes waveScan {
  0%, 100% { transform: scaleY(0.32); opacity: 0.72; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes lockSnap {
  0% { transform: scale(1); }
  40% { transform: scale(0.90); }
  75% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* 1) Analogous Soft-Focus Mesh + Tactile Film Grain */
.mesh-bg {
  background: linear-gradient(155deg, #F5F7FC 0%, #ECEFF8 50%, #F4F1F8 100%);
}
.mesh-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.028;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.mesh-orb.orb-1 {
  background: radial-gradient(circle, #C7DAFF 0%, rgba(199, 218, 255, 0) 68%);
  filter: blur(84px);
}
.mesh-orb.orb-2 {
  background: radial-gradient(circle, #DBD2FD 0%, rgba(219, 210, 253, 0) 68%);
  filter: blur(88px);
}
.mesh-orb.orb-3 {
  background: radial-gradient(circle, #F6E2DC 0%, rgba(246, 226, 220, 0) 68%);
  filter: blur(86px);
}

/* Optical Specular Depth on Glass Surfaces */
.editorial-card, .quiz-card, .mat-item-card, .mock-card, .topic-tile, .qs-cell, .compact-voice-card, .answer-stage {
  box-shadow:
    0 12px 32px -12px rgba(24, 39, 75, 0.11),
    0 2px 6px -1px rgba(24, 39, 75, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.65);
}

/* 2) BorderBeam Luminous Rim (Pure CSS Conic Mask) */
.compact-voice-card,
.answer-stage,
.quick-ask-bar,
.wallet-card,
.toast-pill {
  position: relative;
}

.compact-voice-card.is-live::before,
.answer-stage.is-streaming::before,
.quick-ask-bar:focus-within::before,
.wallet-card::before,
.toast-pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.6px;
  pointer-events: none;
  z-index: 4;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: beamSpin 3.4s linear infinite;
}

/* Live Recording: Warm Coral-Rose Beam + Subtle Top Inner Bloom */
.compact-voice-card.is-live::before {
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 230deg,
    rgba(251, 146, 60, 0.55) 285deg,
    rgba(239, 68, 68, 0.95) 330deg,
    rgba(244, 114, 182, 0.65) 352deg,
    transparent 360deg
  );
  animation-duration: 2.6s;
}
.compact-voice-card.is-live {
  box-shadow:
    0 14px 36px -12px rgba(239, 68, 68, 0.20),
    inset 0 1px 16px -6px rgba(239, 68, 68, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

/* AI Streaming Answer: Aurora Indigo-Cyan Beam */
.answer-stage.is-streaming::before {
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 220deg,
    rgba(56, 189, 248, 0.65) 275deg,
    rgba(99, 102, 241, 0.95) 325deg,
    rgba(168, 85, 247, 0.65) 350deg,
    transparent 360deg
  );
  animation-duration: 2.8s;
}
.answer-stage.is-streaming {
  box-shadow:
    0 16px 42px -14px rgba(79, 70, 229, 0.22),
    inset 0 1px 20px -8px rgba(99, 102, 241, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* Home Quick-Ask Focus Beam */
.quick-ask-bar:focus-within::before {
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 240deg,
    rgba(56, 189, 248, 0.55) 295deg,
    rgba(37, 99, 235, 0.9) 335deg,
    transparent 360deg
  );
  animation-duration: 3.6s;
}

/* Wallet Card Slow Metallic Rim Gleam */
.wallet-card::before {
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 265deg,
    rgba(147, 197, 253, 0.35) 310deg,
    rgba(255, 255, 255, 0.72) 340deg,
    transparent 360deg
  );
  animation-duration: 7s;
}

/* Toast Fast Emerald Confirmation Rim */
.toast-pill::before {
  padding: 1.2px;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 250deg,
    rgba(52, 211, 153, 0.95) 330deg,
    transparent 360deg
  );
  animation-duration: 1.5s;
}

/* 3) Wave Scanner inside Mic Button */
.mic-circle-btn {
  position: relative;
}
.mic-svg-idle {
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.mic-wave-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  opacity: 0;
  transform: scale(0.65);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  pointer-events: none;
}
.mic-wave-bars i {
  display: block;
  width: 2.5px;
  height: 14px;
  border-radius: 999px;
  background: #FFFFFF;
  transform-origin: center;
}
.mic-circle-btn.live .mic-svg-idle {
  opacity: 0;
  transform: scale(0.55);
}
.mic-circle-btn.live .mic-wave-bars {
  opacity: 1;
  transform: scale(1);
}
.mic-circle-btn.live .mic-wave-bars i {
  animation: waveScan 0.85s ease-in-out infinite;
}
.mic-circle-btn.live .mic-wave-bars i:nth-child(2) {
  height: 18px;
  animation-delay: 0.16s;
}
.mic-circle-btn.live .mic-wave-bars i:nth-child(3) {
  animation-delay: 0.32s;
}

/* Focus Lock Spring Snap */
.voice-pill-btn.lock-on {
  animation: lockSnap 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px -4px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Desktop Hover Specular Elevation */
@media (hover: hover) {
  .editorial-card:hover,
  .topic-tile:hover,
  .mat-item-card:hover {
    transform: translateY(-1.5px);
    box-shadow:
      0 18px 38px -14px rgba(37, 99, 235, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
  }
  .btn-obsidian:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -6px rgba(37, 99, 235, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

/* ============================================================
   FINAL APPROVED APPLE iOS 26 DEEP ABYSS + WEATHER BACKLIT CARDS
   + 100% COLORLESS LIQUID GLASS FLOATING CHROME
   ============================================================ */
:root {
  --canvas: #040914;
  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.52);
  --hairline: rgba(255, 255, 255, 0.12);
  --accent: #5AC8FA;
  --accent-grad: linear-gradient(135deg, #4EA9FF 0%, #1469DD 100%);
  --accent-soft: rgba(90, 200, 250, 0.18);
  --coral: #FF453A;
  --ok: #30D158;

  --ios-glass-bg:
    radial-gradient(circle 140px at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.13) 100%);
  --ios-glass-shadow:
    0 18px 40px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0.6px rgba(255, 255, 255, 0.52),
    inset 0 -0.8px 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.20);
}

html, body {
  background: #040914 !important;
  color: #FFFFFF !important;
}

/* 1) DEEP ABYSS OCEAN BACKDROP */
.mesh-bg {
  background:
    radial-gradient(ellipse 85% 60% at 22% 16%, rgba(14, 116, 204, 0.34) 0%, transparent 64%),
    radial-gradient(ellipse 80% 62% at 80% 76%, rgba(20, 68, 156, 0.38) 0%, transparent 66%),
    linear-gradient(155deg, #040914 0%, #08152B 50%, #030710 100%) !important;
}
.mesh-bg::after, .mesh-orb { opacity: 0 !important; }

/* 2) HERO CARD: APPLE WEATHER SKY BLUE + TRANSPARENT XIAOGU CUTOUT */
.hero-spread {
  position: relative;
  background:
    radial-gradient(circle 180px at 84% 18%, rgba(255, 224, 130, 0.34) 0%, rgba(255, 224, 130, 0) 68%),
    linear-gradient(180deg, #4EA9FF 0%, #2484F5 56%, #1469DD 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0.5px solid rgba(255, 255, 255, 0.52) !important;
  border-radius: 28px !important;
  box-shadow:
    0 22px 48px -14px rgba(10, 102, 224, 0.52),
    inset 0 1.2px 0.8px rgba(255, 255, 255, 0.72),
    inset 0 -1px 1.5px rgba(130, 200, 255, 0.32) !important;
  color: #FFFFFF !important;
  overflow: hidden;
}
.hero-spread::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.22) 25%, rgba(255,255,255,0.06) 52%, rgba(175,222,255,0.32) 82%, rgba(255,255,255,0.72) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-spread .hero-eyebrow {
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.hero-spread .hero-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 14px rgba(0, 42, 115, 0.24);
}
.hero-spread .hero-sub { color: rgba(255, 255, 255, 0.90) !important; }
/* Transparent Cutout Xiaogu — ZERO white box! */
.hero-spread .hero-art-wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.hero-spread .hero-art {
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 12px 18px rgba(0, 38, 108, 0.36)) !important;
}
/* Clean Apple Solid White Pill CTA inside Blue Hero */
.hero-spread .btn-obsidian {
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  color: #0B1B36 !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 26px -8px rgba(0, 38, 104, 0.45) !important;
}
.hero-spread .btn-obsidian:hover { transform: translateY(-1.5px); filter: brightness(1.03); }

/* 3) 3-COL DIVERSE APPLE BACKLIT METRIC WIDGETS */
.metrics-ribbon {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.metric-cell {
  position: relative;
  border-radius: 22px !important;
  padding: 14px 11px 13px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  min-height: 112px;
  text-align: left !important;
  color: #FFFFFF !important;
  border: 0.5px solid rgba(255, 255, 255, 0.42) !important;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
}
.metric-cell .metric-k { color: rgba(255, 255, 255, 0.86) !important; font-size: 11px; font-weight: 600; }
.metric-cell .metric-v { color: #FFFFFF !important; font-size: 16px !important; font-weight: 800; }
.widget-emerald {
  background:
    radial-gradient(circle 120px at 84% 18%, rgba(254, 240, 138, 0.34) 0%, transparent 68%),
    linear-gradient(180deg, #2EC48E 0%, #0EA472 58%, #077E58 100%) !important;
  box-shadow: 0 16px 36px -14px rgba(14, 164, 114, 0.48), inset 0 1.2px 0.8px rgba(255,255,255,0.62) !important;
}
.widget-ocean {
  background:
    radial-gradient(circle 120px at 84% 18%, rgba(186, 230, 253, 0.42) 0%, transparent 68%),
    linear-gradient(180deg, #32B3EE 0%, #0280C2 58%, #035C94 100%) !important;
  box-shadow: 0 16px 36px -14px rgba(2, 128, 194, 0.48), inset 0 1.2px 0.8px rgba(255,255,255,0.62) !important;
}
.widget-amber {
  background:
    radial-gradient(circle 120px at 84% 18%, rgba(255, 247, 204, 0.42) 0%, transparent 68%),
    linear-gradient(180deg, #F5A92F 0%, #E07A0A 58%, #B85200 100%) !important;
  box-shadow: 0 16px 36px -14px rgba(224, 122, 10, 0.46), inset 0 1.2px 0.8px rgba(255,255,255,0.62) !important;
}
.mw-streak { display: flex; gap: 3px; width: 100%; margin: 8px 0 4px; }
.mw-streak i { flex: 1; height: 4.5px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); }
.mw-streak i.on { background: #FFFFFF; box-shadow: 0 0 8px rgba(255, 255, 255, 0.72); }
.mw-ring { width: 38px; height: 38px; margin: 4px 0 2px; }
.mw-ring svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.mw-gauge { width: 100%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.24); overflow: hidden; margin: 8px 0 4px; }
.mw-gauge-fill { display: block; width: 72%; height: 100%; border-radius: 99px; background: #FFFFFF; box-shadow: 0 0 8px rgba(255, 255, 255, 0.72); }

/* 4) UPCOMING PLAN & WALLET (Luminous Twilight Indigo) */
#homePlanCard, .wallet-card {
  position: relative;
  background:
    radial-gradient(circle 180px at 84% 18%, rgba(244, 180, 255, 0.34) 0%, transparent 68%),
    linear-gradient(180deg, #7C7AF8 0%, #5856D6 56%, #3D38B8 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0.5px solid rgba(255, 255, 255, 0.46) !important;
  border-radius: 26px !important;
  box-shadow: 0 20px 44px -14px rgba(88, 86, 214, 0.50), inset 0 1.2px 0.8px rgba(255,255,255,0.65) !important;
  color: #FFFFFF !important;
}
#homePlanCard .plan-empty-title, #homePlanCard .plan-company { color: #FFFFFF !important; }
#homePlanCard .plan-empty-sub, #homePlanCard .plan-meta { color: rgba(255, 255, 255, 0.86) !important; }
#homePlanCard .plan-badge { background: rgba(255, 255, 255, 0.22) !important; color: #FFFFFF !important; }

/* 5) CALMER DEEP SLATE-SAPPHIRE BACKLIT LIST CARDS (Hierarchy Discipline!) */
.editorial-card,
.hairline-list,
.mat-item-card,
.qs-cell {
  background:
    radial-gradient(circle 180px at 86% 16%, rgba(125, 211, 252, 0.20) 0%, transparent 68%),
    linear-gradient(180deg, #1A3A6E 0%, #122950 58%, #0C1D3A 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0.5px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 40px -14px rgba(3, 12, 34, 0.65), inset 0 1px 0.6px rgba(186, 230, 253, 0.36) !important;
  color: #FFFFFF !important;
}
.row-title, .mat-item-title, .section-title { color: #FFFFFF !important; }
.row-meta, .mat-item-sub, .empty-note, .section-meta, .compliance-foot { color: rgba(255, 255, 255, 0.72) !important; }
.text-action { color: #7CC4FF !important; }

/* 6) PRACTICE TOPIC TILES (4 Harmonious Backlit Jewel Colors) */
.topic-tile {
  border-radius: 22px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.42) !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
}
.topic-tile:nth-child(4n + 1) {
  background: radial-gradient(circle 120px at 84% 18%, rgba(186,230,253,0.42), transparent 68%), linear-gradient(180deg, #38BDF8 0%, #0284C7 56%, #036099 100%) !important;
  box-shadow: 0 16px 34px -12px rgba(2, 132, 199, 0.46), inset 0 1px 0.8px rgba(255,255,255,0.62) !important;
}
.topic-tile:nth-child(4n + 2) {
  background: radial-gradient(circle 120px at 84% 18%, rgba(255,214,165,0.38), transparent 68%), linear-gradient(180deg, #FF6685 0%, #EE2E5B 56%, #C21843 100%) !important;
  box-shadow: 0 16px 34px -12px rgba(238, 46, 91, 0.46), inset 0 1px 0.8px rgba(255,255,255,0.62) !important;
}
.topic-tile:nth-child(4n + 3) {
  background: radial-gradient(circle 120px at 84% 18%, rgba(167,243,208,0.36), transparent 68%), linear-gradient(180deg, #22C7B8 0%, #0E9690 56%, #096E6E 100%) !important;
  box-shadow: 0 16px 34px -12px rgba(14, 150, 144, 0.46), inset 0 1px 0.8px rgba(255,255,255,0.62) !important;
}
.topic-tile:nth-child(4n + 4) {
  background: radial-gradient(circle 120px at 84% 18%, rgba(216,180,254,0.40), transparent 68%), linear-gradient(180deg, #B56BF8 0%, #8C42E8 56%, #6825BF 100%) !important;
  box-shadow: 0 16px 34px -12px rgba(140, 66, 232, 0.46), inset 0 1px 0.8px rgba(255,255,255,0.62) !important;
}
.topic-tile .topic-tile-name { color: #FFFFFF !important; font-weight: 800; }
.topic-tile .topic-tile-count { color: rgba(255, 255, 255, 0.86) !important; }

/* 7) LONG-FORM READING ZONES: DEEP ABYSS FROSTED DARK GLASS (Eye Comfort!) */
.answer-stage, .quiz-card, .mock-card {
  background: linear-gradient(160deg, rgba(16, 28, 52, 0.84) 0%, rgba(10, 18, 36, 0.78) 100%) !important;
  backdrop-filter: blur(26px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(130%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 26px !important;
  box-shadow: 0 22px 50px -16px rgba(0, 0, 0, 0.65), inset 0 1px 0.6px rgba(255, 255, 255, 0.30) !important;
  color: #FFFFFF !important;
}
.full-answer-body, .kp-text, .answer-q-echo, .focus-empty-title { color: rgba(255, 255, 255, 0.94) !important; }
.focus-empty-sub, .answer-meta, .ai-foot-note { color: rgba(255, 255, 255, 0.62) !important; }
.quiz-opt, .topic-search-input, .sheet-input, .sheet-textarea {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
}
.quick-ask-bar input { color: #FFFFFF !important; }
.quick-ask-bar input::placeholder, .topic-search-input::placeholder { color: rgba(255, 255, 255, 0.48) !important; }

/* 8) 100% COLORLESS LIQUID GLASS FLOATING CHROME (Top Bar, Dock, Detached "演练" Island, Mini-Coach Bar) */
.top-bar { position: sticky; top: 10px; z-index: 30; pointer-events: none; }
.top-bar > * { pointer-events: auto; }
.top-bar-right { display: flex; align-items: center; gap: 8px; }

.brand-lockup,
.points-chip,
.plan-picker-pill,
.mini-mode-tabs,
.seg-control,
.quick-ask-bar {
  background: var(--ios-glass-bg) !important;
  backdrop-filter: url(#ios-liquid-pill) blur(10px) saturate(140%) brightness(1.06) !important;
  -webkit-backdrop-filter: blur(22px) saturate(140%) brightness(1.06) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: var(--ios-glass-shadow) !important;
  color: #FFFFFF !important;
}
.brand-lockup { padding: 7px 14px; border-radius: 999px; }

.compact-voice-card {
  background: var(--ios-glass-bg) !important;
  backdrop-filter: url(#ios-liquid-panel) blur(12px) saturate(140%) brightness(1.06) !important;
  -webkit-backdrop-filter: blur(22px) saturate(140%) brightness(1.06) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: var(--ios-glass-shadow) !important;
}

/* Conditional Mini-Coaching Bar + 4-Tab Capsule + Detached Circular "演练" Island */
.ios-bottom-stack {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.ios-bottom-stack > * { pointer-events: auto; }

.mini-coach-bar {
  width: 100%;
  max-width: 384px;
  height: 48px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  background: var(--ios-glass-bg);
  backdrop-filter: url(#ios-liquid-pill) blur(10px) saturate(150%) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(150%) brightness(1.06);
  box-shadow: var(--ios-glass-shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  text-align: left;
}
.mini-coach-orb {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, #FF453A, #FF2D55);
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
}
.mini-coach-orb i { display: block; width: 2px; height: 10px; border-radius: 9px; background: #FFF; animation: waveScan 0.85s ease-in-out infinite; }
.mini-coach-orb i:nth-child(2) { height: 15px; animation-delay: 0.14s; }
.mini-coach-orb i:nth-child(3) { animation-delay: 0.28s; }
.mini-coach-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-coach-t1 { font-size: 12.5px; font-weight: 700; color: #FFFFFF; }
.mini-coach-t2 { font-size: 10.5px; color: rgba(255, 255, 255, 0.72); }
.mini-coach-go { font-size: 12px; font-weight: 700; color: #5AC8FA; }

.ios-dock-row {
  width: 100%;
  max-width: 384px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.floating-dock.dock-4 {
  position: relative !important;
  left: auto !important; right: auto !important; bottom: auto !important;
  flex: 1;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  padding: 5px !important;
  border-radius: 999px !important;
  background: var(--ios-glass-bg) !important;
  backdrop-filter: url(#ios-liquid-pill) blur(10px) saturate(150%) brightness(1.06) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) brightness(1.06) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.26) !important;
  box-shadow: var(--ios-glass-shadow) !important;
}
.floating-dock.dock-4 .dock-pill {
  width: calc((100% - 10px) / 4) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.20) !important;
  box-shadow: inset 0 0.8px 0 rgba(255, 255, 255, 0.52) !important;
  transition: transform 0.34s cubic-bezier(0.34, 1.38, 0.64, 1), opacity 0.2s ease !important;
}
.dock-item { color: rgba(255, 255, 255, 0.68) !important; }
.dock-item.active { color: #FFFFFF !important; }

.dock-mic-island {
  position: relative;
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  background: var(--ios-glass-bg);
  backdrop-filter: url(#ios-liquid-circle) blur(10px) saturate(155%) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(155%) brightness(1.08);
  box-shadow: var(--ios-glass-shadow);
  color: #FFFFFF;
  font-size: 10px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  cursor: pointer;
}
.dock-mic-island.active {
  background: #FFFFFF;
  color: #0B1B36;
  border-color: #FFFFFF;
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.55);
}
.mic-island-dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: #FF453A; opacity: 0; box-shadow: 0 0 8px #FF453A;
}
.dock-mic-island.recording .mic-island-dot { opacity: 1; animation: pulseDot 1.4s ease-in-out infinite; }

/* Action Chips, Segmented Controls, Onboarding, Modals & Toasts */
.ob-step {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
}
.ob-step:hover { background: rgba(255, 255, 255, 0.13) !important; }
.ob-step .ob-dot {
  background: rgba(90, 200, 250, 0.22) !important;
  color: #7CC4FF !important;
}
.ob-step.done .ob-dot {
  background: rgba(48, 209, 88, 0.24) !important;
  color: #5CE676 !important;
}
.btn-obsidian-sm {
  background: linear-gradient(135deg, #4EA9FF 0%, #1469DD 100%) !important;
  color: #FFFFFF !important;
  border: 0.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 8px 20px -6px rgba(20, 105, 221, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}
.sheet-field-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
}
.sheet-field input, .sheet-field textarea, .sheet-field select {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  color-scheme: dark;
}
.sheet-field input:focus, .sheet-field textarea:focus, .sheet-field select:focus {
  border-color: rgba(90, 200, 250, 0.72) !important;
  background: rgba(255, 255, 255, 0.14) !important;
}
.sheet-field input:-webkit-autofill,
.sheet-field input:-webkit-autofill:hover,
.sheet-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #162442 inset !important;
  -webkit-text-fill-color: #FFFFFF !important;
  caret-color: #FFFFFF !important;
  transition: background-color 9999s ease-in-out 0s;
}
.sheet-field input::placeholder, .sheet-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}
.auth-tabs { background: rgba(255, 255, 255, 0.10) !important; }
.auth-tab { color: rgba(255, 255, 255, 0.70) !important; }
.auth-tab.active {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 0.8px 0 rgba(255, 255, 255, 0.45) !important;
}
.pt-st-btn {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.80) !important;
}
.pt-st-btn.on {
  background: linear-gradient(135deg, #4EA9FF 0%, #1469DD 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}
.studio-seg-btn.active, .seg-btn.active {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 0.8px 0 rgba(255, 255, 255, 0.48) !important;
}
.voice-pill-btn, .btn-soft-sm, .dom-chip, .mt-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.26) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 0.8px 0 rgba(255, 255, 255, 0.45) !important;
}
.dom-chip.active { background: #FFFFFF !important; color: #0B1B36 !important; }

.sheet-panel {
  background: linear-gradient(160deg, rgba(16, 28, 52, 0.94) 0%, rgba(10, 18, 36, 0.92) 100%) !important;
  backdrop-filter: blur(28px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 28px 70px -16px rgba(0, 0, 0, 0.78), inset 0 1px 0.6px rgba(255, 255, 255, 0.34) !important;
  color: #FFFFFF !important;
}
.sheet-close { background: rgba(255, 255, 255, 0.14) !important; color: #FFFFFF !important; }
.pt-row { background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.14) !important; color: #FFFFFF !important; }
.toast-pill {
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.90) 0%, rgba(12, 22, 42, 0.84) 100%) !important;
  backdrop-filter: blur(20px) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.24) !important;
}

/* Voice Immersive Reading Mode (Mobile < 900px): Auto-hide bottom dock & top controls on scroll/tap */
.voice-restore-pill {
  position: absolute;
  right: 14px;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 42;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.30);
  background: var(--ios-glass-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--ios-glass-shadow);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 899px) {
  .ios-bottom-stack {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  }
  .plan-context-bar,
  .focus-ctrl-row.compact {
    max-height: 80px;
    transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, margin 0.28s ease, padding 0.28s ease;
  }
  .app-shell.voice-immersive .ios-bottom-stack {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
  }
  .app-shell.voice-immersive .plan-context-bar,
  .app-shell.voice-immersive .focus-ctrl-row.compact {
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  /* Keep ONLY 1 compact line of live voice transcript at top when collapsed! */
  .app-shell.voice-immersive .compact-voice-card {
    border-radius: 999px !important;
  }
  .app-shell.voice-immersive .mic-tr-strip.compact {
    padding: 5px 10px 6px !important;
    gap: 8px !important;
  }
  .app-shell.voice-immersive .mic-circle-btn.sm {
    width: 26px !important;
    height: 26px !important;
  }
  .app-shell.voice-immersive .tr-inline-head {
    display: none !important;
  }
  .app-shell.voice-immersive .tr-inline-text {
    -webkit-line-clamp: 1 !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }
  .app-shell.voice-immersive .main-scroll {
    padding-bottom: calc(56px + var(--safe-bottom));
  }
  .app-shell.voice-immersive #tab-voice {
    padding-top: 8px;
    padding-bottom: calc(56px + var(--safe-bottom));
  }
  #tab-voice {
    padding-bottom: calc(156px + var(--safe-bottom));
  }
}

.answer-stage {
  height: auto !important;
  overflow: visible !important;
}

/* Desktop Studio (>= 900px) */
@media (min-width: 900px) {
  .voice-restore-pill { display: none !important; }
  .ios-bottom-stack { display: none !important; }
  body { background: #030710 !important; }
  .app-shell {
    background: #040914 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.88) !important;
  }
  .desktop-sidebar {
    margin: 14px 0 14px 14px;
    border-radius: 26px;
    background: var(--ios-glass-bg) !important;
    backdrop-filter: url(#ios-liquid-panel) blur(14px) saturate(145%) brightness(1.06) !important;
    -webkit-backdrop-filter: blur(24px) saturate(145%) brightness(1.06) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: var(--ios-glass-shadow) !important;
  }
  .sb-item { color: rgba(255, 255, 255, 0.72) !important; }
  .sb-item:hover { background: rgba(255, 255, 255, 0.10) !important; color: #FFFFFF !important; }
  .sb-item.active {
    background: rgba(255, 255, 255, 0.20) !important;
    color: #FFFFFF !important;
    box-shadow: inset 0 0.8px 0 rgba(255, 255, 255, 0.48) !important;
  }
  .sb-account-card {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.20) !important;
  }
}

/* Voice Plan Dock (idle state quick launcher) & Voice History Tab */
.voice-plan-dock {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}
.vpd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.vpd-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.02em;
}
.vpd-new-btn {
  border: 0.5px solid rgba(90, 200, 250, 0.45);
  background: rgba(56, 152, 255, 0.16);
  color: #7CC4FF;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.vpd-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}
.vpd-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
}
.vpd-chip.active {
  border-color: rgba(90, 200, 250, 0.72);
  background: linear-gradient(135deg, rgba(78, 169, 255, 0.24) 0%, rgba(20, 105, 221, 0.20) 100%);
  box-shadow: 0 6px 18px -6px rgba(20, 105, 221, 0.45), inset 0 0.8px 0 rgba(255, 255, 255, 0.35);
}
.vpd-chip-main {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}
.vpd-chip-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.62);
}
.pt-row.plan-picked {
  border-color: rgba(90, 200, 250, 0.78) !important;
  background: rgba(56, 152, 255, 0.20) !important;
}
.plan-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.voice-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(16, 28, 52, 0.78) 0%, rgba(10, 18, 36, 0.72) 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
}
.voice-history-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}
.voice-history-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.60);
  margin-top: 2px;
}
.voice-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vh-card {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle 180px at 86% 16%, rgba(125, 211, 252, 0.20) 0%, transparent 68%),
    linear-gradient(180deg, #1A3A6E 0%, #122950 58%, #0C1D3A 100%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 18px 40px -14px rgba(3, 12, 34, 0.65), inset 0 1px 0.6px rgba(186, 230, 253, 0.36) !important;
  color: #FFFFFF;
  cursor: pointer;
}
.vh-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vh-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
}
.vh-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #7CC4FF;
  background: rgba(56, 152, 255, 0.16);
  border: 0.5px solid rgba(90, 200, 250, 0.32);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.vh-preview {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.74);
  margin-top: 6px;
  line-height: 1.45;
}
.vh-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.50);
}
.vh-more { color: #7CC4FF; font-weight: 600; }
.voice-history-empty {
  padding: 26px 18px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle 180px at 86% 16%, rgba(125, 211, 252, 0.20) 0%, transparent 68%),
    linear-gradient(180deg, #1A3A6E 0%, #122950 58%, #0C1D3A 100%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 18px 40px -14px rgba(3, 12, 34, 0.65), inset 0 1px 0.6px rgba(186, 230, 253, 0.36) !important;
}
.voice-history-empty-title { font-size: 15px; font-weight: 700; color: #FFFFFF; }
.voice-history-empty-sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); margin-top: 6px; line-height: 1.5; }

/* ==================== VOICE LOBBY HUB, PRE-FLIGHT MODAL & ROOM HEADER ==================== */
.voice-hub-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hub-free-card {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle 220px at 84% 16%, rgba(196, 232, 255, 0.48) 0%, transparent 70%),
    linear-gradient(180deg, #4BA8FF 0%, #1F7BF2 54%, #0E58C8 100%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.46) !important;
  box-shadow: 0 22px 48px -14px rgba(14, 88, 200, 0.58), inset 0 1.2px 0.8px rgba(255, 255, 255, 0.68) !important;
  color: #FFFFFF;
}
.hub-free-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 6px;
}
.hub-free-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.hub-free-sub {
  margin: 6px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.hub-free-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hub-free-card .btn-obsidian {
  padding: 11px 20px;
  border-radius: 999px !important;
  border: none !important;
  background: #FFFFFF !important;
  color: #0B1B36 !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 26px -8px rgba(7, 24, 66, 0.42) !important;
  cursor: pointer;
}
.hub-ghost-cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.hub-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hub-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}
.hub-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}
.hub-sec-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 2px;
}

.hub-plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hub-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle 180px at 84% 18%, rgba(244, 180, 255, 0.34) 0%, transparent 68%),
    linear-gradient(180deg, #7C7AF8 0%, #5856D6 56%, #3D38B8 100%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.46) !important;
  box-shadow: 0 20px 44px -14px rgba(88, 86, 214, 0.50), inset 0 1.2px 0.8px rgba(255, 255, 255, 0.65) !important;
  color: #FFFFFF;
}
.hub-plan-card .plan-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
}
.hub-plan-main { min-width: 0; flex: 1; }
.hub-plan-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 6px;
}
.hub-plan-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 3px;
}
.hub-plan-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hub-start-cta {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #FFFFFF;
  color: #2D2694;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(15, 10, 60, 0.38);
  cursor: pointer;
}
.hub-del-btn {
  border: none;
  background: transparent;
  color: rgba(255, 224, 224, 0.88);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 6px;
  cursor: pointer;
}
.hub-plan-empty {
  padding: 20px 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle 180px at 86% 16%, rgba(125, 211, 252, 0.20) 0%, transparent 68%),
    linear-gradient(180deg, #1A3A6E 0%, #122950 58%, #0C1D3A 100%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 18px 40px -14px rgba(3, 12, 34, 0.65), inset 0 1px 0.6px rgba(186, 230, 253, 0.36) !important;
  text-align: center;
}
.hub-plan-empty-title { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.88); }
.hub-plan-empty-sub { font-size: 12px; color: rgba(255, 255, 255, 0.56); margin-top: 5px; line-height: 1.5; }

/* Room Header Back Button */
.room-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.room-back-btn {
  padding: 7px 11px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

/* Pre-Flight Confirmation Modal */
.preflight-card {
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
}
.preflight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pf-lbl { font-size: 12px; color: rgba(255, 255, 255, 0.58); }
.pf-val { font-size: 14.5px; color: #FFFFFF; }
.preflight-sub { font-size: 12px; color: rgba(124, 196, 255, 0.90); margin-top: 4px; }
.preflight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}
.pf-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pf-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  text-align: left;
  cursor: pointer;
}
.pf-mode-btn b { font-size: 13px; color: #FFFFFF; }
.pf-mode-btn span { font-size: 11px; color: rgba(255, 255, 255, 0.60); line-height: 1.35; }
.pf-mode-btn.active {
  border-color: rgba(90, 200, 250, 0.78);
  background: linear-gradient(135deg, rgba(78, 169, 255, 0.24) 0%, rgba(20, 105, 221, 0.20) 100%);
}
.preflight-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(56, 152, 255, 0.12);
  border: 0.5px solid rgba(90, 200, 250, 0.26);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}
.pf-skip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 2px 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
}
.pf-skip-row input {
  width: 15px;
  height: 15px;
  accent-color: #3898FF;
}

/* 3-Layer Full Review Modal (逐题复盘 | 完整实录) */
.rep-qa-card {
  margin-bottom: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
}
.rep-qa-q {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.45;
  margin-bottom: 8px;
}
.rep-block {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.10);
}
.rep-block.user {
  background: rgba(48, 209, 88, 0.10);
  border-color: rgba(48, 209, 88, 0.26);
}
.rep-block.kp {
  background: rgba(56, 152, 255, 0.12);
  border-color: rgba(90, 200, 250, 0.28);
}
.rep-block-lbl {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 4px;
}
.rep-block.user .rep-block-lbl { color: #6EE78F; }
.rep-block.kp .rep-block-lbl { color: #7CC4FF; }
.rep-block-txt {
  font-size: 13px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.90);
  white-space: pre-wrap;
}
.rep-tr-row {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.10);
}
.rep-tr-row.is-q {
  background: rgba(56, 152, 255, 0.12);
  border-color: rgba(90, 200, 250, 0.30);
}
.rep-tr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.rep-tr-time { font-size: 11px; color: rgba(255, 255, 255, 0.50); }
.rep-tr-qtag {
  font-size: 10.5px; font-weight: 700; color: #7CC4FF;
  background: rgba(56, 152, 255, 0.20); border-radius: 999px; padding: 1px 7px;
}
.rep-tr-stag { font-size: 10.5px; color: rgba(255, 255, 255, 0.45); }
.rep-tr-txt { font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, 0.90); }

/* Enhanced Full Review: Topics, Actions, Diagnosis & Clamp Toggle */
.rep-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.rep-topic-pill {
  font-size: 11px;
  font-weight: 600;
  color: #8FD0FF;
  background: rgba(56, 152, 255, 0.16);
  border: 0.5px solid rgba(90, 200, 250, 0.30);
  border-radius: 999px;
  padding: 2px 9px;
}
.rep-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.rep-del-btn {
  border: 0.5px solid rgba(255, 69, 58, 0.36);
  background: rgba(255, 69, 58, 0.14);
  color: #FF8A80;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.rep-qa-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.rep-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.rep-toggle-btn {
  border: none;
  background: transparent;
  color: #7CC4FF;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.rep-block-txt.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rep-block.diag {
  background: rgba(255, 179, 64, 0.10);
  border-color: rgba(255, 179, 64, 0.28);
}
.rep-block.diag .rep-block-lbl { color: #FFD07F; }
.rep-diag-ok { font-size: 12.5px; line-height: 1.55; color: #7EEFA0; }
.rep-diag-miss { font-size: 12.5px; line-height: 1.55; color: #FFD07F; }

/* ==================== FIX CLIPPING / FULL-VIEWPORT READABILITY (MOBILE & PC) ==================== */
.main-scroll {
  min-height: 0 !important;
  min-width: 0 !important;
}
.main-scroll::-webkit-scrollbar { width: 6px; }
.main-scroll::-webkit-scrollbar-thumb {
  background: rgba(186, 230, 253, 0.28) !important;
  border-radius: 999px;
}
.main-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(186, 230, 253, 0.48) !important;
}

.voice-room-view,
.voice-split,
.answer-stage {
  min-width: 0 !important;
  min-height: 0 !important;
}
.full-answer-body,
.kp-text,
.answer-q-echo {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.code-card {
  max-width: 100%;
}
.code-card pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

/* Mobile (< 900px): maximize answer reading area inside Voice Room */
@media (max-width: 899px) {
  .app-shell.in-voice-room .top-bar {
    display: none !important;
  }
  .app-shell.in-voice-room #tab-voice {
    padding: 8px 12px calc(130px + var(--safe-bottom)) !important;
  }
  .app-shell.in-voice-room .answer-stage {
    padding: 14px 15px !important;
    gap: 9px !important;
  }
  .app-shell.in-voice-room .answer-q-echo {
    font-size: 14.5px !important;
    padding-bottom: 7px !important;
  }
  .app-shell.in-voice-room .kp-item-row {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
  .app-shell.in-voice-room .full-answer-body {
    font-size: 14.5px !important;
    line-height: 1.62 !important;
  }
  .app-shell.voice-immersive #tab-voice {
    padding: 6px 10px calc(52px + var(--safe-bottom)) !important;
  }
}

/* Desktop (>= 900px): full viewport height + wider answer stage + minmax(0,1fr) anti-clip */
@media (min-width: 900px) {
  body { padding: 12px !important; }
  .app-shell {
    width: min(1380px, 100%) !important;
    height: calc(100dvh - 24px) !important;
  }
  .app-shell.in-voice-room #tab-voice {
    padding: 14px 22px 48px !important;
  }
  .voice-split {
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .answer-stage {
    min-height: 0 !important;
    padding: 18px 22px !important;
    gap: 10px !important;
  }
  .full-answer-body {
    font-size: 15px !important;
    line-height: 1.66 !important;
  }
}

/* ==================== INNER-ONLY SCROLL INSIDE #answerStage (LIVE VOICE ROOM) ==================== */
.app-shell.in-voice-room-live .main-scroll {
  overflow: hidden !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
}
.app-shell.in-voice-room-live #tab-voice {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.app-shell.in-voice-room-live #voiceRoomView {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.app-shell.in-voice-room-live #vmode-live.active {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-shell.in-voice-room-live .voice-split {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.app-shell.in-voice-room-live .voice-split-console {
  flex-shrink: 0;
}
.app-shell.in-voice-room-live .answer-stage {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.app-shell.in-voice-room-live .answer-stage::-webkit-scrollbar { width: 5px; }
.app-shell.in-voice-room-live .answer-stage::-webkit-scrollbar-thumb {
  background: rgba(186, 230, 253, 0.30);
  border-radius: 999px;
}
@media (max-width: 899px) {
  .app-shell.in-voice-room-live .ios-bottom-stack {
    display: none !important;
  }
  .app-shell.in-voice-room-live #tab-voice {
    padding: 8px 12px calc(14px + var(--safe-bottom)) !important;
  }
  .app-shell.in-voice-room-live.voice-immersive #tab-voice {
    padding: 6px 10px calc(12px + var(--safe-bottom)) !important;
  }
  .code-card pre {
    padding: 10px 11px !important;
    font-size: 12px !important;
    line-height: 1.52 !important;
  }
}
.code-card,
.code-card-head {
  white-space: normal !important;
}
.code-card {
  margin: 6px 0 10px !important;
}
.full-text-block {
  white-space: pre-wrap;
  margin-bottom: 8px;
}
.full-text-block:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .app-shell.in-voice-room-live #tab-voice {
    padding: 14px 22px 18px !important;
  }
  .app-shell.in-voice-room-live .voice-split {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    align-items: stretch !important;
    height: 100% !important;
  }
}

/* Desktop-only Tab Audio Capture Button */
@media (max-width: 899px) {
  .desktop-only { display: none !important; }
}
#tabAudioBtn.tab-on {
  background: linear-gradient(135deg, #4EA9FF 0%, #1469DD 100%) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px -6px rgba(20, 105, 221, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}
