/* ==============================================================================
   AdmissionShala Central Lead Platform - Classy White Animated Design System
   ============================================================================== */

:root {
  /* Classy White Luxury Palette */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Deep Luxury Slate / Obsidian Inks */
  --ink-primary: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;

  /* Crisp Hairline Borders */
  --line-subtle: #e2e8f0;
  --line-glass: rgba(226, 232, 240, 0.85);
  --line-focus: rgba(2, 132, 199, 0.45);

  /* Jewel Tone Accents */
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-gold: #f59e0b;
  --accent-gold-deep: #d97706;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;

  /* Legacy variable mappings for complete backward compatibility */
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --orange: #f59e0b;
  --orange-deep: #d97706;
  --paper: #f8fafc;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --success: #059669;
  --danger: #e11d48;

  /* Multi-depth Classy Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.08), 0 8px 16px -3px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 6px 12px -2px rgba(15, 23, 42, 0.05);

  /* Radius Tokens */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Animation Easings */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-primary);
  background-color: var(--bg-page);
  font-family: "Plus Jakarta Sans", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==============================================================================
   Ambient Animated Background Mesh & Floating Glows
   ============================================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  will-change: transform;
}

.ambient-glow-1 {
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  top: 360px;
  left: -140px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(251, 191, 36, 0.06) 50%, transparent 70%);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 60px) scale(1.12); }
  100% { transform: translate(30px, 110px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -50px) scale(1.08); }
  100% { transform: translate(-30px, 70px) scale(0.92); }
}

/* ==============================================================================
   Layout & Top Navigation Bar (Classy Frosted White)
   ============================================================================== */
.shell {
  max-width: 1360px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-glass);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.25s var(--ease-smooth);
  animation: slideDownFade 0.6s var(--ease-spring);
}

.brand {
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  transition: transform 0.2s var(--ease-spring);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 40px;
  padding: 5px 14px;
  background: #0f172a;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
  transition: all 0.25s var(--ease-spring);
}

