/* JobDrive — extends tokens.css */

body { margin: 0; }

/* App shell */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg-page);
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.sidebar-logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-violet-400), var(--color-violet-600));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:14px;
  box-shadow: 0 6px 16px -6px rgba(108,99,255,0.7);
}
.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 18px;
}
.sidebar-user-meta { min-width: 0; flex: 1; }
.sidebar-user-meta .name { color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-user-meta .sub { color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 3px; }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 14px 14px 6px;
}

.nav-item.active {
  position: relative;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -14px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--color-violet-500);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Page header (sticky) */
.page-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(245, 244, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 18px 32px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-header h1 {
  margin: 0 0 4px;
}
.page-header .breadcrumb {
  font-size: 12px;
  color: var(--color-text-tertiary);
  display: flex;
  gap: 6px;
  align-items: center;
}
.page-header .breadcrumb a { color: var(--color-text-secondary); text-decoration: none; }
.page-header .breadcrumb a:hover { color: var(--color-violet-500); }
.page-header-actions { display: flex; gap: 8px; align-items: center; }

.page-body {
  padding: 24px 32px 48px;
  flex: 1;
}

/* Generic grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
@media (max-width: 1100px){
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px){
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

/* Stat card */
.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card .label {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.stat-card .delta {
  font-size: 12px;
  display: flex; align-items: center; gap: 4px;
  margin-top: 4px;
}
.stat-card .delta.up { color: var(--color-mint-700); }
.stat-card .delta.down { color: var(--color-coral-600); }
.stat-card.brand {
  background: linear-gradient(135deg, var(--color-violet-500), var(--color-violet-700));
  color: #fff;
  border-color: transparent;
}
.stat-card.brand .label,
.stat-card.brand .value,
.stat-card.brand .delta { color: #fff; }
.stat-card.brand .label { color: rgba(255,255,255,0.7); }

/* Avatar */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-violet-100);
  color: var(--color-violet-800);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 13px;
  overflow: hidden;
  position: relative;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.md { width: 40px; height: 40px; font-size: 14px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.avatar.xl { width: 96px; height: 96px; font-size: 28px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Icon button */
.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}
.icon-btn:hover {
  color: var(--color-violet-500);
  border-color: var(--color-violet-300);
  background: var(--color-violet-50);
}

/* Tabs (underline) */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border-default);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.tab:hover { color: var(--color-text-primary); }
.tab.active {
  color: var(--color-violet-500);
  border-bottom-color: var(--color-violet-500);
}

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.field label .req { color: var(--color-coral-500); }
.field .hint { font-size: 11px; color: var(--color-text-tertiary); }
.field .err { font-size: 11px; color: var(--color-coral-600); }

.select {
  height: var(--input-height);
  padding: 0 28px 0 var(--input-px);
  border: var(--input-border);
  border-radius: var(--input-radius);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") right 12px center no-repeat;
  font-size: 14px;
  appearance: none;
  width: 100%;
  font-family: inherit;
  color: inherit;
}
.select:focus-visible { border-color: var(--color-violet-500); box-shadow: var(--shadow-focus); outline: none; }

textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; line-height: 1.5; font-family: inherit; }

/* Checkbox / toggle */
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.checkbox input { accent-color: var(--color-violet-500); width: 16px; height: 16px; }

.toggle {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--color-gray-300);
  position: relative;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--duration-fast) var(--ease-out);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle.on { background: var(--color-violet-500); }
.toggle.on::after { transform: translateX(16px); }

/* Tag input chip */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: var(--color-violet-100);
  color: var(--color-violet-800);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.chip .x {
  cursor: pointer;
  opacity: 0.6;
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.chip .x:hover { opacity: 1; background: rgba(0,0,0,0.05); }
.chip.gray { background: var(--color-gray-100); color: var(--color-gray-700); }
.chip.mint { background: var(--color-mint-100); color: var(--color-mint-800); }
.chip.pink { background: var(--color-pink-100); color: var(--color-pink-800); }
.chip.amber { background: var(--color-amber-200); color: var(--color-amber-800); }

/* Domain dot */
.dom-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}

/* Hero / public */
.hero {
  position: relative;
  height: 460px;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-violet-700), var(--color-ink-900));
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 64px;
  color: #fff;
  transition: opacity 0.6s ease;
}
.hero-slide-content { max-width: 580px; position: relative; z-index: 2; }
.hero-slide h2 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 700;
}
.hero-slide p { font-size: 18px; line-height: 1.5; opacity: 0.9; margin: 0 0 24px; }
.hero-bg-art {
  position:absolute; inset:0;
  opacity: 0.7;
}

