/* ==============================================================================
   mock prep. — Student Workspace Design System (Figma Node 105:166)
   Tokens, Typography, Components, and Responsive Layouts
   ============================================================================== */

:root {
  /* Colors */
  --color-canvas: #f6f6fa;
  --color-paper: #fdfeff;
  --color-ink: #212121;
  --color-plum: #38325a;
  --color-lav: #d7d7f4;
  --color-wash: #f0effa;
  --color-border: #e7e5ef;
  --color-muted: #565563;
  --color-quiet: #656375;
  --color-yellow: #fcfd76;
  --color-teal: #c2d6db;
  --color-green: #315e53;

  /* Quadrant Pastel Accents for Circumplex Affect Model */
  --cma-mint: #e6f7f2;
  --cma-lavender: #eae8fc;
  --cma-peach: #fde8e8;
  --cma-mist: #f1f2f6;

  /* Border Radii */
  --radius-card: 24px;
  --radius-control: 14px;
  --radius-small: 10px;
  --radius-pill: 99px;

  /* Shadows */
  --shadow-soft: 0px 5px 8px rgba(39, 34, 64, 0.05);
  --shadow-card: 0px 5px 8px rgba(39, 34, 64, 0.05);

  /* Typography */
  --font-sans: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* App Shell */
.shell {
  display: flex;
  min-height: 100vh;
  background: var(--color-canvas);
  padding: 16px;
  gap: 28px;
  box-sizing: border-box;
}

/* Sidebar */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: calc(100vh - 32px);
  position: sticky;
  top: 16px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-control);
  background: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  line-height: 1.1;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.45px;
  color: var(--color-quiet);
  margin-bottom: 8px;
  margin-top: 4px;
  padding-left: 8px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  width: 188px;
  height: 46px;
  border-radius: var(--radius-control);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-muted);
  transition: all 0.15s ease;
  position: relative;
  text-align: left;
}

.nav-item:hover {
  background: var(--color-wash);
  color: var(--color-ink);
}

.nav-item.active {
  background: var(--color-lav);
  color: var(--color-ink);
}

.nav-item.active .nav-icon {
  color: var(--color-ink);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

svg.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.radix-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-divider {
  height: 1px;
  background: var(--color-border);
  margin: 18px 4px 14px;
}

/* Sidebar Reminder Card */
.sidebar-reminder-card {
  margin-top: auto;
  margin-bottom: 16px;
  background: var(--color-wash);
  border-radius: var(--radius-card);
  padding: 16px 14px;
  box-sizing: border-box;
}

.reminder-icon-tile {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-small);
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.reminder-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
  margin-bottom: 4px;
}

.reminder-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.35;
}

/* Sidebar System Status & Sign Out */
.sidebar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.system-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4d4d8;
}

.status-dot.ready {
  background: #16a34a;
}

.status-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-ink);
}

.status-caption {
  font-size: 10px;
  color: var(--color-muted);
}

