/* =============================================================
   LegaiOnlineTest design system
   White base · Playfair Display headlines · Inter body
   Navy pill buttons · pastel bands · soft colored shadows
   ============================================================= */
:root {
  --ink: #0f172a;
  --ink-soft: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --bg: #ffffff;
  --bg-soft: #f8fafc;

  --navy: #1e3a8a;
  --navy-deep: #172554;
  --navy-border: #1b2e63;
  --emerald: #059669;
  --emerald-deep: #047857;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --amber: #d97706;

  --slate-dark: #1e293b;
  --indigo-pale: #e0e7ff;
  --lime-band: #d9f99d;
  --yellow: #ffdf3d;
  --peach: #fdd4b4;
  --mint: #d1fae5;
  --periwinkle: #c9d4f3;
  --cream: #fef9c3;

  --shadow-blue: 0 10px 24px rgba(47, 101, 250, 0.18);
  --shadow-yellow: 0 10px 24px rgba(255, 223, 61, 0.3);
  --shadow-peach: 0 10px 24px rgba(253, 212, 180, 0.45);
  --shadow-teal: 0 10px 24px rgba(0, 179, 148, 0.2);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'Fira Code', Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.5px; }

a { color: var(--navy); }

button { font-family: var(--font-sans); }

:focus-visible {
  outline: 3px solid rgba(30, 58, 138, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.hidden { display: none !important; }
.text-muted { color: var(--gray-500); }
.mono { font-family: var(--font-mono); }

/* ---------------- Header ---------------- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--navy-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; background: none; border: none; }

.logo-icon {
  background: var(--navy);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
}
.logo-icon svg { width: 20px; height: 20px; }

.logo-text { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.logo-text .logo-accent { color: var(--navy); font-style: italic; }

.main-nav { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }

.nav-btn {
  background: transparent;
  border: none;
  color: var(--gray-700);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.nav-btn:hover { background: var(--gray-100); color: var(--ink); }
.nav-btn.active { background: var(--indigo-pale); color: var(--navy); font-weight: 600; }
.nav-btn svg { width: 16px; height: 16px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover:not(:disabled) { background: var(--navy-deep); transform: translateY(-1px); }

.btn-secondary { background: var(--emerald); color: #fff; box-shadow: var(--shadow-teal); }
.btn-secondary:hover:not(:disabled) { background: var(--emerald-deep); transform: translateY(-1px); }

.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy-border); }
.btn-outline:hover:not(:disabled) { background: var(--indigo-pale); }

.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover:not(:disabled) { background: var(--gray-100); color: var(--ink); }

.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }

/* ---------------- Layout ---------------- */
.app-container { min-height: calc(100vh - 150px); }

.page-section { display: none; animation: fadeIn 0.35s ease; }
.page-section.active { display: block; }

.content-wrap { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }

.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 0.35rem; }
.section-header p { color: var(--gray-500); max-width: 640px; }

/* ---------------- Marketing bands ---------------- */
.band { padding: 4.5rem 1.5rem; }
.band-inner { max-width: 1150px; margin: 0 auto; }
.band-dark { background: var(--slate-dark); color: #fff; }
.band-dark h2 { color: #fff; }
.band-indigo { background: var(--indigo-pale); }
.band-lime { background: var(--lime-band); }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; margin-bottom: 0.75rem; }
.band-sub { text-align: center; color: var(--gray-500); max-width: 620px; margin: 0 auto 3rem; }
.band-dark .band-sub { color: #cbd5e1; }

/* Hero */
.hero { padding: 4.5rem 1.5rem 3.5rem; position: relative; overflow: hidden; }
.hero-inner { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.15; margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--navy); }
.hero-desc { font-size: 1.15rem; color: var(--gray-700); margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: 0.85rem; color: var(--gray-500); }

.hero-visual { position: relative; min-height: 360px; }
.hero-card {
  background: #fff;
  border: 2px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: absolute;
  width: 270px;
}
.hero-card h4 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.hero-card-1 { top: 10px; left: 0; background: var(--cream); box-shadow: var(--shadow-yellow); transform: rotate(-2deg); }
.hero-card-2 { top: 120px; right: 0; background: var(--mint); box-shadow: var(--shadow-teal); transform: rotate(1.5deg); z-index: 2; }
.hero-card-3 { top: 250px; left: 40px; background: var(--periwinkle); box-shadow: var(--shadow-blue); transform: rotate(-1deg); }
.hero-stat-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.3rem 0; border-bottom: 1px dashed rgba(27, 46, 99, 0.25); }
.hero-stat-row:last-child { border-bottom: none; }
.hero-stat-row strong { font-weight: 700; }

/* Logo cloud */
.logo-cloud { padding: 2.2rem 1.5rem; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.logo-cloud p { text-align: center; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 1.2rem; }
.logo-cloud-row { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.logo-cloud-row span { font-weight: 700; font-size: 1.05rem; color: #9ca3af; font-family: var(--font-display); }

/* Feature cards on dark band */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card:nth-child(1) { box-shadow: var(--shadow-yellow); }
.feature-card:nth-child(2) { box-shadow: var(--shadow-peach); }
.feature-card:nth-child(3) { box-shadow: var(--shadow-teal); }
.feature-card:nth-child(4) { box-shadow: var(--shadow-blue); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; border: 2px solid var(--navy-border);
}
.feature-icon svg { width: 22px; height: 22px; color: var(--ink); }
.feature-icon.c-yellow { background: var(--yellow); }
.feature-icon.c-peach { background: var(--peach); }
.feature-icon.c-mint { background: var(--mint); }
.feature-icon.c-peri { background: var(--periwinkle); }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray-700); font-size: 0.92rem; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  border: 2px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.testimonial-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 0.7rem; }
.testimonial-card blockquote { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 1rem; }
.testimonial-card cite { font-style: normal; font-size: 0.85rem; color: var(--gray-500); }
.testimonial-card cite strong { color: var(--ink); display: block; }

/* Skills band */
.skills-cloud { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; max-width: 900px; margin: 0 auto; }
.skill-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.skill-pill.hot { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-weight: 700; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-big h3 { font-family: var(--font-display); font-size: 2.6rem; color: var(--navy); }
.stat-big p { color: var(--gray-500); font-size: 0.92rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.step-card { background: #fff; border: 2px solid var(--navy-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-soft); position: relative; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-card p { color: var(--gray-700); font-size: 0.92rem; }

/* CTA band */
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.app-footer { background: var(--bg-soft); border-top: 2px solid var(--navy-border); padding: 3rem 1.5rem 1.5rem; }
.footer-grid { max-width: 1150px; margin: 0 auto 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col button.linklike, .footer-col a { background: none; border: none; padding: 0; color: var(--gray-700); font-size: 0.92rem; cursor: pointer; text-decoration: none; }
.footer-col button.linklike:hover, .footer-col a:hover { color: var(--navy); text-decoration: underline; }
.footer-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer-badge { border: 2px solid var(--navy-border); border-radius: var(--radius-sm); padding: 0.35rem 0.7rem; font-size: 0.75rem; font-weight: 700; background: #fff; }
.footer-legal { text-align: center; color: var(--gray-500); font-size: 0.85rem; border-top: 1px solid var(--gray-100); padding-top: 1.25rem; max-width: 1150px; margin: 0 auto; }

/* ---------------- Badges & chips ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.65rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; border: 1.5px solid transparent;
}
.badge svg { width: 12px; height: 12px; }
.badge-navy { background: var(--indigo-pale); color: var(--navy); border-color: rgba(30, 58, 138, 0.3); }
.badge-success { background: var(--mint); color: var(--emerald-deep); border-color: rgba(5, 150, 105, 0.3); }
.badge-warning { background: var(--cream); color: var(--amber); border-color: rgba(217, 119, 6, 0.35); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(220, 38, 38, 0.3); }
.badge-neutral { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-300); }

.skill-chip { background: var(--periwinkle); color: var(--navy-deep); border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 600; }

/* ---------------- Cards / forms ---------------- */
.card {
  background: #fff;
  border: 2px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: #fff;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 140px; }
.form-hint { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--ink-soft); }
.checkbox-row input { width: auto; accent-color: var(--navy); }

.form-error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; font-size: 0.88rem; margin-bottom: 1rem; }

/* ---------------- Test library ---------------- */
.library-toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; align-items: center; }
.library-toolbar input { flex: 1; min-width: 220px; border: 2px solid var(--gray-300); border-radius: 999px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.library-toolbar input:focus { outline: none; border-color: var(--navy); }
.filter-chip { background: #fff; border: 2px solid var(--gray-300); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--gray-700); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.tests-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.5rem; }
.test-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; transition: var(--transition); }
.test-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-blue); }
.test-card-header { display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.9rem; flex-wrap: wrap; }
.test-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.4rem; font-family: var(--font-sans); }
.test-card .desc { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1rem; }
.test-card-skills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.test-card-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 1rem; flex-wrap: wrap; }
.test-card-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.test-card-meta svg { width: 14px; height: 14px; }

/* ---------------- Onboarding & system check ---------------- */
.onboarding-card { max-width: 640px; margin: 2.5rem auto; }
.onboarding-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 2px solid var(--gray-100); padding-bottom: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.onboarding-header h2 { font-size: 1.6rem; }

.instruction-box { background: var(--bg-soft); border: 1.5px solid var(--gray-100); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.instruction-box h4 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.95rem; }
.instruction-box h4 svg { width: 16px; height: 16px; color: var(--navy); }
.instruction-box ul { list-style-position: inside; font-size: 0.9rem; color: var(--gray-700); display: flex; flex-direction: column; gap: 0.3rem; }

.syscheck-list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }
.syscheck-item { display: flex; align-items: center; gap: 1rem; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; }
.syscheck-item.ok { border-color: var(--emerald); background: var(--mint); }
.syscheck-item.fail { border-color: var(--danger); background: var(--danger-soft); }
.syscheck-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--indigo-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.syscheck-icon svg { width: 18px; height: 18px; color: var(--navy); }
.syscheck-body { flex: 1; }
.syscheck-body h4 { font-size: 0.95rem; }
.syscheck-body p { font-size: 0.82rem; color: var(--gray-500); }
.syscheck-cam-preview { width: 100%; max-width: 280px; border-radius: var(--radius-sm); border: 2px solid var(--navy-border); margin: 0.75rem 0; display: block; background: #0f172a; }
.mic-meter { height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; margin-top: 0.4rem; max-width: 220px; }
.mic-meter-bar { height: 100%; width: 0%; background: var(--emerald); transition: width 0.1s linear; }

/* ---------------- Test console ---------------- */
.console-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #fff; border-bottom: 2px solid var(--navy-border);
  padding: 0.7rem 1.5rem; position: sticky; top: 0; z-index: 90; flex-wrap: wrap;
}
.console-topbar h3 { font-size: 1.05rem; font-family: var(--font-sans); }
.console-topbar-right { display: flex; align-items: center; gap: 0.9rem; }

.timer-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--indigo-pale); color: var(--navy-deep);
  border: 2px solid var(--navy-border); border-radius: 999px;
  padding: 0.35rem 1rem; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
}
.timer-pill.low { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); animation: pulse 1s infinite; }
.timer-pill svg { width: 16px; height: 16px; }

