/* ============================================================================
   Konfident Interview 2025 — Cohere Enterprise Design System
   Inspired by Cohere 2026 Web Architecture (DESIGN.md)
   Controlled enterprise AI aesthetic: stark white canvas, soft stone surfaces,
   deep green & coral accents, pill CTAs, hairline borders, Space Grotesk display.
   ========================================================================== */

:root {
  /* Cohere Color Palette (DESIGN.md) */
  --primary: #17171c;
  --cohere-black: #000000;
  --ink: #212121;
  --deep-green: #003c33;
  --dark-navy: #071829;
  --canvas: #ffffff;
  --bg: #faf9f7;
  --soft-stone: #eeece7;
  --pale-green: #edfce9;
  --pale-blue: #f1f5ff;
  --hairline: #d9d9dd;
  --border-light: #e5e7eb;
  --card-border: #f2f2f2;
  --muted: #93939f;
  --body-muted: #616161;
  --slate: #75758a;
  --faint: #93939f;
  --action-blue: #1863dc;
  --focus-blue: #4c6ee6;
  --coral: #ff7759;
  --coral-soft: #ffad9b;
  --form-focus: #9b60aa;
  --error: #b30000;
  --error-soft: #fdf2f2;

  /* Semantic mappings */
  --surface: #ffffff;
  --surface-alt: #f6f5f2;
  --surface-hover: #f9f8f6;
  --line: #e2e2e6;
  --line-medium: #d9d9dd;
  --line-soft: #eeece7;

  --brand: #17171c;
  --brand-dark: #000000;
  --brand-soft: #eeece7;

  --ok: #003c33;
  --ok-soft: #edfce9;
  --warn: #c2410c;
  --warn-soft: #fff7ed;
  --err: #b30000;
  --err-soft: #fdf2f2;

  --tech: #1863dc;
  --tech-soft: #f1f5ff;
  --hr: #8b3ab6;
  --hr-soft: #faf0fc;

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radius Scale */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-pop: 0 12px 36px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: var(--action-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--cohere-black);
  text-decoration: underline;
}

a.meet-link {
  color: var(--action-blue, var(--tech, #1863dc));
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
a.meet-link:hover {
  color: var(--cohere-black, var(--brand-dark, #000));
  background: var(--tech-soft, #f1f5ff);
  border-radius: 4px;
  padding: 0 4px;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }
hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
::selection { background: var(--pale-green); color: var(--deep-green); }

/* ---- Typography Utility Classes (DESIGN.md) ----------------------------- */
.hero-display {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.product-display {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.section-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.card-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.feature-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.caption {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}
.micro {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--slate);
}
.muted { color: var(--body-muted, #616161); }
.faint { color: var(--faint); font-size: 12px; }
.mono, .num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.num { text-align: right; }
th.num, td.num { text-align: right; }
.l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--slate);
}

/* ---- Top Header (Cohere Navigation) ------------------------------------- */
.topbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--cohere-black);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand span {
  color: var(--slate);
  font-weight: 400;
  margin-left: 4px;
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav a {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface-alt);
  text-decoration: none;
}
.nav a.on {
  color: var(--primary);
  background: var(--soft-stone);
  font-weight: 600;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}
.brand-tag { font-size: 12px; letter-spacing: 0.04em; }

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}
.who-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}
.who .name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.who .name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22ch;
}
.pill.role-pill {
  font-size: 10px;
  padding: 2px 7px;
  text-transform: uppercase;
  font-weight: 700;
}
.who-action { padding: 5px 12px; font-size: 12px; gap: 4px; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--soft-stone);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  border: 1px solid var(--hairline);
  transition: transform 0.15s ease;
}
.who a:hover .avatar {
  transform: scale(1.05);
}

/* ---- Main Container ----------------------------------------------------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 32px 80px;
}

/* ---- Page Header -------------------------------------------------------- */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-head h1 { margin: 0 0 4px; }
.page-head .sub { margin: 0; font-size: 14px; color: var(--muted); }

/* ---- Grid Layouts ------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid.mentors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .grid.mentors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Multi-Date Calendar Picker ---------------------------------------- */
.date-picker-widget {
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 14px;
  margin-bottom: 16px;
}
.date-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.date-picker-nav-btn {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.date-picker-nav-btn:hover {
  background: #f1f5f9;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.calendar-day-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate, #64748b);
  padding: 4px 0;
  text-transform: uppercase;
}
.calendar-day-btn {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line-soft, #e2e8f0);
  border-radius: 6px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.calendar-day-btn:hover:not(.disabled) {
  border-color: var(--action-blue, #2563eb);
  background: #eff6ff;
}
.calendar-day-btn.selected {
  background: var(--action-blue, #2563eb) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-color: var(--action-blue, #2563eb) !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}
.calendar-day-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
}
.calendar-day-btn.is-weekend {
  color: var(--slate, #64748b);
}
.selected-dates-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.selected-date-chip {
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.selected-date-chip .chip-remove {
  cursor: pointer;
  font-weight: 800;
  margin-left: 2px;
}

/* ---- Live Interview Countdown Badge ------------------------------------ */
.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-pill, 32px);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #17171c);
  font-family: var(--font-mono);
  margin-top: 4px;
  margin-bottom: 12px;
}
.countdown-badge.live {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
  font-weight: 700;
}
.countdown-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action-blue, #2563eb);
  display: inline-block;
  animation: countdown-pulse 2s infinite;
}
.countdown-badge.live .pulse-dot {
  background: #dc2626;
  animation: live-countdown-pulse 1.2s infinite;
}
@keyframes countdown-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
@keyframes live-countdown-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ---- Cohere Cards ------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--hairline);
}
.card-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.card-body { padding: 24px; }
.card-body.tight { padding: 0; }

/* ---- Mentor Cards ------------------------------------------------------- */
.mentor-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mentor-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
}
.mentor-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.mentor-info .avatar {
  flex-shrink: 0;
}
.mentor-meta {
  min-width: 0;
  flex: 1;
}
.mentor-meta h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mentor-meta .faint {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mentor-badges {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mentor-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.mentor-card .card-body .btn-row {
  margin-top: auto;
}

/* ---- Stats Widgets ------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.stat .n {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat .l {
  font-size: 11px;
  color: var(--slate);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ---- Buttons (Cohere Pill Style) ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background: var(--surface-alt);
  border-color: var(--slate);
  color: var(--cohere-black);
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn:focus-visible {
  outline: 2px solid var(--focus-blue);
  outline-offset: 2px;
}

/* ---- Button Loading Animations ----------------------------------------- */
@keyframes btn-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
  margin-right: 6px;
}

.btn.loading {
  position: relative;
  cursor: wait !important;
  opacity: 0.85;
  pointer-events: none;
}

.btn.loading.primary {
  background: var(--cohere-black);
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 500;
}
.btn.primary:hover:not(:disabled) {
  background: var(--cohere-black);
  border-color: var(--cohere-black);
  color: #ffffff;
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl, 30px);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-pill-outline:hover {
  background: var(--surface-alt);
  border-color: var(--slate);
  color: var(--cohere-black);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: none;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  padding: 8px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover {
  color: var(--cohere-black);
}

.announcement-bar {
  background: var(--cohere-black);
  color: #ffffff;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 16px;
  letter-spacing: 0.01em;
  text-align: center;
}
.announcement-bar a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
  margin-left: 6px;
}

.dark-feature-band {
  background: var(--deep-green);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-pop);
}
.dark-feature-band h2, .dark-feature-band h3 {
  color: #ffffff;
}

.product-card {
  background: var(--soft-stone);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--hairline);
}

.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--coral-soft);
  color: var(--coral);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.blog-filter-chip:hover, .blog-filter-chip.active {
  background: var(--coral);
  color: #ffffff;
  border-color: var(--coral);
}

