/* ===================================
   Layla HR × Semicon Today Dashboard
   Design System — White Base Theme
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Primary Colors */
  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-primary-lighter: #dbeafe;
  --color-primary-dark: #1d4ed8;
  --color-primary-gradient: linear-gradient(135deg, #2563eb, #7c3aed);

  /* Semantic Colors */
  --color-success: #16a34a;
  --color-success-light: #dcfce7;
  --color-success-bg: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-light: #fef3c7;
  --color-warning-bg: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-light: #fee2e2;
  --color-danger-bg: #fef2f2;
  --color-info: #0891b2;
  --color-info-light: #cffafe;

  /* Neutrals */
  --color-white: #ffffff;
  --color-bg: #f8fafc;
  --color-bg-card: #ffffff;
  --color-bg-sidebar: #ffffff;
  --color-bg-hover: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-text-on-primary: #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

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

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-width: 260px;
  --header-height: 64px;
}

/* --- Dark Theme Override --- */
[data-theme="dark"] {
  --color-bg: #0f1117;
  --color-bg-card: #1a1d27;
  --color-bg-sidebar: #141620;
  --color-bg-hover: #1e2230;
  --color-border: #2a2e3d;
  --color-border-light: #1e2230;
  --color-text-primary: #e8eaf0;
  --color-text-secondary: #9ca3b4;
  --color-text-tertiary: #5f6783;
  --color-text-on-primary: #ffffff;
  --color-white: #1a1d27;

  --color-success-bg: #0a2016;
  --color-success-light: #14532d;
  --color-warning-bg: #1a1408;
  --color-warning-light: #422006;
  --color-danger-bg: #1f0a0a;
  --color-danger-light: #450a0a;
  --color-info-light: #0a2730;

  --color-primary-lighter: rgba(37, 99, 235, 0.12);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .sidebar {
  border-right-color: var(--color-border);
}
[data-theme="dark"] .main-header {
  background: var(--color-bg-sidebar);
  border-bottom-color: var(--color-border);
}
[data-theme="dark"] .card {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}
[data-theme="dark"] .login-container {
  background: var(--color-bg-card);
}
[data-theme="dark"] .login-input-wrap {
  background: var(--color-bg);
  border-color: var(--color-border);
}
[data-theme="dark"] .login-input-wrap input {
  color: var(--color-text-primary);
}
[data-theme="dark"] .login-demo-btn {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}
[data-theme="dark"] .role-card {
  border-color: var(--color-border);
}
[data-theme="dark"] .modal-box {
  background: var(--color-bg-card);
}
[data-theme="dark"] .search-box {
  background: var(--color-bg-card);
}
[data-theme="dark"] .notification-dropdown {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}
[data-theme="dark"] .toggle-btn {
  color: var(--color-text-secondary);
}
[data-theme="dark"] .toggle-btn.active {
  background: var(--color-primary);
  color: white;
}
/* Dark mode theme toggle button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  background: var(--color-primary-lighter);
}
.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
}
/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: 1.6;
  max-width: 100vw;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-primary-dark);
}

/* --- Inline SVG Icons --- */
.icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-inline svg {
  width: 16px;
  height: 16px;
}
.icon-inline.sm svg {
  width: 13px;
  height: 13px;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-tertiary);
}
.nav-item.active .nav-icon {
  color: var(--color-primary);
}
.nav-icon svg {
  width: 18px;
  height: 18px;
}
.btn .icon-inline svg {
  width: 14px;
  height: 14px;
}
.card-title .icon-inline svg {
  width: 18px;
  height: 18px;
}
.card-action .icon-inline svg {
  width: 13px;
  height: 13px;
}
.job-card-meta-item .icon-inline svg {
  width: 14px;
  height: 14px;
}
.kpi-icon svg {
  width: 24px;
  height: 24px;
}
.app-status-icon svg {
  width: 22px;
  height: 22px;
}
.alert-banner-icon svg {
  width: 20px;
  height: 20px;
}
.job-card-logo svg {
  width: 24px;
  height: 24px;
}
.toggle-btn svg {
  flex-shrink: 0;
}

/* --- Layout --- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-bg-sidebar);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-base);
}

.sidebar-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
}

.sidebar-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.sidebar-logo-sub {
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Dashboard type toggle */
.dashboard-toggle {
  display: flex;
  margin: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-full);
  padding: 3px;
  position: relative;
}

.toggle-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.toggle-btn.active {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  box-shadow: var(--shadow-sm);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: var(--space-md) var(--space-sm);
  overflow-y: auto;
}

.nav-section-label {
  padding: var(--space-sm) var(--space-md);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  margin: 2px var(--space-xs);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  width: calc(100% - var(--space-sm));
  text-align: left;
}

.nav-item:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.nav-item.active {
  background: var(--color-primary-lighter);
  color: var(--color-primary);
  font-weight: 600;
}

.nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: var(--color-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  max-width: 100%;
}

/* Header */
.main-header {
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: var(--space-xs);
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.header-subtitle {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-left: var(--space-sm);
  font-weight: 400;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-icon-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.header-icon-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.header-icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--color-danger);
  border-radius: 50%;
  border: 2px solid var(--color-white);
}

/* Page Content */
.page-content {
  padding: var(--space-xl);
  max-width: 1400px;
  overflow-x: clip;
  width: 100%;
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

/* --- Card Component --- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.card-action {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}
.card-action:hover { color: var(--color-primary-dark); }

/* --- KPI Card --- */
.kpi-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--kpi-accent, var(--color-primary));
}

.kpi-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-md);
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-xs);
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.kpi-change {
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.kpi-change.positive {
  color: var(--color-success);
  background: var(--color-success-light);
}
.kpi-change.negative {
  color: var(--color-danger);
  background: var(--color-danger-light);
}
.kpi-change.neutral {
  color: var(--color-text-tertiary);
  background: var(--color-bg);
}

/* --- Match Score Gauge --- */
.match-score-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.score-circle {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.score-circle svg {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.score-circle .circle-bg {
  fill: none;
  stroke: var(--color-border-light);
  stroke-width: 5;
}

.score-circle .circle-progress {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-slow);
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
}

/* --- Profile / Matching --- */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
}
.profile-section-full {
  grid-column: span 2;
}

.match-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

/* --- Job Card --- */
.job-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  cursor: pointer;
}

.job-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.job-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.job-card-company {
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-weight: 500;
}

.job-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 2px;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.job-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-card-match {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.match-bar {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border-light);
  overflow: hidden;
}

.match-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.match-label {
  font-size: 13px;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

.match-reason {
  font-size: 12px;
  color: var(--color-primary);
  font-style: italic;
  padding: var(--space-xs) 0;
}

.job-card-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  background: var(--color-primary-lighter);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
}

/* --- Progress Bar --- */
.progress-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border-light);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  transition: width var(--transition-slow);
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.data-table td {
  padding: var(--space-md);
  font-size: 13px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--color-bg-hover);
}

/* --- Status Badge --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.status-badge.active,
.status-badge.accepted {
  background: var(--color-success-light);
  color: var(--color-success);
}

.status-badge.pending,
.status-badge.reviewing {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.status-badge.declined,
.status-badge.closed {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.status-badge.interviewing {
  background: var(--color-primary-lighter);
  color: var(--color-primary);
}

/* --- Skill Tag --- */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.skill-tag.match {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-light);
}

/* --- Alert Banner --- */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: var(--space-lg);
}

.alert-banner.warning {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-light);
  color: var(--color-warning);
}

.alert-banner.danger {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-light);
  color: var(--color-danger);
}

.alert-banner.info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: var(--color-info);
}

.alert-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-banner-content {
  flex: 1;
}

.alert-banner-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* --- Pipeline Funnel --- */
.pipeline-container {
  padding: var(--space-md) 0;
}

.pipeline-stages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pipeline-stage {
  flex: 1;
  text-align: center;
}