.cam-thumb { width: 86px; height: 64px; border-radius: 8px; border: 2px solid var(--navy-border); object-fit: cover; background: #0f172a; }

.test-console-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; max-width: 1200px; margin: 1.5rem auto; padding: 0 1.5rem; align-items: start; }

.test-sidebar { position: sticky; top: 90px; }
.palette-legend { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; color: var(--gray-500); margin-top: 1rem; }
.palette-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1.5px solid var(--gray-300); }
.legend-dot.answered { background: var(--mint); border-color: var(--emerald); }
.legend-dot.flagged { background: var(--cream); border-color: var(--amber); }
.legend-dot.current { background: var(--navy); border-color: var(--navy); }

.question-nav-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.q-nav-btn {
  aspect-ratio: 1; background: #fff; border: 2px solid var(--gray-300);
  color: var(--gray-700); font-weight: 700; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition); font-size: 0.95rem; position: relative;
}
.q-nav-btn:hover { border-color: var(--navy); }
.q-nav-btn.answered { background: var(--mint); border-color: var(--emerald); color: var(--emerald-deep); }
.q-nav-btn.flagged::after { content: '⚑'; position: absolute; top: -6px; right: -4px; font-size: 0.7rem; color: var(--amber); }
.q-nav-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.workspace-header { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.workspace-header-left { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.question-number { font-size: 1.15rem; font-weight: 700; }
.question-points { color: var(--navy); font-weight: 700; font-size: 0.9rem; }
.question-text { font-size: 1.05rem; margin-bottom: 1.75rem; white-space: pre-wrap; }

.workspace-footer { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 2rem; border-top: 2px solid var(--gray-100); padding-top: 1.25rem; flex-wrap: wrap; }
.workspace-footer-left { display: flex; gap: 0.6rem; }

/* MCQ + multi options */
.options-container { display: flex; flex-direction: column; gap: 0.75rem; }
.option-card {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: left;
  background: #fff; border: 2px solid var(--gray-300); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; cursor: pointer; transition: var(--transition);
  font-size: 0.97rem; color: var(--ink);
}
.option-card:hover { border-color: var(--navy); background: var(--bg-soft); }
.option-card.selected { border-color: var(--navy); background: var(--indigo-pale); }
.option-mark {
  width: 20px; height: 20px; flex-shrink: 0; border: 2px solid var(--gray-500);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.option-mark.radio { border-radius: 50%; }
.option-mark.check { border-radius: 5px; }
.option-card.selected .option-mark { border-color: var(--navy); background: var(--navy); }
.option-mark-inner { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.option-card.selected .option-mark-inner { background: #fff; }

/* Text answer */
.text-answer-input { width: 100%; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 1rem; }
.text-answer-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15); }

/* Coding editor */
.coding-editor-container { display: flex; flex-direction: column; gap: 0.75rem; }
.editor-header {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--slate-dark); color: #cbd5e1;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.editor-title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.85rem; }
.editor-title svg { width: 14px; height: 14px; }
.editor-mount { border: 2px solid var(--slate-dark); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; }
.editor-mount .CodeMirror { height: 240px; font-family: var(--font-mono); font-size: 0.92rem; }
.code-textarea {
  width: 100%; height: 240px; background: #0f172a; color: #7dd3fc;
  font-family: var(--font-mono); font-size: 0.92rem; border: none;
  padding: 1rem; resize: vertical; line-height: 1.5; display: block;
}
.code-textarea:focus { outline: none; }

.sandbox-results-panel { background: var(--bg-soft); border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 1rem; }
.sandbox-results-panel h5 { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.sandbox-output { font-family: var(--font-mono); font-size: 0.85rem; background: var(--slate-dark); color: #e2e8f0; padding: 0.8rem; border-radius: 8px; min-height: 50px; white-space: pre-wrap; }
.sandbox-output .pass { color: #6ee7b7; font-weight: 700; }
.sandbox-output .fail { color: #fca5a5; font-weight: 700; }

/* Proctor warnings */
.proctor-toast {
  position: fixed; top: 76px; right: 1.5rem; z-index: 300;
  background: var(--danger-soft); border: 2px solid var(--danger); color: var(--danger);
  border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; max-width: 380px;
  display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem;
  animation: shake 0.4s ease; box-shadow: var(--shadow-soft);
}
.proctor-toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.fullscreen-overlay {
  position: fixed; inset: 0; z-index: 400; background: rgba(15, 23, 42, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.fullscreen-overlay .card { max-width: 460px; text-align: center; }
.fullscreen-overlay h3 { margin-bottom: 0.5rem; }
.fullscreen-overlay p { color: var(--gray-500); margin-bottom: 1.25rem; }

/* ---------------- Review modal / generic modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 350; background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-card { max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; }
.modal-card h3 { margin-bottom: 0.75rem; font-size: 1.35rem; }
.review-summary-row { display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.review-pill { border: 2px solid var(--gray-300); border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.88rem; font-weight: 600; }
.review-pill strong { font-size: 1rem; }
.review-q-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; max-height: 240px; overflow-y: auto; }
.review-q-item { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0.75rem; border-radius: 8px; background: var(--bg-soft); font-size: 0.88rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; }

/* ---------------- Confirmation & report ---------------- */
.confirm-card { max-width: 560px; margin: 3rem auto; text-align: center; }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); border: 2px solid var(--emerald); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.confirm-icon svg { width: 34px; height: 34px; color: var(--emerald-deep); }
.confirm-card h2 { margin-bottom: 0.6rem; }
.confirm-card p { color: var(--gray-500); margin-bottom: 0.75rem; }
.confirm-ref { font-family: var(--font-mono); font-size: 0.85rem; background: var(--bg-soft); border-radius: 8px; padding: 0.5rem; display: inline-block; margin-bottom: 1.5rem; }

.report-card { max-width: 720px; margin: 2.5rem auto; }
.report-header { text-align: center; border-bottom: 2px solid var(--gray-100); padding-bottom: 1.5rem; margin-bottom: 1.75rem; }
.score-summary-circle {
  width: 150px; height: 150px; border-radius: 50%;
  border: 5px solid var(--emerald); background: var(--mint);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.score-summary-circle.failed { border-color: var(--danger); background: var(--danger-soft); }
.score-percentage { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--emerald-deep); }
.score-summary-circle.failed .score-percentage { color: var(--danger); }
.score-label { font-size: 0.85rem; color: var(--gray-500); }

.skills-breakdown { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.skill-bar-row .skill-info { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.3rem; font-weight: 600; }
.skill-bar-outer { width: 100%; height: 10px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.skill-bar-inner { height: 100%; border-radius: 999px; background: var(--emerald); transition: width 0.6s ease; }
.skill-bar-inner.mid { background: var(--amber); }
.skill-bar-inner.low { background: var(--danger); }

.study-recommendations { background: var(--indigo-pale); border: 2px solid var(--navy-border); border-radius: var(--radius); padding: 1.25rem; }
.study-recommendations h4 { margin-bottom: 0.75rem; }
.resources-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.resources-list li { font-size: 0.92rem; color: var(--gray-700); display: flex; gap: 0.5rem; align-items: flex-start; }
.resources-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--navy); }

/* ---------------- Recruiter portal ---------------- */
.login-card { max-width: 420px; margin: 4rem auto; text-align: center; }
.login-card h2 { margin-bottom: 0.4rem; }
.login-card p { color: var(--gray-500); margin-bottom: 1.5rem; font-size: 0.92rem; }
.login-card form { text-align: left; }

.recruiter-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.recruiter-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.recruiter-tab-btn {
  background: #fff; border: 2px solid var(--gray-300); color: var(--gray-700);
  padding: 0.45rem 1.1rem; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
}
.recruiter-tab-btn svg { width: 15px; height: 15px; }
.recruiter-tab-btn:hover { border-color: var(--navy); color: var(--navy); }
.recruiter-tab-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.recruiter-tab-content { display: none; }
.recruiter-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-box { display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--navy-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; color: var(--ink); }
.stat-icon.c-yellow { background: var(--yellow); }
.stat-icon.c-mint { background: var(--mint); }
.stat-icon.c-peach { background: var(--peach); }
.stat-icon.c-peri { background: var(--periwinkle); }
.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 600; }
.stat-info h3 { font-size: 1.5rem; font-weight: 800; font-family: var(--font-sans); }

.table-responsive { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 0.7rem 0.9rem; border-bottom: 1.5px solid var(--gray-100); font-size: 0.9rem; vertical-align: middle; }
th { font-weight: 700; color: var(--gray-500); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:hover { background: var(--bg-soft); }
td .sub-line { font-size: 0.78rem; color: var(--gray-500); }

.stage-select { border: 2px solid var(--gray-300); border-radius: 999px; padding: 0.25rem 0.6rem; font-size: 0.82rem; font-weight: 600; background: #fff; cursor: pointer; }
.stage-select.stage-Shortlisted { border-color: var(--emerald); color: var(--emerald-deep); background: var(--mint); }
.stage-select.stage-Hired { border-color: var(--navy); color: var(--navy); background: var(--indigo-pale); }
.stage-select.stage-Rejected { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

.toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.toolbar input[type="search"], .toolbar select { border: 2px solid var(--gray-300); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.9rem; }
.toolbar input[type="search"] { flex: 1; min-width: 180px; }
.toolbar .spacer { flex: 1; }

/* Assessment cards (recruiter) */
.assessment-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.25rem; }
.assessment-admin-card h3 { font-size: 1.08rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: 0.3rem; }
.assessment-admin-card .meta-line { font-size: 0.84rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.assessment-admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.link-copy-row { display: flex; gap: 0.5rem; align-items: center; background: var(--bg-soft); border-radius: 8px; padding: 0.4rem 0.6rem; margin-top: 0.5rem; }
.link-copy-row code { font-size: 0.75rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gray-700); }

/* Builder */
.builder-question-card { background: var(--bg-soft); border: 2px solid var(--gray-300); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; position: relative; }
.builder-question-card h5 { font-size: 0.92rem; margin-bottom: 0.75rem; color: var(--navy); font-weight: 700; }
.remove-q-btn { position: absolute; top: 0.9rem; right: 0.9rem; background: transparent; border: none; color: var(--gray-500); cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.remove-q-btn:hover { color: var(--danger); }
.options-builder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
.builder-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
.generator-skills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Templates modal grid */
.templates-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.template-card { border: 2px solid var(--gray-300); border-radius: var(--radius-sm); padding: 1rem 1.2rem; cursor: pointer; transition: var(--transition); background: #fff; text-align: left; width: 100%; }
.template-card:hover { border-color: var(--navy); background: var(--indigo-pale); }
.template-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.template-card p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; }

/* Drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 200; display: flex; justify-content: flex-end; }
.detail-drawer {
  width: 640px; max-width: 100%; background: #fff; height: 100%;
  border-left: 2px solid var(--navy-border); display: flex; flex-direction: column;
  animation: slideInRight 0.3s ease;
}
.drawer-header { padding: 1.1rem 1.5rem; border-bottom: 2px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.drawer-header h3 { font-size: 1.2rem; }
.close-drawer { background: transparent; border: none; color: var(--gray-500); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.close-drawer:hover { color: var(--ink); }
.drawer-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.drawer-body h4 { font-size: 1rem; margin: 1.5rem 0 0.6rem; }
.drawer-body h4:first-child { margin-top: 0; }

.drawer-meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.drawer-meta-item { font-size: 0.88rem; }
.drawer-meta-item span { display: block; color: var(--gray-500); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.drawer-meta-item strong { font-weight: 700; }

.trust-meter { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.75rem; }
.trust-ring {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; border: 4px solid var(--emerald); background: var(--mint);
}
.trust-ring.mid { border-color: var(--amber); background: var(--cream); }
.trust-ring.low { border-color: var(--danger); background: var(--danger-soft); }

.violation-timeline { display: flex; flex-direction: column; gap: 0.35rem; max-height: 180px; overflow-y: auto; }
.violation-item { display: flex; justify-content: space-between; font-size: 0.82rem; background: var(--bg-soft); border-radius: 6px; padding: 0.35rem 0.7rem; }
.snapshots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; }
.snapshots-grid img { width: 100%; border-radius: 8px; border: 2px solid var(--gray-300); }

.graded-answers-list { display: flex; flex-direction: column; gap: 1rem; }
.graded-answer-card { background: var(--bg-soft); border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); padding: 1rem; }
.graded-answer-card.correct { border-left: 5px solid var(--emerald); }
.graded-answer-card.partial { border-left: 5px solid var(--amber); }
.graded-answer-card.incorrect { border-left: 5px solid var(--danger); }
.graded-answer-header { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.graded-detail { margin-top: 0.5rem; font-size: 0.88rem; }
.graded-code-block { background: var(--slate-dark); color: #7dd3fc; font-family: var(--font-mono); padding: 0.75rem; border-radius: 8px; font-size: 0.82rem; overflow-x: auto; white-space: pre-wrap; margin-top: 0.5rem; }
.testcase-line { font-size: 0.8rem; font-family: var(--font-mono); margin-top: 0.25rem; }
.testcase-line.ok { color: var(--emerald-deep); }
.testcase-line.bad { color: var(--danger); }

/* Toast notifications */
.toast-stack { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--ink); color: #fff; border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem; font-size: 0.9rem; box-shadow: var(--shadow-soft);
  animation: fadeIn 0.25s ease; max-width: 360px;
}
.toast.success { background: var(--emerald-deep); }
.toast.error { background: var(--danger); }

/* Loading */
.loading-spinner { color: var(--gray-500); padding: 2rem; text-align: center; font-size: 0.95rem; }

/* ---------------- Animations ---------------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .test-console-layout { grid-template-columns: 1fr; }
  .test-sidebar { position: static; }
  .question-nav-list { grid-template-columns: repeat(8, 1fr); }
}

@media (max-width: 640px) {
  .app-header { padding: 0.75rem 1rem; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .band { padding: 3rem 1rem; }
  .content-wrap { padding: 1.5rem 1rem; }
  .console-topbar { padding: 0.6rem 1rem; }
  .question-nav-list { grid-template-columns: repeat(6, 1fr); }
  .drawer-meta-list { grid-template-columns: 1fr; }
  .detail-drawer { width: 100%; }
}

/* ============================================================
   Interactivity & polish layer (v2) — professional micro-interactions.
   Additive only: transforms/shadows/transitions (no layout reflow).
   ============================================================ */
html { scroll-behavior: smooth; }
::selection { background: var(--indigo-pale); color: var(--navy-deep); }

/* Cards: gentle lift + deeper shadow + accent border on hover */
.card {
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.13);
  border-color: var(--periwinkle);
}
/* Don't lift cards inside overlays */
.modal .card:hover, .drawer .card:hover { transform: none; box-shadow: var(--shadow-soft); }

/* Buttons: tactile hover/press + glow on primary actions */
.btn { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary:hover, .btn-secondary:hover { box-shadow: var(--shadow-blue); }
.btn-danger:hover { box-shadow: 0 10px 24px rgba(220, 38, 38, .25); }

/* Recruiter tab buttons: animated active + hover */
.recruiter-tab-btn { transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease; }
.recruiter-tab-btn:hover:not(.active) { transform: translateY(-1px); }
.recruiter-tab-btn.active { box-shadow: var(--shadow-blue); }

/* Tab content: fade + slide-up when switched */
.recruiter-tab-content.active { animation: lotFadeUp .34s cubic-bezier(.2,.7,.3,1) both; }
@keyframes lotFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Tables: row hover */
.table tbody tr { transition: background-color .15s ease; }
.table tbody tr:hover { background: var(--bg-soft); }

/* Inputs/selects: focus ring */
input, select, textarea { transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

/* Keyboard accessibility: visible focus on interactive elements */
.btn:focus-visible, .recruiter-tab-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Live "System Online" badge: soft pulse */
.badge-success { position: relative; }
@keyframes lotPulse { 0%,100% { opacity: 1; } 50% { opacity: .72; } }
.badge-success i { animation: lotPulse 2.4s ease-in-out infinite; }


/* ============================================================
   Redesigned header (design-panel winner: Bold & Branded Enterprise)
   ============================================================ */
/* ============ BOLD-BRAND HEADER REDESIGN (override) ============ */
.app-header{
  display:flex; justify-content:space-between; align-items:center; gap:1.25rem;
  padding:.7rem 2rem;
  background:linear-gradient(100deg,var(--navy-deep) 0%,var(--navy) 55%,#2742a8 100%);
  border-bottom:1px solid var(--navy-border);
  box-shadow:0 6px 22px rgba(15,23,42,.22);
  -webkit-backdrop-filter:none; backdrop-filter:none;
  position:sticky; top:0; z-index:100;
}

/* Logo lockup */
.app-header .logo-container{
  display:inline-flex; align-items:center; gap:.65rem;
  background:none; border:none; cursor:pointer; padding:.2rem .25rem;
  border-radius:var(--radius-sm); transition:var(--transition);
}
.app-header .logo-container:hover{ transform:translateY(-1px); }
.app-header .logo-container:focus-visible{ outline:2px solid #fff; outline-offset:3px; }
.app-header .logo-icon{
  width:40px; height:40px; border-radius:11px;
  background:linear-gradient(145deg,#fff 0%,var(--indigo-pale) 100%);
  color:var(--navy-deep);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.5);
  flex-shrink:0;
}
.app-header .logo-icon svg{ width:22px; height:22px; }
.app-header .logo-text{
  font-family:var(--font-display); font-size:1.42rem; font-weight:600;
  color:#fff; letter-spacing:.2px; line-height:1; white-space:nowrap;
}
.app-header .logo-text .logo-accent{ color:#c7d2fe; font-style:italic; }

/* Primary nav as glassy pill group */
.app-header .main-nav{
  display:flex; gap:.25rem; align-items:center; flex-wrap:nowrap; flex-shrink:0;
  margin-right:auto;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  padding:.28rem; border-radius:999px;
}
.app-header .nav-btn{
  background:transparent; border:none; cursor:pointer;
  color:rgba(255,255,255,.82);
  padding:.5rem .95rem; border-radius:999px;
  font-family:var(--font-sans); font-size:.92rem; font-weight:600;
  display:inline-flex; align-items:center; gap:.45rem;
  transition:var(--transition); white-space:nowrap;
}
.app-header .nav-btn svg{ width:17px; height:17px; opacity:.92; }
.app-header .nav-btn:hover{ background:rgba(255,255,255,.14); color:#fff; }
.app-header .nav-btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.app-header .nav-btn.active{
  background:#fff; color:var(--navy-deep);
  box-shadow:0 3px 10px rgba(0,0,0,.22);
}
.app-header .nav-btn.active svg{ opacity:1; }

/* Health badge on dark bar */
.app-header .header-status{ display:flex; align-items:center; }
.app-header #health-badge{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.42rem .8rem; border-radius:999px;
  font-size:.82rem; font-weight:700; letter-spacing:.2px;
  background:rgba(16,185,129,.16);
  color:#a7f3d0;
  border:1px solid rgba(16,185,129,.4);
}
.app-header #health-badge svg{ width:15px; height:15px; }

/* ===== RECRUITER SUB-BAR: clean white strip w/ underline tabs ===== */
.recruiter-topbar{
  display:flex; justify-content:space-between; align-items:flex-end; gap:1rem;
  flex-wrap:wrap;
  margin:0 0 1.5rem;
  padding:0 .25rem;
  border-bottom:2px solid var(--gray-100);
}
.recruiter-tabs{
  display:flex; gap:.15rem; flex-wrap:wrap; align-items:flex-end;
}
.recruiter-tab-btn{
  position:relative;
  background:transparent; border:none; cursor:pointer;
  color:var(--gray-500);
  padding:.7rem .95rem .85rem; margin-bottom:-2px;
  font-family:var(--font-sans); font-size:.92rem; font-weight:600;
  display:inline-flex; align-items:center; gap:.45rem;
  border-bottom:3px solid transparent;
  border-radius:var(--radius-sm) var(--radius-sm) 0 0;
  transition:var(--transition); white-space:nowrap;
}
.recruiter-tab-btn svg{ width:17px; height:17px; opacity:.85; }
.recruiter-tab-btn:hover{ color:var(--navy); background:var(--bg-soft); }
.recruiter-tab-btn:focus-visible{ outline:2px solid var(--navy); outline-offset:2px; }
.recruiter-tab-btn.active{
  color:var(--navy-deep); font-weight:800;
  border-bottom-color:var(--navy);
}
.recruiter-tab-btn.active svg{ opacity:1; }

/* Action cluster */
.recruiter-actions{
  display:flex; gap:.5rem; align-items:center; flex-wrap:wrap;
  padding-bottom:.5rem;
}
.recruiter-actions #recruiter-whoami{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.42rem .8rem; border-radius:999px;
  font-size:.82rem; font-weight:700;
  background:var(--indigo-pale); color:var(--navy-deep);
  border:1px solid #c7d2fe;
}
.recruiter-actions #recruiter-whoami svg{ width:15px; height:15px; }
.recruiter-actions .btn{
  display:inline-flex; align-items:center; gap:.4rem;
  font-weight:600; white-space:nowrap;
}
.recruiter-actions .btn svg{ width:15px; height:15px; }
.recruiter-actions .btn:focus-visible{ outline:2px solid var(--navy); outline-offset:2px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width:880px){
  .app-header{ flex-wrap:wrap; gap:.65rem; padding:.65rem 1rem; }
  .app-header .main-nav{ order:3; width:100%; justify-content:center; }
  .app-header .header-status{ order:2; margin-left:auto; }
  .recruiter-topbar{ align-items:stretch; }
  .recruiter-actions{ width:100%; justify-content:flex-start; }
}
@media (max-width:560px){
  .app-header .logo-text{ font-size:1.2rem; }
  .app-header .nav-btn span{ display:none; }
  .app-header .nav-btn{ padding:.5rem .65rem; }
  .recruiter-tab-btn span{ display:none; }
  .recruiter-tab-btn{ padding:.7rem .8rem .85rem; }
  .recruiter-actions .btn span{ display:none; }
  .recruiter-actions .btn{ padding:.45rem .6rem; }
}

/* ---- Proctoring config grid (Build) + media review (Submissions) ---- */
.proctor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.5rem 1rem;
  padding: 0.85rem 1rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--bg-soft);
}
.proctor-grid .checkbox-row { font-size: 0.9rem; font-weight: 500; color: var(--gray-700); margin: 0; }
.proctor-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; margin-bottom: 0.5rem; }
.proctor-video { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.proctor-video-label { font-size: 0.78rem; color: var(--gray-700); background: var(--bg-soft); padding: 0.35rem 0.6rem; }
.proctor-video video { width: 100%; display: block; max-height: 220px; background: #000; }
.snapshots-grid a { display: block; line-height: 0; }

/* ============================================================
   REFINED ENTERPRISE MOTION — append-only enhancement layer
   Additive: transforms / opacity / shadows / filters only.
   Reuses :root tokens. Targets only verified real classes/ids.
   No layout reflow. prefers-reduced-motion respected.
   ============================================================ */

/* ---- KPI stat-box: top accent bar, refined icon chip, bigger number, lift+glow ---- */
.stats-row .stat-box.card{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .26s cubic-bezier(.2,.7,.3,1), box-shadow .26s ease, border-color .26s ease;
}
/* Subtle gradient top accent bar (pseudo-element — no markup change) */
.stats-row .stat-box.card::before{
  content:"";
  position:absolute; left:0; top:0; right:0; height:3px;
  background:linear-gradient(90deg,var(--navy) 0%,var(--periwinkle) 55%,var(--indigo-pale) 100%);
  opacity:.85;
  transform:scaleX(.35);
  transform-origin:left center;
  transition:transform .45s cubic-bezier(.2,.7,.3,1), opacity .3s ease;
  z-index:1;
  pointer-events:none;
}
.stats-row .stat-box.card:hover::before{ transform:scaleX(1); opacity:1; }

/* Refined icon chip: inner highlight + gentle scale on hover */
.stats-row .stat-box.card .stat-icon{
  position:relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), var(--shadow-soft);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.stats-row .stat-box.card:hover .stat-icon{
  transform: translateY(-1px) scale(1.06) rotate(-2deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), var(--shadow-blue);
}

/* Bigger, tighter number; tabular figures so count-up doesn't jitter width */
.stats-row .stat-box.card .stat-info h3{
  font-size:1.85rem;
  line-height:1.1;
  letter-spacing:-.5px;
  font-variant-numeric: tabular-nums;
  font-feature-settings:"tnum" 1;
  color:var(--ink);
}

/* Hover lift + glow (layers gently over existing .card:hover) */
.stats-row .stat-box.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(47,101,250,.16), var(--shadow-soft);
  border-color: var(--periwinkle);
}

/* Pop emphasis while a number is animating */
.stats-row .stat-box.card .stat-info h3.lot-counting{
  color:var(--navy);
}

/* ---- Pass-rate gauge feel: faint conic progress glow behind its icon ---- */
.stats-row .stat-box.card .stat-icon.c-yellow::after{
  content:"";
  position:absolute; inset:-4px;
  border-radius:14px;
  background:conic-gradient(var(--amber) calc(var(--lot-gauge,0) * 1%), transparent 0);
  -webkit-mask:radial-gradient(closest-side, transparent 70%, #000 72%);
          mask:radial-gradient(closest-side, transparent 70%, #000 72%);
  opacity:.35;
  transition:opacity .3s ease;
  pointer-events:none;
}
.stats-row .stat-box.card:hover .stat-icon.c-yellow::after{ opacity:.6; }

/* ---- Staggered reveal of stat-box + cards in the active tab ---- */
@media (prefers-reduced-motion: no-preference){
  .recruiter-tab-content.active .lot-reveal{
    opacity:0;
    transform:translateY(14px) scale(.985);
    will-change:transform,opacity;
  }
  .recruiter-tab-content.active .lot-reveal.lot-in{
    opacity:1;
    transform:none;
    transition:opacity .5s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1);
  }
}

/* ---- Skeleton shimmer for loading states ---- */
@media (prefers-reduced-motion: no-preference){
  .loading-spinner{ position:relative; }
  .loading-spinner.lot-shimmer::after{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(100deg,
      transparent 20%,
      rgba(30,58,138,.06) 38%,
      rgba(201,212,243,.28) 50%,
      rgba(30,58,138,.06) 62%,
      transparent 80%);
    background-size:220% 100%;
    animation:lotShimmer 1.35s ease-in-out infinite;
    border-radius:var(--radius-sm);
    pointer-events:none;
  }
  @keyframes lotShimmer{
    0%{ background-position:140% 0; }
    100%{ background-position:-40% 0; }
  }
}

/* ---- Table rows: hover lift + left accent (transform/shadow only) ---- */
.table tbody tr{
  transition: background-color .15s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion: no-preference){
  .table tbody tr:hover{
    background:var(--bg-soft);
    transform:translateX(2px);
    box-shadow: inset 3px 0 0 var(--navy), 0 6px 16px rgba(15,23,42,.06);
  }
}

/* ---- Buttons: sheen sweep + crisper press ----
   Scoped: sheen + overflow-clip applied only to buttons tagged by JS
   (.lot-sheen) — NEVER globally, so we don't clip focus rings or
   overflowing content on buttons inside the test-taking flow.        */
.btn.lot-sheen{ position:relative; overflow:hidden; }
@media (prefers-reduced-motion: no-preference){
  .btn.lot-sheen::after{
    content:"";
    position:absolute; top:0; left:-40%; width:38%; height:100%;
    background:linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
    transform:skewX(-18deg);
    opacity:0;
    pointer-events:none;
  }
  .btn.lot-sheen:hover:not(:disabled)::after{ animation:lotSheen .7s ease; }
  @keyframes lotSheen{
    0%{ left:-40%; opacity:0; }
    18%{ opacity:1; }
    100%{ left:130%; opacity:0; }
  }
}
/* Press feedback is universally safe (transform only, no clipping) */
.btn:active:not(:disabled){ transform:translateY(0) scale(.975); }
/* Keep keyboard focus crisp even with overflow:hidden on sheen buttons */
.btn.lot-sheen:focus-visible{ outline-offset:2px; }

/* ---- Badge pop on appear ---- */
@media (prefers-reduced-motion: no-preference){
  .badge.lot-pop{ animation:lotBadgePop .4s cubic-bezier(.2,1.5,.4,1) both; }
  @keyframes lotBadgePop{
    0%{ transform:scale(.6); opacity:0; }
    60%{ transform:scale(1.08); }
    100%{ transform:scale(1); opacity:1; }
  }
}

/* ---- Trust ring: gentle pop-in ---- */
@media (prefers-reduced-motion: no-preference){
  .trust-ring.lot-pop{ animation:lotBadgePop .5s cubic-bezier(.2,1.4,.4,1) both; }
}

/* ---- Skill bars: shimmer once when revealed (visual only) ---- */
.skill-bar-inner{ position:relative; overflow:hidden; }
@media (prefers-reduced-motion: no-preference){
  .skill-bar-inner.lot-fill::after{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    transform:translateX(-100%);
    animation:lotBarSweep 1s ease .15s 1;
    pointer-events:none;
  }
  @keyframes lotBarSweep{ to{ transform:translateX(100%); } }
}

/* ---- Snapshot thumbnails: subtle hover zoom ---- */
.snapshots-grid img{
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.snapshots-grid img:hover{
  transform:scale(1.04);
  box-shadow:var(--shadow-soft);
  border-color:var(--navy);
}

/* ---- Drawer / modal entrance polish (opacity/transform only; no-op if absent) ---- */
@media (prefers-reduced-motion: no-preference){
  .drawer-overlay, .modal-overlay{ animation:lotFade .25s ease both; }
  @keyframes lotFade{ from{ opacity:0; } to{ opacity:1; } }
  .modal-card{ animation:lotModalIn .32s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes lotModalIn{
    from{ opacity:0; transform:translateY(16px) scale(.97); }
    to{ opacity:1; transform:none; }
  }
}

/* Respect reduced motion: neutralize reveal/shimmer so nothing stays hidden */
@media (prefers-reduced-motion: reduce){
  .recruiter-tab-content.active .lot-reveal{ opacity:1 !important; transform:none !important; }
  .loading-spinner.lot-shimmer::after{ display:none !important; }
}
/* ---- Submission Review: full page (replaces the side drawer) ---- */
.submission-page { max-width: 1120px; margin: 0 auto; padding: 1.75rem 2rem 4rem; }
.submission-page-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
#submission-detail-content h4 { margin: 1.7rem 0 0.6rem; font-size: 1.02rem; }
#submission-detail-content .snapshots-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
#submission-detail-content .proctor-videos { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
#submission-detail-content .drawer-meta-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem 2rem; }
@media (max-width: 720px){ .submission-page { padding: 1.25rem 1rem 3rem; } }

/* ============================================================
   Mobile responsiveness — gap-fill (additive media queries only).
   Desktop unaffected. No global overflow-x:hidden (keeps sticky header).
   ============================================================ */
@media (max-width: 600px) {
  /* Card grids: a fixed min-width can exceed a small viewport -> single column */
  .assessment-admin-grid,
  .tests-list-grid,
  .proctor-videos,
  #submission-detail-content .proctor-videos { grid-template-columns: 1fr; }

  /* Modals: edge padding + near-full height, anchored to top so they scroll */
  .modal-overlay { padding: 0.75rem; align-items: flex-start; }
  .modal-card { width: 100%; max-width: none; max-height: 92vh; }
  .modal-card h3 { font-size: 1.18rem; }

  /* Tighter page padding */
  .content-wrap { padding: 1.25rem 0.9rem; }
  .submission-page { padding: 1rem 0.85rem 2.5rem; }
  .submission-page-header h2 { font-size: 1.3rem; }
  .band { padding: 2.5rem 1rem; }

  /* Recruiter tab strip: scroll horizontally instead of stacking many rows */
  .recruiter-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .recruiter-tabs::-webkit-scrollbar { height: 0; }
  .recruiter-tab-btn { flex: 0 0 auto; }

  /* Forms stack fully */
  .form-row { flex-direction: column; gap: 0.6rem; }
  .form-row .form-group { width: 100%; min-width: 0; }

  /* Long titles/links never force horizontal scroll */
  .test-card h3, .assessment-admin-card h3, .drawer-meta-item strong { overflow-wrap: anywhere; }

  /* Test/console header wraps */
  .console-topbar { flex-wrap: wrap; gap: 0.5rem; }
  .console-topbar-right { flex-wrap: wrap; }

  /* Proctoring thumbnails a touch smaller so more fit per row */
  #submission-detail-content .snapshots-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .proctor-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr; }
  .proctor-grid { grid-template-columns: 1fr; }
  .assessment-admin-actions .btn, .test-card .btn { flex: 1 1 auto; justify-content: center; }
  .modal-actions { flex-wrap: wrap; }
}

/* ---- Data tables -> stacked cards on phones (tables tagged .mcards) ---- */
@media (max-width: 600px) {
  table.mcards thead { display: none; }
  table.mcards, table.mcards tbody, table.mcards tr, table.mcards td { display: block; width: 100%; }
  table.mcards { min-width: 0; }
  table.mcards tr {
    border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem; margin-bottom: 0.85rem; background: #fff;
  }
  table.mcards td {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 0.4rem 0; border: none !important; text-align: right;
  }
  table.mcards td::before {
    content: attr(data-label); font-weight: 600; color: var(--gray-500);
    font-size: 0.74rem; text-transform: uppercase; letter-spacing: .03em;
    text-align: left; flex: 0 0 auto;
  }
  /* First cell = card header (candidate); last cell = full-width action/link */
  table.mcards td:first-child {
    display: block; text-align: left; padding: 0 0 0.5rem; margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--gray-100) !important; font-size: 0.98rem;
  }
  table.mcards td:first-child::before,
  table.mcards td:last-child::before { display: none; }
  table.mcards td:last-child { display: block; text-align: left; padding-top: 0.55rem; }
  table.mcards td:last-child > .btn { width: 100%; justify-content: center; }
  table.mcards .stage-select { width: 100%; }
}

/* ============================================================
   Video Submissions — prominent preview redesign
   Responsive card grid; portrait-aware "dark stage" media frame
   so 9:16 phone clips read cleanly instead of a tall blank box.
   Reuses :root tokens only. No copy changes.
   ============================================================ */
.vsub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem;
}
.vsub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .24s cubic-bezier(.2,.7,.3,1), box-shadow .24s ease, border-color .24s ease;
}
.vsub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
  border-color: var(--periwinkle);
}
.vsub-head { display: flex; align-items: center; gap: .65rem; padding: .85rem .9rem; }
.vsub-avatar {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  box-shadow: var(--shadow-blue);
}
.vsub-id { min-width: 0; }
.vsub-name { font-weight: 700; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsub-email { font-size: .8rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsub-media {
  position: relative; height: 380px;
  background: radial-gradient(120% 120% at 50% 0%, #1b2540 0%, #0b1020 70%);
  display: grid; place-items: center;
  border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100);
}
.vsub-media video { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.vsub-dur {
  position: absolute; right: .55rem; bottom: .55rem; z-index: 2; pointer-events: none;
  background: rgba(8, 12, 28, .82); color: #fff; font-size: .78rem; font-weight: 600;
  padding: .15rem .5rem; border-radius: 999px; letter-spacing: .02em; backdrop-filter: blur(2px);
}
.vsub-body { padding: .7rem .9rem .9rem; display: flex; flex-direction: column; gap: .6rem; }
.vsub-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.vsub-chip {
  display: inline-flex; align-items: center; gap: .3rem; max-width: 100%;
  font-size: .74rem; font-weight: 600; color: var(--gray-700);
  background: var(--gray-100); border: 1px solid var(--gray-300);
  padding: .18rem .55rem; border-radius: 999px;
}
.vsub-chip.prompt { background: var(--indigo-pale); color: var(--navy); border-color: rgba(30, 58, 138, .25); }
.vsub-chip.prompt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsub-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.vsub-actions .btn { flex: 1; justify-content: center; }
.vsub-actions .vsub-assign { flex: 1 1 100%; }
@media (max-width: 520px) { .vsub-media { height: 320px; } }

/* Header right cluster — health badge + recruiter account actions in the main
   app header (shown only when signed into the portal). Sign Out stays far right. */
.header-right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
/* width:auto + flex-end override the legacy <=880px topbar rule so the account
   actions stay a compact, right-aligned cluster (Sign Out last) inside the header. */
.header-right .recruiter-actions { padding-bottom: 0; width: auto; flex-wrap: wrap; justify-content: flex-end; }
/* Ghost buttons (Recruiters / Reset Demo) sit on the dark navy header — the
   default gray-700 text is unreadable there, so use light text + a subtle hover. */
.header-right .recruiter-actions .btn-ghost { color: rgba(255, 255, 255, .86); }
.header-right .recruiter-actions .btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* "Sign in with Microsoft" button on the recruiter login card */
.ms-signin-divider { display: flex; align-items: center; text-align: center; color: var(--gray-500); font-size: .8rem; margin: 1rem 0 .8rem; }
.ms-signin-divider::before, .ms-signin-divider::after { content: ""; flex: 1; height: 1px; background: var(--gray-300); }
.ms-signin-divider span { padding: 0 .7rem; }
.ms-signin-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; background: #fff; color: #1f2937; border: 1px solid var(--gray-300); font-weight: 600; }
.ms-signin-btn:hover { background: var(--gray-100); border-color: var(--gray-500); }

/* ============================================================
   Analytics tab — KPI cards + lightweight SVG/CSS charts
   ============================================================ */
.an-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .8rem; margin-bottom: 1.1rem; }
.an-kpi { display: flex; align-items: center; gap: .7rem; background: var(--bg); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: .8rem .9rem; box-shadow: var(--shadow-soft); }
.an-kpi-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.an-kpi-ic svg { width: 20px; height: 20px; }
.an-kpi-val { font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1; }
.an-kpi-lab { font-size: .77rem; color: var(--gray-500); margin-top: .15rem; }
.an-navy .an-kpi-ic { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.an-emerald .an-kpi-ic { background: linear-gradient(135deg, var(--emerald), var(--emerald-deep)); }
.an-amber .an-kpi-ic { background: linear-gradient(135deg, #f59e0b, var(--amber)); }
.an-indigo .an-kpi-ic { background: linear-gradient(135deg, #6366f1, #4338ca); }
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.an-card { background: var(--bg); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-soft); margin-bottom: 1rem; }
.an-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.an-card-head h4 { margin: 0; font-size: .95rem; color: var(--ink); }
.ch-bars { display: flex; flex-direction: column; gap: .5rem; }
.ch-row { display: grid; grid-template-columns: 38% 1fr auto; align-items: center; gap: .6rem; }
.ch-label { font-size: .8rem; color: var(--gray-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-track { background: var(--gray-100); border-radius: 999px; height: 12px; overflow: hidden; }
.ch-fill { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
.ch-val { font-size: .8rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ch-val em { font-weight: 500; color: var(--gray-500); font-style: normal; font-size: .72rem; }
.ch-cols { display: flex; align-items: flex-end; gap: .7rem; height: 150px; padding-top: .5rem; }
.ch-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .3rem; }
.ch-col-bar { width: 70%; max-width: 46px; border-radius: 8px 8px 0 0; min-height: 3px; transition: height .5s ease; }
.ch-col-val { font-size: .82rem; font-weight: 700; color: var(--ink); }
.ch-col-lab { font-size: .72rem; color: var(--gray-500); text-align: center; }
.ch-donut-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ch-donut { width: 140px; height: 140px; flex: 0 0 auto; }
.ch-donut-c { font-size: 22px; font-weight: 700; fill: var(--ink); }
.ch-donut-s { font-size: 9px; fill: var(--gray-500); }
.ch-legend { display: flex; flex-direction: column; gap: .4rem; }
.ch-leg { font-size: .82rem; color: var(--gray-700); display: flex; align-items: center; gap: .4rem; }
.ch-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ch-area { width: 100%; height: 110px; display: block; }
.ch-area-x { display: flex; justify-content: space-between; font-size: .7rem; color: var(--gray-500); margin-top: .2rem; }
.an-feed { display: flex; flex-direction: column; }
.an-feed-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); }
.an-feed-row:last-child { border-bottom: none; }
.an-feed-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.an-feed-ic svg { width: 15px; height: 15px; }
.an-fi-submission { background: var(--navy); }
.an-fi-interview { background: var(--emerald); }
.an-fi-video { background: var(--amber); }
.an-fi-invite { background: #6366f1; }
.an-feed-tx { font-size: .86rem; color: var(--gray-700); }
.an-feed-ts { font-size: .75rem; color: var(--gray-500); white-space: nowrap; }