.btn-signout {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.btn-signout:hover {
  background: var(--color-wash);
  color: #dc2626;
}

/* Workspace & Topbar */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.topbar {
  height: 50px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 20px 0;
  width: 100%;
  max-width: 1144px;
  box-sizing: border-box;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.bc-root {
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 1.45px;
  color: var(--color-quiet);
  text-transform: uppercase;
}

.bc-arrow {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bc-current {
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 19px;
  text-transform: capitalize;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.top-date-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.top-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.top-user-menu:hover .user-name {
  color: var(--color-plum);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-lav);
  color: var(--color-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  flex-shrink: 0;
  text-align: center;
}

.user-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  gap: 1px;
}

.user-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 19px;
  color: var(--color-ink);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.user-sub {
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  color: var(--color-muted);
  white-space: nowrap;
}

.user-chevron {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
  margin-left: 2px;
}

/* Main Content Container */
.content {
  max-width: 1144px;
  width: 100%;
  margin: 0;
  padding: 0 0 64px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

/* ==============================================================================
   Dashboard Components (Figma Node 105:166)
   ============================================================================== */

/* 1. Hero Practice Card */
.hero-card {
  background: var(--color-ink);
  border-radius: var(--radius-card);
  height: 232px;
  min-height: 232px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 650px;
  z-index: 2;
}

.hero-badge-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.45px;
  color: var(--color-yellow);
  text-transform: uppercase;
}

.hero-headline {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.95px;
  color: var(--color-paper);
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-lav);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.btn-hero-primary {
  height: 44px;
  background: var(--color-yellow);
  color: var(--color-ink);
  border-radius: var(--radius-control);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-hero-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.hero-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-lav);
  cursor: pointer;
}

.hero-link:hover {
  text-decoration: underline;
}

.hero-artwork {
  position: absolute;
  right: 0;
  top: 0;
  height: 232px;
  width: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-artwork img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-pill {
  position: absolute;
  right: 64px;
  bottom: 22px;
  background: var(--color-plum);
  color: var(--color-paper);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

/* 2. Practice Overview & Metrics */
.overview-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.overview-title {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}

.overview-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 2px;
}

.overview-date-pill {
  height: 36px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-muted);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metric-card {
  height: 112px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 16px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.metric-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-icon-tile {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-tile.lav {
  background: var(--color-lav);
}

.metric-icon-tile.teal {
  background: var(--color-teal);
}

.metric-icon-tile.yellow {
  background: var(--color-yellow);
}

.metric-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-muted);
}

.metric-card-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.metric-value {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-ink);
}

.metric-context {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-green);
  white-space: nowrap;
}

/* 3. Grid Rows for Charts & Cards (720px / 400px split) */
.grid-2-custom {
  display: grid;
  grid-template-columns: 720px 400px;
  gap: 24px;
  align-items: start;
}

.card-white {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
  position: relative;
  box-sizing: border-box;
}

.card-lavender {
  background: var(--color-lav);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
  position: relative;
  box-sizing: border-box;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}

.card-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Badges & Pills */
.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: var(--radius-pill);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill-badge.wash-green {
  background: var(--color-wash);
  color: var(--color-green);
}

.pill-badge.wash-plum {
  background: var(--color-wash);
  color: var(--color-plum);
}

.pill-badge.paper-plum {
  background: var(--color-paper);
  color: var(--color-plum);
}

/* Standard Control Buttons */
.btn-control-outline {
  height: 44px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  transition: all 0.15s ease;
}

.btn-control-outline:hover {
  background: var(--color-wash);
  color: var(--color-plum);
}

.btn-control-outline.plum {
  color: var(--color-plum);
}

/* Score Trend Card */
.score-trend-card {
  height: 263px;
  display: flex;
  flex-direction: column;
}

.chart-svg-wrap {
  width: 100%;
  flex: 1;
  position: relative;
}

/* Weekly Activity Card */
.weekly-activity-card {
  height: 263px;
  display: flex;
  flex-direction: column;
}

.weekly-bars-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex: 1;
  padding: 10px 10px 0 35px;
  position: relative;
}

.weekly-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 28px;
  height: 100%;
  justify-content: flex-end;
}

.weekly-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-plum);
}

.weekly-bar {
  width: 25px;
  border-radius: var(--radius-small);
  background: var(--color-teal);
  transition: height 0.3s ease;
}

.weekly-bar.highlight {
  background: var(--color-plum);
}

.weekly-bar.flat {
  height: 2px;
  background: var(--color-border);
}

.weekly-day {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
}

/* Latest Feedback Card */
.latest-feedback-card {
  height: 272px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feedback-boxes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feedback-box {
  background: var(--color-wash);
  border-radius: var(--radius-control);
  padding: 14px 16px;
  height: 112px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feedback-box-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
}

.feedback-box-skill {
  font-size: 18px;
  font-weight: 700;
}

.feedback-box-skill.plum {
  color: var(--color-plum);
}

.feedback-box-skill.green {
  color: var(--color-green);
}

.feedback-box-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.25;
}

.feedback-next-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.next-step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-plum);
  white-space: nowrap;
}

.next-step-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
}

/* Mood Check-in Card (Lavender) */
.mood-card {
  min-height: 272px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mood-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mood-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mood-icon-tile {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-small);
  background: var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mood-circumplex-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-plum);
}

.mood-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mood-body-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mood-checkin-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.45px;
  color: var(--color-quiet);
  text-transform: uppercase;
}