.pipeline-stage-label {
  font-size: 11px;
  color: var(--color-text-tertiary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.pipeline-stage-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.pipeline-stage-bar {
  height: 10px;
  border-radius: var(--radius-full);
  margin-top: var(--space-sm);
  transition: width var(--transition-slow);
}

.pipeline-arrow {
  font-size: 16px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  margin-top: 20px;
}

/* --- Section Header --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* --- Application Status List --- */
.app-status-list {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-md) 0;
}

.app-status-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.app-status-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.app-status-count {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* --- Article Link --- */
.article-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.article-link:hover {
  color: var(--color-primary);
}

.article-link-icon {
  font-size: 16px;
}

.article-link-arrow {
  margin-left: auto;
  color: var(--color-text-tertiary);
}

/* --- Chart Container --- */
.chart-container {
  position: relative;
  width: 100%;
  padding: var(--space-md) 0;
}

.chart-container canvas {
  width: 100% !important;
}

/* --- Profile Completion --- */
.profile-completion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.profile-completion-percent {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
}

.profile-completion-text {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* --- Greeting Banner --- */
.greeting-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-primary-gradient);
  border-radius: var(--radius-xl);
  color: white;
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.greeting-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.greeting-banner::before {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -80px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.greeting-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.greeting-text p {
  font-size: 14px;
  opacity: 0.85;
}

.greeting-notification {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

/* --- Candidate Score Bar --- */
.score-bar-inline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.score-bar-track {
  width: 80px;
  height: 6px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.score-bar-label {
  font-size: 12px;
  font-weight: 600;
  min-width: 30px;
}

/* --- Skill Dots --- */
.skill-dots {
  display: flex;
  gap: 3px;
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.skill-dot.filled {
  background: var(--color-primary);
}

.skill-dot.empty {
  background: var(--color-border);
}

/* --- Period Selector --- */
.period-selector {
  display: flex;
  gap: 2px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 2px;
  position: relative;
  z-index: 1;
}

.period-btn {
  padding: 5px 12px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.period-btn.active {
  background: var(--color-white);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-xs);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-in {
  animation: fadeInUp 0.4s ease-out both;
}

.animate-in:nth-child(1) { animation-delay: 0ms; }
.animate-in:nth-child(2) { animation-delay: 80ms; }
.animate-in:nth-child(3) { animation-delay: 160ms; }
.animate-in:nth-child(4) { animation-delay: 240ms; }
.animate-in:nth-child(5) { animation-delay: 320ms; }
.animate-in:nth-child(6) { animation-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* --- Overlay for mobile --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 90;
}

.sidebar-overlay.visible {
  display: block;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.visible {
    display: block;
  }
  .main-content {
    margin-left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-span-6,
  .col-span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 767px) {
  /* === ROOT CAUSE FIX: prevent ALL horizontal overflow === */
  html, body {
    max-width: 100vw !important;
  }
  .main-content {
    max-width: 100vw !important;
  }
  .page-content {
    padding: var(--space-md);
    max-width: 100% !important;
    width: 100% !important;
  }

  /* All cards: prevent overflow */
  .card,
  .agent-msg,
  .job-card {
    overflow: hidden !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* All divs with inline grid that use 'span 2': force span 1 */
  [style*="grid-column: span 2"],
  [style*="grid-column:span 2"] {
    grid-column: span 1 !important;
  }

  /* Profile info rows: wrap long text */
  [style*="display:flex;justify-content:space-between"] {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  /* Transfer intent radio group */
  .intent-radio-group {
    flex-wrap: wrap !important;
  }
  .intent-radio {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  /* Disable negative margins that cause overflow */
  [style*="margin:0 -16px"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  [style*="margin: 0 -14px"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Fix calc(100% + N) patterns */
  [style*="width:calc(100%"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* WP Job items: prevent overflow */
  .wp-job-item {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* All grid containers: prevent overflow */
  #home-wp-jobs-list,
  #home-favorites-list,
  #home-articles-list {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .col-span-2, .col-span-3, .col-span-4, .col-span-6, .col-span-8 {
    grid-column: span 1;
  }
  .greeting-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  .pipeline-stages {
    flex-direction: column;
    align-items: stretch;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
  .app-status-list {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  .job-card-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .header-subtitle {
    display: none;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.hidden { display: none !important; }

/* ===========================================
   Phase 3: Interactive Components
   =========================================== */

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
}

.modal-overlay.visible {
  display: flex;
}

.modal-box {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalSlideUp 0.3s ease-out;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-sm { width: 480px; max-width: 95vw; }
.modal-md { width: 640px; max-width: 95vw; }
.modal-lg { width: 800px; max-width: 95vw; }
.modal-xl { width: 1000px; max-width: 95vw; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  transition: all var(--transition-fast);
  z-index: 10;
}
.modal-close:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.modal-header {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-shrink: 0;
}

.modal-body {
  padding: 0 var(--space-xl) var(--space-xl);
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: auto;
  scrollbar-color: var(--color-text-tertiary) transparent;
}
.modal-body:hover {
  scrollbar-color: var(--color-text-secondary) transparent;
}

.modal-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-shrink: 0;
}

@media (max-height: 700px) {
  .modal-box {
    max-height: 96vh;
    max-height: 96dvh;
  }
  .modal-header {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
  }
  .modal-footer {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
  }
}

.modal-info-block {
  padding: 12px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.modal-info-label {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.modal-info-value {
  font-size: 14px;
  font-weight: 600;
}

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

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.3s ease-out;
  white-space: nowrap;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: var(--color-success);
  color: white;
}

.toast-error {
  background: var(--color-danger);
  color: white;
}

.toast-info {
  background: var(--color-text-primary);
  color: white;
}

.toast-warning {
  background: var(--color-warning);
  color: white;
}

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

/* --- Notification Dropdown --- */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  z-index: 200;
  animation: fadeInUp 0.2s ease-out;
  overflow: hidden;
}

.notif-dropdown-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-light);
}

.notif-dropdown-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.notif-dropdown-item:hover {
  background: var(--color-bg-hover);
}
.notif-dropdown-item.unread {
  background: var(--color-primary-lighter);
}

.notif-dropdown-icon {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-dropdown-footer {
  padding: 12px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  border-top: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
}
.notif-dropdown-footer:hover {
  background: var(--color-bg-hover);
}

/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.search-overlay.visible {
  opacity: 1;
}

.search-box {
  width: 600px;
  max-width: 95vw;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalSlideUp 0.25s ease-out;
  max-height: 500px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: transparent;
}
.search-input::placeholder {
  color: var(--color-text-tertiary);
}

.search-kbd {
  padding: 2px 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-tertiary);
}

.search-suggestions {
  max-height: 360px;
  overflow-y: auto;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.search-suggestion-item:hover {
  background: var(--color-bg-hover);
}

/* --- Form Elements --- */
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-lighter);
}

.form-input-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-white);
  resize: vertical;
  line-height: 1.7;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-lighter);
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition-fast);
}
.checkbox-label:has(input:checked) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
}
.checkbox-label input { display: none; }

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition-fast);
}
.radio-label:has(input:checked) {
  background: var(--color-primary-lighter);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.radio-label input { display: none; }

/* --- Radio Card (Scout templates) --- */
.radio-card {
  padding: 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.radio-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-lighter);
}
.radio-card input { display: none; }
.radio-card-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.radio-card-desc {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

/* --- Filter Panel --- */
.filter-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  display: none;
  animation: fadeInUp 0.2s ease-out;
}

.filter-panel.visible {
  display: block;
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.filter-section {
  margin-bottom: var(--space-md);
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 16px;
  padding-left: 16px;
}

.timeline-dot {
  position: absolute;
  left: -19px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-white);
  box-shadow: var(--shadow-xs);
}

.timeline-content {
  padding: 8px 12px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

/* --- Responsive — Mobile modals --- */
@media (max-width: 767px) {
  .modal-overlay {
    padding: var(--space-md);
    align-items: flex-end;
  }
  .modal-box {
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-sm, .modal-md, .modal-lg, .modal-xl {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .form-group[style*="grid-column:span 2"] {
    grid-column: span 1;
  }
  .notification-dropdown {
    width: calc(100vw - 32px);
    right: -60px;
  }
  .search-overlay {
    padding-top: 60px;
  }
}

/* ===================================
   Kanban Board
   =================================== */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-height: 320px;
}
.kanban-column {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 12px;
  transition: background 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.kanban-column.drag-over {
  background: var(--color-primary-lighter);
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.kanban-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 12px;
  margin-bottom: 4px;
}
.kanban-column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.kanban-column-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.kanban-column-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  background: var(--color-bg-card);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.kanban-column-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
}
.kanban-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
}
.kanban-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.kanban-card:active {
  cursor: grabbing;
  transform: scale(0.97);
  opacity: 0.8;
}
.kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.kanban-card-company {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: 8px;
}
.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kanban-card-score {
  font-size: 12px;
  font-weight: 700;
}
.kanban-card-date {
  font-size: 11px;
  color: var(--color-text-tertiary);
}
.kanban-empty {
  text-align: center;
  padding: 24px 8px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
}

/* ===================================
   Skill Autocomplete
   =================================== */
.skill-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.skill-autocomplete-item {
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.1s;
}
.skill-autocomplete-item:hover {
  background: var(--color-bg-hover);
}
.skill-autocomplete-item .skill-category {
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-left: auto;
}

/* ===================================
   Intent Radio
   =================================== */
.intent-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.intent-radio input { display: none; }
.intent-radio:hover { border-color: var(--color-primary-light); }
.intent-radio.active {
  border-color: var(--color-primary);
  background: var(--color-primary-lighter);
  color: var(--color-primary);
}
.intent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===================================
   Enhanced Mobile Optimization
   =================================== */
@media (max-width: 900px) {
  .kanban-board {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
  }
  .intent-radio-group {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .main-header {
    padding: 0 16px;
  }
  .main-header .header-right {
    gap: 4px;
  }
  .page-content {
    padding: 16px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .data-table {
    font-size: 12px;
  }
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
  .chart-container {
    height: 200px !important;
  }
}
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-section-full {
    grid-column: span 1;
  }
  .modal-overlay {
    align-items: flex-start;
    padding: 16px;
  }
  .modal-footer {
    flex-wrap: wrap;
  }
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }
  .card {
    padding: 16px;
  }
  .modal-box.modal-lg {
    width: 95vw;
    height: 90vh;
  }
  
  .document-layout {
    grid-template-columns: 1fr;
  }
  .document-sidebar {
    display: none; /* Hide sidebar on mobile */
  }
  
  /* Make all popups take full width on mobile */
  .popup-content {
    width: 90vw !important;
    max-width: 400px;
  }
  .search-box {
    width: 95vw;
  }
  .toggle-bar {
    width: 100%;
  }
  .intent-radio-group {
    flex-direction: column;
  }
  .intent-radio {
    justify-content: center;
  }
}
/* ===================================
   Notification Center
   =================================== */
.notification-center {
  max-height: 400px;
  overflow-y: auto;
}
.notification-center-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  background: var(--color-card-bg);
  z-index: 1;
}
.notification-center-list {
  padding: 4px 0;
}
.notification-center-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.notification-center-item:hover {
  background: var(--color-bg);
}
.notification-center-item.unread {
  background: var(--color-primary-lighter);
}
.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-bg);
  color: var(--color-text-tertiary);
}
.notification-icon--scout { background: #ede9fe; color: #7c3aed; }
.notification-icon--match { background: #dbeafe; color: #2563eb; }
.notification-icon--application { background: #d1fae5; color: #059669; }
.notification-icon--system { background: #fef3c7; color: #d97706; }
.notification-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 6px;
}
[data-theme="dark"] .notification-icon--scout { background: rgba(124,58,237,0.15); }
[data-theme="dark"] .notification-icon--match { background: rgba(37,99,235,0.15); }
[data-theme="dark"] .notification-icon--application { background: rgba(5,150,105,0.15); }
[data-theme="dark"] .notification-icon--system { background: rgba(217,119,6,0.15); }

/* ===================================
   Login Screen
   =================================== */

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f3ff 100%);
  overflow: hidden;
}
.login-screen.visible {
  display: flex;
  animation: loginFadeIn 0.6s ease-out;
}
.login-screen.exit {
  animation: loginFadeOut 0.5s ease-in forwards;
}

.login-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(8, 145, 178, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 580px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: loginSlideUp 0.6s ease-out;
}

/* Left: Branding */
.login-branding {
  width: 420px;
  flex-shrink: 0;
  background: var(--color-primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.login-branding::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.login-brand-content {
  position: relative;
  z-index: 1;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.login-logo-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  backdrop-filter: blur(10px);
}
.login-logo-text {
  font-size: 20px;
  font-weight: 700;
}
.login-logo-sub {
  font-size: 12px;
  opacity: 0.8;
}
.login-tagline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 36px;
}
.login-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.login-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}
.login-feature-icon svg {
  width: 18px;
  height: 18px;
}
.login-feature-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.login-feature-desc {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.5;
}

/* Right: Login Card */
.login-card {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card-header {
  margin-bottom: 28px;
}
.login-card-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}
.login-card-header p {
  font-size: 14px;
  color: var(--color-text-tertiary);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}
.login-input-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.login-input-icon {
  color: var(--color-text-tertiary);
  display: flex;
  flex-shrink: 0;
}
.login-input-icon svg {
  width: 16px;
  height: 16px;
}
.login-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: transparent;
}
.login-input-wrap input::placeholder {
  color: var(--color-text-tertiary);
}
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}
.login-forgot {
  color: var(--color-primary);
  font-size: 13px;
}
.login-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--color-primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.login-submit-btn:hover {
  opacity: 0.92;
}
.login-submit-btn:active {
  transform: scale(0.98);
}
.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.login-submit-btn svg {
  width: 18px;
  height: 18px;
}
.login-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.login-demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.login-demo-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-lighter);
}
.login-demo-btn svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Onboarding trial button */
.login-onboarding-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
  transition: all 0.25s;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.35);
}
.login-onboarding-btn::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius-md) + 1.5px);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.25s;
}
.login-onboarding-btn:hover {
  background: rgba(37, 99, 235, 0.06);
  transform: translateY(-1px);
}
.login-onboarding-btn:hover::before {
  opacity: 1;
}
.login-onboarding-btn svg {
  width: 15px;
  height: 15px;
}
[data-theme="dark"] .login-onboarding-btn {
  color: #93c5fd;
  box-shadow: inset 0 0 0 1.5px rgba(147, 197, 253, 0.35);
}
[data-theme="dark"] .login-onboarding-btn:hover {
  background: rgba(37, 99, 235, 0.12);
}
.login-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-top: 20px;
}
.login-footer-text a {
  color: var(--color-primary);
  font-weight: 600;
}
.login-error {
  padding: 10px 14px;
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-radius: var(--radius-md);
  font-size: 13px;
  display: none;
}