.btn.sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: var(--radius-pill);
}

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

.btn-google {
  background: #ffffff;
  color: #3c4043;
  border: 1px solid var(--hairline);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-google:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #dadce0;
  color: #202124;
}

.btn-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
/*
 * Inputs default to width:100%, which is right inside a .field but turns any
 * inline toolbar (filter bars in card headers) into a stack of full-width
 * controls. Inside a .btn-row they size to their content instead.
 */
.btn-row > input,
.btn-row > select {
  width: auto;
  min-width: 132px;
  max-width: 220px;
}
.card-head > form.btn-row { justify-content: flex-end; }

/* ---- Pill Badges -------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  white-space: nowrap;
}
.pill.p-technical, .pill.p-tech { background: var(--pale-blue); color: var(--action-blue); border: 1px solid #dbeafe; }
.pill.p-hr { background: var(--hr-soft); color: var(--hr); border: 1px solid #f3e8ff; }
.pill.p-booked, .pill.p-pending { background: var(--warn-soft); color: var(--warn); border: 1px solid #fed7aa; }
.pill.p-completed, .pill.p-attended { background: var(--pale-green); color: var(--deep-green); border: 1px solid #bbf7d0; }
.pill.p-cancelled, .pill.p-absent { background: var(--error-soft); color: var(--error); border: 1px solid #fecaca; }
.pill.p-open { background: var(--surface-alt); color: var(--ink); border: 1px solid var(--hairline); }
.pill.p-muted { background: var(--surface-alt); color: var(--slate); border: 1px solid var(--hairline); }

/* Grades */
.pill.g-a { background: var(--pale-green); color: var(--deep-green); border: 1px solid #bbf7d0; }
.pill.g-b { background: var(--pale-blue); color: var(--action-blue); border: 1px solid #dbeafe; }
.pill.g-c { background: var(--warn-soft); color: var(--warn); border: 1px solid #fed7aa; }
.pill.g-d { background: var(--error-soft); color: var(--error); border: 1px solid #fecaca; }

/* ---- Form Controls ------------------------------------------------------ */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--form-focus, #9b60aa);
  box-shadow: 0 0 0 3px rgba(155, 96, 170, 0.18);
}
textarea { min-height: 80px; resize: vertical; }

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 8px;
}
label.check input { width: auto; margin: 0; }

.hint {
  font-size: 11px;
  color: var(--faint);
  margin-top: 4px;
}

/* ---- Tables (Cohere Research Style) ------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  background: var(--surface-alt);
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-hover); }
td.empty, div.empty {
  text-align: center;
  color: var(--faint);
  padding: 36px 20px;
  font-size: 13px;
}

/* ---- Flash Messages & Banners ------------------------------------------- */
.flash {
  padding: 12px 18px;
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: flash-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.flash.ok {
  background: var(--pale-green, #edfce9);
  color: var(--deep-green, #003c33);
  border: 1px solid #bbf7d0;
}
.flash.err {
  background: var(--error-soft, #fdf2f2);
  color: var(--error, #b30000);
  border: 1px solid #fecaca;
}
.flash.info {
  background: var(--pale-blue, #eff6ff);
  color: var(--action-blue, #1863dc);
  border: 1px solid #bfdbfe;
}

.flash-close-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: currentColor;
  opacity: 0.65;
  cursor: pointer;
  padding: 0 4px;
  margin-left: auto;
  border-radius: 4px;
  transition: opacity 0.12s ease;
}
.flash-close-btn:hover {
  opacity: 1;
}

.note {
  background: var(--soft-stone);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink);
  margin: 18px 0;
  line-height: 1.55;
}

/* ---- Login Page (Cohere Command Card) ----------------------------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 20%, #f4f3ef 0%, #eeece7 100%);
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-pop);
}
.login-card h1 { font-size: 22px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.auth-divider span { padding: 0 10px; }

/* ---- Fast Demo Role Credentials ----------------------------------------- */
.demo-section {
  margin: 16px 0 20px;
}
.demo-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
button.demo-role-btn {
  -webkit-appearance: none;
  appearance: none;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  background: var(--surface-alt) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.15s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  outline: none !important;
}
button.demo-role-btn:hover {
  border-color: var(--primary) !important;
  background: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
button.demo-role-btn.active {
  border-color: var(--action-blue) !important;
  background: var(--pale-blue) !important;
}
.demo-role-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex-shrink: 0;
}
.demo-role-meta {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.demo-role-name {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.2;
}
.demo-role-email {
  font-size: 10.5px;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.demo-creds {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.demo-creds code {
  background: var(--surface-alt);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ---- Score Displays ----------------------------------------------------- */
.big-score {
  font-size: 36px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.04em;
}
.big-score small {
  font-size: 18px;
  color: var(--faint);
  font-weight: 400;
  margin-left: 2px;
}
.bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  margin-top: 8px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--deep-green);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* ---- Slot Cards --------------------------------------------------------- */
.slot-day {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.slot-day:last-child { border-bottom: none; }
.slot-day h3 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 0.04em; }

.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.slot {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.slot:hover {
  border-color: var(--hairline);
  transform: translateY(-1px);
}
.slot .t { font-weight: 700; font-size: 14px; color: var(--ink); font-family: var(--font-display); }
.slot .m { color: var(--muted); font-size: 12px; margin: 4px 0 14px; }

/* ---- Details Accordion -------------------------------------------------- */
details.inline summary {
  cursor: pointer;
  color: var(--action-blue);
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}
details.inline summary::-webkit-details-marker { display: none; }
details.inline[open] summary { margin-bottom: 12px; }
details.inline .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface-alt);
  margin-top: 8px;
}

/* ---- Progress Stepper (Student Dashboard) -------------------------------- */
.timeline { display: flex; gap: 14px; flex-wrap: wrap; }
.step {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step .k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  font-weight: 700;
}
.step strong { display: block; margin: 4px 0 2px; }
.step.done { background: var(--pale-green); border-color: #bbf7d0; }
.step.done strong { color: var(--deep-green); }
.step.todo { background: var(--surface); }

/* ============================================================================
   Cohere 2026 Enterprise Components & Micro-Interactions
   ========================================================================== */

/* Keyframe Animations */
@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 60, 51, 0.4); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 60, 51, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 60, 51, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseGlow 2s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

/* Card hover elevations */
.card {
  transition: box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.card:hover {
  border-color: #dcdce2;
}

/* Rich Stat KPI Cards */
.stat {
  position: relative;
  overflow: hidden;
  border-top: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat:hover {
  transform: translateY(-2px);
  border-top-color: var(--primary);
}
.stat .n {
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Filter & Search Toolbar */
.search-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  background: var(--surface-alt);
  transition: all 0.15s ease;
}

.search-input-wrap input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 23, 28, 0.08);
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  background: var(--surface-alt);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  color: var(--ink);
  background: var(--line-soft);
}

.filter-chip.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Milestone Onboarding Stepper (Student) */
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.milestone-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.milestone-step:hover {
  transform: translateY(-1px);
  border-color: var(--hairline);
}

.milestone-step.done {
  background: var(--pale-green);
  border-color: #bbf7d0;
}

.milestone-step.active {
  border-color: var(--action-blue);
  box-shadow: 0 0 0 2px rgba(24, 99, 220, 0.15);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  flex-shrink: 0;
}

.milestone-step.done .step-num {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: #ffffff;
}

.milestone-step.active .step-num {
  background: var(--action-blue);
  border-color: var(--action-blue);
  color: #ffffff;
}

/* Candidate Dossier Header */
.dossier-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  gap: 20px;
  flex-wrap: wrap;
}

.dossier-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dossier-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.squad-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #334155;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid #cbd5e1;
}

/* Feedback Quote Box */
.feedback-quote-box {
  background: var(--surface-alt);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}

/* Scorecard Radial / Grand Total Display */
.score-hero-box {
  background: linear-gradient(135deg, var(--primary) 0%, #2a2a36 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-pop);
  flex-wrap: wrap;
}

.score-hero-val {
  font-size: 56px;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Interactive table highlight */
tbody tr {
  transition: background-color 0.1s ease;
}
tbody tr:hover {
  background-color: var(--surface-hover);
}

/* Attendance Quick Badges */
.badge-attended {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.badge-absent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ---- Pagination --------------------------------------------------------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
}
.btn.is-disabled,
a.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 768px) {
  .topbar-in { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .wrap { padding: 20px 16px 64px; }
  .who { flex-wrap: nowrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
  .who .name { display: none; }
  .brand-tag { display: none; }
  /* Comfortable touch targets: 27px controls are hard to hit on a phone. */
  .btn, .btn.sm, .who-action, .filter-chip { min-height: 38px; }
  .btn.sm, .who-action { padding: 8px 14px; }
  .filter-chip { padding: 8px 14px; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .page-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .btn-row { flex-wrap: wrap; }
  .row { grid-template-columns: 1fr; }
  .search-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .pager { flex-direction: column; align-items: stretch; text-align: center; }
  .table-scroll { -webkit-overflow-scrolling: touch; }
  .dossier-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .milestone-grid { grid-template-columns: 1fr; }
}
/* ---- Modal Dialog ------------------------------------------------------- */
dialog.modal-dialog {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-md, 16px);
  background: var(--surface, #ffffff);
  color: var(--ink, #1e293b);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  margin: auto;
  overflow: hidden;
}

dialog.modal-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: modal-pop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

dialog.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  background: var(--surface-alt, #f8fafc);
  flex-shrink: 0;
}
.modal-head h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--ink, #1e293b);
}
.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--slate, #64748b);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs, 6px);
  transition: all 0.15s ease;
}
.modal-close-btn:hover {
  background: var(--line, #e2e8f0);
  color: var(--ink, #1e293b);
}
.modal-body {
  padding: 22px;
  overflow-y: auto;
  max-height: 75vh;
}
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--line, #e2e8f0);
  background: var(--surface-alt, #f8fafc);
  flex-shrink: 0;
}

/* ---- Multi-Date Calendar Picker Widget ---------------------------------- */
.date-picker-widget {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  margin-top: 6px;
  margin-bottom: 12px;
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.date-picker-nav-btn {
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--radius-xs, 4px);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  transition: all 0.15s ease;
}

.date-picker-nav-btn:hover {
  background: var(--line, #e2e8f0);
  border-color: var(--slate, #94a3b8);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.calendar-day-head {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate, #64748b);
  padding: 4px 0;
  text-transform: uppercase;
}

.calendar-day-btn {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line-soft, #f1f5f9);
  border-radius: var(--radius-xs, 6px);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink, #1e293b);
  cursor: pointer;
  transition: all 0.12s ease;
  padding: 0;
}

.calendar-day-btn:hover:not(.disabled) {
  background: var(--pale-blue, #eff6ff);
  border-color: var(--action-blue, #2563eb);
  color: var(--action-blue, #2563eb);
}

.calendar-day-btn.selected {
  background: var(--primary, #0f172a) !important;
  color: #ffffff !important;
  border-color: var(--primary, #0f172a) !important;
  font-weight: 700;
}

.calendar-day-btn.is-weekend:not(.selected) {
  color: var(--slate, #94a3b8);
  background: var(--surface-alt, #f8fafc);
}

.calendar-day-btn.disabled {
  visibility: hidden;
  pointer-events: none;
}

.selected-dates-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft, #f1f5f9);
  min-height: 28px;
}

.selected-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pale-blue, #eff6ff);
  color: var(--action-blue, #1d4ed8);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-pill, 16px);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}

.selected-date-chip .chip-remove {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #ef4444;
  line-height: 1;
}

.selected-date-chip .chip-remove:hover {
  color: #b91c1c;
}

/* ---- Skeleton Loaders & Shimmer States (DESIGN.md) ---------------------- */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-alt, #f6f5f2) 25%, var(--soft-stone, #eeece7) 50%, var(--surface-alt, #f6f5f2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: var(--radius-xs, 4px);
  display: inline-block;
}

.skeleton-text {
  height: 14px;
  width: 100%;
  margin-bottom: 6px;
  border-radius: var(--radius-xs, 4px);
}

.skeleton-text.sm { height: 11px; width: 60%; }
.skeleton-text.lg { height: 18px; width: 80%; }

.skeleton-title {
  height: 24px;
  width: 50%;
  margin-bottom: 12px;
  border-radius: var(--radius-sm, 8px);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full, 9999px);
  flex-shrink: 0;
}

.skeleton-button {
  height: 36px;
  width: 120px;
  border-radius: var(--radius-pill, 32px);
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.skeleton-stat {
  height: 80px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

/* ---- Form Validation & Error Feedback ---------------------------------- */
.field.has-error input,
.field.has-error select,
.field.has-error textarea,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--error, #b30000) !important;
  background-color: var(--error-soft, #fdf2f2) !important;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus,
input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.18) !important;
}

.field-error-msg {
  color: var(--error, #b30000);
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.2s ease;
}

/* ============================================================================
   UI/UX Refinements: Modals, Milestones, Auth, Alerts, & Responsiveness
   ========================================================================== */

/* ---- Modal Dialogs (Native HTML5 <dialog>) ------------------------------ */
dialog.modal-dialog {
  border: none;
  border-radius: var(--radius-lg, 22px);
  background: var(--surface, #ffffff);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2), 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0;
  width: 100%;
  max-width: 520px;
  color: var(--ink, #17171c);
  overflow: hidden;
  margin: auto;
}
dialog.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modal-backdrop-in 0.2s ease-out;
}
dialog.modal-dialog[open] {
  animation: modal-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.95) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft, #eeece7);
  background: var(--surface-alt, #f6f5f2);
}
.modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, #17171c);
}
.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--slate, #75758a);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.modal-close-btn:hover {
  background: var(--hairline, #d9d9dd);
  color: var(--ink, #17171c);
}
.modal-body {
  padding: 24px;
  max-height: calc(85vh - 90px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line-soft, #eeece7);
  background: var(--surface-alt, #f6f5f2);
}

/* ---- Milestone Progress Track ------------------------------------------- */
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.milestone-step {
  background: var(--surface, #ffffff);
  border: 1px solid var(--card-border, #f2f2f2);
  border-radius: var(--radius-md, 16px);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.milestone-step:hover {
  border-color: var(--hairline, #d9d9dd);
  transform: translateY(-1px);
}
.milestone-step.active {
  border-color: var(--primary, #17171c);
  box-shadow: 0 0 0 1px var(--primary, #17171c), var(--shadow-sm);
}
.milestone-step.done {
  border-color: #bbf7d0;
  background: var(--pale-green, #edfce9);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-display);
  flex-shrink: 0;
  background: var(--surface-alt, #f6f5f2);
  color: var(--slate, #75758a);
  border: 1px solid var(--hairline, #d9d9dd);
  transition: all 0.2s ease;
}
.milestone-step.active .step-num {
  background: var(--primary, #17171c);
  color: #ffffff;
  border-color: var(--primary, #17171c);
  box-shadow: 0 2px 8px rgba(23, 23, 28, 0.25);
}
.milestone-step.done .step-num {
  background: var(--deep-green, #003c33);
  color: #ffffff;
  border-color: var(--deep-green, #003c33);
  box-shadow: 0 0 0 3px rgba(0, 60, 51, 0.15);
}

/* ---- Login & Auth Pages ------------------------------------------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: radial-gradient(circle at 50% 20%, rgba(24, 99, 220, 0.05) 0%, rgba(0, 0, 0, 0) 70%), var(--bg);
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--card-border, #f2f2f2);
  border-radius: var(--radius-lg, 22px);
  padding: 38px 32px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 20px 40px -15px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.login-card:hover {
  border-color: var(--hairline, #d9d9dd);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.08), 0 24px 48px -18px rgba(0, 0, 0, 0.04);
}
.login-card h1 {
  font-size: 24px;
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.login-card .sub {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted, #93939f);
  margin-bottom: 18px;
}
.demo-creds {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft, #eeece7);
  font-size: 12px;
}

/* ---- Flash Messages & Banners ------------------------------------------- */
.flash {
  padding: 13px 18px;
  border-radius: var(--radius-md, 16px);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  animation: flash-enter 0.25s ease-out;
}
@keyframes flash-enter {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.flash.ok {
  background: var(--pale-green, #edfce9);
  color: var(--deep-green, #003c33);
  border: 1px solid #bbf7d0;
}
.flash.err {
  background: var(--error-soft, #fdf2f2);
  color: #991b1b;
  border: 1px solid #fecaca;
}
.flash.warn {
  background: var(--warn-soft, #fff7ed);
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.flash-close-btn {
  background: transparent;
  border: none;
  color: currentColor;
  opacity: 0.6;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: opacity 0.15s ease;
}
.flash-close-btn:hover {
  opacity: 1;
}

/* ---- Informational Callouts (.note) -------------------------------------- */
.note {
  background: var(--surface-alt, #f6f5f2);
  border: 1px solid var(--line, #e2e2e6);
  border-radius: var(--radius-md, 16px);
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink, #212121);
  margin-bottom: 16px;
}

/* ---- Student Slot Day & Slot Cards ------------------------------------- */
.slot-day {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft, #eeece7);
}
.slot-day:last-child {
  border-bottom: none;
}
.slot-day h3 {
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate, #75758a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.slot {
  background: var(--surface, #ffffff);
  border: 1px solid var(--card-border, #f2f2f2);
  border-radius: var(--radius-md, 16px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.slot:hover {
  transform: translateY(-2px);
  border-color: var(--hairline, #d9d9dd);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.slot .t {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #17171c);
}
.slot .m {
  font-size: 12.5px;
  color: var(--body-muted, #616161);
  line-height: 1.4;
}

/* ---- Score Bar & Big Score Display -------------------------------------- */
.big-score {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink, #17171c);
  letter-spacing: -0.03em;
}
.big-score small {
  font-size: 16px;
  font-weight: 500;
  color: var(--slate, #75758a);
  margin-left: 2px;
}
.bar {
  width: 100%;
  height: 8px;
  background: var(--line-soft, #eeece7);
  border-radius: var(--radius-pill, 32px);
  overflow: hidden;
  position: relative;
}
.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--action-blue, #1863dc), var(--focus-blue, #4c6ee6));
  border-radius: var(--radius-pill, 32px);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Live Telemetry Status Pulse ---------------------------------------- */
.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: live-pulse-anim 2s infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes live-pulse-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.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); }
}

/* ---- Pagination Controls (.pager) --------------------------------------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line-soft, #eeece7);
  background: var(--surface-alt, #f6f5f2);
}
.pager .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* ---- Empty State Container ---------------------------------------------- */
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted, #93939f);
  font-size: 13.5px;
}

/* ---- Card Hover Elevations & Interactive Micro-Animations --------------- */
.card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.stat {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.stat:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  border-color: var(--hairline, #d9d9dd);
}
.btn {
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* ---- Score Hero Card (Cohere Dark Gradient Scorecard) -------------------- */
.score-hero-box {
  background: linear-gradient(135deg, #17171c 0%, #0c1a2c 60%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-md, 16px);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.score-hero-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.score-hero-val {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* ---- Search Toolbar & Filter Chips -------------------------------------- */
.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 480px;
}
.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate, #75758a);
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  padding: 8px 14px 8px 38px;
  border-radius: var(--radius-pill, 32px);
  border: 1px solid var(--line, #e2e2e6);
  background: var(--surface, #ffffff);
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-input-wrap input:focus {
  outline: none;
  border-color: var(--focus-blue, #4c6ee6);
  box-shadow: 0 0 0 3px rgba(76, 110, 230, 0.15);
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill, 32px);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--line, #e2e2e6);
  background: var(--surface, #ffffff);
  color: var(--body-muted, #616161);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.filter-chip:hover {
  background: var(--surface-hover, #f9f8f6);
  border-color: var(--hairline, #d9d9dd);
  color: var(--ink, #212121);
}
.filter-chip.active {
  background: var(--primary, #17171c);
  color: #ffffff;
  border-color: var(--primary, #17171c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ---- Squad & Attended Badges -------------------------------------------- */
.squad-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill, 32px);
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  letter-spacing: 0.02em;
}
.badge-attended {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill, 32px);
  background: var(--pale-green, #edfce9);
  color: var(--deep-green, #003c33);
  border: 1px solid #bbf7d0;
}

/* ---- Student Dossier (Admin Candidate Detail) --------------------------- */
.dossier-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.dossier-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dossier-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--soft-stone, #eeece7) 0%, var(--surface-alt, #f6f5f2) 100%);
  color: var(--ink, #212121);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

/* ---- Mentors Directory Grid & Cards ------------------------------------- */
.mentors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.mentor-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mentor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.mentor-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}
.mentor-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mentor-meta {
  min-width: 0;
}
.mentor-meta h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.mentor-meta span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.mentor-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ---- Countdown & Live Session Indicators --------------------------------- */
.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill, 32px);
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-alt, #f6f5f2);
  color: var(--ink, #212121);
  border: 1px solid var(--line-medium, #d9d9dd);
  margin-bottom: 8px;
}
.countdown-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: pulseDot 1.8s ease-in-out infinite;
}
.countdown-badge.live {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
  animation: liveGlow 2s infinite ease-in-out;
}
.countdown-badge.live .pulse-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
@keyframes liveGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.15); }
}

/* ---- Button Loading Spinners & Form Validation Feedback ----------------- */
.btn.loading {
  pointer-events: none;
  opacity: 0.82;
  cursor: wait;
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
.btn:not(.primary):not(.danger) .btn-spinner {
  border-color: rgba(0, 0, 0, 0.18);
  border-top-color: var(--ink, #212121);
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--error, #b30000) !important;
  background-color: var(--error-soft, #fdf2f2) !important;
  box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.12) !important;
}
.field-error-msg {
  font-size: 11.5px;
  color: var(--error, #b30000);
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Multi-Date Calendar Picker Widget ---------------------------------- */
.date-picker-widget {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e2e6);
  border-radius: var(--radius-sm, 8px);
  padding: 14px;
  margin: 8px 0 12px;
}
.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.calendar-day-head {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate, #75758a);
  padding: 4px 0;
  text-transform: uppercase;
}
.calendar-day-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-xs, 4px);
  border: 1px solid transparent;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.calendar-day-btn:hover:not(.disabled) {
  background: var(--surface-hover, #f9f8f6);
  border-color: var(--line-medium, #d9d9dd);
}
.calendar-day-btn.selected {
  background: var(--primary, #17171c) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.calendar-day-btn.today {
  border-color: var(--action-blue, #1863dc);
  font-weight: 700;
}
.calendar-day-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============================================================================
   Responsive Layout & Mobile Architecture
   ========================================================================== */

@media (max-width: 1024px) {
  .wrap {
    padding: 24px 20px 64px;
  }
  .topbar-in {
    padding: 0 20px;
    gap: 16px;
  }
  .milestone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    position: sticky;
    top: 0;
  }
  .topbar-in {
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
  }
  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-top: -2px;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .who {
    margin-left: auto;
    gap: 8px;
  }
  .who .name strong {
    max-width: 12ch;
  }
  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
  }
  .page-head .btn,
  .page-head .btn-row {
    width: 100%;
  }
  .btn-row > .btn,
  .page-head .btn {
    flex: 1;
    justify-content: center;
  }
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .stat {
    padding: 12px 14px;
  }
  .stat .n {
    font-size: 22px;
  }
  dialog.modal-dialog {
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 36px);
    margin: 18px auto;
  }
  .modal-head {
    padding: 14px 18px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-foot {
    padding: 12px 18px;
  }
  .table-scroll {
    border-radius: 0;
  }
  table th,
  table td {
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .login-card {
    padding: 28px 20px;
    border-radius: var(--radius-md, 16px);
  }
  .score-hero-box {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .score-hero-val {
    font-size: 34px;
  }
  .dossier-hero {
    padding: 18px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .mentors-grid {
    grid-template-columns: 1fr;
  }
  .search-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search-input-wrap {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 16px 12px 50px;
  }
  .milestone-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat .n {
    font-size: 20px;
  }
  .slot-list {
    grid-template-columns: 1fr;
  }
  .slot-day {
    padding: 16px;
  }
  .card-body {
    padding: 16px;
  }
  .card-head {
    padding: 14px 16px;
  }
  .filter-chips {
    overflow-x: auto;
    width: 100%;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .filter-chip {
    flex-shrink: 0;
  }
}

/* ---- Print Scorecard Styles --------------------------------------------- */
@media print {
  body { background: #ffffff !important; color: #000000 !important; }
  .topbar, .btn, form, .note, details.inline, .pager, .skeleton { display: none !important; }
  a[href]::after { content: none !important; }
  .wrap { padding: 0 !important; max-width: 100% !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
  .page-head h1 { font-size: 24px !important; color: #000 !important; }
}

/* ============================================================================
   Konfident Landing Page Architecture & Showcase Styles
   ========================================================================== */

.landing-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header & Nav */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft, #eeece7);
  padding: 14px 0;
  transition: all 0.2s ease;
}

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

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.landing-brand:hover {
  text-decoration: none;
}

.landing-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--cohere-black);
}

.landing-brand-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--soft-stone, #eeece7);
  color: var(--slate);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-link {
  color: var(--body-muted, #616161);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.landing-nav-link:hover {
  color: var(--cohere-black);
  text-decoration: none;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-signin {
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 2px 8px rgba(23, 23, 28, 0.12);
}

/* Ambient Floating Particles */
.ambient-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  opacity: 0.4;
}
.ambient-particle-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(24, 99, 220, 0.15) 0%, rgba(24, 99, 220, 0) 70%);
  top: 40px;
  left: -80px;
}
.ambient-particle-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 119, 89, 0.12) 0%, rgba(255, 119, 89, 0) 70%);
  top: 180px;
  right: -100px;
}
.ambient-particle-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 60, 51, 0.1) 0%, rgba(0, 60, 51, 0) 70%);
  bottom: 60px;
  left: 20%;
}
.ambient-particle-4 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(139, 58, 182, 0.08) 0%, rgba(139, 58, 182, 0) 70%);
  top: 60%;
  right: 15%;
}

/* Hero Section */
.landing-hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--hairline, #d9d9dd);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--cohere-black);
  margin-bottom: 22px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.badge-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  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); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--cohere-black);
  margin: 0 0 18px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-muted, #616161);
  margin: 0 0 28px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-hero-signin {
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  background: var(--cohere-black, #000) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-hero-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
  text-decoration: none !important;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft, #eeece7);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
}
.trust-item svg {
  color: var(--action-blue);
  flex-shrink: 0;
}

/* Hero Showcase Visual */
.landing-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}

.hero-showcase-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-card-float {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Top Floating Meet Badge */
.hero-card-badge-top {
  position: absolute;
  top: -18px;
  right: 18px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(23, 23, 28, 0.08);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  animation: floatBadgeTop 5s ease-in-out infinite alternate;
  white-space: nowrap;
}

.meet-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.meet-badge-info {
  display: flex;
  flex-direction: column;
}

.meet-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--cohere-black);
  line-height: 1.2;
}

.meet-badge-sub {
  font-size: 10.5px;
  color: var(--slate);
  line-height: 1.2;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34A853;
  margin-left: 4px;
  animation: livePulseDot 2s ease-in-out infinite;
}

.badge-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: livePulseDot 2s ease-in-out infinite;
}

@keyframes livePulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
    filter: drop-shadow(0 0 3px #10b981);
  }
}

/* Main Console Card */
.hero-card-primary {
  background: #ffffff;
  border: 1px solid var(--hairline, #d9d9dd);
  border-radius: 20px;
  padding: 26px 26px 30px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2;
  animation: floatPrimary 6s ease-in-out infinite alternate;
}

@keyframes floatPrimary {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-7px); }
}

@keyframes floatBadgeTop {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-5px); }
}

@keyframes floatBadgeBottom {
  0% { transform: translateY(0px); }
  100% { transform: translateY(5px); }
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border, #f2f2f2);
}

.console-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--deep-green, #003c33);
  background: var(--pale-green, #edfce9);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.console-duration-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate);
  background: var(--surface-alt, #f6f5f2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Rubric Track Switcher Navigation */
.console-track-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--surface-alt, #f6f5f2);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.track-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.track-tab-btn:hover {
  color: var(--cohere-black);
  background: rgba(255, 255, 255, 0.7);
}

.track-tab-btn.active {
  color: var(--cohere-black);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.tab-indicator-icon {
  color: #eab308;
  font-size: 11px;
  line-height: 1;
}

.tab-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.console-participants {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--surface-alt, #f6f5f2);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.participant-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.student-avatar {
  background: linear-gradient(135deg, #1863dc, #4c6ee6);
}
.mentor-avatar {
  background: linear-gradient(135deg, #003c33, #071829);
}

.participant-meta {
  display: flex;
  flex-direction: column;
}

.participant-role {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.participant-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--cohere-black);
}

.pipeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline-svg {
  display: block;
}

@keyframes pipelineFlow {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.pipeline-pulse {
  stroke-dasharray: 6 6;
  stroke-dashoffset: 24;
  animation: pipelineFlow 1.2s linear infinite;
}

/* Rubric Progress Meters & Dual Track Groups */
.console-rubric-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.rubric-track-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 12px;
  background: rgba(246, 245, 242, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.rubric-track-group.is-hidden {
  display: none !important;
}

.rubric-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
  margin-bottom: 2px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.dot-indicator.tech-dot,
.tab-indicator-dot.tech-dot {
  background: var(--action-blue, #1863dc);
}
.dot-indicator.hr-dot,
.tab-indicator-dot.hr-dot {
  background: #7c3aed;
}

.group-subtotal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
}
.group-subtotal strong {
  color: var(--cohere-black);
  font-weight: 700;
}

.rubric-meter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.meter-name {
  font-weight: 600;
  color: var(--ink);
}

.meter-score {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate);
}
.meter-score strong {
  color: var(--cohere-black);
  font-weight: 700;
}

.rubric-progress-track {
  height: 7px;
  background: var(--soft-stone, #eeece7);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rubric-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width;
}
.tech-fill {
  background: linear-gradient(90deg, #1863dc, #4c6ee6);
}
.hr-fill {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
}

/* Scorecard Console Footer */
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--card-border, #f2f2f2);
}

.console-total-box {
  display: flex;
  flex-direction: column;
}

.total-caption {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--slate);
}

.total-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--cohere-black);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.total-denom {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.console-grade-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--pale-green, #edfce9);
  border: 1px solid rgba(0, 60, 51, 0.18);
  padding: 5px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.console-grade-pill.g-a {
  background: var(--pale-green, #edfce9);
  border-color: rgba(0, 60, 51, 0.18);
}
.console-grade-pill.g-a .grade-label,
.console-grade-pill.g-a .grade-status,
.console-grade-pill.g-a .grade-badge-tag {
  color: var(--deep-green, #003c33);
}

.console-grade-pill.g-b {
  background: #eff6ff;
  border-color: rgba(24, 99, 220, 0.2);
}
.console-grade-pill.g-b .grade-label,
.console-grade-pill.g-b .grade-status,
.console-grade-pill.g-b .grade-badge-tag {
  color: #1e40af;
}

.console-grade-pill.g-c {
  background: #fefce8;
  border-color: rgba(202, 138, 4, 0.25);
}
.console-grade-pill.g-c .grade-label,
.console-grade-pill.g-c .grade-status,
.console-grade-pill.g-c .grade-badge-tag {
  color: #854d0e;
}

.console-grade-pill.g-d {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.25);
}
.console-grade-pill.g-d .grade-label,
.console-grade-pill.g-d .grade-status,
.console-grade-pill.g-d .grade-badge-tag {
  color: #9a3412;
}

.console-grade-pill.g-e {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.25);
}
.console-grade-pill.g-e .grade-label,
.console-grade-pill.g-e .grade-status,
.console-grade-pill.g-e .grade-badge-tag {
  color: #991b1b;
}

.grade-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.grade-badge-tag {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.grade-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.grade-status {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.95;
}

/* 5-Tier Grade Scale Bar */
.hero-grade-scale-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border, #f2f2f2);
}

.scale-tier {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 2px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--muted, #8b8b93);
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.scale-tier .tier-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hairline, #d9d9dd);
  transition: all 0.2s ease;
}

.scale-tier.active {
  background: var(--surface-alt, #f6f5f2);
  color: var(--cohere-black);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.scale-tier.active.tier-outstanding .tier-dot {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.scale-tier.active.tier-good .tier-dot {
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.scale-tier.active.tier-average .tier-dot {
  background: #ca8a04;
  box-shadow: 0 0 0 2px rgba(202, 138, 4, 0.25);
}

.scale-tier.active.tier-needswork .tier-dot {
  background: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.scale-tier.active.tier-poor .tier-dot {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

/* Bottom Analytics Badge */
.hero-card-badge-bottom {
  position: absolute;
  bottom: -18px;
  left: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(23, 23, 28, 0.08);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  animation: floatBadgeBottom 5.4s ease-in-out infinite alternate;
  white-space: nowrap;
}

.analytics-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral-soft, #ffad9b);
  color: #c2410c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analytics-badge-info {
  display: flex;
  flex-direction: column;
}

.analytics-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--cohere-black);
  line-height: 1.2;
}

.analytics-badge-sub {
  font-size: 10.5px;
  color: var(--slate);
  line-height: 1.2;
}

/* Landing Section General */
.landing-section {
  padding: 96px 0;
  position: relative;
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--action-blue);
  background: var(--pale-blue, #f1f5ff);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cohere-black);
  margin: 0 0 16px;
  line-height: 1.18;
}

.section-subtitle {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body-muted, #616161);
  margin: 0;
}

/* Why Section */
.landing-why-section {
  background: var(--canvas, #ffffff);
  border-top: 1px solid var(--line-soft, #eeece7);
  border-bottom: 1px solid var(--line-soft, #eeece7);
}

.landing-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.landing-why-card {
  background: var(--surface-alt, #f6f5f2);
  border: 1px solid var(--hairline, #d9d9dd);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-why-card:hover {
  box-shadow: var(--shadow-pop);
}

.student-why-card {
  border-top: 4px solid var(--action-blue);
}
.mentor-why-card {
  border-top: 4px solid var(--deep-green, #003c33);
}

.why-card-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 12px;
}

.why-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cohere-black);
  margin: 0 0 10px;
}

.why-card-desc {
  font-size: 14px;
  color: var(--body-muted, #616161);
  line-height: 1.55;
  margin: 0 0 28px;
}

.why-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--hairline, #d9d9dd);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cohere-black);
}
.student-why-card .benefit-icon {
  color: var(--action-blue);
}
.mentor-why-card .benefit-icon {
  color: var(--deep-green, #003c33);
}

.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.benefit-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--cohere-black);
}
.benefit-text span {
  font-size: 13px;
  color: var(--body-muted, #616161);
  line-height: 1.45;
}

/* KPI Strip */
.landing-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--hairline, #d9d9dd);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kpi-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cohere-black);
  line-height: 1;
  margin-bottom: 6px;
}

.kpi-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.kpi-sub {
  font-size: 11.5px;
  color: var(--slate);
}

/* Rubric Scale Matrix Section */
.landing-rubric-section {
  background: var(--surface-alt, #f6f5f2);
  border-top: 1px solid var(--card-border, #eeece7);
  border-bottom: 1px solid var(--card-border, #eeece7);
}

.rubric-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.rubric-track-card {
  background: #ffffff;
  border: 1px solid var(--hairline, #d9d9dd);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rubric-track-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

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

.track-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.technical-pill {
  background: var(--pale-blue, #f1f5ff);
  color: var(--action-blue);
}

.hr-pill {
  background: var(--hr-soft, #faf0fc);
  color: var(--hr, #8b3ab6);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tech-dot { background: var(--action-blue); }
.hr-dot { background: var(--hr, #8b3ab6); }

.track-total-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
  background: var(--surface-alt, #f6f5f2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.track-card-intro {
  font-size: 13.5px;
  color: var(--body-muted, #616161);
  line-height: 1.5;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border, #f2f2f2);
}

.rubric-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rubric-criteria-box {
  background: var(--surface-alt, #f6f5f2);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.criteria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.criteria-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cohere-black);
}

.criteria-marks {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--action-blue);
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.criteria-description {
  font-size: 12.5px;
  color: var(--body-muted, #616161);
  line-height: 1.45;
  margin: 0;
}

/* Grading Tiers Legend */
.rubric-grade-scale-banner {
  background: #ffffff;
  border: 1px solid var(--hairline, #d9d9dd);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.grade-scale-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--cohere-black);
  margin: 0 0 16px;
  text-align: center;
}

.grade-scale-badges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .grade-scale-badges {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .grade-scale-badges {
    grid-template-columns: 1fr;
  }
}

.grade-tier-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tier-aplus {
  background: var(--pale-green, #edfce9);
  border-color: rgba(0, 60, 51, 0.15);
}
.tier-aplus .tier-badge {
  color: var(--deep-green, #003c33);
}

.tier-a {
  background: var(--pale-blue, #f1f5ff);
  border-color: rgba(24, 99, 220, 0.15);
}
.tier-a .tier-badge {
  color: var(--action-blue);
}

.tier-b {
  background: #fffbeb;
  border-color: rgba(180, 83, 9, 0.15);
}
.tier-b .tier-badge {
  color: #b45309;
}

.tier-c {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.18);
}
.tier-c .tier-badge {
  color: #ea580c;
}

.tier-e {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.18);
}
.tier-e .tier-badge {
  color: #b91c1c;
}

.tier-badge {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tier-range {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.tier-desc {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.3;
}

/* Features Section */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.landing-feature-card {
  background: #ffffff;
  border: 1px solid var(--hairline, #d9d9dd);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-feature-card:hover {
  box-shadow: var(--shadow-pop);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feat-tech { background: var(--pale-blue, #f1f5ff); color: var(--action-blue); }
.feat-google { background: #e8f0fe; color: #4285F4; }
.feat-calendar { background: var(--pale-green, #edfce9); color: var(--deep-green, #003c33); }
.feat-rubric { background: var(--hr-soft, #faf0fc); color: var(--hr, #8b3ab6); }
.feat-admin { background: var(--warn-soft, #fff7ed); color: var(--warn, #c2410c); }
.feat-profile { background: var(--soft-stone, #eeece7); color: var(--cohere-black); }

.feature-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 8px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cohere-black);
  margin: 0 0 10px;
}

.feature-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body-muted, #616161);
  margin: 0;
}

/* CTA Section */
.landing-cta-section {
  padding: 64px 0 96px;
}

.landing-cta-box {
  background: linear-gradient(135deg, #17171c 0%, #071829 100%);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(7, 24, 41, 0.25);
}

.cta-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: #ffffff;
}

.cta-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

.btn-cta-large {
  padding: 14px 36px !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.btn-cta-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3) !important;
  text-decoration: none !important;
}

/* Footer */
.landing-footer {
  background: #ffffff;
  border-top: 1px solid var(--line-soft, #eeece7);
  padding: 56px 0 32px;
}

.landing-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--card-border, #f2f2f2);
}

.footer-brand-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--cohere-black);
}

.footer-tagline {
  font-size: 13px;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

.footer-links-side {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--body-muted, #616161);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--cohere-black);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: var(--slate);
}

.footer-badge-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .landing-hero-content {
    text-align: center;
    align-items: center;
  }
  .hero-sub {
    max-width: 600px;
  }
  .hero-trust-strip {
    justify-content: center;
  }
  .landing-why-grid {
    grid-template-columns: 1fr;
  }
  .rubric-matrix-grid {
    grid-template-columns: 1fr;
  }
  .grade-scale-badges {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding: 40px 0 54px;
  }
  .hero-headline {
    font-size: 32px;
  }
  .hero-sub {
    font-size: 14.5px;
  }
  .landing-nav-links {
    display: none;
  }
  .hero-showcase-wrapper {
    max-width: 100%;
    padding: 0 4px;
  }
  .hero-card-primary {
    padding: 20px 16px 24px;
    border-radius: 16px;
  }
  .hero-card-badge-top {
    top: -14px;
    right: 8px;
    font-size: 11px;
    padding: 6px 12px;
  }
  .hero-card-badge-bottom {
    bottom: -14px;
    left: 8px;
    font-size: 11px;
    padding: 6px 12px;
  }
  .console-participants {
    padding: 10px 12px;
  }
  .pipeline-connector svg {
    width: 44px;
  }
  .rubric-matrix-grid {
    grid-template-columns: 1fr;
  }
  .grade-scale-badges {
    grid-template-columns: 1fr;
  }
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
  .landing-kpi-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .landing-cta-box {
    padding: 44px 20px;
  }
  .cta-title {
    font-size: 26px;
  }
  .landing-footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links-side {
    flex-direction: column;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .hero-card-badge-top,
  .hero-card-badge-bottom {
    position: static;
    margin: 8px auto;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    box-sizing: border-box;
  }
  .landing-hero-visual {
    padding: 10px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-primary,
  .hero-card-badge-top,
  .hero-card-badge-bottom,
  .pipeline-pulse,
  .pulse-dot,
  .badge-dot-live {
    animation: none !important;
  }
}

/* ============================================================================
   Print Media Stylesheet — High-Fidelity Scorecard & Report Output
   ========================================================================== */
@media print {
  *, *::before, *::after {
    background-color: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #ffffff !important;
    color: #17171c !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  .topbar,
  .btn,
  .btn-row,
  .flash,
  .search-toolbar,
  .filter-chips,
  .pager,
  .countdown-badge,
  .modal-dialog,
  details summary,
  form,
  .no-print {
    display: none !important;
  }

  .wrap {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .page-head {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #0f172a !important;
  }

  .page-head h1 {
    font-size: 20pt !important;
    color: #0f172a !important;
  }

  .grid {
    display: block !important;
  }

  .card {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    margin-bottom: 16px !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .card-head {
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 10px 14px !important;
    background: #f8fafc !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .card-body {
    padding: 12px 14px !important;
  }

  .score-hero-box {
    background: #0f172a !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .score-hero-box * {
    color: #ffffff !important;
  }

  .score-hero-val {
    font-size: 32pt !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 9.5pt !important;
  }

  th, td {
    border: 1px solid #e2e8f0 !important;
    padding: 6px 10px !important;
  }

  th {
    background: #f1f5f9 !important;
    font-weight: 700 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .pill {
    border: 1px solid #94a3b8 !important;
    padding: 2px 6px !important;
    font-size: 8.5pt !important;
  }

  .bar {
    border: 1px solid #94a3b8 !important;
    height: 6px !important;
  }

  .bar > span {
    background: #0f172a !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

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