.mood-state-word {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
}

.mood-energy-desc {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-muted);
}

.mood-meta-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 2px;
}

.mood-chart-widget {
  width: 176px;
  height: 128px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Recent Practice Card */
.recent-practice-card {
  min-height: 296px;
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.practice-rows-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.practice-row-item {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 0 4px;
}

.practice-row-item:last-child {
  border-bottom: none;
}

.practice-row-item:hover {
  background: var(--color-wash);
  border-radius: var(--radius-small);
}

.practice-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.practice-type-tile {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-small);
  background: var(--color-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.practice-title-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.practice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
}

.practice-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
}

.practice-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.practice-score {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
}

/* AI Insights Card */
.ai-insights-card {
  min-height: 296px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.ai-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-icon-tile {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-box-prompt {
  background: var(--color-wash);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  box-sizing: border-box;
}

.ai-box-prompt::-webkit-scrollbar {
  width: 4px;
}

.ai-box-prompt::-webkit-scrollbar-track {
  background: transparent;
}

.ai-box-prompt::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.ai-box-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.45px;
  color: var(--color-plum);
  text-transform: uppercase;
}

.ai-box-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-plum);
}

.ai-chips-row {
  display: flex;
  gap: 10px;
}

.ai-chip {
  height: 34px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-chip:hover {
  background: var(--color-wash);
  border-color: var(--color-lav);
}

.ai-input-bar {
  height: 52px;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  display: flex;
  align-items: center;
  padding: 0 6px 0 14px;
  gap: 8px;
}

.ai-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

.ai-input-bar input::placeholder {
  color: var(--color-muted);
}

.btn-ai-send {
  width: 42px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--color-ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-ai-send:hover {
  opacity: 0.88;
}

/* Footer Concept Note */
.dashboard-footer-note {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-quiet);
  margin-top: 8px;
}

/* ==============================================================================
   Evaluation Report & Circumplex Affect Centerpiece Styles
   ============================================================================== */
.report-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.btn-back-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-muted);
  padding: 8px 16px;
  border-radius: var(--radius-control);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back-report:hover {
  background: var(--color-wash);
  color: var(--color-plum);
}

.cma-hero-card {
  background: var(--color-paper);
  border: 1.5px solid #d7d7f4;
  border-radius: var(--radius-card);
  box-shadow: 0 6px 24px rgba(56, 50, 90, 0.07);
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.cma-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d7d7f4 0%, #38325a 50%, #fcfd76 100%);
}

.cma-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cma-quadrant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cma-quadrant-card {
  border-radius: var(--radius-control);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.cma-quadrant-card.active {
  border-color: #38325a;
  box-shadow: 0 2px 10px rgba(56, 50, 90, 0.12);
}

.cma-quadrant-card.q1 {
  background: var(--cma-lavender);
}

.cma-quadrant-card.q2 {
  background: var(--cma-peach);
}

.cma-quadrant-card.q3 {
  background: var(--cma-mist);
}

.cma-quadrant-card.q4 {
  background: var(--cma-mint);
}

/* Modal Windows & Auth Overlays */
.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 33, 33, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.auth-backdrop.hidden {
  display: none;
}

.auth-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 40px rgba(39, 34, 64, 0.12);
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  box-sizing: border-box;
  text-align: center;
}

.auth-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.auth-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.45;
  margin-bottom: 24px;
}