/* Role Selection */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.role-card {
  padding: 32px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.role-card:hover {
  border-color: var(--color-primary-light);
  background: var(--color-primary-lighter);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}
.role-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-lighter);
  transform: scale(0.97);
}
.role-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.role-card-icon svg {
  width: 26px;
  height: 26px;
}
.role-card-icon--seeker {
  background: var(--color-primary-lighter);
  color: var(--color-primary);
}
.role-card-icon--employer {
  background: #f5f3ff;
  color: #7c3aed;
}
.role-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}
.role-card-desc {
  font-size: 12px;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

/* ===================================
   Page Transitions
   =================================== */
.page-exit {
  animation: pageFadeOut 0.2s ease-in forwards;
}
.page-enter {
  animation: pageFadeIn 0.4s ease-out;
}
.app-enter {
  animation: appReveal 0.6s ease-out;
}

/* Login Slide Animations */
.slide-out {
  animation: slideOutLeft 0.3s ease-in forwards;
}
.slide-in {
  animation: slideInRight 0.3s ease-out;
}

@keyframes loginFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes loginFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes loginSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pageFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes appReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--color-text-secondary); }

/* Login Responsive - Mobile First */
@media (max-width: 768px) {
  .login-screen {
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 40%, #0f172a 100%);
  }
  .login-screen.visible {
    display: flex;
  }
  .login-bg-pattern {
    display: none;
  }
  .login-container {
    flex-direction: column-reverse !important;
    max-width: 100% !important;
    min-height: 100dvh;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    gap: 0 !important;
    background: transparent !important;
  }

  /* Left panel (signup) - hidden by default on mobile */
  .login-container > div:first-child {
    display: none !important;
  }

  /* Right panel (login form) - shown as main content */
  .login-container > div:last-child {
    width: 100% !important;
    flex: 1 !important;
    flex-shrink: 1 !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  /* Mobile login header (injected by JS) */
  .mobile-login-header {
    padding: 32px 24px 20px;
    text-align: center;
  }
  .mobile-login-header .mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
  }
  .mobile-login-header .mobile-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: white;
  }
  .mobile-login-header .mobile-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: white;
  }
  .mobile-login-header .mobile-logo-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
  }
  .mobile-login-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin: 0 0 6px;
  }
  .mobile-login-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
  }

  /* Login form card on mobile */
  #login-form-section,
  #login-role-section {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 40px !important;
  }
  [data-theme="dark"] #login-form-section,
  [data-theme="dark"] #login-role-section {
    background: var(--color-bg-card);
  }

  .login-input-wrap input {
    font-size: 16px;
  }
  .login-submit-btn {
    font-size: 15px;
    padding: 14px;
  }
  .role-cards {
    grid-template-columns: 1fr;
  }

  /* When showing signup mode on mobile */
  .login-container.mobile-show-signup > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    padding: 28px 24px 32px !important;
    width: 100% !important;
    border-radius: 0 !important;
    min-height: 100dvh;
  }
  .login-container.mobile-show-signup > div:last-child {
    display: none !important;
  }
  .login-container.mobile-show-signup > div:first-child > div[style*="position:absolute"] {
    display: none !important;
  }
  .login-container.mobile-show-signup > div:first-child > div[style*="margin-bottom:48px"] {
    margin-bottom: 24px !important;
  }
  .login-container.mobile-show-signup [style*="margin-top:40px"] {
    display: none !important;
  }
  .login-container.mobile-show-signup h2 {
    font-size: 22px !important;
  }
  /* Back button styling for dark bg */
  .login-container.mobile-show-signup .mobile-back-btn {
    border-color: rgba(255,255,255,0.25) !important;
    color: rgba(255,255,255,0.8) !important;
  }
}