.brand-logo-wrap:hover {
  background: #1e293b;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

.brand-logo {
  display: block;
  max-width: 140px;
  max-height: 32px;
  object-fit: contain;
}

.brand-fallback {
  color: #ffffff;
  font: 700 17px/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.brand-context {
  padding-left: 14px;
  border-left: 1.5px solid var(--line-subtle);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.topnav a {
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease-smooth);
}

.topnav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
  transition: width 0.25s var(--ease-spring);
}

.topnav a:hover {
  color: var(--accent-blue);
}

.topnav a:hover::after {
  width: 100%;
}

.nav-guide-link {
  color: var(--accent-blue) !important;
  font-weight: 700 !important;
  background: #f0f9ff;
  padding: 7px 14px !important;
  border-radius: var(--radius-sm);
  border: 1px solid #bae6fd;
  transition: all 0.2s var(--ease-spring) !important;
}

.nav-guide-link:hover {
  background: var(--accent-blue) !important;
  color: #ffffff !important;
  border-color: var(--accent-blue) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.nav-guide-link::after {
  display: none !important;
}

.nav-back-btn {
  color: var(--accent-blue) !important;
  font-weight: 700 !important;
}

/* Pulsing Live Beacon Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.08);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: liveRingPulse 2s infinite ease-out;
}

@keyframes liveRingPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==============================================================================
   Hero Section (Classy White Canvas & Fluid Typography)
   ============================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 56px clamp(20px, 6vw, 72px) 46px;
  color: var(--ink-primary);
  background: linear-gradient(180deg, #ffffff 0%, rgba(248, 250, 252, 0.8) 100%);
  border-bottom: 1px solid var(--line-subtle);
  animation: heroFadeUp 0.7s var(--ease-spring);
}

.compact-hero {
  min-height: 220px;
  padding: 44px clamp(20px, 6vw, 72px) 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
}

.hero h1 {
  max-width: 800px;
  margin: 10px 0 14px;
  font-family: "Outfit", "Space Grotesk", sans-serif;
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
}

.hero h1 span {
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 60%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 450;
}

/* ==============================================================================
   Workspace Grid & Floating Cards
   ============================================================================== */
.workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1320px;
  margin: -24px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  animation: enterUp 0.8s var(--ease-spring);
}

.settings-panel,
.main-panel {
  background: var(--bg-surface);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.settings-panel:hover,
.main-panel:hover {
  box-shadow: var(--shadow-lg);
}

/* Settings Aside Panel */
.settings-panel {
  padding: 26px 22px;
  position: sticky;
  top: 92px;
}

.panel-label {
  color: var(--ink-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-panel label {
  display: block;
  margin-top: 22px;
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 700;
}

.settings-panel label span {
  display: block;
  margin: 4px 0 8px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 400;
}

.settings-panel input,
.settings-panel select {
  width: 100%;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink-primary);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease-smooth);
}

.settings-panel input:hover,
.settings-panel select:hover {
  border-color: #cbd5e1;
}

.settings-panel input:focus,
.settings-panel select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

.settings-note {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
}

.shield {
  color: var(--accent-gold-deep);
  font-weight: 800;
  font-size: 14px;
}

.settings-save {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.settings-save .button {
  width: 100%;
  justify-content: center;
}

.settings-save span {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

/* College Picker Checkboxes */
.college-picker {
  margin-top: 20px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  max-height: 240px;
  overflow-y: auto;
}

.picker-title {
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-top: 8px !important;
  font-weight: 500 !important;
  font-size: 12px;
  color: var(--ink-secondary);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.check-row:hover {
  background: #ffffff;
}

.check-row input {
  width: auto !important;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

/* ==============================================================================
   Main Panel & Workflow Cards
   ============================================================================== */
.main-panel {
  min-height: 380px;
  padding: 26px;
  background: #ffffff;
}

.workflow-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease-spring);
  position: relative;
}

.workflow-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.workflow-card:not([hidden]),
.progress-card:not([hidden]),
.section-heading:not([hidden]),
.table-wrap:not([hidden]) {
  animation: enterUp 0.35s var(--ease-spring);
}

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

.card-title-row h3 {
  margin: 3px 0 0;
  font: 700 16px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.step-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip-screen {
  background: #f0f9ff;
  color: var(--accent-blue);
  border: 1px solid #bae6fd;
}

.chip-bg {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* Quick Pick Row & Active Badge */
.quick-pick-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.quick-pick-row select {
  min-width: 280px;
  padding: 11px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  border: 1.5px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: all 0.2s var(--ease-smooth);
}

.quick-pick-row select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.active-college-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  box-shadow: var(--shadow-xs);
  animation: fadeInScale 0.3s var(--ease-spring);
}

.active-college-badge .badge-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.badge-tag {
  font-size: 10px;
  padding: 2px 7px;
  background: #e2e8f0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* ==============================================================================
   Dropzone (Classy White with Levitating Icon & Glow)
   ============================================================================== */
.dropzone {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
  padding: 34px 24px;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.dropzone:hover {
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 12px 30px -6px rgba(2, 132, 199, 0.08);
}

.dropzone.dragging {
  border-color: var(--accent-blue);
  background: #f0f9ff;
  transform: scale(1.01);
  box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.15);
}

/* Levitating Upload Cloud Icon */
.upload-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 8px 20px -2px rgba(15, 23, 42, 0.25);
  animation: floatIcon 3.6s ease-in-out infinite;
  transition: transform 0.25s var(--ease-spring);
}

.dropzone:hover .upload-icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 10px 24px -2px rgba(2, 132, 199, 0.35);
}

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

.dropzone h2,
.section-heading h2,
.progress-card h2 {
  margin: 0;
  font: 700 22px "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.dropzone p {
  margin: 8px 0 20px;
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 520px;
}

.dropzone-format-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  width: 100%;
}

.format-summary-text {
  color: var(--ink-muted);
}

.format-summary-text strong {
  color: var(--ink-primary);
}

.dropzone-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.drop-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s var(--ease-spring);
}

.drop-link:hover {
  background: #f8fafc;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.drop-link.highlight {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
  font-weight: 700;
}

.drop-link.highlight:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

/* ==============================================================================
   Classy Interactive Buttons
   ============================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.button.primary:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.26);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--ink-primary);
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-xs);
}

.button.secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.button.danger {
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.button.danger:hover {
  background: #be123c;
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-sm {
  padding: 8px 14px !important;
  font-size: 12px !important;
  gap: 6px !important;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1;
}

.button.danger-outline {
  color: #e11d48;
  background: #ffffff;
  border: 1px solid #fecdd3;
  box-shadow: var(--shadow-xs);
}

.button.danger-outline:hover {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-disabled-soft {
  background: #f8fafc !important;
  color: var(--ink-muted) !important;
  border: 1px dashed var(--line-subtle) !important;
  cursor: default !important;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
  font-weight: 600 !important;
}

/* ==============================================================================
   Notifications & Alerts
   ============================================================================== */
.notice {
  margin-bottom: 20px;
  padding: 14px 18px;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shakeNotice 0.4s var(--ease-spring);
}

@keyframes shakeNotice {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ==============================================================================
   Section Headings & Tables
   ============================================================================== */
.section-heading,
.progress-top,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading {
  gap: 15px;
  padding: 8px 2px 18px;
}

.lead-count strong {
  display: block;
  color: var(--accent-blue);
  font: 700 32px "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.lead-count span,
.progress-stats {
  color: var(--ink-muted);
  font-size: 12px;
}

.table-wrap {
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

th {
  color: var(--ink-secondary);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-subtle);
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #f8fafc;
}

td {
  color: var(--ink-secondary);
}

/* ==============================================================================
   Animated Progress Cards & Gleaming Shimmer Bar
   ============================================================================== */
/* ==============================================================================
   Step 7: Animated CRM Progress & Live Pipelines
   ============================================================================== */
.progress-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

/* Enterprise Live Background Notification Banner */
.bg-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  animation: fadeInScale 0.3s var(--ease-spring);
}

.bg-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.bg-pulse-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: radarPulse 1.8s infinite;
  flex-shrink: 0;
}

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

.bg-banner-icon {
  font-size: 15px;
  line-height: 1;
}

.bg-banner-text {
  font-size: 12px;
  line-height: 1.45;
  color: #065f46;
}

.bg-banner-text strong {
  color: #047857;
  font-weight: 700;
  margin-right: 6px;
}

.bg-banner-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #dcfce7;
  color: #15803d;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 1px solid #86efac;
}

.progress-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.progress-top h2 {
  margin: 3px 0 0;
  font: 700 22px/1.25 "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.progress-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: var(--ink-secondary);
  border: 1px solid var(--line-subtle);
  transition: all 0.25s ease;
  white-space: nowrap;
}

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

.progress-status-badge.status-running {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
}
.progress-status-badge.status-running .status-pulse-dot {
  animation: radarPulse 1.4s infinite;
}

.progress-status-badge.status-completed {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.progress-status-badge.status-paused {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

.progress-status-badge.status-stopped {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

.progress-status-badge.status-queued {
  background: #f8fafc;
  color: var(--ink-muted);
  border-color: var(--line-subtle);
}

.progress-bar-container {
  margin-bottom: 18px;
}

.progress-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-bar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.progress-percent {
  font: 700 16px "Space Grotesk", sans-serif;
  color: var(--accent-blue);
}

.progress-track {
  height: 12px;
  margin-top: 0;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-full);
  position: relative;
}

.mini-track {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: var(--radius-full);
}

.progress-bar,
.mini-track div {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #0284c7 100%);
  background-size: 200% 100%;
  border-radius: inherit;
  transition: width 0.35s ease;
  animation: shimmerFlow 2.2s linear infinite;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
}

@keyframes shimmerFlow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Dispatch Stats Grid */
.progress-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.pstat-item {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.pstat-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-xs);
}

.pstat-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.pstat-val {
  font: 700 20px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
  line-height: 1.1;
}

.pstat-item.is-success .pstat-val {
  color: #059669;
}

.pstat-item.is-danger .pstat-val {
  color: #e11d48;
}

.progress-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 12px;
}

.pmeta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-secondary);
}