.btn-google {
  height: 48px;
  width: 100%;
  border-radius: var(--radius-control);
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-google:hover {
  background: var(--color-wash);
}

.auth-footer-note {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 20px;
  line-height: 1.4;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-ink);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.toast.error {
  background: #dc2626;
}

/* Hidden Video & Canvas for local capture */
.source-video {
  display: none;
}

/* ==============================================================================
   Practice View (Prepare) — Modern Figma Design System Layout
   ============================================================================== */

.practice-layout {
  display: grid;
  grid-template-columns: 720px 400px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1180px) {
  .practice-layout {
    grid-template-columns: 1fr;
  }
}

.practice-left-col,
.practice-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Segmented Control for Practice Format */
.segmented-control-custom {
  display: flex;
  background: var(--color-wash);
  padding: 5px;
  border-radius: var(--radius-control);
  gap: 6px;
  margin-top: 8px;
}

.segmented-option-custom {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.segmented-option-custom:hover {
  color: var(--color-ink);
}

.segmented-option-custom.active {
  background: var(--color-paper);
  color: var(--color-plum);
  box-shadow: 0 2px 8px rgba(39, 34, 64, 0.08);
}

/* Custom Form Groups & Inputs */
.form-group-custom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.form-label-custom {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-quiet);
  text-transform: uppercase;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  pointer-events: none;
  color: var(--color-muted);
  display: flex;
  align-items: center;
}

.input-field-custom {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-control);
  background: var(--color-canvas);
  border: 1.5px solid var(--color-border);
  padding: 0 16px 0 46px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.input-field-custom:focus {
  border-color: var(--color-plum);
  background: var(--color-paper);
  box-shadow: 0 0 0 3px rgba(56, 50, 90, 0.08);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-field-custom {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-control);
  background: var(--color-canvas);
  border: 1.5px solid var(--color-border);
  padding: 0 40px 0 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.select-field-custom:focus {
  border-color: var(--color-plum);
  background: var(--color-paper);
  box-shadow: 0 0 0 3px rgba(56, 50, 90, 0.08);
}

.select-chevron {
  position: absolute;
  right: 16px;
  pointer-events: none;
  color: var(--color-muted);
  display: flex;
  align-items: center;
}

/* Adaptive Toggle Card */
.adaptive-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-wash);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 18px;
  margin-top: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.adaptive-toggle-card:hover {
  border-color: #d7d5e6;
}

.adaptive-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.adaptive-icon-tile {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--color-lav);
  color: var(--color-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adaptive-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}

.adaptive-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Permission Card Rows */
.permissions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.permission-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.permission-card-row:hover {
  background: var(--color-wash);
  border-color: #d7d5e6;
}

.permission-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.permission-icon-tile {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--color-wash);
  color: var(--color-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.permission-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.permission-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}

.permission-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.35;
}

/* Switch Toggle Component */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d6d4e2;
  transition: 0.25s ease;
  border-radius: 99px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--color-plum);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Privacy Banner */
.privacy-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-wash);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.45;
  margin-top: 16px;
}

.privacy-banner-icon {
  color: var(--color-plum);
  flex-shrink: 0;
  display: flex;
}

/* Camera Preview Box */
.device-preview-box-custom {
  width: 100%;
  height: 210px;
  background: #191822;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.device-preview-box-custom video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.camera-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
}

.camera-placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.camera-placeholder-text {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.camera-placeholder-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.device-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Baseline Checkin & Launch Card */
.baseline-checkin-card {
  display: flex;
  flex-direction: column;
}

.launch-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.launch-ai-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-wash);
  border-radius: 14px;
  padding: 14px 16px;
}

.launch-ai-banner.warning {
  background: #fff4e5;
  color: #92400e;
}

.btn-practice-launch {
  width: 100%;
  height: 50px;
  background: var(--color-yellow);
  color: var(--color-ink);
  border-radius: var(--radius-control);
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(252, 253, 118, 0.4);
  border: none;
}

.btn-practice-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(252, 253, 118, 0.6);
  opacity: 0.96;
}

.btn-practice-launch:active {
  transform: translateY(0);
}

/* ==============================================================================
   Unified Workspace Harmonization (Reports, Library, AI Coach)
   ============================================================================== */

/* Metric Cards Row for Reports & History */
.grid-4-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.grid-3-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .grid-4-metrics,
  .grid-3-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .grid-4-metrics,
  .grid-3-metrics {
    grid-template-columns: 1fr;
  }
}

.report-metric-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 110px;
  box-sizing: border-box;
}

.report-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-quiet);
  text-transform: uppercase;
}

.report-metric-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  margin-top: 4px;
}

.report-metric-sub {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
}

/* 3-Column Diagnostic Grid for Reports */
.report-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .report-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* History Sessions List */
.history-session-list {
  display: flex;
  flex-direction: column;
}

.history-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-paper);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.history-session-row:last-child {
  border-bottom: none;
}

.history-session-row:hover {
  background: var(--color-wash);
}