/* ===================================
   AI Agent & Career Path Responsive
   =================================== */

/* Tablet: stack 2-column layout */
@media (max-width: 1023px) {
  /* Agent pages: stack feed + chat */
  [style*="grid-template-columns:1fr 280px"],
  [style*="grid-template-columns: 1fr 280px"] {
    grid-template-columns: 1fr !important;
  }

  /* Career path: salary & timeline side-by-side on tablet is fine */

  /* Candidate cards: 2 cols on tablet */
  [style*="scroll-snap-type:x mandatory"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile: full stack */
@media (max-width: 767px) {
  /* Career path: skill gap single column */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Roadmap: stack phases vertically */
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Candidate cards: single column */
  [style*="scroll-snap-type:x mandatory"] {
    grid-template-columns: 1fr !important;
  }

  /* AI summary widget: stack stats */
  .card [style*="gap:20px"] {
    flex-wrap: wrap;
  }
}

/* ===================================
   AI Interview Resume Builder
   =================================== */

.interview-container {
  max-width: 100%;
}

/* --- Progress Steps --- */
.interview-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 20px 28px;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  position: relative;
}

.interview-progress-line {
  position: absolute;
  top: 50%;
  left: 60px;
  right: 60px;
  height: 3px;
  background: var(--color-border-light);
  transform: translateY(-50%);
  border-radius: 3px;
  z-index: 0;
}

.interview-progress-fill {
  height: 100%;
  background: var(--color-primary-gradient);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.interview-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
  position: relative;
}

.interview-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  filter: grayscale(1) opacity(0.5);
}

.interview-step.active .interview-step-dot {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-lighter);
  filter: none;
  transform: scale(1.1);
}

.interview-step.completed .interview-step-dot {
  border-color: var(--color-success);
  background: var(--color-success-light);
  filter: none;
}

.interview-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  transition: color 0.3s;
}

.interview-step.active .interview-step-label {
  color: var(--color-primary);
}

.interview-step.completed .interview-step-label {
  color: var(--color-success);
}

/* --- Main 2-Panel Layout --- */
.interview-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  min-height: 600px;
}

/* --- Chat Panel --- */
.interview-chat {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.interview-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
}

.interview-ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.interview-recording-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-error);
  padding: 4px 12px;
  background: var(--color-error-light, #fef2f2);
  border-radius: 20px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-error);
  animation: recPulse 1s infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Chat Messages --- */
.interview-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  gap: 10px;
  animation: messageSlideIn 0.3s ease forwards;
}

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

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

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-avatar.ai {
  background: var(--color-primary-gradient);
  font-size: 16px;
}

.chat-avatar.user {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.7;
}

.chat-bubble.ai {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-top-left-radius: 4px;
  color: var(--color-text-primary);
}

.chat-bubble.user {
  background: var(--color-primary);
  color: #fff;
  border-top-right-radius: 4px;
}

/* Typing dots animation */
.chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

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

.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* --- Chat Input --- */
.interview-chat-input {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border-light);
}

.interview-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border-radius: 24px;
  padding: 4px 4px 4px 8px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s;
}

.interview-input-row:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-lighter);
}

.interview-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  padding: 8px;
  outline: none;
  font-family: inherit;
  color: var(--color-text-primary);
}

.interview-mic-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--color-text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.interview-mic-btn:hover {
  background: var(--color-border-light);
  color: var(--color-primary);
}

.interview-mic-btn.recording {
  background: var(--color-error);
  color: #fff;
  animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.interview-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.interview-send-btn:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.interview-input-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* --- Resume Panel --- */
.interview-resume {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.interview-resume-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.04), rgba(37, 99, 235, 0.04));
}

.interview-resume-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.interview-resume-footer {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--color-border-light);
  animation: fadeInUp 0.5s ease;
}

/* --- Resume Sections --- */
.resume-section {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.resume-section.pending {
  opacity: 0.5;
}

.resume-section.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-lighter);
}

.resume-section.completed {
  border-color: var(--color-success);
}

.resume-section.just-updated {
  animation: sectionHighlight 2s ease;
}

@keyframes sectionHighlight {
  0% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.3); }
  100% { box-shadow: none; }
}

.resume-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
}

.resume-section-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.resume-section-badge.pending {
  background: var(--color-bg);
  color: var(--color-text-tertiary);
}

.resume-section-badge.active {
  background: var(--color-primary-lighter);
  color: var(--color-primary);
}

.resume-section-badge.completed {
  background: var(--color-success-light);
  color: var(--color-success);
}

.resume-section-content {
  padding: 12px 14px;
  font-size: 13px;
}

.resume-placeholder {
  color: var(--color-text-tertiary);
  font-style: italic;
  font-size: 12px;
  padding: 8px 0;
}

.resume-field {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border-light);
}

.resume-field:last-child {
  border-bottom: none;
}

.resume-label {
  color: var(--color-text-tertiary);
  font-size: 12px;
  min-width: 70px;
}

.resume-value {
  font-weight: 500;
  text-align: right;
  flex: 1;
}

.resume-career-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

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

.resume-career-period {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

.resume-career-role {
  font-weight: 600;
  font-size: 13px;
  margin: 2px 0;
}

.resume-career-company {
  font-size: 12px;
  color: var(--color-primary);
}

.resume-career-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .interview-main {
    grid-template-columns: 1fr;
  }
  .interview-progress {
    padding: 12px 16px;
    overflow-x: auto;
  }
  .interview-step-label {
    font-size: 10px;
  }
}

/* ===================================
   Document Library Cards
   =================================== */

.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  background: var(--color-card);
}

.doc-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.doc-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.doc-card-info {
  flex: 1;
  min-width: 0;
}

.doc-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.doc-card-meta {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

.doc-card-actions {
  display: flex;
  gap: 4px;
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ===================================
   Voice Input Mode
   =================================== */

.interview-voice-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  gap: 12px;
}

.interview-voice-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
}

.interview-voice-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.interview-voice-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.4);
}