.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.hero-dots .dot {
  width: 24px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.3); cursor: pointer; border: none; padding: 0;
}
.hero-dots .dot.active { background: #fff; }

.public-nav {
  position: sticky; top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
}
.public-nav-links { display: flex; gap: 24px; }
.public-nav-links a { color: var(--color-text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; }
.public-nav-links a:hover { color: var(--color-violet-500); }

/* Drive carousel */
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 32px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.carousel > * { scroll-snap-align: start; }

/* Auth */
.auth-bg {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--color-violet-50) 0%, #fff 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 16px;
  position: relative;
  overflow: hidden;
}
.auth-bg::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--color-violet-200) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(60, 47, 163, 0.08), 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  z-index: 1;
}
.auth-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 32px;
}
.auth-brand .logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-violet-400), var(--color-violet-600));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800;
  box-shadow: 0 6px 16px -6px rgba(108,99,255,0.6);
}
.auth-tagline { color: var(--color-text-secondary); font-size: 14px; text-align: center; margin-bottom: 28px; margin-top: -16px; }

/* Mobile input with prefix */
.input-prefix {
  display: flex; align-items: stretch;
  border: var(--input-border);
  border-radius: var(--input-radius);
  background: #fff;
  overflow: hidden;
}
.input-prefix .prefix {
  background: var(--color-gray-100);
  padding: 0 12px;
  display: flex; align-items: center; gap: 6px;
  border-right: 1px solid var(--color-border-default);
  font-size: 14px;
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}
.input-prefix input {
  flex: 1; border: none; outline: none;
  padding: 0 12px; height: var(--input-height);
  background: transparent;
  font-size: 14px; font-family: inherit;
  min-width: 0;
}
.input-prefix:focus-within { border-color: var(--color-violet-500); box-shadow: var(--shadow-focus); }

/* Doc tile */
.doc-tile { background: #fff; min-height: 130px; }
.doc-tile .doc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-violet-50);
  color: var(--color-violet-500);
  display:flex; align-items:center; justify-content:center;
}
.doc-tile.uploaded .doc-icon, .doc-tile.verified .doc-icon { background: var(--color-mint-50); color: var(--color-mint-600); }
.doc-tile .doc-label { font-weight: 600; font-size: 13px; }
.doc-tile .doc-sub { font-size: 11px; color: var(--color-text-tertiary); }

/* Drive cards */
.drive-banner {
  width: 100%; height: 120px; border-radius: var(--radius-md);
  background: var(--color-violet-200);
  position: relative;
  overflow: hidden;
}

/* Role card */
.role-card {
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 16px;
}
.role-card .logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--color-gray-100);
  display:flex; align-items:center; justify-content:center;
  color: var(--color-gray-600);
  font-weight: 700;
  flex-shrink: 0;
}
.role-card .role-meta { font-size: 12px; color: var(--color-text-secondary); display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.role-card .role-meta .dot-sep { color: var(--color-gray-300); }

/* Data table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border-default);
  background: var(--color-gray-50);
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: middle;
}
.table tr:hover td { background: var(--color-violet-50); }
.table tr.selected td { background: var(--color-violet-100); }
.table-wrap {
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: var(--color-bg-overlay);
  z-index: var(--z-drawer);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 520px; max-width: 100vw;
  background: #fff;
  z-index: calc(var(--z-drawer) + 1);
  display: flex; flex-direction: column;
  animation: slideInRight 0.25s var(--ease-spring);
  box-shadow: var(--shadow-modal);
}
@keyframes slideInRight { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h2 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex; justify-content: flex-end; gap: 8px;
  background: var(--color-gray-50);
}

/* Modal */
.modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: var(--radius-xl);
  width: 480px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  z-index: calc(var(--z-modal) + 1);
  animation: scaleIn 0.18s ease-out;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-modal);
}

/* Timeline already in tokens but extend */
.timeline-body {
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  flex: 1;
  min-width: 0;
}

/* Sticky save bar */
.save-bar {
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-default);
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -32px -48px;
  z-index: var(--z-sticky);
}
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-amber-400); display: inline-block; }