.history-session-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.history-session-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.3;
}

.history-session-meta {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
  margin-top: 3px;
}

.history-session-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Question Review Accordion in Report */
.q-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.q-item,
.q-accordion-item {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 18px;
  background: var(--color-paper);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.q-item:hover,
.q-accordion-item:hover {
  border-color: #d7d5e6;
  background: var(--color-wash);
}

.q-item-header,
.q-accordion-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.q-item-verdict,
.q-accordion-verdict {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
  font-weight: 500;
}

.q-item-detail,
.q-accordion-detail {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}

.q-item.expanded .q-item-detail,
.q-accordion-item.expanded .q-accordion-detail {
  display: block;
}

/* Timeline Feed in Report */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--color-ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item time {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-plum);
  background: var(--color-wash);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ==========================================================================
   Question & Prompt Library Harmonization
   ========================================================================== */
.library-filter-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.library-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.library-tab-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.library-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  background: var(--color-wash);
  border: 1px solid var(--color-border);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.library-tab-pill:hover {
  background: var(--color-lav);
  color: var(--color-plum);
  border-color: #d7d5e6;
  transform: translateY(-1px);
}

.library-tab-pill.active {
  background: #38325a;
  color: #ffffff;
  border-color: #38325a;
  box-shadow: 0 3px 10px rgba(56, 50, 90, 0.22);
}

.library-tab-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.08);
}

.library-tab-pill.active .library-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.library-search-box {
  position: relative;
  min-width: 260px;
  max-width: 340px;
  width: 100%;
}

.library-search-box input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 38px;
  border-radius: 99px;
  border: 1px solid var(--color-border);
  background: var(--color-wash);
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  outline: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.library-search-box input:focus {
  background: #ffffff;
  border-color: var(--color-plum);
  box-shadow: 0 0 0 3px rgba(56, 50, 90, 0.08);
}

.library-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.library-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 600;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

/* Library Cards Grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .library-grid {
    grid-template-columns: 1fr;
  }
}

.library-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.library-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(39, 34, 64, 0.09);
  border-color: #d7d5e6;
}

.library-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.library-card-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.library-card-icon-tile.lavender {
  background: #ececfa;
  color: #38325a;
}

.library-card-icon-tile.yellow {
  background: #fdfd86;
  color: #212121;
}

.library-card-icon-tile.mint {
  background: #e4f6ed;
  color: #1e664e;
}

.library-card-icon-tile.peach {
  background: #ffebe3;
  color: #9c4221;
}

.library-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-badge.diff-beginner {
  background: #e4f6ed;
  color: #1e664e;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  padding: 0 10px;
  border-radius: 99px;
}

.pill-badge.diff-intermediate {
  background: #ececfa;
  color: #38325a;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  padding: 0 10px;
  border-radius: 99px;
}

.pill-badge.diff-advanced {
  background: #ffebe3;
  color: #9c4221;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  padding: 0 10px;
  border-radius: 99px;
}

.library-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.35;
  margin: 0 0 8px;
}

.library-card-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.library-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.library-card-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-muted);
  font-weight: 600;
}

.library-practice-btn {
  height: 40px;
  border-radius: 12px;
  background: var(--color-wash);
  border: 1px solid var(--color-border);
  color: var(--color-plum);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease;
}

.library-practice-btn:hover {
  background: #38325a;
  color: #ffffff;
  border-color: #38325a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 50, 90, 0.2);
}

/* AI Coach Workspace Harmonization */
.coach-thread-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 6px;
  margin: 16px 0;
}

.coach-msg-user {
  background: var(--color-wash);
  border-radius: 16px;
  padding: 14px 18px;
  width: 100%;
  box-sizing: border-box;
}

.coach-msg-user-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-quiet);
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.coach-msg-user-content {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-plum);
}

.coach-msg-bot {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  width: 100%;
  box-sizing: border-box;
}

.coach-msg-bot-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-plum);
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coach-msg-bot-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink);
  white-space: pre-line;
}

/* Interactive Chatbot Styles */
.chat-thread-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 480px;
  overflow-y: auto;
  padding: 16px 12px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