.interview-voice-btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interview-voice-btn-icon svg {
  width: 32px;
  height: 32px;
}

.interview-voice-btn.recording {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  animation: voiceBtnPulse 2s infinite;
}

@keyframes voiceBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4), 0 4px 20px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0), 0 4px 20px rgba(239, 68, 68, 0.3); }
}

/* --- Wave Animation --- */
.interview-voice-waves {
  position: absolute;
  bottom: -6px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.interview-voice-waves.active {
  opacity: 1;
}

.interview-voice-waves span {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--color-primary);
}

.interview-voice-waves.active span {
  animation: voiceWave 0.6s ease-in-out infinite alternate;
}

.interview-voice-waves.active span:nth-child(1) { animation-delay: 0s; height: 12px; }
.interview-voice-waves.active span:nth-child(2) { animation-delay: 0.15s; height: 20px; }
.interview-voice-waves.active span:nth-child(3) { animation-delay: 0.3s; height: 14px; }

@keyframes voiceWave {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1.4); }
}

/* --- Transcript Bubble --- */
.interview-voice-transcript {
  display: none;
  width: 100%;
  min-height: 36px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.6;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  text-align: center;
}

/* ===================================
   Text Input Mode
   =================================== */

.interview-text-area {
  padding: 4px 0;
}

.interview-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.7;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.interview-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-lighter);
}

.interview-textarea::placeholder {
  color: var(--color-text-tertiary);
  font-size: 13px;
}

/* ===================================
   Video Interview UI Styles
   =================================== */
.video-interview-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  min-height: 600px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Left: Video Panel */
.video-panel {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}

.video-ai-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.video-ai-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.video-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.video-ai-avatar-wrapper {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #1a1d2e;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-ai-video {
  width: 100%;
  height: 100%;
  display: none;
}

.video-ai-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
}

.video-ai-placeholder-icon {
  font-size: 40px;
}

.video-ai-placeholder-text {
  font-size: 12px;
  font-weight: 500;
}

.video-ai-placeholder-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Fallback animated avatar */
.video-ai-fallback-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.video-ai-fallback-face {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.3);
  animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.fallback-avatar-eyes {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.fallback-avatar-eye {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  animation: blink 4s infinite;
}

@keyframes blink {
  0%, 95%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(0.1); }
}

.fallback-avatar-mouth {
  width: 20px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.15s;
}

.fallback-avatar-mouth.speaking {
  animation: mouthMove 0.3s ease-in-out infinite alternate;
}

@keyframes mouthMove {
  0% { width: 20px; height: 4px; border-radius: 4px; }
  50% { width: 16px; height: 10px; border-radius: 50%; }
  100% { width: 22px; height: 6px; border-radius: 4px; }
}

.video-ai-fallback-name {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

.video-ai-fallback-role {
  color: #94a3b8;
  font-size: 11px;
}

/* User Camera Section */
.video-user-section {
  flex-shrink: 0;
}

.video-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 11px;
  margin-bottom: 6px;
}

.video-user-camera-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #1a1d2e;
  height: 180px;
}

.video-user-camera {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: none;
}

.video-user-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #64748b;
}

/* Controls Bar */
.video-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
}

.video-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.video-control-btn svg {
  width: 18px;
  height: 18px;
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.video-control-btn.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  color: #60a5fa;
}

.video-control-btn.end-call {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.video-control-btn.end-call:hover {
  background: #ef4444;
  color: white;
}

/* Progress Bar */
.video-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 4px 0;
}

.video-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.video-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s;
}

.video-progress-step.active .video-progress-dot {
  background: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

.video-progress-step.completed .video-progress-dot {
  background: rgba(22, 163, 74, 0.2);
}

.video-progress-label {
  font-size: 9px;
  color: #64748b;
  white-space: nowrap;
}

.video-progress-step.active .video-progress-label {
  color: #60a5fa;
}

.video-progress-step.completed .video-progress-label {
  color: #4ade80;
}

.video-progress-line {
  position: absolute;
  top: 18px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
}

.video-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 1px;
  transition: width 0.5s ease;
}

/* Right: Chat + Resume Panel */
.video-chat-panel {
  display: flex;
  flex-direction: column;
  max-height: 700px;
}

.video-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.video-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 280px;
}

.video-chat-input {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-voice-status {
  font-size: 12px;
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-resume-section {
  border-top: 1px solid var(--color-border-light);
  padding: 12px 16px;
  overflow-y: auto;
  max-height: 250px;
}

.video-resume-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.video-resume-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-resume-body .resume-section {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  font-size: 12px;
}

.video-resume-body .resume-section.active {
  border-color: var(--color-primary-light);
  background: var(--color-primary-lighter);
}

.video-resume-body .resume-section.completed {
  border-color: var(--color-success);
  background: var(--color-success-bg);
}

/* Rec indicator for video interview */
.video-rec-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #ef4444;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .video-interview-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .video-panel {
    max-height: 400px;
  }
  .video-ai-avatar-wrapper {
    min-height: 180px;
  }
  .video-user-camera-wrapper {
    height: 100px;
  }
}

/* ===================================
   Fullscreen Video Interview Modal
   =================================== */
.video-fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0e1a;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.4s ease;
  overflow: hidden;
}

.video-fullscreen-modal.closing {
  animation: modalFadeOut 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes modalFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.96); }
}

/* --- Modal Header Bar --- */
.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  z-index: 2;
}

.video-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

.video-modal-title .ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 2s infinite;
}


.video-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.video-modal-close-btn:hover {
  background: #ef4444;
  color: white;
}

/* --- Modal Body (Layout Container) --- */
.video-modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Layout: Focus (Default)
   AI avatar = 70% left, Chat = 30% right
   User camera = PiP overlay bottom-right
   =================================== */
.video-modal-body.layout-focus {
  flex-direction: row;
}

.video-modal-body.layout-focus .video-panel {
  flex: 7;
  max-width: none;
  position: relative;
  padding: 20px;
  gap: 16px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.video-modal-body.layout-focus .video-ai-section {
  flex: 1;
}

.video-modal-body.layout-focus .video-ai-avatar-wrapper {
  min-height: 400px;
  border-radius: 16px;
}

.video-modal-body.layout-focus .video-user-section {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 180px;
  z-index: 5;
  opacity: 0.95;
}

.video-modal-body.layout-focus .video-user-section:hover {
  opacity: 1;
  transform: scale(1.03);
}

.video-modal-body.layout-focus .video-user-header {
  display: none;
}

.video-modal-body.layout-focus .video-user-camera-wrapper {
  height: 160px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.1);
}

.video-modal-body.layout-focus .video-chat-panel {
  flex: 3;
  max-height: none;
  border-left: 1px solid rgba(255,255,255,0.06);
  background: var(--color-card);
}

.video-modal-body.layout-focus .video-chat-messages {
  max-height: none;
  flex: 1;
}



/* --- Fullscreen overrides for shared elements --- */
.video-fullscreen-modal .video-interview-container {
  display: contents;
}

.video-fullscreen-modal .video-control-btn {
  width: 48px;
  height: 48px;
}

.video-fullscreen-modal .video-control-btn svg {
  width: 20px;
  height: 20px;
}

.video-fullscreen-modal .video-ai-video {
  border-radius: 16px;
}