/* Toast */
.toast-stack {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex; flex-direction: column;
  gap: 8px;
  z-index: var(--z-toast);
}
.toast {
  background: var(--color-ink-900);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-modal);
  animation: slideUp 0.22s var(--ease-spring);
  min-width: 240px;
}
.toast.success { background: var(--color-mint-700); }
.toast.error { background: var(--color-coral-600); }
@keyframes slideUp { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Role switcher (preview helper) */
.role-switcher {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: var(--z-tooltip);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(26,26,46,0.3);
}
.role-switcher button {
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 11px; font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.role-switcher button.active { background: var(--color-violet-500); color: #fff; }
.role-switcher button:hover:not(.active) { color: #fff; }

/* Funnel */
.funnel-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.funnel-row .funnel-label {
  width: 130px; font-size: 13px; color: var(--color-text-secondary);
}
.funnel-row .funnel-bar-wrap {
  flex: 1;
  height: 32px;
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.funnel-row .funnel-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-violet-500), var(--color-violet-400));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; padding: 0 12px;
  color: #fff; font-weight: 600; font-size: 13px;
}

/* Stats counter (home) */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 32px 48px;
  background: #fff;
  border-bottom: 1px solid var(--color-border-subtle);
}
@media (max-width: 720px){ .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stats-strip .stat .num {
  font-size: 40px; font-weight: 700; letter-spacing: -1.2px;
  color: var(--color-violet-700);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-strip .stat .lab {
  font-size: 13px; color: var(--color-text-secondary);
  margin-top: 8px;
}

/* Helper */
.muted { color: var(--color-text-secondary); }
.h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; margin: 0; }
.h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; margin: 0; }
.h3 { font-size: 17px; font-weight: 600; margin: 0; }
.mono { font-family: var(--font-mono); }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 0 12px;
}
.section-head h2 { margin: 0; }

.empty {
  text-align: center; padding: 40px 20px;
  color: var(--color-text-secondary);
  background: #fff; border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border-default);
}
.empty .empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--color-violet-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-violet-500);
}
.empty h3 { color: var(--color-text-primary); margin: 0 0 4px; }

/* Image placeholder (striped) */
.placeholder-img {
  background:
    repeating-linear-gradient(45deg,
      var(--color-violet-100) 0px, var(--color-violet-100) 8px,
      var(--color-violet-50) 8px, var(--color-violet-50) 16px);
  color: var(--color-violet-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Volunteer focused layout */
.focused-topbar {
  height: 64px;
  background: var(--color-ink-900);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}
.focused-topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.focused-topbar .ctx { flex: 1; color: rgba(255,255,255,0.7); font-size: 14px; }

.search-mega {
  font-size: 20px;
  height: 64px;
  padding: 0 24px;
  border: 2px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  background: #fff;
  width: 100%;
}
.search-mega:focus-visible { border-color: var(--color-violet-500); box-shadow: var(--shadow-focus); outline: none; }

/* Animate count-up scroll */
.fade-in { animation: slideUp 0.4s var(--ease-spring) both; }

/* Tag input */
.tag-input {
  min-height: var(--input-height);
  border: var(--input-border);
  border-radius: var(--input-radius);
  padding: 6px 8px;
  background: #fff;
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.tag-input input {
  border: none; outline: none; background: transparent;
  flex: 1; min-width: 100px; height: 28px;
  font-size: 13px; font-family: inherit;
}
.tag-input:focus-within { border-color: var(--color-violet-500); box-shadow: var(--shadow-focus); }

/* Pill progress */
.pill-progress {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 12px;
  background: var(--color-violet-100);
  border-radius: 999px;
  color: var(--color-violet-800);
  font-size: 12px;
  font-weight: 600;
}
.pill-progress .bar {
  width: 80px; height: 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 3px;
  overflow: hidden;
}
.pill-progress .bar .fill {
  height: 100%; background: var(--color-violet-500);
  border-radius: 3px;
}

/* Slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; background: var(--color-gray-200); border-radius: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-violet-500);
  margin-top: -7px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* Banner */
.banner {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px;
}
.banner.warning { background: var(--color-amber-100); color: var(--color-amber-800); border: 1px solid var(--color-amber-300); }
.banner.info { background: var(--color-violet-50); color: var(--color-violet-800); border: 1px solid var(--color-violet-200); }
.banner.success { background: var(--color-mint-50); color: var(--color-mint-800); border: 1px solid var(--color-mint-200); }
.banner.error { background: var(--color-coral-50); color: var(--color-coral-700); border: 1px solid var(--color-coral-200); }