.chat-msg-row {
  display: flex;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.chat-msg-row.user {
  justify-content: flex-end;
}

.chat-msg-row.coach {
  justify-content: flex-start;
  align-items: flex-start;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-avatar.user {
  background: var(--color-plum);
  color: #ffffff;
  font-size: 13px;
  order: 2;
}

.chat-avatar.coach {
  background: var(--color-yellow);
  color: var(--color-ink);
  box-shadow: 0 2px 6px rgba(252, 253, 118, 0.4);
}

.chat-bubble-user {
  background: #38325a;
  color: #ffffff;
  border-radius: 18px 4px 18px 18px;
  padding: 12px 18px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  word-break: break-word;
  box-shadow: 0 3px 10px rgba(56, 50, 90, 0.16);
  order: 1;
}

.chat-bubble-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
  font-weight: 600;
  text-align: right;
}

.chat-bubble-coach {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 4px 18px 18px 18px;
  padding: 16px 20px;
  max-width: 84%;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink);
  box-sizing: border-box;
}

.chat-bubble-coach.typing {
  padding: 12px 18px;
}

.chat-bubble-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-sender-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
}

.chat-time-tag {
  font-size: 11px;
  color: var(--color-muted);
  margin-left: auto;
}

.chat-bubble-content {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-ink);
}

.chat-bubble-content strong {
  color: var(--color-plum);
  font-weight: 700;
}

.chat-bubble-content ul.chat-ul,
.chat-bubble-content ol.chat-ol {
  margin: 8px 0;
  padding-left: 20px;
}

.chat-bubble-content li {
  margin-bottom: 4px;
}

.chat-code {
  background: var(--color-wash);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  color: var(--color-plum);
}

.chat-suggestions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.chat-suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-wash);
  border: 1px solid var(--color-border);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-plum);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-suggestion-chip:hover {
  background: var(--color-lav);
  border-color: #d7d5e6;
  transform: translateY(-1px);
}

.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0 2px;
}

.chat-typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--color-plum);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Live Interview Room Styles
   ========================================================================== */
.room-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.room-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-lav);
  color: var(--color-plum);
  padding: 6px 16px;
  border-radius: 99px;
  font-family: 'Urbanist', monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  border: 1px solid rgba(56, 50, 90, 0.12);
}

.recording-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--color-wash);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.recording-chip.recording {
  background: #ffebe3;
  color: #c93b2b;
  border-color: #ffd4c6;
}

.rec-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5c3d2;
}

.recording-chip.recording .rec-pulse {
  background: #e53935;
  box-shadow: 0 0 0 rgba(229, 57, 53, 0.4);
  animation: recPulseAnim 1.6s infinite;
}

@keyframes recPulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.video-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .video-grid-2 {
    grid-template-columns: 1fr;
  }
}

.video-cell-card {
  position: relative;
  background: #181720;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border);
}

.video-cell-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-cell-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(24, 23, 32, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-cell-placeholder {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 500;
}

.video-cell-placeholder.hidden {
  display: none !important;
}

/* Live In-Session Focus & Engagement Alerts */
.video-cell-card.has-alert {
  border-color: #ff5252;
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.35), var(--shadow-card);
}