/* PiP transition for user camera */
.video-fullscreen-modal .video-user-section {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive: mobile fullscreen */
@media (max-width: 768px) {
  .video-modal-body.layout-focus {
    flex-direction: column;
  }
  .video-modal-body.layout-focus .video-panel {
    flex: 1;
  }
  .video-modal-body.layout-focus .video-chat-panel {
    flex: 1;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .video-modal-body.layout-focus .video-user-section {
    width: 140px;
  }
  .video-modal-body.layout-focus .video-user-camera-wrapper {
    height: 90px;
  }
}

/* ===================================
   Masked Empty-Data Sections
   =================================== */

.masked-section {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 14px;
  border: 1.5px dashed var(--color-border);
  transition: border-color var(--transition-base);
}

.masked-section:hover {
  border-color: var(--color-primary-light);
}

.masked-section-content {
  filter: blur(5px);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
  padding: 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.masked-section-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  z-index: 2;
  cursor: pointer;
  transition: background var(--transition-base);
}

.masked-section:hover .masked-section-overlay {
  background: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .masked-section-overlay {
  background: rgba(15, 17, 23, 0.6);
}

[data-theme="dark"] .masked-section:hover .masked-section-overlay {
  background: rgba(15, 17, 23, 0.5);
}

.masked-section-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.masked-section-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.masked-section-cta .icon-inline svg {
  width: 14px;
  height: 14px;
}

.masked-section-benefit {
  font-size: 11px;
  color: var(--color-text-tertiary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.masked-section-benefit .benefit-highlight {
  color: var(--color-success);
  font-weight: 700;
}

/* ===================================
   File Upload Drop Zone
   =================================== */

.file-upload-zone {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  background: var(--color-bg);
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
  border-color: var(--color-primary);
  background: var(--color-primary-lighter);
}

.file-upload-zone.drag-over {
  transform: scale(1.01);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.file-upload-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.file-upload-hint {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.file-upload-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-top: 12px;
}

.file-upload-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.file-upload-preview-info {
  flex: 1;
  min-width: 0;
}

.file-upload-preview-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-upload-preview-size {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

.file-upload-preview-remove {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-danger-light);
  color: var(--color-danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.file-upload-preview-remove:hover {
  background: var(--color-danger);
  color: white;
}

/* Tab switcher for import modal */
.import-tabs {
  display: flex;
  gap: 0;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: 20px;
}

.import-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.import-tab.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.import-tab:not(.active):hover {
  background: var(--color-bg-hover);
}

/* ===================================
   Floating AI Chat Widget
   =================================== */
.ai-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: none; /* hidden until logged in */
}
.ai-chat-widget.visible {
  display: block;
}

/* FAB Button */
.ai-chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-size: 24px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5);
}
.ai-chat-fab:active {
  transform: scale(0.95);
}
.ai-chat-fab-icon {
  transition: transform 0.3s;
}
.ai-chat-widget.open .ai-chat-fab-icon {
  transform: rotate(90deg);
}
.ai-chat-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.4);
  animation: fab-pulse 2s ease-in-out infinite;
}
@keyframes fab-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0; }
}
.ai-chat-widget.open .ai-chat-fab-pulse {
  display: none;
}

/* Chat Panel */
.ai-chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  max-height: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-chat-widget.open .ai-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Panel Header */
.ai-chat-panel-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-chat-panel-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ai-chat-panel-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Messages Area */
.ai-chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  max-height: 340px;
  background: #ffffff;
}

/* Quick Actions */
.ai-chat-panel-quickactions {
  padding: 8px 12px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: #ffffff;
}

/* Input Area */
.ai-chat-panel-input {
  padding: 10px 14px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
}

/* Dark mode support */
[data-theme="dark"] .ai-chat-panel {
  background: #1e293b;
}
[data-theme="dark"] .ai-chat-panel-messages {
  background: #1e293b;
}
[data-theme="dark"] .ai-chat-panel-quickactions {
  background: #1e293b;
}
[data-theme="dark"] .ai-chat-panel-input {
  background: #0f172a;
}

/* Media query for small screens */
@media (max-width: 480px) {
  .ai-chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 68px;
  }
}

/* ===================================
   Onboarding Flow Styles
   =================================== */

/* Step Indicator */
.onboarding-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.onboarding-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.onboarding-step.active .onboarding-step-circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.onboarding-step.done .onboarding-step-circle {
  border-color: var(--color-success);
  background: var(--color-success);
  color: white;
}

.onboarding-step-label {
  font-size: 10px;
  color: var(--color-text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}

.onboarding-step.active .onboarding-step-label {
  color: var(--color-primary);
  font-weight: 600;
}

.onboarding-step.done .onboarding-step-label {
  color: var(--color-success);
}

.onboarding-step-connector {
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin-bottom: 18px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.onboarding-step-connector.done {
  background: var(--color-success);
}

/* Method Selection Cards */
.onboarding-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}

/* 4カード時は2×2グリッド */
.onboarding-method-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

/* URLカード: グリーン系アクセント */
.method-card--url {
  border-color: rgba(16, 185, 129, 0.3);
}
.method-card--url:hover {
  border-color: #10b981 !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15) !important;
}
.method-card--url::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(5, 150, 105, 0.06)) !important;
}

.method-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-bg-card);
  position: relative;
  overflow: hidden;
}

.method-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(124, 58, 237, 0.04));
  opacity: 0;
  transition: opacity 0.25s;
}

.method-card:hover:not(.method-card--disabled) {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}

.method-card:hover:not(.method-card--disabled)::before {
  opacity: 1;
}

.method-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-lighter);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 8px 24px rgba(37, 99, 235, 0.1);
}

.method-card--disabled {
  cursor: default;
  opacity: 0.75;
}

.method-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  transition: transform 0.25s;
  position: relative;
  z-index: 1;
}

.method-card:hover:not(.method-card--disabled) .method-card-icon {
  transform: scale(1.08);
}

.method-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.method-card-desc {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Coming Soon Badge */
.method-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* Onboarding password strength */
.password-strength-bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  margin-top: 6px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  width: 0%;
}

.password-strength-fill.weak   { width: 33%; background: var(--color-danger); }
.password-strength-fill.medium { width: 66%; background: var(--color-warning); }
.password-strength-fill.strong { width: 100%; background: var(--color-success); }

/* Onboarding success animation */
.onboarding-success {
  text-align: center;
  padding: 40px 24px;
}

.onboarding-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #059669);
  color: white;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.onboarding-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.onboarding-success p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* File drop area */
.file-drop-area {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--color-bg);
  position: relative;
}

.file-drop-area:hover,
.file-drop-area.drag-over {
  border-color: var(--color-primary);
  background: var(--color-primary-lighter);
}

.file-drop-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-drop-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.file-drop-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.file-drop-subtitle {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.file-drop-files {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-drop-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.file-drop-file-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Modal xl size (onboarding flow) */
.modal-xl:not(.modal-signup) {
  max-width: 720px !important;
  width: 92vw !important;
}

/* Signup modal — wider split layout */
.modal-signup {
  max-width: 960px !important;
  width: 94vw !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Signup modal — mobile responsive */
@media (max-width: 768px) {
  .modal-signup {
    max-width: 100% !important;
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
  }
  /* The inner flex container (direct child div with display:flex) */
  .modal-signup > div[style*="display:flex"] {
    flex-direction: column !important;
    min-height: auto !important;
  }
  /* Hide left benefits panel on mobile */
  .modal-signup > div[style*="display:flex"] > div:first-child {
    display: none !important;
  }
  /* Right form panel: full width */
  .modal-signup > div[style*="display:flex"] > div:last-child {
    width: 100% !important;
    flex: 1 !important;
    padding: 24px 20px 32px !important;
  }
  /* Inputs: prevent iOS zoom */
  .modal-signup input[type="email"],
  .modal-signup input[type="password"],
  .modal-signup input[type="text"] {
    font-size: 16px !important;
    height: 46px !important;
  }
  /* Close button */
  .modal-signup .modal-close {
    background: var(--color-bg-hover) !important;
    color: var(--color-text-primary) !important;
    right: 12px !important;
    top: 12px !important;
  }
}

/* Quick onboarding skip */
.onboarding-skip {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color 0.2s;
}

.onboarding-skip:hover {
  color: var(--color-primary);
}

/* Onboarding modal animation */
.onboarding-section {
  animation: onboardFadeIn 0.3s ease forwards;
}

@keyframes onboardFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Dark mode for onboarding */
[data-theme="dark"] .method-card {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}
[data-theme="dark"] .method-card.selected {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--color-primary);
}
[data-theme="dark"] .method-card-icon {
  background: var(--color-bg);
}
[data-theme="dark"] .file-drop-area {
  background: var(--color-bg);
  border-color: var(--color-border);
}
[data-theme="dark"] .file-drop-area:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--color-primary);
}