.pmeta-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.pmeta-lbl {
  color: var(--ink-muted);
}

.pmeta-val {
  color: var(--ink-primary);
}

/* Live Pipelines Section */
.college-progress-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-subtle);
}

.college-progress-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cp-title-icon {
  font-size: 15px;
}

.college-progress-header h4 {
  margin: 0;
  font: 700 13px "Space Grotesk", sans-serif;
  color: var(--ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.college-progress {
  display: grid;
  gap: 12px;
}

.college-progress-card {
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s var(--ease-spring);
}

.college-progress-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.cprog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.cprog-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  display: block;
  margin-bottom: 4px;
}

.cprog-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.count-pill.success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.count-pill.failed {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.count-pill.neutral {
  background: #f1f5f9;
  color: var(--ink-muted);
  border: 1px solid var(--line-subtle);
}

.cprog-status-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cprog-pct {
  font: 700 14px "Space Grotesk", sans-serif;
  color: var(--accent-blue);
}

.college-status-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.college-status-pill.status-completed {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.college-status-pill.status-running {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.college-status-pill.status-paused {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.college-status-pill.status-stopped {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

/* ==============================================================================
   Steps 8 & 9: Results Report & Retry Section
   ============================================================================== */
.results-card {
  padding: 28px;
  border-top: 3px solid #059669;
  margin-bottom: 24px;
}

.results-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.results-header-row h2 {
  margin: 4px 0 6px;
  font: 700 24px/1.2 "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.results-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  max-width: 620px;
  line-height: 1.45;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.retry-highlight {
  border-color: #fde68a !important;
  color: #b45309 !important;
  background: #fffbeb !important;
}

.retry-highlight:hover:not(:disabled) {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}

/* 6-Card High-Contrast KPI Summary Grid */
.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.summary-kpi-card {
  padding: 16px 14px;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all 0.22s var(--ease-spring);
  position: relative;
}

.summary-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

.summary-kpi-card.kpi-total { border-top: 3px solid #0f172a; }
.summary-kpi-card.kpi-sent { border-top: 3px solid #0284c7; }
.summary-kpi-card.kpi-duplicates { border-top: 3px solid #d97706; }
.summary-kpi-card.kpi-success { border-top: 3px solid #059669; }
.summary-kpi-card.kpi-failed { border-top: 3px solid #e11d48; }
.summary-kpi-card.kpi-status { border-top: 3px solid #6366f1; }

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

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

.kpi-svg {
  display: block;
}

.kpi-total .kpi-svg { color: #0f172a; }
.kpi-sent .kpi-svg { color: #0284c7; }
.kpi-duplicates .kpi-svg { color: #d97706; }
.kpi-success .kpi-svg { color: #059669; }
.kpi-failed .kpi-svg { color: #e11d48; }
.kpi-status .kpi-svg { color: #6366f1; }

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.btn-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.inst-icon,
.inst-header-icon,
.cp-title-icon,
.bg-banner-icon,
.saving-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-badge-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.kpi-value {
  font: 700 28px/1 "Space Grotesk", sans-serif;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.kpi-desc {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.35;
  margin-top: auto;
}

.kpi-success .kpi-value { color: #059669; }
.kpi-failed .kpi-value { color: #e11d48; }
.kpi-status .kpi-value { font-size: 18px; color: #4338ca; }

/* Institution Breakdown Cards */
.college-results-container {
  margin-top: 10px;
}

.college-results-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-subtle);
}

.inst-header-icon {
  font-size: 16px;
}

.college-results-title h3 {
  margin: 0;
  font: 700 15px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.college-results-list {
  display: grid;
  gap: 12px;
}

.college-result-card {
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s var(--ease-spring);
}

.college-result-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-xs);
}

.college-result-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.college-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inst-icon {
  font-size: 16px;
}

.college-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
}

.college-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.college-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ==============================================================================
   Flowchart Metrics Grid (Step 5)
   ============================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 22px;
}

.metric-box {
  padding: 18px;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease-spring);
}

.metric-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ready-box {
  border-top: 3px solid #059669;
}

.error-box {
  border-top: 3px solid #e11d48;
}

.duplicate-box {
  border-top: 3px solid #d97706;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metric-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.pill-ready { color: #065f46; background: #ecfdf5; }
.pill-errors { color: #9f1239; background: #fff1f2; }
.pill-duplicates { color: #92400e; background: #fef3c7; }

.metric-num {
  font: 700 32px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.metric-desc {
  margin: 0;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Checking & Saving Spinners */
.checking-card {
  border-left: 3px solid var(--accent-gold);
}

.checking-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.checking-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #fde68a;
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-secondary);
}

.check-mark {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.saving-card {
  border-left: 3px solid var(--accent-blue);
}

.saving-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
}

.saving-bar {
  height: 100%;
  width: 60%;
  background: var(--accent-blue);
  border-radius: inherit;
  animation: indet 1.2s infinite ease-in-out;
}

@keyframes indet {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ==============================================================================
   9-Step Stepper (Clean Glass Flowchart)
   ============================================================================== */
.flow-stepper-wrap {
  max-width: 1320px;
  margin: -24px auto 28px;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

.flow-stepper-header {
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.flow-title {
  margin: 2px 0 0;
  font: 700 18px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.flow-subtitle {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  box-shadow: var(--shadow-md);
}

.flow-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  transition: all 0.25s var(--ease-spring);
}

.flow-step-item.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
  background: #f0f9ff;
  transform: translateY(-2px);
}

.flow-step-item.completed {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.flow-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  transition: 0.2s;
}

.step-screen .flow-step-badge {
  background: #0f172a;
  color: #ffffff;
}

.step-bg .flow-step-badge {
  background: #059669;
  color: #ffffff;
}

.flow-step-item.active .flow-step-badge {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
  background: var(--accent-blue);
}

.flow-step-text strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.2;
}

.flow-step-text span {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* ==============================================================================
   History Section & Footers
   ============================================================================== */
.history-section {
  max-width: 1272px;
  margin: 60px auto 0;
  padding: 0 24px;
}

footer {
  max-width: 1272px;
  margin: 60px auto 0;
  padding: 24px 28px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-subtle);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==============================================================================
   Separate Guide Page Styles (Classy White Documentation)
   ============================================================================== */
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 56px clamp(24px, 8vw, 96px);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--ink-primary);
  border-bottom: 1px solid var(--line-subtle);
}

.guide-hero h1 {
  font: 800 clamp(36px, 5vw, 56px)/1.08 "Outfit", "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  margin: 10px 0 14px;
}

.guide-hero h1 span {
  color: var(--accent-blue);
}

.guide-hero p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0 0 24px;
}

.guide-actions-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button.outline {
  background: #ffffff;
  color: var(--ink-primary);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-xs);
}

.button.outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: #f8fafc;
}

.guide-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.guide-section {
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}

.guide-section:hover {
  box-shadow: var(--shadow-md);
}

.section-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.guide-section h2 {
  font: 700 clamp(22px, 3vw, 28px) "Space Grotesk", sans-serif;
  color: var(--ink-primary);
  margin: 0 0 10px;
}

/* Template Download Hero Card in Guide */
.template-hero-card {
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: var(--shadow-xs);
}

.template-hero-info strong {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.template-hero-info .columns-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.column-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  box-shadow: var(--shadow-xs);
}

.column-pill.req {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0369a1;
}

.template-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-template-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: #ffffff;
  color: var(--ink-primary);
  border: 1.5px solid var(--line-subtle);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s var(--ease-spring);
}

.btn-template-dl:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-template-dl.primary-dl {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-color: transparent;
}

.btn-template-dl.primary-dl:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.format-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.format-card {
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s var(--ease-spring);
  box-shadow: var(--shadow-xs);
}

.format-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.format-card h3 {
  margin: 4px 0 6px;
  font: 700 17px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.integration-item {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s var(--ease-spring);
}

.integration-item:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.integration-item h3 {
  margin: 0 0 4px;
  font: 700 16px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.int-crm-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.integration-item p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* ==============================================================================
   Keyframe Entrance Animations
   ============================================================================== */
@keyframes slideDownFade {
  0% { transform: translateY(-16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes heroFadeUp {
  0% { transform: translateY(18px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes enterUp {
  0% { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInScale {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==============================================================================
   Responsive Styles
   ============================================================================== */
@media (max-width: 860px) {
  .workspace {
    grid-template-columns: 1fr;
    margin-top: -16px;
    padding: 0 16px;
  }
  .settings-panel {
    position: static;
    order: 2;
  }
  .flow-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .progress-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .result-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .results-header-row,
  .progress-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .college-result-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .college-result-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 16px;
  }
  .brand-context, .topnav a:not(.nav-guide-link) {
    display: none;
  }
  .hero {
    padding: 36px 18px 30px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .main-panel {
    padding: 16px;
  }
  .progress-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .job-actions {
    flex-wrap: wrap;
  }
  .job-actions .button {
    flex: 1;
    min-width: 110px;
    justify-content: center;
  }
}

/* ==============================================================================
   Admin Navigation Controls & Session Badge
   ============================================================================== */
.admin-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.admin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.45);
  display: inline-block;
}

.admin-label {
  color: var(--ink-muted);
  font-weight: 500;
}

.admin-profile-pill strong {
  color: var(--ink-primary);
  font-weight: 700;
}

.nav-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s var(--ease-spring);
  white-space: nowrap;
}

.nav-logout-btn:hover {
  color: var(--accent-rose);
  background: #fff1f2;
  border-color: #fecdd3;
  transform: translateY(-1px);
}

/* ==============================================================================
   Admin Sign-In Portal (Secure Login Page)
   ============================================================================== */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-page);
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
  margin: auto;
  animation: fadeIn 0.4s var(--ease-spring);
}

.login-card-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.login-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.login-brand-context {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-card {
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}

.login-card:hover {
  box-shadow: var(--shadow-hover);
}

.security-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(2, 132, 199, 0.2);
  margin-bottom: 12px;
}

.login-card-header h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  font-family: "Space Grotesk", sans-serif;
}

.login-card-header p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0 0 22px 0;
}

/* Global Hidden attribute support ensuring elements are never shown when marked hidden */
[hidden],
[hidden="true"] {
  display: none !important;
}

/* Suppress Microsoft Edge and IE native password reveal icons to prevent double eye icons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.login-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(153, 27, 27, 0.06);
}

.login-alert[hidden],
.login-alert.is-hidden {
  display: none !important;
}

.login-alert.is-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.06);
}

.login-alert.shake {
  animation: alertShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes alertShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

.login-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  text-align: left;
}

.login-field-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: 0.01em;
}

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

.field-icon {
  position: absolute;
  left: 14px;
  color: var(--ink-faint);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border: 1.5px solid var(--line-subtle);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink-primary);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-with-icon input:focus {
  border-color: var(--accent-blue);
  outline: none;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15);
}

.toggle-pwd-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
  z-index: 5;
}

.toggle-pwd-btn:hover {
  color: var(--ink-primary);
  background: var(--bg-subtle);
}

.toggle-pwd-btn svg {
  display: block;
  pointer-events: none;
}

.toggle-pwd-btn svg[hidden],
.toggle-pwd-btn svg.is-hidden {
  display: none !important;
}


.login-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.remember-row input[type="checkbox"] {
  accent-color: var(--accent-blue);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.compliance-note {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-submit-btn {
  width: 100%;
  height: 46px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease-spring);
}

.login-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.login-footer-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
}

.login-copyright {
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.45;
}

/* Auth Mode Tabs */
.auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  gap: 4px;
  border: 1px solid var(--line-subtle);
}

.auth-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn:hover {
  color: var(--ink-primary);
}

.auth-tab-btn.is-active {
  background: #ffffff;
  color: var(--accent-blue);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  font-weight: 700;
}

.auth-tab-btn svg {
  flex-shrink: 0;
}

.auth-notice-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-notice-card.info {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: var(--ink-secondary);
}

.auth-notice-card svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.login-alert.is-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.08);
}

/* Sub-Admin Scope Banner in Dashboard */
.subadmin-scope-banner {
  background: #ffffff;
  border: 1px solid #e0e7ff;
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subadmin-scope-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.subadmin-scope-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 14px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.scope-role-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: var(--accent-blue);
  border: 1px solid #bfdbfe;
}

.subadmin-scope-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.scope-tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.scope-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
}

/* Sub-Admins Management Section (Main Admin View) */
.subadmins-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-subtle);
}

.subadmins-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 18px 0 24px 0;
}

.subadmin-stat-card {
  background: #ffffff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subadmin-stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.subadmin-stat-value {
  font: 700 24px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
  line-height: 1.1;
}

.subadmin-stat-card.is-pending .subadmin-stat-value {
  color: #d97706;
}

.subadmin-stat-card.is-approved .subadmin-stat-value {
  color: #059669;
}

/* Sub-Admin Status Badges */
.subadmin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subadmin-status-badge.status-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.subadmin-status-badge.status-approved {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.subadmin-status-badge.status-rejected {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.action-buttons-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subadmin-action-btn {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-subtle);
  background: #ffffff;
  color: var(--ink-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.subadmin-action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.subadmin-action-btn.btn-approve {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.subadmin-action-btn.btn-approve:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.subadmin-action-btn.btn-reject {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.subadmin-action-btn.btn-reject:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.subadmin-action-btn.btn-delete {
  color: #991b1b;
}

.subadmin-action-btn.btn-delete:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line-subtle);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-header h3 {
  margin: 0;
  font: 700 18px "Space Grotesk", sans-serif;
  color: var(--ink-primary);
}

.modal-header p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #f1f5f9;
  color: var(--ink-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.modal-form-group select,
.modal-form-group input[type="text"] {
  padding: 10px 14px;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: #ffffff;
  color: var(--ink-primary);
}

.modal-section-box {
  background: #f8fafc;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.modal-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-section-title h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-quick-links {
  display: inline-flex;
  gap: 8px;
}

.quick-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  cursor: pointer;
  text-decoration: underline;
}

.quick-link-btn:hover {
  color: var(--accent-blue-hover);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #fafafa;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.modal-dialog-sm {
  max-width: 480px;
}

.modal-form-row {
  display: flex;
  gap: 14px;
}

.modal-form-group input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: #ffffff;
  color: var(--ink-primary);
}

.modal-field-hint {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.modal-badge-info {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.subadmin-action-btn.btn-credentials {
  color: var(--accent-blue);
  background: rgba(2, 132, 199, 0.06);
  border-color: rgba(2, 132, 199, 0.2);
}

.subadmin-action-btn.btn-credentials:hover {
  background: rgba(2, 132, 199, 0.12);
  border-color: var(--accent-blue);
}

/* Duplicate Warning & Redispatch Controls */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
}

.alert-warning svg {
  flex-shrink: 0;
  color: #d97706;
  margin-top: 2px;
}

.alert-warning strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
  color: #78350f;
}

.alert-warning p {
  margin: 0;
}

.dispatch-options-row {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
}

.redispatch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  user-select: none;
}

.redispatch-toggle input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