.live-focus-alert {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(38, 14, 18, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 107, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  animation: slideAlertDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
  pointer-events: none;
}

.live-focus-alert.success {
  background: rgba(16, 42, 28, 0.94);
  border-color: rgba(52, 211, 153, 0.7);
  color: #a7f3d0;
}

.live-focus-alert.hidden {
  opacity: 0;
  transform: translate(-50%, -10px);
  pointer-events: none;
  display: none !important;
}

@keyframes slideAlertDown {
  from {
    opacity: 0;
    transform: translate(-50%, -14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.live-cma-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.live-cma-card.distracted {
  border-color: #ff6b6b;
}

.room-textarea {
  width: 100%;
  min-height: 140px;
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  padding: 14px 16px;
  font-family: 'Urbanist', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink);
  background: #ffffff;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: all 0.15s ease;
}

.room-textarea:focus {
  border-color: var(--color-plum);
  box-shadow: 0 0 0 3px rgba(56, 50, 90, 0.1);
}

.signal-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}

.signal-row-item:last-child {
  border-bottom: none;
}

.signal-left-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-weight: 600;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5c3d2;
  transition: all 0.2s ease;
}

.status-dot-pulse.ready {
  background: #1e664e;
  box-shadow: 0 0 6px rgba(30, 102, 78, 0.4);
}





/* ==========================================================================
   Dark Theme (Night Mode) Tokens & Overrides
   ========================================================================== */
[data-theme="dark"], body.theme-dark {
  --color-canvas: #121118;
  --color-paper: #1c1b26;
  --color-ink: #f7f7fa;
  --color-plum: #a9a3dc;
  --color-lav: #2e2a44;
  --color-wash: #232133;
  --color-border: #2e2b3f;
  --color-muted: #a4a1b5;
  --color-quiet: #868399;
  --color-yellow: #fcfd76;
  --color-teal: #78a1aa;
  --color-green: #489b88;

  --cma-mint: #1a382d;
  --cma-lavender: #2d2948;
  --cma-peach: #402321;
  --cma-mist: #252431;

  --shadow-soft: 0px 5px 12px rgba(0, 0, 0, 0.4);
  --shadow-card: 0px 8px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .sidebar {
  background: #181722;
  border-color: #2e2b3f;
}

[data-theme="dark"] .topbar {
  background: #181722;
  border-color: #2e2b3f;
}

[data-theme="dark"] .card-white {
  background: #1c1b26;
  border-color: #2e2b3f;
}

[data-theme="dark"] .card-lavender {
  background: #252336;
  border-color: #35324c;
}

[data-theme="dark"] .btn-control-outline {
  background: #232133;
  border-color: #35324c;
  color: #f7f7fa;
}

[data-theme="dark"] .btn-control-outline:hover {
  background: #2e2a44;
  border-color: #4b466b;
}

[data-theme="dark"] .btn-primary-dark {
  background: #f7f7fa;
  color: #121118;
}

[data-theme="dark"] .input-field-custom,
[data-theme="dark"] .custom-select,
[data-theme="dark"] .room-textarea,
[data-theme="dark"] .library-search-box input {
  background: #232133;
  border-color: #35324c;
  color: #f7f7fa;
}

[data-theme="dark"] .chat-bubble-coach {
  background: #232133;
  border-color: #35324c;
  color: #f7f7fa;
}

[data-theme="dark"] .chat-bubble-content {
  color: #f7f7fa;
}

[data-theme="dark"] .chat-bubble-content strong {
  color: #c4beff;
}

[data-theme="dark"] .chat-code {
  background: #181722;
  color: #fcfd76;
}

/* Dynamic Font Sizes */
html[data-font-size="small"] {
  font-size: 13px;
}
html[data-font-size="medium"] {
  font-size: 15px;
}
html[data-font-size="large"] {
  font-size: 17px;
}

/* Display Density */
body.density-compact .content {
  padding: 12px 18px;
}
body.density-compact .card-white {
  padding: 16px 18px;
}
body.density-compact .settings-grid {
  gap: 16px;
}

/* High Contrast Mode */
body.high-contrast {
  --color-border: #625f77;
  --color-muted: #1e1d28;
}
[data-theme="dark"] body.high-contrast {
  --color-border: #6a6684;
  --color-muted: #deddeb;
}

/* ==========================================================================
   Interactive Settings Workspace Styles
   ========================================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.settings-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.theme-option-box {
  background: var(--color-wash);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.theme-option-box:hover {
  border-color: #d7d5e6;
  transform: translateY(-2px);
}

.theme-option-box.active {
  border-color: var(--color-plum);
  background: var(--color-lav);
  box-shadow: 0 4px 12px rgba(56, 50, 90, 0.16);
}

.theme-option-icon {
  font-size: 24px;
}

.theme-option-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
}

.font-size-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.font-size-option-card {
  background: var(--color-wash);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.font-size-option-card:hover {
  border-color: #d7d5e6;
  transform: translateY(-2px);
}

.font-size-option-card.active {
  border-color: var(--color-plum);
  background: var(--color-lav);
  box-shadow: 0 4px 12px rgba(56, 50, 90, 0.16);
}

.font-preview-box {
  background: var(--color-wash);
  border-radius: 14px;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  margin-top: 14px;
}

.lang-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.lang-card {
  background: var(--color-wash);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 16px 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lang-card:hover {
  border-color: #d7d5e6;
  transform: translateY(-2px);
}

.lang-card.active {
  border-color: var(--color-plum);
  background: var(--color-lav);
  box-shadow: 0 4px 12px rgba(56, 50, 90, 0.16);
}

.settings-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.settings-control-row:last-child {
  border-bottom: none;
}

.setting-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}

.setting-item-desc {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

.segmented-control-mini {
  display: inline-flex;
  background: var(--color-wash);
  padding: 3px;
  border-radius: 99px;
  border: 1px solid var(--color-border);
}

.seg-btn-mini {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn-mini.active {
  background: #38325a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(56, 50, 90, 0.2);
}

/* Switch Toggle (iOS / Figma Style) */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #d3d1e2;
  border-radius: 99px;
  transition: 0.25s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-toggle input:checked + .switch-slider {
  background-color: #38325a;
}

[data-theme="dark"] .switch-toggle input:checked + .switch-slider {
  background-color: #fcfd76;
}
[data-theme="dark"] .switch-toggle input:checked + .switch-slider:before {
  background-color: #212121;
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Permissions Toggle Grid */
.permissions-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .permissions-toggle-grid {
    grid-template-columns: 1fr;
  }
}

.permission-item-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-wash);
  transition: all 0.15s ease;
}