/* --- AI Score Badge Tooltip --- */
.ai-score-badge-wrap {
  position: relative;
}
.ai-score-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 8px;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
  gap: 4px;
  min-width: 140px;
  max-width: 220px;
  animation: tooltipFadeIn 0.2s ease;
}
.ai-score-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  transform: rotate(45deg);
}
.ai-score-badge-wrap:hover .ai-score-tooltip {
  display: flex;
}
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar visibility for horizontal scroll areas */
#skillgap-job-buttons::-webkit-scrollbar {
    height: 6px;
}
#skillgap-job-buttons::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}
#skillgap-job-buttons::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
#skillgap-job-buttons::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-tertiary);
}

/* ===================================
   Mobile Font Size Enhancement
   Improves readability on small screens
   =================================== */
@media (max-width: 767px) {

  body {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Header */
  .header-title {
    font-size: 16px;
  }

  /* Navigation */
  .nav-item {
    font-size: 14px;
    padding: 11px var(--space-md);
  }
  .nav-section-label {
    font-size: 11px;
  }
  .toggle-btn {
    font-size: 13px;
    padding: 9px 14px;
  }

  /* Sidebar user */
  .sidebar-user-name {
    font-size: 14px;
  }
  .sidebar-user-role {
    font-size: 12px;
  }

  /* Cards */
  .card {
    padding: var(--space-md);
  }
  .card-title {
    font-size: 15px;
  }
  .card-subtitle {
    font-size: 13px;
  }
  .card-action {
    font-size: 13px;
  }

  /* KPI Cards */
  .kpi-label {
    font-size: 12px;
  }
  .kpi-value {
    font-size: 28px;
  }
  .kpi-change {
    font-size: 12px;
  }

  /* Job Cards */
  .job-card-company {
    font-size: 13px;
  }
  .job-card-title {
    font-size: 16px;
  }
  .job-card-meta-item {
    font-size: 13px;
  }

  /* Buttons */
  .btn {
    font-size: 13px;
    padding: 9px 18px;
  }
  .btn-sm {
    font-size: 12px;
    padding: 7px 14px;
  }
  .btn-lg {
    font-size: 15px;
    padding: 12px 24px;
  }

  /* Form inputs */
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 15px;
    padding: 10px 14px;
  }
  .form-label {
    font-size: 13px;
  }

  /* Tags & Badges */
  .skill-tag {
    font-size: 12px;
    padding: 4px 10px;
  }
  .status-badge {
    font-size: 12px;
  }

  /* Greeting banner */
  .greeting-name {
    font-size: 20px;
  }
  .greeting-subtitle {
    font-size: 14px;
  }

  /* Modal */
  .modal-box {
    font-size: 14px;
  }
  .modal-header {
    font-size: 16px;
  }

  /* Tables */
  th, td {
    font-size: 13px;
    padding: 10px 12px;
  }

  /* Timeline */
  .timeline-content {
    font-size: 13px;
  }

  /* AI/Chat */
  .agent-message,
  .user-message {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Notification dropdown */
  .notification-item-title {
    font-size: 13px;
  }
  .notification-item-desc {
    font-size: 12px;
  }

  /* Search */
  .search-box input {
    font-size: 15px;
  }

  /* General inline small text bump */
  [style*="font-size:10px"] { font-size: 11px !important; }
  [style*="font-size:11px"] { font-size: 12px !important; }
  [style*="font-size:12px"] { font-size: 13px !important; }
  [style*="font-size: 10px"] { font-size: 11px !important; }
  [style*="font-size: 11px"] { font-size: 12px !important; }
  [style*="font-size: 12px"] { font-size: 13px !important; }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {

  .header-title {
    font-size: 15px;
  }

  .kpi-value {
    font-size: 24px;
  }

  .kpi-card {
    padding: var(--space-md);
  }

  /* Even more generous touch targets */
  .nav-item {
    padding: 13px var(--space-md);
    font-size: 14px;
  }

  .btn {
    min-height: 44px;
    font-size: 14px;
  }

  .form-input,
  .form-textarea,
  .form-select {
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* ===================================
   Onboarding Tour
   =================================== */

/* Overlay */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: all;
}
.onboarding-overlay.active {
  opacity: 1;
}

/* Spotlight cutout */
.onboarding-spotlight {
  position: fixed;
  z-index: 10001;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Tooltip */
.onboarding-tooltip {
  position: fixed;
  z-index: 10002;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  max-width: 480px;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.onboarding-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Center mode (welcome modal) */
.onboarding-tooltip-center {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.96) !important;
}
.onboarding-tooltip-center.visible {
  transform: translate(-50%, -50%) scale(1) !important;
}

/* Arrows */
.onboarding-tooltip.arrow-left::before,
.onboarding-tooltip.arrow-right::before,
.onboarding-tooltip.arrow-top::before,
.onboarding-tooltip.arrow-bottom::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 rgba(0, 0, 0, 0.04);
}
.onboarding-tooltip.arrow-left::before {
  left: -7px;
  top: 50%;
  margin-top: -7px;
}
.onboarding-tooltip.arrow-right::before {
  right: -7px;
  top: 50%;
  margin-top: -7px;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.04);
}
.onboarding-tooltip.arrow-top::before {
  top: -7px;
  left: 50%;
  margin-left: -7px;
}
.onboarding-tooltip.arrow-bottom::before {
  bottom: -7px;
  left: 50%;
  margin-left: -7px;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.04);
}

/* Step label */
.onboarding-step-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Title */
.onboarding-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Body */
.onboarding-body {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Unlocks section */
.onboarding-unlocks {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.onboarding-unlocks-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.onboarding-unlock-item {
  font-size: 12px;
  color: #1e40af;
  line-height: 1.6;
}

/* Footer */
.onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

/* Progress dots */
.onboarding-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all 0.2s ease;
}
.onboarding-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}
.onboarding-dot.done {
  background: var(--color-success);
}

/* Buttons */
.onboarding-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.onboarding-btn-skip {
  background: transparent;
  color: var(--color-text-tertiary);
}
.onboarding-btn-skip:hover {
  color: var(--color-text-secondary);
  background: var(--color-bg);
}
.onboarding-btn-next {
  background: var(--color-primary);
  color: white;
}
.onboarding-btn-next:hover {
  filter: brightness(1.1);
}
.onboarding-btn-complete {
  background: linear-gradient(135deg, #059669, #10b981);
}

/* Dark theme */
[data-theme="dark"] .onboarding-tooltip {
  background: var(--color-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .onboarding-tooltip.arrow-left::before,
[data-theme="dark"] .onboarding-tooltip.arrow-right::before,
[data-theme="dark"] .onboarding-tooltip.arrow-top::before,
[data-theme="dark"] .onboarding-tooltip.arrow-bottom::before {
  background: var(--color-card);
}
[data-theme="dark"] .onboarding-unlocks {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}
[data-theme="dark"] .onboarding-unlock-item {
  color: #93c5fd;
}

/* Mobile onboarding */
@media (max-width: 768px) {
  .onboarding-tooltip {
    max-width: calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    left: 16px !important;
    right: 16px;
    padding: 18px 16px;
    border-radius: 14px;
  }
  .onboarding-tooltip-center {
    left: 50% !important;
    width: calc(100vw - 48px) !important;
    max-width: 360px !important;
  }

  /* Reduce typography for mobile */
  .onboarding-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .onboarding-body {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .onboarding-step-label {
    font-size: 10px;
    margin-bottom: 8px;
  }

  /* Unlocks section compact */
  .onboarding-unlocks {
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .onboarding-unlocks-label {
    font-size: 11px;
  }
  .onboarding-unlock-item {
    font-size: 11px;
    line-height: 1.5;
  }

  /* Footer: increase tap targets */
  .onboarding-footer {
    gap: 8px;
    padding-top: 10px;
  }
  .onboarding-btn {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
  }

  /* Progress dots: smaller */
  .onboarding-dot {
    width: 7px;
    height: 7px;
  }

  /* Arrows: adjust for mobile positioning */
  .onboarding-tooltip.arrow-top::before {
    left: 50%;
    margin-left: -7px;
  }
  .onboarding-tooltip.arrow-bottom::before {
    left: 50%;
    margin-left: -7px;
  }

  /* Spotlight: slightly larger padding on mobile for touch */
  .onboarding-spotlight {
    border-radius: 8px;
  }
}

/* =========================================
   Mobile Responsive Overrides
   Override inline grid styles for mobile
   ========================================= */
@media (max-width: 767px) {
  /* Skill gap analysis: chart + hints → stack vertically */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:24px"][style*="align-items:center"] {
    grid-template-columns: 1fr !important;
  }

  /* Employer AI suggestions: 3-col → 1-col */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Modal 5-col stats → 2-col + wrap */
  [style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Employer candidate stats: 4-col → 2-col */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Employer job management grid: 4-col → stack */
  [style*="grid-template-columns:1fr 1fr 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Profile edit form-grid: 2-col → 1-col */
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .form-grid [style*="grid-column:span 2"] {
    grid-column: span 1 !important;
  }

  /* All inline 2-col grids → 1-col on mobile */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:16px"],
  [style*="grid-template-columns:1fr 1fr"][style*="gap:12px"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Employer company profile: 2-col → 1-col */
  .grid[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Employer scout: 2-col → 1-col */
  [style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Wizard work-history row: multi-col → stack */
  [style*="grid-template-columns:auto 1fr auto auto auto"] {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  /* Skill-level grid in modals: 120px 1fr 40px → stack */
  [style*="grid-template-columns:120px 1fr 40px"] {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  /* Name + photo row in profile edit */
  [style*="grid-template-columns:1fr 140px"] {
    grid-template-columns: 1fr !important;
  }

  /* Role cards on login/welcome */
  .role-cards {
    grid-template-columns: 1fr !important;
  }

  /* Filter panel: ensure it fills mobile width */
  .filter-panel {
    width: 100% !important;
    right: 0 !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
  }

  /* Data tables: enable horizontal scroll */
  .data-table {
    font-size: 12px;
  }
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }

  /* KPI cards row: wrap properly */
  .kpi-row {
    flex-wrap: wrap;
  }

  /* Sort buttons row */
  .flex.gap-sm {
    flex-wrap: wrap;
  }

  /* Page header: stack title and actions */
  [style*="display:flex"][style*="justify-content:space-between"][style*="flex-wrap:wrap"] {
    gap: 8px !important;
  }

  /* Greeting banner avatar + text */
  .greeting-banner {
    padding: var(--space-md) !important;
  }



  /* AI preview modal adjustments */
  .ai-preview-container {
    padding: 12px !important;
  }

  /* Skill radar chart: reduce height on mobile */
  .chart-container {
    height: 200px !important;
  }

  /* Login screen responsiveness */
  .login-container {
    padding: 16px !important;
    max-width: 100% !important;
  }

  /* Wizard/Onboarding step cards */
  .wizard-step-content {
    padding: 12px !important;
  }
}

/* Extra small screens (iPhone SE etc.) */
@media (max-width: 375px) {
  .page-content {
    padding: 8px !important;
    overflow-x: hidden !important;
  }

  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  [style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  .card {
    padding: 12px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================
   Agent UI — Mobile Responsive
   ========================================= */
@media (max-width: 767px) {
  /* Agent message cards: reduce padding */
  .agent-msg {
    padding: 14px !important;
  }

  /* Agent avatars: shrink */
  .agent-msg-avatar {
    width: 30px !important;
    height: 30px !important;
  }
  .agent-msg-avatar span {
    width: 14px !important;
    height: 14px !important;
  }

  /* Delivery header: wrap and hide nav arrows */
  .agent-delivery-header {
    flex-wrap: wrap !important;
  }
  .agent-delivery-nav {
    display: none !important;
  }

  /* Carousel: adjust card width for mobile */
  .agent-carousel {
    gap: 10px !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  .agent-carousel-item {
    flex: 0 0 220px !important;
  }

  /* Agent job card: compact */
  .agent-job-card {
    padding: 10px !important;
    border-radius: var(--radius-md) !important;
  }

  /* Suggestion items: stack text + button */
  .agent-suggestion-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* AI Chat Widget: full width panel on mobile */
  #ai-chat-widget.open .ai-chat-panel {
    width: calc(100vw - 32px) !important;
    right: -16px !important;
    max-width: none !important;
  }

  /* AI Agent Header: reduce icon and shrink padding */
  [data-ff="section.jobseeker.home.ai-agent"] {
    padding: 14px !important;
  }
  [data-ff="section.jobseeker.home.ai-agent"] [style*="width:48px;height:48px"] {
    width: 36px !important;
    height: 36px !important;
  }
  [data-ff="section.jobseeker.home.ai-agent"] [style*="font-size:16px;font-weight:800"] {
    font-size: 14px !important;
  }

  /* Article links: ensure text wraps */
  .article-link {
    flex-wrap: wrap;
  }

  /* Application summary cards: stack */
  .app-status-list {
    flex-direction: column;
    gap: 8px;
  }
}

/* Agent cards on very small screens */
@media (max-width: 480px) {
  /* Carousel cards: even smaller */
  .agent-carousel-item {
    flex: 0 0 190px !important;
  }
}

/* =========================================
   Comprehensive Page Mobile Fix
   ========================================= */
@media (max-width: 767px) {

  /* === All inline 2-column grids → 1-column === */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* === Sidebar layouts (1fr Npx) → stack === */
  [style*="grid-template-columns:1fr 280px"],
  [style*="grid-template-columns:1fr 300px"],
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns:300px 1fr"],
  [style*="grid-template-columns:280px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Sticky panels: disable on mobile */
  [style*="position:sticky"] {
    position: relative !important;
  }

  /* === All inline 3-column grids → 1-column === */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Skill gap scroll arrows: hide on mobile */
  [style*="position:absolute;left:-16px"],
  [style*="position:absolute;right:-16px"] {
    display: none !important;
  }

  /* Skill gap selected info: stack */
  #skillgap-selected-info {
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* === Employer Company Profile: form grid → 1fr === */
  /* (already covered by 1fr 1fr rule above) */

  /* === Job Card: match result 4-col breakdown → 2-col === */
  [style*="grid-template-columns:repeat(4,1fr)"][style*="gap:4px"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* === Job Card Header: prevent score from being crushed === */
  .job-card-header {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  /* === Job Card Actions: bigger tap targets === */
  .job-card-actions {
    flex-wrap: wrap;
    gap: 8px !important;
  }
  .job-card-actions .btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    min-height: 38px;
  }

  /* === Profile completion: stack percentage + bar === */
  [data-ff="section.jobseeker.profile.completion"] [style*="display:flex;align-items:center;gap:24px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* === Pipeline board: horizontal scroll if needed === */
  .kanban-board {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* === Sort buttons row: wrap + scroll === */
  .flex.gap-sm {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* === Section title + sort in job list === */
  [style*="display:flex;align-items:center;justify-content:space-between"][style*="flex-wrap:wrap"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* === Footer CTA box === */
  [style*="margin-top:32px;text-align:center;padding:24px"] {
    padding: 16px !important;
  }

  /* === Compact job card: stack layout === */
  .card[onclick*="openJobDetail"] [style*="display:flex;align-items:center;gap:12px"] {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* === Employer alert banner: wrap text === */
  .alert-banner {
    flex-direction: column;
    gap: 8px;
  }

  /* === AI Import CTA: shrink button text === */
  [data-ff="section.jobseeker.profile.ai-import"] [style*="display:flex;align-items:center;justify-content:space-between"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  [data-ff="section.jobseeker.profile.ai-import"] .btn {
    text-align: center;
    width: 100%;
  }

  /* === Notification panel + articles grid === */
  .grid.grid-2.mt-lg {
    grid-template-columns: 1fr !important;
  }

  /* === Filter panel selects: full width === */
  .filter-grid select,
  .filter-grid input {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Additional fixes for very small screens */
@media (max-width: 375px) {
  /* Job card: compress padding more */
  .job-card {
    padding: 12px !important;
  }

  /* Score display: shrink */
  .job-card-header [style*="font-size:24px"] {
    font-size: 20px !important;
  }

  /* Hide match bar label on tiny screens */
  .match-label {
    min-width: 30px;
    font-size: 12px;
  }
}