.permission-item-box:hover {
  background: #ffffff;
  border-color: #d7d5e6;
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .permission-item-box:hover {
  background: #232133;
}

.permission-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.perm-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

[data-theme="dark"] .perm-icon-bubble {
  background: #181722;
}

.perm-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
}

.perm-desc {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 2px;
}

.settings-select-custom {
  height: 42px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 0 14px;
  background: var(--color-wash);
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  outline: none;
  transition: all 0.15s ease;
}

.settings-select-custom:focus {
  background: #ffffff;
  border-color: var(--color-plum);
  box-shadow: 0 0 0 3px rgba(56, 50, 90, 0.08);
}

.settings-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--color-border);
  outline: none;
  accent-color: var(--color-plum);
}


/* -----------------------------------------------------------------------------
 * Live Camera Mood Detection (Circumplex Model of Affect) Styles
 * ----------------------------------------------------------------------------- */

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.cam-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}

.mood-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-mood-camera-scan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--color-ink);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(56, 50, 90, 0.15);
}

.btn-mood-camera-scan:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(56, 50, 90, 0.22);
  background: #2a2544;
}

.camera-mood-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 52, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.camera-mood-modal-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(44, 39, 74, 0.25);
  width: 100%;
  max-width: 780px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.camera-mood-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-paper);
}

.camera-mood-modal-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  padding: 20px 24px;
  background: var(--color-paper);
}

.cam-feed-container {
  position: relative;
  width: 100%;
  height: 340px;
  background: #141124;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-feed-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.cam-feed-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scaleX(-1);
}

.cam-scanner-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(124, 248, 196, 0.85) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(124, 248, 196, 0.9);
  pointer-events: none;
  animation: scanSweep 2.4s ease-in-out infinite alternate;
}

@keyframes scanSweep {
  0% { top: 12%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 88%; opacity: 0.3; }
}

.cam-face-oval-guide {
  position: absolute;
  width: 170px;
  height: 230px;
  border: 1.5px dashed rgba(215, 215, 244, 0.4);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(215, 215, 244, 0.1);
}

.cam-top-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 23, 44, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cam-bottom-telemetry {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(26, 23, 44, 0.85);
  backdrop-filter: blur(6px);
  color: #D7D7F4;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cam-analytics-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.cam-affect-card {
  background: var(--color-wash);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 16px;
}

.cam-cma-preview-box {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.cam-meter-row {
  margin-top: 6px;
}

.cam-meter-track {
  width: 100%;
  height: 8px;
  background: #E7E5EF;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}

.cam-meter-fill {
  height: 100%;
  background: var(--color-plum);
  border-radius: 9999px;
  transition: width 0.25s ease-out;
}

.camera-mood-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-wash);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
