/* Agency Dashboard - Premium Editorial Curation Tool
   Vogue-style luxury design for managing talent applications */

/* ============================================
   COLOR PALETTE & DESIGN TOKENS
   ============================================ */

:root {
  /* Premium Editorial Palette */
  --agency-bg-canvas: #FAF9F7;
  --agency-bg-surface: #FFFFFF;
  --agency-bg-elevated: #F8F8F7;
  --agency-border: rgba(15, 23, 42, 0.05);
  --agency-text-primary: #0F172A;
  --agency-text-secondary: #475569;
  --agency-text-tertiary: #94A3B8;
  --agency-accent-gold: #C9A55A;
  --agency-accent-gold-light: rgba(201, 165, 90, 0.1);
  --agency-accent-gold-dark: #B8954F;
  /* Brand color (set dynamically, falls back to accent-gold) */
  --agency-brand-color: var(--agency-accent-gold, #C9A55A);
  --agency-brand-color-light: var(--agency-brand-color-light, rgba(201, 165, 90, 0.1));
  --agency-brand-color-dark: var(--agency-brand-color-dark, #B8954F);
  
  /* Editorial Shadows - Softer, more luxurious */
  --agency-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --agency-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --agency-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.08);
  --agency-shadow-xl: 0 16px 64px rgba(15, 23, 42, 0.12);
  
  /* Editorial Typography */
  --agency-font-serif: 'Noto Serif Display', 'Times New Roman', serif;
  --agency-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Editorial Spacing */
  --agency-spacing-xs: 0.5rem;
  --agency-spacing-sm: 1rem;
  --agency-spacing-md: 1.5rem;
  --agency-spacing-lg: 2rem;
  --agency-spacing-xl: 3rem;
  --agency-spacing-2xl: 4rem;
  
  /* Editorial Transitions */
  --agency-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --agency-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --agency-transition-smooth: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   DASHBOARD CONTAINER - Full-Width Editorial Layout
   ============================================ */

.agency-dashboard {
  display: flex;
  min-height: 100vh;
  background: var(--agency-bg-canvas);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(201, 165, 90, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201, 165, 90, 0.02) 0%, transparent 50%);
  position: relative;
}

.agency-dashboard__main {
  flex: 1;
  margin-left: 288px;
  padding: var(--agency-spacing-2xl) 4rem;
  max-width: calc(100% - 288px);
  min-height: 100vh;
}

@media (max-width: 1400px) {
  .agency-dashboard__main {
    padding: var(--agency-spacing-xl) 3rem;
  }
}

@media (max-width: 1024px) {
  .agency-dashboard__main {
    padding: var(--agency-spacing-lg) 2rem;
    margin-left: 0;
    max-width: 100%;
  }
}


/* ============================================
   AGENCY HERO SECTION - Similar to Talent Dashboard
   ============================================ */

.agency-hero {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 24px;
  padding: var(--agency-spacing-xl);
  margin-bottom: var(--agency-spacing-xl);
  box-shadow: var(--agency-shadow-sm);
  position: relative;
  overflow: hidden;
}

.agency-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--agency-brand-color, var(--agency-accent-gold)) 50%, transparent 100%);
}

.agency-hero__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--agency-spacing-xl);
  position: relative;
  z-index: 1;
}

.agency-hero__main {
  flex: 1;
}

.agency-hero__header {
  display: flex;
  align-items: center;
  gap: var(--agency-spacing-lg);
  margin-bottom: var(--agency-spacing-xl);
}

.agency-hero__logo {
  flex-shrink: 0;
}

.agency-hero__logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--agency-brand-color, var(--agency-accent-gold)) 0%, var(--agency-brand-color-dark, var(--agency-accent-gold-dark)) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--agency-font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: var(--agency-shadow-md);
}

.agency-hero__info {
  flex: 1;
}

.agency-hero__title-wrapper {
  display: flex;
  align-items: center;
  gap: var(--agency-spacing-sm);
  margin-bottom: var(--agency-spacing-xs);
}

.agency-hero__title {
  font-family: var(--agency-font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--agency-text-primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.agency-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-family: var(--agency-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agency-hero__badge--verified {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.agency-hero__subtitle {
  font-family: var(--agency-font-sans);
  font-size: 1rem;
  color: var(--agency-text-secondary);
  margin: 0 0 var(--agency-spacing-sm) 0;
  font-weight: 400;
}

.agency-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--agency-spacing-md);
  margin-top: var(--agency-spacing-sm);
}

.agency-hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--agency-spacing-xs);
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  font-weight: 400;
}

.agency-hero__meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
  color: var(--agency-text-tertiary);
}

.agency-hero__meta-item a {
  color: var(--agency-brand-color, var(--agency-accent-gold));
  text-decoration: none;
  transition: var(--agency-transition-fast);
}

.agency-hero__meta-item a:hover {
  text-decoration: underline;
}

.agency-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--agency-spacing-lg);
  margin-top: var(--agency-spacing-lg);
}

.agency-hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-xs);
}

.agency-hero__stat-value {
  font-family: var(--agency-font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--agency-text-primary);
  line-height: 1;
}

.agency-hero__stat-label {
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--agency-text-tertiary);
}

.agency-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
  align-items: flex-end;
}

.agency-hero__action {
  display: flex;
  align-items: center;
  gap: var(--agency-spacing-xs);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  border: 1px solid var(--agency-border);
  background: var(--agency-bg-surface);
  color: var(--agency-text-primary);
}

.agency-hero__action--primary {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: #FFFFFF;
}

.agency-hero__action--primary:hover {
  background: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
  border-color: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 165, 90, 0.3);
}

.agency-hero__action--primary:focus {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: 2px;
}

.agency-hero__action--primary:active {
  transform: translateY(0);
}

.agency-hero__action--secondary:hover {
  background: var(--agency-bg-elevated);
  border-color: var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.agency-hero__action--secondary:focus {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: 2px;
}

.agency-hero__action:active {
  transform: translateY(0);
}

.agency-hero__action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   AGENCY INFORMATION PANEL
   ============================================ */

.agency-info-panel {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 24px;
  padding: var(--agency-spacing-xl);
  margin-bottom: var(--agency-spacing-xl);
  box-shadow: var(--agency-shadow-sm);
}

.agency-info-panel__content {
  max-width: 100%;
}

.agency-info-panel__header {
  margin-bottom: var(--agency-spacing-xl);
}

.agency-info-panel__title {
  font-family: var(--agency-font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--agency-text-primary);
  margin: 0 0 var(--agency-spacing-xs) 0;
  letter-spacing: -0.01em;
}

.agency-info-panel__subtitle {
  font-family: var(--agency-font-sans);
  font-size: 1rem;
  color: var(--agency-text-secondary);
  margin: 0;
  font-weight: 400;
}

.agency-info-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--agency-spacing-lg);
}

.agency-info-panel__card {
  display: flex;
  align-items: flex-start;
  gap: var(--agency-spacing-md);
  padding: var(--agency-spacing-lg);
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  transition: var(--agency-transition-fast);
}

.agency-info-panel__card:hover {
  border-color: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  box-shadow: var(--agency-shadow-sm);
  transform: translateY(-2px);
}

.agency-info-panel__card:focus-within {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: 2px;
}

.agency-info-panel__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.8;
}

.agency-info-panel__card-content {
  flex: 1;
}

.agency-info-panel__card-title {
  font-family: var(--agency-font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0 0 var(--agency-spacing-xs) 0;
}

.agency-info-panel__card-text {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .agency-hero__content {
    flex-direction: column;
  }

  .agency-hero__actions {
    flex-direction: row;
    width: 100%;
  }

  .agency-hero__action {
    flex: 1;
    justify-content: center;
  }

  .agency-info-panel__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .agency-hero {
    padding: var(--agency-spacing-lg);
  }

  .agency-hero__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .agency-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .agency-hero__actions {
    flex-direction: column;
  }

  .agency-info-panel {
    padding: var(--agency-spacing-lg);
  }
}

/* ============================================
   DASHBOARD HEADER
   ============================================ */

/* ============================================
   TAB NAVIGATION
   ============================================ */

.agency-dashboard__tabs {
  margin-bottom: var(--agency-spacing-lg);
}

.agency-dashboard__tabs-container {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--agency-border);
  padding-bottom: 0;
}

.agency-dashboard__tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  color: var(--agency-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--agency-transition-fast);
  position: relative;
}

.agency-dashboard__tab:hover {
  color: var(--agency-text-primary);
  background: var(--agency-bg-elevated);
}

.agency-dashboard__tab:focus {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: -2px;
  background: var(--agency-bg-elevated);
}

.agency-dashboard__tab--active {
  color: var(--agency-brand-color, var(--agency-accent-gold));
  border-bottom-color: var(--agency-brand-color, var(--agency-accent-gold));
  font-weight: 600;
}

.agency-dashboard__tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.agency-dashboard__tab-badge {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* ============================================
   SCOUT TALENT GRID
   ============================================ */

/* Scout Container */
/* Removed - sidebar no longer used on discover page */

/* Scout Filters Sidebar */
.scout-filters {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  padding: var(--agency-spacing-lg);
  height: fit-content;
  position: sticky;
  top: var(--agency-spacing-lg);
  max-height: calc(100vh - var(--agency-spacing-xl));
  overflow-y: auto;
}

.scout-filters__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--agency-spacing-lg);
  padding-bottom: var(--agency-spacing-md);
  border-bottom: 1px solid var(--agency-border);
}

.scout-filters__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0;
  font-family: var(--agency-font-serif);
}

.scout-filters__reset {
  background: none;
  border: none;
  color: var(--agency-brand-color, var(--agency-accent-gold));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: var(--agency-transition-fast);
}

.scout-filters__reset:hover {
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.scout-filters__form {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
}

.scout-filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scout-filters__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-secondary);
}

.scout-filters__label svg {
  width: 16px;
  height: 16px;
  color: var(--agency-brand-color, var(--agency-accent-gold));
  flex-shrink: 0;
}

.scout-filters__range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scout-filters__input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--agency-font-sans);
  background: var(--agency-bg-surface);
  color: var(--agency-text-primary);
  transition: var(--agency-transition-fast);
}

.scout-filters__input:focus {
  outline: none;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 3px var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.scout-filters__input--small {
  flex: 1;
}

.scout-filters__range-separator {
  color: var(--agency-text-tertiary);
  font-weight: 500;
}

.scout-filters__select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--agency-font-sans);
  background: var(--agency-bg-surface);
  color: var(--agency-text-primary);
  transition: var(--agency-transition-fast);
  cursor: pointer;
}

.scout-filters__select:focus {
  outline: none;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 3px var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.scout-filters__actions {
  margin-top: var(--agency-spacing-sm);
  padding-top: var(--agency-spacing-md);
  border-top: 1px solid var(--agency-border);
}

.scout-filters__apply {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
}

.scout-filters__apply:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--agency-shadow-md);
}

.scout-filters__apply:active {
  transform: translateY(0);
}

.scout-filters__active {
  margin-top: var(--agency-spacing-lg);
  padding-top: var(--agency-spacing-md);
  border-top: 1px solid var(--agency-border);
}

.scout-filters__active-header {
  margin-bottom: var(--agency-spacing-sm);
}

.scout-filters__active-title {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--agency-text-tertiary);
}

.scout-filters__active-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scout-filters__active-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--agency-text-secondary);
}

.scout-filters__active-remove {
  background: none;
  border: none;
  color: var(--agency-text-tertiary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--agency-transition-fast);
}

.scout-filters__active-remove:hover {
  background: var(--agency-bg-surface);
  color: var(--agency-text-primary);
}

.agency-dashboard__scout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--agency-spacing-md);
}

.agency-dashboard__scout-card {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--agency-transition);
  box-shadow: var(--agency-shadow-sm);
}

.agency-dashboard__scout-card:hover {
  box-shadow: var(--agency-shadow-md);
  transform: translateY(-2px);
}

.agency-dashboard__scout-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--agency-bg-elevated);
  position: relative;
}

.agency-dashboard__scout-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agency-dashboard__scout-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--agency-brand-color-light, var(--agency-accent-gold-light)) 0%, rgba(201, 165, 90, 0.05) 100%);
  color: var(--agency-brand-color, var(--agency-accent-gold));
  font-size: 2rem;
  font-weight: 600;
  font-family: var(--agency-font-serif);
}

.agency-dashboard__scout-info {
  padding: var(--agency-spacing-md);
}

.agency-dashboard__scout-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0 0 0.5rem 0;
  font-family: var(--agency-font-serif);
}

.agency-dashboard__scout-name a {
  color: inherit;
  text-decoration: none;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__scout-name a:hover {
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-dashboard__scout-details {
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  margin: 0 0 var(--agency-spacing-md) 0;
  line-height: 1.5;
}

.agency-dashboard__scout-invite-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__scout-invite-btn:hover:not(:disabled) {
  background: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
  transform: translateY(-1px);
  box-shadow: var(--agency-shadow-md);
}

.agency-dashboard__scout-invite-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.agency-dashboard__header {
  margin-bottom: var(--agency-spacing-xl);
  padding-top: var(--agency-spacing-lg);
  border-top: 1px solid var(--agency-border);
}

.agency-dashboard__header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.agency-dashboard__header-main {
  flex: 1;
  min-width: 300px;
}

.agency-dashboard__eyebrow {
  display: inline-block;
  font-family: var(--agency-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--agency-brand-color, var(--agency-accent-gold));
  margin-bottom: var(--agency-spacing-sm);
}

.agency-dashboard__title {
  font-family: var(--agency-font-serif);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--agency-text-primary);
  margin: 0 0 0.75rem 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.agency-dashboard__subtitle {
  font-family: var(--agency-font-sans);
  font-size: 1.125rem;
  color: var(--agency-text-secondary);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
  max-width: 600px;
}

/* View Mode Switcher - Editorial Style */
.agency-dashboard__view-switcher {
  display: flex;
  gap: 0.5rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  padding: 0.375rem;
  box-shadow: var(--agency-shadow-sm);
  backdrop-filter: blur(10px);
}

.agency-dashboard__view-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--agency-text-secondary);
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__view-btn:hover {
  background: var(--agency-bg-elevated);
  color: var(--agency-text-primary);
}

.agency-dashboard__view-btn:focus {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: 2px;
  background: var(--agency-bg-elevated);
}

.agency-dashboard__view-btn:active {
  transform: scale(0.98);
}

.agency-dashboard__view-btn--active {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(201, 165, 90, 0.3);
}

.agency-dashboard__view-btn--active:hover {
  background: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
}

.agency-dashboard__view-btn--active:focus {
  outline: 2px solid var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
  outline-offset: 2px;
}

.agency-dashboard__view-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   EDITORIAL STAT CARDS - Premium Design
   ============================================ */

.agency-dashboard__stats {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--agency-spacing-md);
  margin-top: var(--agency-spacing-xl);
}

@media (max-width: 1200px) {
  .agency-dashboard__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .agency-dashboard__stats {
    grid-template-columns: 1fr;
  }
}

.agency-dashboard__stat-card {
  position: relative;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 20px;
  padding: var(--agency-spacing-xl);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--agency-transition);
  box-shadow: var(--agency-shadow-sm);
  overflow: hidden;
}

.agency-dashboard__stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(250, 249, 247, 0.95) 0%, rgba(250, 249, 247, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.agency-dashboard__stat-card:hover {
  box-shadow: var(--agency-shadow-lg);
  transform: translateY(-4px);
  border-color: var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.agency-dashboard__stat-card--highlight {
  background: linear-gradient(135deg, rgba(201, 165, 90, 0.12) 0%, rgba(201, 165, 90, 0.04) 100%);
  border-color: rgba(201, 165, 90, 0.25);
}

.agency-dashboard__stat-card--highlight::before {
  background: linear-gradient(135deg, rgba(201, 165, 90, 0.08) 0%, rgba(201, 165, 90, 0.02) 100%);
}

/* Hero Stat (New Today) - Larger format */
.agency-dashboard__stat-card:first-child {
  grid-row: span 1;
  min-height: 280px;
}

.agency-dashboard__stat-icon {
  font-size: 3rem;
  line-height: 1;
  position: relative;
  z-index: 2;
  opacity: 0.6;
  margin-bottom: var(--agency-spacing-sm);
}

.agency-dashboard__stat-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.agency-dashboard__stat-value {
  font-family: var(--agency-font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--agency-text-primary);
  line-height: 1;
  margin-bottom: var(--agency-spacing-xs);
  letter-spacing: -0.02em;
}

.agency-dashboard__stat-card--highlight .agency-dashboard__stat-value {
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-dashboard__stat-label {
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--agency-text-tertiary);
  margin-top: var(--agency-spacing-xs);
}

/* Stat card background images (for visual storytelling) */
.agency-dashboard__stat-card--new-today {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23FAF9F7" width="400" height="300"/></svg>');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.agency-dashboard__stat-card--new-today::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201, 165, 90, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   FILTERING & SEARCH
   ============================================ */

.agency-dashboard__filters {
  margin-bottom: 2rem;
}

.agency-dashboard__filters-main {
  margin-bottom: 1rem;
}

/* Search Bar - Editorial Style */
.agency-dashboard__search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  box-shadow: var(--agency-shadow-sm);
  transition: var(--agency-transition);
}

.agency-dashboard__search:focus-within {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 4px var(--agency-brand-color-light, var(--agency-accent-gold-light)), var(--agency-shadow-md);
}

.agency-dashboard__search-icon {
  color: var(--agency-text-tertiary);
  flex-shrink: 0;
  opacity: 0.6;
}

.agency-dashboard__search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--agency-font-sans);
  font-size: 1.125rem;
  color: var(--agency-text-primary);
  padding: 0 var(--agency-spacing-sm);
  outline: none;
}

.agency-dashboard__search-input::placeholder {
  font-family: var(--agency-font-serif);
  color: var(--agency-text-tertiary);
  font-style: italic;
  opacity: 0.7;
}

.agency-dashboard__search-clear {
  background: transparent;
  border: none;
  color: var(--agency-text-tertiary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__search-clear:hover {
  background: var(--agency-bg-elevated);
  color: var(--agency-text-primary);
}

/* Filter Chips */
.agency-dashboard__filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.agency-dashboard__filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 24px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-secondary);
  transition: var(--agency-transition-fast);
}

.agency-dashboard__filter-chip:hover {
  background: var(--agency-bg-surface);
  border-color: var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.agency-dashboard__filter-chip-remove {
  background: transparent;
  border: none;
  color: var(--agency-text-tertiary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__filter-chip-remove:hover {
  background: var(--agency-bg-surface);
  color: var(--agency-text-primary);
}

/* Advanced Filters */
.agency-dashboard__filters-advanced {
  margin-top: 1rem;
}

.agency-dashboard__filters-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  color: var(--agency-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__filters-toggle:hover {
  background: var(--agency-bg-elevated);
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-text-primary);
}

.agency-dashboard__filters-panel {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  box-shadow: var(--agency-shadow-md);
}

.agency-dashboard__filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.agency-dashboard__filters-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Batch Actions Bar */
.agency-dashboard__batch-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--agency-brand-color, var(--agency-accent-gold));
  border-radius: 12px;
  box-shadow: var(--agency-shadow-md);
  margin-top: 1rem;
}

.agency-dashboard__batch-info {
  color: #FFFFFF;
  font-weight: 600;
}

.agency-dashboard__batch-buttons {
  display: flex;
  gap: 0.75rem;
}

.agency-dashboard__batch-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  min-height: 44px;
}

.agency-dashboard__batch-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.agency-dashboard__batch-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.agency-dashboard__batch-btn:active {
  transform: translateY(0);
}

.agency-dashboard__batch-btn--cancel {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   KANBAN BOARD (PIPELINE VIEW)
   ============================================ */

.agency-dashboard__kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(350px, 1fr));
  gap: var(--agency-spacing-lg);
  align-items: start;
}

@media (max-width: 1600px) {
  .agency-dashboard__kanban {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .agency-dashboard__kanban {
    grid-template-columns: 1fr;
  }
}

.agency-dashboard__kanban-column {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 20px;
  padding: var(--agency-spacing-lg);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  transition: var(--agency-transition-fast);
  box-shadow: var(--agency-shadow-sm);
  position: relative;
}

.agency-dashboard__kanban-column:hover {
  border-color: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  box-shadow: var(--agency-shadow-md);
}

.agency-dashboard__kanban-column--drag-over {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  background: rgba(201, 165, 90, 0.05);
}

.agency-dashboard__kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.agency-dashboard__kanban-title {
  font-family: var(--agency-font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--agency-text-primary);
  margin: 0;
}

.agency-dashboard__kanban-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.625rem;
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  border: 1px solid var(--agency-brand-color, var(--agency-accent-gold));
  border-radius: 14px;
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
}

.agency-dashboard__kanban-cards {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
  flex: 1;
  overflow-y: auto;
  padding: var(--agency-spacing-xs);
  scrollbar-width: thin;
  scrollbar-color: var(--agency-border) transparent;
}

.agency-dashboard__kanban-cards::-webkit-scrollbar {
  width: 6px;
}

.agency-dashboard__kanban-cards::-webkit-scrollbar-track {
  background: transparent;
}

.agency-dashboard__kanban-cards::-webkit-scrollbar-thumb {
  background: var(--agency-border);
  border-radius: 3px;
}

.agency-dashboard__kanban-cards::-webkit-scrollbar-thumb:hover {
  background: var(--agency-text-tertiary);
}

.agency-dashboard__empty-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--agency-spacing-2xl);
  color: var(--agency-text-tertiary);
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  text-align: center;
  min-height: 200px;
  border: 2px dashed var(--agency-border);
  border-radius: 16px;
  margin: var(--agency-spacing-md);
  background: var(--agency-bg-elevated);
}

.agency-dashboard__empty-column::before {
  content: '📋';
  font-size: 3rem;
  margin-bottom: var(--agency-spacing-sm);
  opacity: 0.3;
}

/* ============================================
   APPLICATION CARD - Image-First Editorial Design
   ============================================ */

.agency-dashboard__card {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--agency-transition);
  cursor: grab;
  position: relative;
  width: 100%;
  min-width: 320px;
  box-shadow: var(--agency-shadow-sm);
  backdrop-filter: blur(10px);
}

.agency-dashboard__card:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.agency-dashboard__card:hover {
  box-shadow: var(--agency-shadow-lg);
  transform: translateY(-6px) scale(1.01);
  border-color: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  background: var(--agency-bg-elevated);
}

.agency-dashboard__card:focus-within {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: 2px;
}

.agency-dashboard__card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  box-shadow: var(--agency-shadow-xl);
}

.agency-dashboard__card-checkbox {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 0.25rem;
  opacity: 0;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__card:hover .agency-dashboard__card-checkbox {
  opacity: 1;
}

.agency-dashboard__select-checkbox,
#select-all.agency-dashboard__select-all,
.agency-dashboard__select-all {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-dashboard__card-image {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--agency-bg-elevated);
  overflow: hidden;
  width: 100%;
}

.agency-dashboard__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--agency-transition-smooth);
}

.agency-dashboard__card:hover .agency-dashboard__card-image img {
  transform: scale(1.05);
}

.agency-dashboard__card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--agency-font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--agency-text-tertiary);
  background: linear-gradient(135deg, #F5F5F4 0%, #E7E5E4 100%);
}

.agency-dashboard__card-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: flex-start;
  z-index: 10;
}

.agency-dashboard__badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.agency-dashboard__badge--pro {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: #FFFFFF;
}

.agency-dashboard__badge--pro-black {
  background: #000000;
  color: #ffffff;
}

.agency-dashboard__badge--status {
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.agency-dashboard__badge--pending {
  background: rgba(255, 193, 7, 0.9);
  color: #000000;
}

.agency-dashboard__badge--accepted {
  background: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
}

.agency-dashboard__badge--declined {
  background: rgba(239, 68, 68, 0.9);
  color: #FFFFFF;
}

.agency-dashboard__badge--archived {
  background: rgba(148, 163, 184, 0.9);
  color: #FFFFFF;
}

.agency-dashboard__card-score {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: var(--agency-shadow-sm);
}

.agency-dashboard__score-value {
  font-family: var(--agency-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1;
}

.agency-dashboard__score-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--agency-text-tertiary);
  margin-top: 0.125rem;
}

.agency-dashboard__card-content {
  padding: var(--agency-spacing-md) var(--agency-spacing-md) var(--agency-spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-xs);
}

.agency-dashboard__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.agency-dashboard__card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agency-dashboard__card-name {
  font-family: var(--agency-font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.agency-dashboard__card-notes-btn {
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--agency-text-tertiary);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__card-notes-btn span {
  color: var(--agency-text-primary);
  font-weight: 500;
}

.agency-dashboard__card-notes-btn:hover {
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-dashboard__card-menu {
  background: transparent;
  border: none;
  color: var(--agency-text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: var(--agency-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.agency-dashboard__card-menu:hover {
  background: var(--agency-bg-elevated);
  color: var(--agency-text-primary);
}

.agency-dashboard__card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: var(--agency-spacing-xs);
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  font-weight: 400;
}

.agency-dashboard__card-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.agency-dashboard__card-stats {
  font-size: 0.8125rem;
  color: var(--agency-text-tertiary);
}

.agency-dashboard__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.agency-dashboard__tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.agency-dashboard__tag--purple {
  background: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
}

.agency-dashboard__tag--blue {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.agency-dashboard__tag--green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.agency-dashboard__tag--orange {
  background: rgba(249, 115, 22, 0.1);
  color: #EA580C;
}

.agency-dashboard__card-bio {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-tertiary);
  line-height: 1.6;
  margin: 0 0 var(--agency-spacing-sm) 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
}

.agency-dashboard__card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-xs);
  margin-top: auto;
  padding-top: var(--agency-spacing-xs);
  border-top: 1px solid var(--agency-border);
}

.agency-dashboard__card-preview {
  width: 100%;
  padding: 0.625rem;
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  color: var(--agency-text-primary);
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.agency-dashboard__card-preview:hover {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 165, 90, 0.3);
}

.agency-dashboard__card-quick-actions {
  display: flex;
  gap: 0.5rem;
}

.agency-dashboard__card-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.agency-dashboard__match-score {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--agency-brand-color, var(--agency-accent-gold, #C9A55A));
}

.agency-dashboard__match-score--excellent,
.agency-dashboard__match-score--good,
.agency-dashboard__match-score--fair,
.agency-dashboard__match-score--poor {
  color: var(--agency-brand-color, var(--agency-accent-gold, #C9A55A));
}

.agency-dashboard__quick-btn--accept-solid {
  flex: 1;
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.agency-dashboard__quick-btn--decline-outline {
  flex: 1;
  background-color: #ffffff;
  color: #ef4444;
  border: 1px solid #ef4444;
}

.agency-dashboard__quick-form {
  flex: 1;
  margin: 0;
}

.agency-dashboard__quick-btn {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agency-dashboard__quick-btn--accept {
  background: var(--accent-success);
  border-color: var(--accent-success);
  color: #FFFFFF;
}

.agency-dashboard__quick-btn--accept:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.agency-dashboard__quick-btn--decline {
  background: var(--agency-bg-surface);
  border-color: var(--agency-border);
  color: var(--agency-text-secondary);
}

.agency-dashboard__quick-btn--decline:hover {
  background: var(--accent-error);
  border-color: var(--accent-error);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ============================================
   GALLERY VIEW - Magazine-Style Masonry Grid
   ============================================ */

.agency-dashboard__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--agency-spacing-lg);
  padding: var(--agency-spacing-md) 0;
}

.agency-dashboard__gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem; /* gap-6 */
  padding: var(--agency-spacing-md) 0;
  max-width: 100%;
}

@media (min-width: 640px) {
  .agency-dashboard__gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* sm:grid-cols-2 */
  }
}

@media (min-width: 1024px) {
  .agency-dashboard__gallery-grid {
    grid-template-columns: repeat(4, 1fr); /* lg:grid-cols-4 */
  }
}

/* Ensure gallery cards don't stretch beyond reasonable size */
.agency-dashboard__gallery-grid .agency-dashboard__gallery-card {
  max-width: 100%;
  width: 100%;
  min-width: 0; /* Prevent flex/grid items from overflowing */
}

.agency-dashboard__gallery-card {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.agency-dashboard__gallery-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
  transform: translateY(-0.25rem); /* -translate-y-1 */
}

.agency-dashboard__gallery-image {
  position: relative;
  aspect-ratio: 3/4; /* aspect-[3/4] */
  background: var(--agency-bg-elevated);
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.agency-dashboard__gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Quick Info Overlays */
.agency-dashboard__gallery-checkbox {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 0.25rem;
  padding: 0.25rem;
}

.agency-dashboard__gallery-card:hover .agency-dashboard__gallery-checkbox,
.agency-dashboard__gallery-card:has(input:checked) .agency-dashboard__gallery-checkbox {
  opacity: 1;
}

.agency-dashboard__gallery-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-dashboard__gallery-match-score {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9); /* bg-white/90 */
  color: var(--agency-text-primary, #0f172a);
  font-size: 0.75rem; /* text-xs */
  font-weight: 700; /* font-bold */
  padding: 0.25rem 0.5rem; /* px-2 py-1 */
  border-radius: 9999px; /* rounded-full */
  font-family: var(--agency-font-sans);
}

.agency-dashboard__gallery-status {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: var(--agency-font-sans);
  color: var(--agency-text-secondary, #64748b);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.agency-dashboard__gallery-status[data-status="new"] {
  color: var(--agency-text-primary, #0f172a);
}

.agency-dashboard__gallery-status[data-status="pending"],
.agency-dashboard__gallery-status[data-status="under-review"] {
  color: var(--agency-text-secondary, #64748b);
}

.agency-dashboard__gallery-status[data-status="accepted"] {
  color: #059669;
}

.agency-dashboard__gallery-status[data-status="declined"] {
  color: #dc2626;
}

/* Card Content (Below Image) */
.agency-dashboard__gallery-info {
  padding: 1rem;
  background: var(--agency-bg-surface, #ffffff);
}

.agency-dashboard__gallery-name {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 1.125rem; /* text-lg */
  font-weight: 500; /* font-medium */
  color: #111827; /* text-gray-900 */
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.agency-dashboard__gallery-details {
  font-family: var(--agency-font-sans);
  font-size: 0.75rem; /* text-xs */
  color: #6b7280; /* text-gray-500 */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-wider */
  margin: 0;
  line-height: 1.4;
}

/* Gallery placeholder and additional styles */
.agency-dashboard__gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--agency-font-serif);
  font-size: 3rem;
  color: var(--agency-text-tertiary, #94a3b8);
  background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
  font-weight: 600;
  color: var(--agency-text-tertiary);
  background: linear-gradient(135deg, #F5F5F4 0%, #E7E5E4 100%);
}

/* ============================================
   LIST VIEW
   ============================================ */

.agency-dashboard__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agency-dashboard__list-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  transition: var(--agency-transition);
}

.agency-dashboard__list-item:hover {
  box-shadow: var(--agency-shadow-md);
  transform: translateX(4px);
}

.agency-dashboard__list-checkbox {
  display: flex;
  align-items: center;
}

.agency-dashboard__list-image {
  width: 60px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--agency-bg-elevated);
  flex-shrink: 0;
}

.agency-dashboard__list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agency-dashboard__list-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--agency-font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--agency-text-tertiary);
  background: linear-gradient(135deg, #F5F5F4 0%, #E7E5E4 100%);
}

.agency-dashboard__list-content {
  min-width: 0;
}

.agency-dashboard__list-name {
  font-family: var(--agency-font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0 0 0.25rem 0;
}

.agency-dashboard__list-meta {
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  margin: 0 0 0.5rem 0;
}

.agency-dashboard__list-bio {
  font-size: 0.875rem;
  color: var(--agency-text-tertiary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agency-dashboard__list-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.agency-dashboard__list-preview {
  padding: 0.5rem 1rem;
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  color: var(--agency-text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__list-preview:hover {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: #FFFFFF;
}

/* ============================================
   INBOX LIST VIEW (Editorial Style)
   ============================================ */

.applicants-inbox-view {
  margin-top: 0;
}

/* View visibility - ensure only one view is visible at a time */
.agency-dashboard__view {
  display: none;
}

.agency-dashboard__view--active {
  display: block !important;
}

/* Ensure list view is visible only when active */
.agency-dashboard__view--list.applicants-inbox-view.agency-dashboard__view--active {
  display: block !important;
}

/* Hide all views when not active - override any other display rules */
.agency-dashboard__view--list:not(.agency-dashboard__view--active),
.agency-dashboard__view--gallery:not(.agency-dashboard__view--active),
.agency-dashboard__view--table:not(.agency-dashboard__view--active) {
  display: none !important;
}

/* Container spacing */
.applicants-views-container {
  margin-top: 0;
  padding-top: 0;
}

.applicants-inbox {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--agency-bg-surface, #ffffff);
  border: 1px solid var(--agency-border, #e2e8f0);
  border-radius: 0;
  margin-top: 0;
}

.applicants-inbox-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem; /* gap-4 between image and name */
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--agency-border, #e2e8f0);
  background: var(--agency-bg-surface, #ffffff);
  transition: background-color 0.2s ease;
  position: relative;
}

.applicants-inbox-row:last-child {
  border-bottom: none;
}

.applicants-inbox-row:hover {
  background: rgba(0, 0, 0, 0.01);
}

/* Left: Checkbox + Photo */
.applicants-inbox-row__left {
  display: flex;
  align-items: center;
  gap: 1rem; /* gap-4 = 1rem */
}

.applicants-inbox-row__checkbox {
  display: flex;
  align-items: center;
}

.applicants-inbox-row__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.applicants-inbox-row__photo {
  width: 56px; /* w-14 */
  height: 80px; /* h-20 - 3:4 aspect ratio */
  aspect-ratio: 3/4;
  border-radius: 0.125rem; /* rounded-sm */
  overflow: hidden;
  background: var(--agency-bg-elevated, #f5f5f4);
  flex-shrink: 0;
  border: 1px solid var(--agency-border, #e2e8f0);
}

.applicants-inbox-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.applicants-inbox-row__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--agency-text-tertiary, #94a3b8);
  background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
}

/* Center: Name + Meta */
.applicants-inbox-row__center {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center with taller portrait */
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.applicants-inbox-row__name-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.applicants-inbox-row__name {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--agency-text-primary, #0f172a);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.applicants-inbox-row__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.applicants-inbox-row__name a:hover {
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.applicants-inbox-row__pro-badge {
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: transparent;
  color: var(--agency-brand-color, var(--agency-accent-gold, #d4af37));
  border: 1px solid #000000;
  border-radius: 4px;
}

.applicants-inbox-row__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  color: var(--agency-text-secondary, #64748b);
  line-height: 1.5;
}

.applicants-inbox-row__location {
  font-weight: 400;
}

.applicants-inbox-row__separator {
  color: var(--agency-text-tertiary, #cbd5e1);
}

.applicants-inbox-row__stat {
  font-weight: 400;
}

/* Right: Match + Status + Actions */
.applicants-inbox-row__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.applicants-inbox-row__match-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--agency-brand-color, var(--agency-accent-gold, #C9A55A));
  background: transparent;
  border: none;
  padding: 0;
  min-width: auto;
  height: auto;
}

.applicants-inbox-row__match-pill--excellent,
.applicants-inbox-row__match-pill--good,
.applicants-inbox-row__match-pill--fair,
.applicants-inbox-row__match-pill--poor {
  color: var(--agency-brand-color, var(--agency-accent-gold, #C9A55A));
  background: transparent;
  border: none;
}

.applicants-inbox-row__status {
  display: flex;
  align-items: center;
}

.applicants-inbox-row__status-badge {
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0;
  text-transform: capitalize;
  color: var(--agency-text-secondary, #64748b);
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.applicants-inbox-row__status-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--agency-text-tertiary, #94a3b8);
  flex-shrink: 0;
}

.applicants-inbox-row__status-badge--new,
.applicants-inbox-row__status-badge--pending,
.applicants-inbox-row__status-badge--under-review,
.applicants-inbox-row__status-badge--accepted,
.applicants-inbox-row__status-badge--declined,
.applicants-inbox-row__status-badge--archived {
  color: var(--agency-text-secondary, #64748b);
  background: transparent;
  border: none;
}

.applicants-inbox-row__status-badge--new::before,
.applicants-inbox-row__status-badge--pending::before,
.applicants-inbox-row__status-badge--under-review::before,
.applicants-inbox-row__status-badge--accepted::before,
.applicants-inbox-row__status-badge--declined::before,
.applicants-inbox-row__status-badge--archived::before {
  background: var(--agency-text-tertiary, #94a3b8);
}

.applicants-inbox-row__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.applicants-inbox-row__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--agency-border, #e2e8f0);
  border-radius: 6px;
  background: transparent;
  color: var(--agency-text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.2s ease;
}

.applicants-inbox-row__action-btn:hover {
  background: var(--agency-bg-elevated, #f5f5f4);
  border-color: var(--agency-text-tertiary, #cbd5e1);
  color: var(--agency-text-primary, #0f172a);
}

.applicants-inbox-row__action-btn--accept:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

.applicants-inbox-row__action-btn--decline:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.applicants-inbox-row__action-btn svg {
  width: 16px;
  height: 16px;
}

.applicants-inbox__empty {
  padding: 4rem 2rem;
  text-align: center;
}

.applicants-inbox__empty-text {
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.9375rem;
  color: var(--agency-text-secondary, #64748b);
  margin: 0;
}

/* Enhanced Empty State */
.applicants-inbox__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 2.5rem 2rem;
  text-align: center;
  background: 
    radial-gradient(circle at 20% 30%, rgba(15, 23, 42, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(15, 23, 42, 0.015) 0%, transparent 50%);
  border-radius: 16px;
  position: relative;
}

.applicants-inbox__empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(15, 23, 42, 0.01) 35px,
      rgba(15, 23, 42, 0.01) 70px
    );
  border-radius: 16px;
  pointer-events: none;
}

.applicants-inbox__empty-state > * {
  position: relative;
  z-index: 1;
}

.applicants-inbox__empty-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  color: var(--agency-text-tertiary, #94a3b8);
  opacity: 0.5;
}

.applicants-inbox__empty-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.applicants-inbox__empty-title {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--agency-text-primary, #0f172a);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.applicants-inbox__empty-description {
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.9375rem;
  color: var(--agency-text-secondary, #64748b);
  max-width: 480px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.6;
}

.applicants-inbox__empty-actions {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.applicants-inbox__empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.applicants-inbox__empty-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.applicants-inbox__empty-btn--primary {
  background: var(--agency-text-primary, #0f172a);
  color: #ffffff;
  border: 1px solid var(--agency-text-primary, #0f172a);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.applicants-inbox__empty-btn--primary:hover {
  background: var(--agency-text-secondary, #475569);
  border-color: var(--agency-text-secondary, #475569);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.applicants-inbox__empty-btn--secondary {
  background: var(--agency-bg-surface, #ffffff);
  color: var(--agency-text-primary, #0f172a);
  border: 1px solid var(--agency-border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.applicants-inbox__empty-btn--secondary:hover {
  background: var(--agency-bg-elevated, #f5f5f4);
  border-color: var(--agency-text-tertiary, #cbd5e1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.applicants-inbox__empty-tips {
  background: var(--agency-bg-surface, #ffffff);
  border: 1px solid var(--agency-border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  max-width: 560px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.applicants-inbox__empty-tips-title {
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--agency-text-primary, #0f172a);
  margin: 0 0 0.875rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.applicants-inbox__empty-tips-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.applicants-inbox__empty-tips-list li {
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  color: var(--agency-text-secondary, #64748b);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.applicants-inbox__empty-tips-list li:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .applicants-inbox-row {
    padding: 1.25rem 1.5rem;
  }

  .applicants-inbox-row__meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .applicants-inbox-row {
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }

  .applicants-inbox-row__right {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--agency-border, #e2e8f0);
  }

  .applicants-inbox-row__name {
    font-size: 1.125rem;
  }

  .applicants-inbox-row__meta {
    font-size: 0.8125rem;
  }

  .applicants-inbox-row__match-pill {
    min-width: 48px;
    height: 28px;
    font-size: 0.75rem;
  }

  .applicants-inbox-row__actions {
    gap: 0.375rem;
  }

  .applicants-inbox-row__action-btn {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .applicants-inbox-row {
    padding: 1rem;
  }

  .applicants-inbox-row__photo {
    width: 50px;
    height: 50px;
  }

  .applicants-inbox-row__name {
    font-size: 1rem;
  }

  .agency-applicants-header__row--controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .agency-applicants-header__search-group {
    width: 100%;
    flex-direction: column;
  }

  .agency-applicants-header__search {
    width: 100%;
    max-width: 100%;
  }

  .agency-applicants-header__view-toggle {
    align-self: flex-end;
    width: 100%;
    justify-content: center;
  }

  .agency-applicants-header__view-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
  }

  .agency-applicants-header__view-label {
    font-size: 0.8125rem;
  }

  .applicants-status-pills {
    gap: 0.375rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .applicants-status-pill {
    font-size: 0.8125rem;
    padding: 0.4375rem 0.875rem;
    flex-shrink: 0;
  }
}

/* ============================================
   TABLE VIEW
   ============================================ */

.agency-dashboard__table-wrapper {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--agency-shadow-sm);
}

.agency-dashboard__table {
  width: 100%;
  border-collapse: collapse;
}

.agency-dashboard__table thead {
  background: var(--agency-bg-elevated);
  border-bottom: 2px solid var(--agency-border);
}

.agency-dashboard__table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--agency-text-tertiary);
}

.agency-dashboard__table tbody tr {
  border-bottom: 1px solid var(--agency-border);
  transition: background-color 0.2s ease;
}

.agency-dashboard__table tbody tr:hover {
  background: #fafaf9; /* hover:bg-stone-50 */
}

.agency-dashboard__table td {
  padding: 0.75rem 1rem; /* py-3 */
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  vertical-align: middle;
}

.agency-dashboard__table-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agency-dashboard__table-avatar {
  width: 2.5rem; /* w-10 */
  height: 3.5rem; /* h-14 */
  aspect-ratio: 3/4;
  border-radius: 0.125rem; /* rounded-sm */
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.agency-dashboard__table-name-text {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 0.875rem;
  font-weight: 500; /* font-medium */
  color: #111827; /* text-gray-900 */
}

.agency-dashboard__status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: capitalize;
  color: #6b7280; /* gray text */
  background: transparent;
  border: none;
}

.agency-dashboard__status-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--agency-text-tertiary, #94a3b8);
  flex-shrink: 0;
}

.agency-dashboard__status-badge--pending::before,
.agency-dashboard__status-badge--under-review::before,
.agency-dashboard__status-badge--new::before {
  background: #6b7280; /* gray dot */
}

.agency-dashboard__status-badge--accepted::before {
  background: #059669; /* green dot */
}

.agency-dashboard__status-badge--declined::before {
  background: #dc2626; /* red dot */
}

.agency-dashboard__status-badge--archived::before {
  background: #6b7280; /* gray dot */
}

.agency-dashboard__table-height {
  font-weight: 600; /* font-semibold */
}

.agency-dashboard__table-measurements {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
}

.agency-dashboard__table-na {
  font-size: 0.75rem;
  font-style: italic;
  color: #9ca3af; /* small italic gray */
}

.agency-dashboard__table-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agency-dashboard__table-review {
  padding: 0.25rem 0.75rem; /* px-3 py-1 */
  background: transparent;
  border: 1px solid #e5e7eb; /* border-gray-200 */
  border-radius: 0.375rem; /* rounded */
  color: var(--agency-text-primary, #0f172a);
  font-size: 0.75rem; /* text-xs */
  font-weight: 500; /* font-medium */
  cursor: pointer;
  transition: all 0.2s ease; /* transition-all */
  font-family: var(--agency-font-sans);
}

.agency-dashboard__table-review:hover {
  border-color: #000000; /* hover:border-black */
  background: #000000; /* hover:bg-black */
  color: #ffffff; /* hover:text-white */
}

.agency-dashboard__table-menu {
  position: relative;
}

.agency-dashboard__table-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  color: var(--agency-text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0; /* Hidden by default */
}

.agency-dashboard__table-row:hover .agency-dashboard__table-menu-btn,
.agency-dashboard__table-row.group:hover .agency-dashboard__table-menu-btn {
  opacity: 1; /* Show on row hover */
}

.agency-dashboard__table-menu-btn:hover {
  border-color: #000000;
  color: #000000;
}

.agency-dashboard__table-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  z-index: 10;
  display: none;
  flex-direction: column;
  padding: 0.25rem;
}

.agency-dashboard__table-menu:hover .agency-dashboard__table-menu-dropdown {
  display: flex;
}

.agency-dashboard__table-menu-item {
  padding: 0.5rem 0.75rem;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--agency-text-primary, #0f172a);
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: var(--agency-font-sans);
}

.agency-dashboard__table-menu-item:hover {
  background: #f3f4f6;
}

/* ============================================
   FLOATING ACTION BAR (TABLE VIEW)
   ============================================ */

.agency-dashboard__floating-action-bar {
  position: fixed;
  bottom: 1.5rem; /* bottom-6 */
  left: 50%;
  transform: translateX(-50%) translateY(100%); /* Hidden by default */
  background: #ffffff; /* bg-white */
  border: 1px solid #e5e7eb; /* border-gray-200 */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
  border-radius: 9999px; /* rounded-full */
  padding: 0.75rem 1.5rem; /* px-6 py-3 */
  display: flex;
  align-items: center;
  gap: 1.5rem; /* gap-6 */
  z-index: 50;
  transition: transform 0.3s ease;
  min-width: 600px;
}

.agency-dashboard__floating-action-bar.is-visible {
  transform: translateX(-50%) translateY(0); /* Slide up when visible */
}

.agency-dashboard__floating-action-bar__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.agency-dashboard__floating-action-bar__count {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--agency-text-primary, #0f172a);
  white-space: nowrap;
}

.agency-dashboard__floating-action-bar__clear {
  background: transparent;
  border: none;
  color: var(--agency-text-secondary, #64748b);
  font-size: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
  font-family: var(--agency-font-sans);
}

.agency-dashboard__floating-action-bar__clear:hover {
  color: var(--agency-text-primary, #0f172a);
}

.agency-dashboard__floating-action-bar__middle {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.agency-dashboard__floating-action-bar__avatar {
  width: 2.5rem; /* w-10 */
  height: 2.5rem; /* h-10 */
  border-radius: 50%; /* rounded-full */
  border: 2px solid #ffffff; /* border-2 border-white */
  object-fit: cover;
  margin-left: -1rem; /* -ml-4 */
  flex-shrink: 0;
  display: block;
}

.agency-dashboard__floating-action-bar__avatar:first-child {
  margin-left: 0;
}

.agency-dashboard__floating-action-bar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agency-dashboard__floating-action-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px; /* rounded-full (pill) */
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--agency-font-sans);
  white-space: nowrap;
}

.agency-dashboard__floating-action-bar__btn--primary {
  background: #000000; /* Black pill */
  color: #ffffff; /* white text */
  border: 1px solid #000000;
}

.agency-dashboard__floating-action-bar__btn--primary:hover {
  background: #292524; /* hover:bg-stone-800 */
  border-color: #292524;
}

.agency-dashboard__floating-action-bar__btn--secondary {
  background: transparent;
  color: var(--agency-text-primary, #0f172a);
  border: 1px solid #d1d5db; /* border-gray-300 */
}

.agency-dashboard__floating-action-bar__btn--secondary:hover {
  border-color: var(--agency-text-primary, #0f172a);
  background: var(--agency-bg-elevated, #f5f5f4);
}

.agency-dashboard__floating-action-bar__btn--destructive {
  background: transparent;
  color: #9ca3af; /* text-gray-400 */
  border: none;
  padding: 0.5rem; /* p-2 */
  width: 2rem;
  height: 2rem;
  border-radius: 50%; /* rounded-full */
  transition: all 0.2s ease; /* transition-colors */
}

.agency-dashboard__floating-action-bar__btn--destructive:hover {
  color: #dc2626; /* hover:text-red-600 */
  background: #fef2f2; /* hover:bg-red-50 */
}

@media (max-width: 768px) {
  .agency-dashboard__floating-action-bar {
    min-width: auto;
    width: calc(100% - 2rem);
    left: 1rem;
    transform: translateX(0) translateY(100%);
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
  
  .agency-dashboard__floating-action-bar.is-visible {
    transform: translateX(0) translateY(0);
  }
  
  .agency-dashboard__floating-action-bar__middle {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  .agency-dashboard__floating-action-bar__left,
  .agency-dashboard__floating-action-bar__right {
    flex: 1;
    justify-content: center;
  }
  
  .agency-dashboard__floating-action-bar__btn {
    font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  }
}

/* ============================================
   COMPARE MODAL (BOTTOM SHEET)
   ============================================ */

.agency-compare-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100; /* z-[100] - Higher than sidebar (50) and floating dock (50) */
  height: 75vh; /* h-[75vh] */
  width: 100vw; /* w-screen - Full viewport width */
  max-width: 100vw; /* Ensure no overflow */
  background: #ffffff; /* bg-white */
  border-top: 1px solid #e7e5e4; /* border-t border-stone-200 */
  border-radius: 1.5rem 1.5rem 0 0; /* rounded-t-3xl */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
  display: flex;
  flex-direction: column;
  transform: translateY(100%); /* Start off-screen */
  transition: transform 0.3s ease-out;
  overflow: hidden;
}

.agency-compare-modal.is-visible {
  transform: translateY(0); /* Slide up */
}

.agency-compare-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 99; /* Just below modal (100) */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: none;
}

.agency-compare-modal__overlay.is-visible {
  opacity: 1;
  pointer-events: all;
  display: block;
}

.agency-compare-modal__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

.agency-compare-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.agency-compare-modal__title {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--agency-text-primary, #0f172a);
  margin: 0;
}

.agency-compare-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  color: var(--agency-text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.2s ease;
}

.agency-compare-modal__close:hover {
  background: #f3f4f6;
  color: var(--agency-text-primary, #0f172a);
}

.agency-compare-modal__body {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 2rem; /* gap-8 */
  overflow-x: auto;
  overflow-y: hidden; /* Prevent double scrollbar */
  padding: 2rem; /* p-8 */
  height: 100%;
  align-items: flex-start;
  min-height: 0;
  width: 100%;
}

.agency-compare-modal__grid {
  display: flex;
  flex-direction: row;
  gap: 2rem; /* gap-8 */
  min-width: fit-content;
  height: 100%;
  align-items: flex-start;
  padding-bottom: 1rem;
  width: fit-content;
}

.agency-compare-column {
  display: flex;
  flex-direction: column;
  width: 320px; /* w-[320px] */
  min-width: 320px; /* min-w-[320px] */
  flex-shrink: 0; /* flex-shrink-0 */
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: visible; /* Remove overflow-y-scroll */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: fit-content;
  max-height: 100%;
}

.agency-compare-column__header {
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  z-index: 10;
}

.agency-compare-column__photo {
  width: 100%;
  aspect-ratio: 3/4; /* aspect-[3/4] */
  height: 20rem; /* h-80 */
  object-fit: cover; /* object-cover */
  border-radius: 0.375rem; /* rounded-md */
  margin-bottom: 1rem;
  background: #f3f4f6;
  flex-shrink: 0;
}

.agency-compare-column__name {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--agency-text-primary, #0f172a);
  margin: 0;
  text-align: center;
}

.agency-compare-column__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Tighter gap for alignment */
  min-height: 0;
  background: #fafaf9; /* bg-stone-50 */
  margin: 0 1.5rem 1.5rem 1.5rem;
  border-radius: 0.375rem;
}

.agency-compare-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 3.5rem; /* Fixed height for alignment */
  margin-top: 1rem; /* mt-4 */
}

.agency-compare-row:first-child {
  margin-top: 0;
}

.agency-compare-row__label {
  font-family: var(--agency-font-sans);
  font-size: 0.75rem; /* Slightly larger */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78716c; /* Darker gray for better visibility */
  margin-bottom: 0.25rem;
}

.agency-compare-row__value {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary, #0f172a);
}

.agency-compare-row__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.agency-compare-row__grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.agency-compare-row__grid-label {
  font-family: var(--agency-font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.agency-compare-row__grid-value {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary, #0f172a);
}

.agency-compare-row__measurements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.agency-compare-row__measurement {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.agency-compare-row__measurement-label {
  font-family: var(--agency-font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.agency-compare-row__measurement-value {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--agency-text-primary, #0f172a);
}

.agency-compare-column__footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  margin-top: auto; /* mt-auto - Pin to bottom */
}

.agency-compare-column__select-winner {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--agency-font-sans);
}

.agency-compare-column__select-winner:hover {
  background: #292524;
}

.agency-compare-column__notes {
  min-height: 80px;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: var(--agency-font-sans);
  color: var(--agency-text-secondary, #64748b);
  resize: vertical;
}

/* ============================================
   PREVIEW MODAL (LIGHTBOX)
   ============================================ */

.agency-dashboard__preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* Modals */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.agency-dashboard__preview-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.agency-dashboard__preview-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  background: var(--agency-bg-surface);
  border-radius: 16px;
  box-shadow: var(--agency-shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.agency-dashboard__preview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--agency-text-primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--agency-transition-fast);
  box-shadow: var(--agency-shadow-md);
}

.agency-dashboard__preview-close:hover {
  background: var(--accent-error);
  color: #FFFFFF;
  transform: scale(1.1);
}

.agency-dashboard__preview-body {
  overflow-y: auto;
  padding: 2rem;
}

.agency-dashboard__preview-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.agency-dashboard__preview-image-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agency-dashboard__preview-main-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--agency-shadow-lg);
}

.agency-dashboard__preview-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.agency-dashboard__preview-thumbnail {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  border: 2px solid transparent;
}

.agency-dashboard__preview-thumbnail:hover {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  transform: scale(1.05);
}

.agency-dashboard__preview-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agency-dashboard__preview-name {
  font-family: var(--agency-font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0;
}

.agency-dashboard__preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
}

.agency-dashboard__preview-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--agency-text-secondary);
  margin: 0;
}

.agency-dashboard__preview-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================
   KEYBOARD SHORTCUTS OVERLAY
   ============================================ */

.agency-dashboard__shortcuts-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* Modals */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.agency-dashboard__shortcuts-content {
  background: var(--agency-bg-surface);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--agency-shadow-xl);
}

.agency-dashboard__shortcuts-content h3 {
  font-family: var(--agency-font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0 0 1.5rem 0;
}

.agency-dashboard__shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agency-dashboard__shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--agency-bg-elevated);
  border-radius: 8px;
}

.agency-dashboard__shortcut-item kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  box-shadow: var(--agency-shadow-sm);
}

.agency-dashboard__shortcut-item span {
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
}

/* ============================================
   COMMAND PALETTE
   ============================================ */

.agency-dashboard__command-palette {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* Modals */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.agency-dashboard__command-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.agency-dashboard__command-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--agency-bg-surface);
  border-radius: 16px;
  box-shadow: var(--agency-shadow-xl);
  overflow: hidden;
  z-index: 1;
}

.agency-dashboard__command-input {
  width: 100%;
  padding: 1.5rem;
  border: none;
  border-bottom: 1px solid var(--border-color);
  font-size: 1rem;
  color: var(--agency-text-primary);
  background: transparent;
  outline: none;
}

.agency-dashboard__command-input::placeholder {
  color: var(--agency-text-tertiary);
}

.agency-dashboard__command-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.agency-dashboard__command-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--agency-transition-fast);
  color: var(--agency-text-primary);
}

.agency-dashboard__command-item:hover {
  background: var(--agency-bg-elevated);
}

.agency-dashboard__command-item--selected {
  background: var(--agency-bg-elevated);
}

.agency-dashboard__command-item:first-child {
  background: var(--agency-bg-elevated);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.agency-dashboard__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--agency-text-tertiary);
}

.agency-dashboard__empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .agency-dashboard__kanban {
    grid-template-columns: repeat(2, 1fr);
  }

  .agency-dashboard__header-content {
    flex-direction: column;
  }

  .agency-dashboard__view-switcher {
    width: 100%;
    justify-content: stretch;
  }

  .agency-dashboard__view-btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .agency-dashboard {
    padding: 1rem;
  }

  .agency-dashboard__kanban {
    grid-template-columns: 1fr;
  }

  .agency-dashboard__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .agency-dashboard__gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--agency-spacing-md);
  }

  .agency-dashboard__list-item {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "checkbox image"
      "content content"
      "actions actions";
  }

  .agency-dashboard__list-checkbox {
    grid-area: checkbox;
  }

  .agency-dashboard__list-image {
    grid-area: image;
  }

  .agency-dashboard__list-content {
    grid-area: content;
  }

  .agency-dashboard__list-actions {
    grid-area: actions;
    flex-direction: row;
  }

  .agency-dashboard__table-wrapper {
    overflow-x: auto;
  }

  .agency-dashboard__preview-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  /* Boards Management Mobile */
  .boards-management__card {
    padding: var(--agency-spacing-sm);
  }

  .boards-management__card-actions {
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .boards-management__card-action {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  /* Board Editor Modal Mobile */
  .board-editor-modal__content {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }

  .board-editor-modal__tabs {
    flex-wrap: wrap;
    padding: 0 var(--agency-spacing-md);
  }

  .board-editor-modal__tab {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    padding: var(--agency-spacing-xs) var(--agency-spacing-sm);
  }

  .board-editor-modal__form {
    padding: var(--agency-spacing-md);
  }

  .board-editor-modal__actions {
    flex-direction: column-reverse;
    padding: var(--agency-spacing-md);
  }

  .board-editor-modal__btn {
    width: 100%;
    justify-content: center;
  }

  /* Modals Mobile */
  .agency-notes-modal__content,
  .agency-detail-modal__content {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }

  .agency-notes-modal__body,
  .agency-detail-modal__body {
    padding: var(--agency-spacing-md);
  }
}

@media (max-width: 480px) {
  .agency-dashboard__stats {
    grid-template-columns: 1fr;
  }

  .agency-dashboard__gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--agency-spacing-md);
  }

  .agency-dashboard__view-btn span {
    display: none;
  }
}

/* ============================================
   PAGE LOAD ANIMATIONS - Editorial Fade-In
   ============================================ */

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

.agency-dashboard__header,
.agency-dashboard__stats,
.agency-dashboard__filters,
.agency-dashboard__view {
  animation: agencyFadeIn 0.6s ease-out;
}

.agency-hero,
.agency-info-panel {
  animation: agencyFadeIn 0.6s ease-out;
}

.agency-dashboard__stat-card {
  animation: agencyFadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.agency-dashboard__stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.agency-dashboard__stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.agency-dashboard__stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.agency-dashboard__stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* ============================================
   NOTES & TAGS MODAL
   ============================================ */

.agency-notes-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* Modals */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--agency-spacing-lg);
}

.agency-notes-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.agency-notes-modal__content {
  position: relative;
  background: var(--agency-bg-surface);
  border-radius: 24px;
  box-shadow: var(--agency-shadow-xl);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.agency-notes-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--agency-spacing-lg);
  border-bottom: 1px solid var(--agency-border);
  background: linear-gradient(180deg, var(--agency-bg-surface-elevated) 0%, var(--agency-bg-surface) 100%);
}

.agency-notes-modal__header-main {
  flex: 1;
}

.agency-notes-modal__title {
  font-family: var(--agency-font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.agency-notes-modal__subtitle {
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-secondary);
  margin: 0;
}

.agency-notes-modal__close {
  background: transparent;
  border: none;
  color: var(--agency-text-tertiary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--agency-transition-fast);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.agency-notes-modal__close:hover {
  background: var(--agency-bg-elevated);
  color: var(--agency-text-primary);
}

.agency-notes-modal__close:focus {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: 2px;
  background: var(--agency-bg-elevated);
}

.agency-notes-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--agency-spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-xl);
}

.agency-notes-modal__section {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
}

.agency-notes-modal__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agency-notes-modal__section-title {
  font-family: var(--agency-font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0;
}

.agency-notes-modal__add-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--agency-bg-surface);
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  color: var(--agency-text-primary);
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.agency-notes-modal__add-btn:hover {
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-notes-modal__tags-container,
.agency-notes-modal__notes-container {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
  min-height: 60px;
}

.agency-notes-modal__empty {
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-tertiary);
  text-align: center;
  padding: var(--agency-spacing-md);
  font-style: italic;
}

.agency-notes-modal__tag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: var(--agency-bg-surface-elevated);
  border-radius: 8px;
  border: 1px solid var(--agency-border);
}

.agency-notes-modal__tag-label {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  border: 1px solid;
}

.agency-notes-modal__tag-delete {
  background: transparent;
  border: none;
  color: var(--agency-text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--agency-transition-fast);
  opacity: 0.6;
}

.agency-notes-modal__tag-delete:hover {
  opacity: 1;
  color: var(--agency-text-primary);
  background: var(--agency-bg-elevated);
}

.agency-notes-modal__tag-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
  padding: var(--agency-spacing-md);
  background: var(--agency-bg-surface-elevated);
  border-radius: 12px;
  border: 1.5px solid var(--agency-border);
}

.agency-notes-modal__tag-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-primary);
  background: var(--agency-bg-surface);
  transition: var(--agency-transition-fast);
}

.agency-notes-modal__tag-input:focus {
  outline: none;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 4px var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.agency-notes-modal__tag-color-picker {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.agency-notes-modal__color-option {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  padding: 0;
}

.agency-notes-modal__color-option:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.agency-notes-modal__color-option--selected {
  border-color: var(--agency-text-primary);
  box-shadow: 0 0 0 2px var(--agency-bg-surface), 0 0 0 4px currentColor;
}

.agency-notes-modal__tag-input-actions {
  display: flex;
  gap: var(--agency-spacing-sm);
  justify-content: flex-end;
}

.agency-notes-modal__note {
  padding: var(--agency-spacing-md);
  background: var(--agency-bg-surface-elevated);
  border-radius: 12px;
  border: 1px solid var(--agency-border);
}

.agency-notes-modal__note-content {
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-primary);
  line-height: 1.6;
  margin-bottom: var(--agency-spacing-sm);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.agency-notes-modal__note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agency-notes-modal__note-date {
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  color: var(--agency-text-tertiary);
}

.agency-notes-modal__note-delete {
  background: transparent;
  border: none;
  color: var(--agency-text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--agency-transition-fast);
  opacity: 0.6;
}

.agency-notes-modal__note-delete:hover {
  opacity: 1;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

.agency-notes-modal__note-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
  padding: var(--agency-spacing-md);
  background: var(--agency-bg-surface-elevated);
  border-radius: 12px;
  border: 1.5px solid var(--agency-border);
}

.agency-notes-modal__note-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-primary);
  background: var(--agency-bg-surface);
  resize: vertical;
  min-height: 100px;
  transition: var(--agency-transition-fast);
}

.agency-notes-modal__note-input:focus {
  outline: none;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 4px var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.agency-notes-modal__note-input-actions {
  display: flex;
  gap: var(--agency-spacing-sm);
  justify-content: flex-end;
}

.agency-notes-modal__btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  border: 1.5px solid;
}

.agency-notes-modal__btn--primary {
  background: linear-gradient(135deg, var(--agency-brand-color, var(--agency-accent-gold)) 0%, var(--agency-brand-color-dark, var(--agency-accent-gold-dark)) 100%);
  color: #FFFFFF;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-notes-modal__btn--primary:hover {
  background: linear-gradient(135deg, var(--agency-brand-color-dark, var(--agency-accent-gold-dark)) 0%, #A68545 100%);
  box-shadow: 0 2px 8px rgba(201, 165, 90, 0.3);
}

.agency-notes-modal__btn--secondary {
  background: var(--agency-bg-surface);
  color: var(--agency-text-primary);
  border-color: var(--agency-border);
}

.agency-notes-modal__btn--secondary:hover {
  background: var(--agency-bg-surface-elevated);
  border-color: var(--agency-text-tertiary);
}

/* Card Tags & Notes Indicator */
.agency-dashboard__card-tags--custom {
  margin-top: 0.5rem;
}

.agency-dashboard__tag--custom {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid;
  font-weight: 500;
}

.agency-dashboard__tag--more {
  background: var(--agency-bg-surface-elevated);
  color: var(--agency-text-secondary);
  border-color: var(--agency-border);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 500;
}

.agency-dashboard__card-notes-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  background: var(--agency-bg-surface-elevated);
  border-radius: 6px;
  font-family: var(--agency-font-sans);
  font-size: 0.75rem;
  color: var(--agency-text-secondary);
  margin-top: 0.5rem;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  width: fit-content;
}

.agency-dashboard__card-notes-indicator:hover {
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-dashboard__card-notes-indicator svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .agency-notes-modal {
    padding: var(--agency-spacing-md);
  }

  .agency-notes-modal__content {
    max-height: 90vh;
    border-radius: 16px;
  }

  .agency-notes-modal__header {
    padding: var(--agency-spacing-md);
  }

  .agency-notes-modal__body {
    padding: var(--agency-spacing-md);
  }
}

/* ============================================
   APPLICATION DETAIL MODAL
   ============================================ */

.agency-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* Modals */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--agency-spacing-lg);
}

.agency-detail-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.agency-detail-modal__content {
  position: relative;
  background: var(--agency-bg-surface);
  border-radius: 24px;
  box-shadow: var(--agency-shadow-xl);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.agency-detail-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--agency-spacing-lg);
  border-bottom: 1px solid var(--agency-border);
  background: linear-gradient(180deg, var(--agency-bg-surface-elevated) 0%, var(--agency-bg-surface) 100%);
  flex-shrink: 0;
}

.agency-detail-modal__header-main {
  flex: 1;
}

.agency-detail-modal__title {
  font-family: var(--agency-font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.agency-detail-modal__subtitle {
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-secondary);
  margin: 0;
}

.agency-detail-modal__header-actions {
  display: flex;
  align-items: center;
  gap: var(--agency-spacing-sm);
  flex-shrink: 0;
}

.agency-detail-modal__portfolio-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--agency-bg-surface);
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  color: var(--agency-text-primary);
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--agency-transition-fast);
}

.agency-detail-modal__portfolio-link:hover {
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-detail-modal__close {
  background: transparent;
  border: none;
  color: var(--agency-text-tertiary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--agency-transition-fast);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.agency-detail-modal__close:hover {
  background: var(--agency-bg-elevated);
  color: var(--agency-text-primary);
}

.agency-detail-modal__close:focus {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: 2px;
  background: var(--agency-bg-elevated);
}

.agency-detail-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.agency-detail-modal__loading,
.agency-detail-modal__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--agency-spacing-2xl);
  min-height: 300px;
  gap: var(--agency-spacing-md);
}

.agency-detail-modal__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--agency-border);
  border-top-color: var(--agency-brand-color, var(--agency-accent-gold));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.agency-detail-modal__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--agency-border);
  background: var(--agency-bg-surface-elevated);
  padding: 0 var(--agency-spacing-lg);
  flex-shrink: 0;
}

.agency-detail-modal__tab {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--agency-text-secondary);
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  position: relative;
  bottom: -1px;
}

.agency-detail-modal__tab:hover {
  color: var(--agency-text-primary);
  background: var(--agency-bg-surface);
}

.agency-detail-modal__tab--active {
  color: var(--agency-brand-color, var(--agency-accent-gold));
  border-bottom-color: var(--agency-brand-color, var(--agency-accent-gold));
  font-weight: 600;
}

.agency-detail-modal__tab-content {
  display: none;
  padding: var(--agency-spacing-xl);
  flex: 1;
  overflow-y: auto;
}

.agency-detail-modal__tab-content--active {
  display: block;
}

.agency-detail-modal__overview {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-xl);
}

.agency-detail-modal__images {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
}

.agency-detail-modal__images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--agency-spacing-md);
}

.agency-detail-modal__image-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--agency-bg-surface-elevated);
  border: 1px solid var(--agency-border);
}

.agency-detail-modal__image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--agency-transition-fast);
}

.agency-detail-modal__image-item:hover img {
  transform: scale(1.05);
}

.agency-detail-modal__info-section,
.agency-detail-modal__bio-section,
.agency-detail-modal__actions-section {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
}

.agency-detail-modal__section-title {
  font-family: var(--agency-font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0;
}

.agency-detail-modal__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--agency-spacing-md);
}

.agency-detail-modal__info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.agency-detail-modal__info-label {
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--agency-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agency-detail-modal__info-value {
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-primary);
}

.agency-detail-modal__info-value a {
  color: var(--agency-brand-color, var(--agency-accent-gold));
  text-decoration: none;
  transition: var(--agency-transition-fast);
}

.agency-detail-modal__info-value a:hover {
  text-decoration: underline;
}

.agency-detail-modal__bio {
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-primary);
  line-height: 1.7;
  margin: 0;
}

.agency-detail-modal__actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--agency-spacing-md);
}

.agency-detail-modal__action-btn {
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  border: 1.5px solid;
  text-align: center;
}

.agency-detail-modal__action-btn--accept {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border-color: #10B981;
}

.agency-detail-modal__action-btn--accept:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.agency-detail-modal__action-btn--decline {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  border-color: #EF4444;
}

.agency-detail-modal__action-btn--decline:hover {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.agency-detail-modal__action-btn--archive {
  background: var(--agency-bg-surface);
  color: var(--agency-text-primary);
  border-color: var(--agency-border);
}

.agency-detail-modal__action-btn--archive:hover {
  background: var(--agency-bg-surface-elevated);
  border-color: var(--agency-text-tertiary);
}

.agency-detail-modal__action-btn--notes {
  background: linear-gradient(135deg, var(--agency-brand-color, var(--agency-accent-gold)) 0%, var(--agency-brand-color-dark, var(--agency-accent-gold-dark)) 100%);
  color: #FFFFFF;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-detail-modal__action-btn--notes:hover {
  background: linear-gradient(135deg, var(--agency-brand-color-dark, var(--agency-accent-gold-dark)) 0%, #A68545 100%);
  box-shadow: 0 2px 8px rgba(201, 165, 90, 0.3);
}

.agency-detail-modal__timeline {
  padding: var(--agency-spacing-md) 0;
}

.agency-detail-modal__timeline-list {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-lg);
  position: relative;
  padding-left: var(--agency-spacing-lg);
}

.agency-detail-modal__timeline-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--agency-border);
}

.agency-detail-modal__timeline-item {
  display: flex;
  gap: var(--agency-spacing-md);
  position: relative;
}

.agency-detail-modal__timeline-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--agency-brand-color, var(--agency-accent-gold));
  border: 2px solid var(--agency-bg-surface);
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  flex-shrink: 0;
}

.agency-detail-modal__timeline-item--created .agency-detail-modal__timeline-icon {
  background: #3B82F6;
}

.agency-detail-modal__timeline-item--viewed .agency-detail-modal__timeline-icon {
  background: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-detail-modal__timeline-item--accepted .agency-detail-modal__timeline-icon {
  background: #10B981;
}

.agency-detail-modal__timeline-item--declined .agency-detail-modal__timeline-icon {
  background: #EF4444;
}

.agency-detail-modal__timeline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.agency-detail-modal__timeline-label {
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--agency-text-primary);
}

.agency-detail-modal__timeline-date {
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  color: var(--agency-text-tertiary);
}

.agency-detail-modal__notes-section {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-lg);
}

.agency-detail-modal__notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agency-detail-modal__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--agency-spacing-sm);
}

.agency-detail-modal__tag {
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  border: 1px solid;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
}

.agency-detail-modal__notes-list {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
}

.agency-detail-modal__note-item {
  padding: var(--agency-spacing-md);
  background: var(--agency-bg-surface-elevated);
  border-radius: 12px;
  border: 1px solid var(--agency-border);
}

.agency-detail-modal__note-text {
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-primary);
  line-height: 1.6;
  margin-bottom: var(--agency-spacing-xs);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.agency-detail-modal__note-date {
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  color: var(--agency-text-tertiary);
}

.agency-detail-modal__empty {
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-tertiary);
  text-align: center;
  padding: var(--agency-spacing-xl);
  font-style: italic;
}

.agency-detail-modal__add-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--agency-bg-surface);
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  color: var(--agency-text-primary);
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.agency-detail-modal__add-btn:hover {
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-detail-modal__btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  border: 1.5px solid;
}

.agency-detail-modal__btn--primary {
  background: linear-gradient(135deg, var(--agency-brand-color, var(--agency-accent-gold)) 0%, var(--agency-brand-color-dark, var(--agency-accent-gold-dark)) 100%);
  color: #FFFFFF;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-detail-modal__btn--primary:hover {
  background: linear-gradient(135deg, var(--agency-brand-color-dark, var(--agency-accent-gold-dark)) 0%, #A68545 100%);
  box-shadow: 0 2px 8px rgba(201, 165, 90, 0.3);
}

@media (max-width: 1024px) {
  .agency-detail-modal__content {
    max-width: 95vw;
  }

  .agency-detail-modal__images-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .agency-detail-modal__info-grid {
    grid-template-columns: 1fr;
  }

  .agency-detail-modal__actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .agency-detail-modal {
    padding: var(--agency-spacing-md);
  }

  .agency-detail-modal__content {
    max-height: 95vh;
    border-radius: 16px;
  }

  .agency-detail-modal__header {
    padding: var(--agency-spacing-md);
    flex-direction: column;
    gap: var(--agency-spacing-sm);
  }

  .agency-detail-modal__header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .agency-detail-modal__tabs {
    padding: 0 var(--agency-spacing-md);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .agency-detail-modal__tabs::-webkit-scrollbar {
    display: none;
  }

  .agency-detail-modal__tab {
    padding: 0.875rem 1rem;
    white-space: nowrap;
    font-size: 0.875rem;
  }

  .agency-detail-modal__tab-content {
    padding: var(--agency-spacing-md);
  }

  .agency-detail-modal__images-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--agency-spacing-sm);
  }
}

/* ============================================
   AGENCY PROFILE ACCORDION
   ============================================ */

.agency-profile-accordion {
  margin: var(--agency-spacing-xl) 0;
}

.agency-profile-accordion__container {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
}

.agency-profile-accordion__item {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--agency-transition-fast);
}

.agency-profile-accordion__item:hover {
  border-color: var(--agency-text-tertiary);
  box-shadow: var(--agency-shadow-sm);
}

.agency-profile-accordion__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--agency-spacing-lg);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: var(--agency-transition-fast);
}

.agency-profile-accordion__header:hover {
  background: var(--agency-bg-surface-elevated);
}

.agency-profile-accordion__header:focus {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: -2px;
  background: var(--agency-bg-surface-elevated);
}

.agency-profile-accordion__header--active {
  background: var(--agency-bg-surface-elevated);
  border-bottom: 1px solid var(--agency-border);
}

.agency-profile-accordion__header-content {
  flex: 1;
}

.agency-profile-accordion__title {
  font-family: var(--agency-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.agency-profile-accordion__subtitle {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  margin: 0;
}

.agency-profile-accordion__chevron {
  flex-shrink: 0;
  color: var(--agency-text-tertiary);
  transition: var(--agency-transition-fast);
  transform: rotate(0deg);
}

.agency-profile-accordion__header--active .agency-profile-accordion__chevron {
  transform: rotate(180deg);
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-profile-accordion__content {
  display: none;
  padding: var(--agency-spacing-lg);
  border-top: 1px solid var(--agency-border);
}

.agency-profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-lg);
}

.agency-profile-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--agency-spacing-md);
}

.agency-profile-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agency-profile-form__field--full {
  grid-column: 1 / -1;
}

.agency-profile-form__field label {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary);
  letter-spacing: 0.02em;
}

.agency-profile-form__input,
.agency-profile-form__textarea,
.agency-profile-form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-primary);
  background: var(--agency-bg-surface-elevated);
  transition: var(--agency-transition-fast);
}

.agency-profile-form__input:focus,
.agency-profile-form__textarea:focus,
.agency-profile-form__select:focus {
  outline: none;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 4px var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.agency-profile-form__textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--agency-font-sans);
  line-height: 1.6;
}

.agency-profile-form__help {
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  color: var(--agency-text-tertiary);
  margin: 0;
}

.agency-profile-form__logo-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
}

.agency-profile-form__logo-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--agency-border);
  background: var(--agency-bg-surface-elevated);
}

.agency-profile-form__logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.agency-profile-form__logo-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.375rem 0.625rem;
  background: rgba(239, 68, 68, 0.9);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: var(--agency-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.agency-profile-form__logo-remove:hover {
  background: #EF4444;
}

.agency-profile-form__logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 2px dashed var(--agency-border);
  border-radius: 12px;
  background: var(--agency-bg-surface-elevated);
  color: var(--agency-text-tertiary);
  gap: 0.5rem;
}

.agency-profile-form__logo-placeholder p {
  font-family: var(--agency-font-sans);
  font-size: 0.75rem;
  margin: 0;
}

.agency-profile-form__file-input {
  display: none;
}

.agency-profile-form__file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--agency-bg-surface);
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  color: var(--agency-text-primary);
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  width: fit-content;
}

.agency-profile-form__file-label:hover {
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-profile-form__color-wrapper {
  display: flex;
  align-items: center;
  gap: var(--agency-spacing-sm);
}

.agency-profile-form__color-input {
  width: 60px;
  height: 40px;
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: var(--agency-bg-surface-elevated);
}

.agency-profile-form__color-text {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  font-family: var(--agency-font-mono, monospace);
  font-size: 0.875rem;
  color: var(--agency-text-primary);
  background: var(--agency-bg-surface-elevated);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agency-profile-form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
}

.agency-profile-form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-primary);
}

.agency-profile-form__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--agency-brand-color, var(--agency-accent-gold));
  cursor: pointer;
}

.agency-profile-form__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--agency-spacing-md);
  border-top: 1px solid var(--agency-border);
}

.agency-profile-form__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  border: 1.5px solid;
  position: relative;
  overflow: hidden;
}

.agency-profile-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.agency-profile-form__btn--primary {
  background: linear-gradient(135deg, var(--agency-brand-color, var(--agency-accent-gold)) 0%, var(--agency-brand-color-dark, var(--agency-accent-gold-dark)) 100%);
  color: #FFFFFF;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-profile-form__btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--agency-brand-color-dark, var(--agency-accent-gold-dark)) 0%, #A68545 100%);
  box-shadow: 0 2px 8px rgba(201, 165, 90, 0.3);
}

.agency-profile-form__btn-spinner {
  display: none;
  animation: spin 1s linear infinite;
}

.agency-profile-form__btn:disabled .agency-profile-form__btn-spinner {
  display: block;
}

.agency-profile-form__message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  margin-top: var(--agency-spacing-sm);
  min-height: 20px;
  transition: var(--agency-transition-fast);
}

.agency-profile-form__message--success {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.agency-profile-form__message--error {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
  .agency-profile-accordion__header {
    padding: var(--agency-spacing-md);
  }

  .agency-profile-accordion__content {
    padding: var(--agency-spacing-md);
  }

  .agency-profile-form__grid {
    grid-template-columns: 1fr;
  }

  .agency-profile-form__actions {
    justify-content: stretch;
  }

  .agency-profile-form__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   EXPORT MODAL
   ============================================ */

.agency-export-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* Modals */
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--agency-spacing-md);
}

.agency-export-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.agency-export-modal__content {
  position: relative;
  background: var(--agency-bg-surface);
  border-radius: 20px;
  box-shadow: var(--agency-shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.agency-export-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--agency-spacing-lg);
  border-bottom: 1px solid var(--agency-border);
}

.agency-export-modal__title {
  font-family: var(--agency-font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.agency-export-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--agency-text-tertiary);
  transition: var(--agency-transition-fast);
}

.agency-export-modal__close:hover {
  background: var(--agency-bg-elevated);
  color: var(--agency-text-primary);
}

.agency-export-modal__body {
  padding: var(--agency-spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-lg);
  overflow-y: auto;
}

.agency-export-modal__field {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
}

.agency-export-modal__field label {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary);
  letter-spacing: 0.02em;
}

.agency-export-modal__radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
}

.agency-export-modal__radio-label {
  display: flex;
  align-items: center;
  gap: var(--agency-spacing-sm);
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  color: var(--agency-text-primary);
}

.agency-export-modal__radio-label:hover {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.agency-export-modal__radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-export-modal__info {
  padding: var(--agency-spacing-md);
  background: var(--agency-bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--agency-border);
}

.agency-export-modal__info p {
  margin: 0;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  line-height: 1.5;
}

.agency-export-modal__info strong {
  color: var(--agency-text-primary);
  font-weight: 600;
}

.agency-export-modal__actions {
  display: flex;
  gap: var(--agency-spacing-sm);
  padding: var(--agency-spacing-lg);
  border-top: 1px solid var(--agency-border);
  background: var(--agency-bg-elevated);
}

.agency-export-modal__btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-family: var(--agency-font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.agency-export-modal__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.agency-export-modal__btn--primary {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: #FFFFFF;
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-export-modal__btn--primary:hover:not(:disabled) {
  background: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
  border-color: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
  transform: translateY(-1px);
  box-shadow: var(--agency-shadow-md);
}

.agency-export-modal__btn--secondary {
  background: transparent;
  color: var(--agency-text-secondary);
  border-color: var(--agency-border);
}

.agency-export-modal__btn--secondary:hover:not(:disabled) {
  background: var(--agency-bg-surface);
  border-color: var(--agency-text-tertiary);
  color: var(--agency-text-primary);
}

.agency-export-modal__spinner {
  animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
  .agency-export-modal {
    padding: var(--agency-spacing-sm);
  }

  .agency-export-modal__content {
    max-width: 100%;
    border-radius: 16px;
  }

  .agency-export-modal__header,
  .agency-export-modal__body,
  .agency-export-modal__actions {
    padding: var(--agency-spacing-md);
  }

  .agency-export-modal__actions {
    flex-direction: column;
  }

  .agency-export-modal__btn {
    width: 100%;
  }
}

/* ============================================
   BOARDS MANAGEMENT
   ============================================ */

.boards-management {
  padding: var(--agency-spacing-md);
}

.boards-management__header {
  margin-bottom: var(--agency-spacing-lg);
}

.boards-management__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin-bottom: 0.5rem;
}

.boards-management__subtitle {
  color: var(--agency-text-secondary);
  margin-bottom: var(--agency-spacing-md);
}

.boards-management__create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  min-height: 44px;
}

.boards-management__create-btn:hover {
  background: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
  transform: translateY(-1px);
  box-shadow: var(--agency-shadow-md);
}

.boards-management__create-btn:focus {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: 2px;
}

.boards-management__create-btn:active {
  transform: translateY(0);
}

.boards-management__list {
  display: grid;
  gap: var(--agency-spacing-md);
}

.boards-management__empty {
  padding: var(--agency-spacing-xl);
  text-align: center;
  color: var(--agency-text-secondary);
  background: var(--agency-bg-elevated);
  border-radius: 12px;
}

.boards-management__card {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  padding: var(--agency-spacing-md);
  transition: var(--agency-transition-fast);
}

.boards-management__card:hover {
  box-shadow: var(--agency-shadow-md);
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.boards-management__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--agency-spacing-md);
}

.boards-management__card-info {
  flex: 1;
}

.boards-management__card-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin-bottom: 0.5rem;
}

.boards-management__card-description {
  color: var(--agency-text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.boards-management__card-meta {
  display: flex;
  gap: var(--agency-spacing-sm);
  align-items: center;
  flex-wrap: wrap;
}

.boards-management__card-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.boards-management__card-status--active {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.boards-management__card-status--inactive {
  background: rgba(148, 163, 184, 0.1);
  color: var(--agency-text-tertiary);
}

.boards-management__card-count {
  color: var(--agency-text-secondary);
  font-size: 0.875rem;
}

.boards-management__card-actions {
  display: flex;
  gap: 0.5rem;
}

.boards-management__card-action {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--agency-border);
  background: var(--agency-bg-elevated);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  color: var(--agency-text-primary);
  position: relative;
}

.boards-management__card-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.boards-management__card-action:hover {
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-brand-color, var(--agency-accent-gold));
  transform: translateY(-1px);
  box-shadow: var(--agency-shadow-sm);
}

.boards-management__card-action:focus {
  outline: 2px solid var(--agency-brand-color, var(--agency-accent-gold));
  outline-offset: 2px;
}

.boards-management__card-action:active {
  transform: translateY(0);
}

.boards-management__card-action--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: #EF4444;
}

/* ============================================
   BOARD EDITOR MODAL
   ============================================ */

/* ============================================
   Board Editor Modal - Modern Redesign
   ============================================ */

.board-editor-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: boardModalFadeIn 0.2s ease-out;
}

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

.board-editor-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  animation: boardOverlayFadeIn 0.2s ease-out;
}

@keyframes boardOverlayFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.board-editor-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  animation: boardContentSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes boardContentSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.board-editor-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f5f5f4; /* border-b border-stone-100 */
  flex-shrink: 0;
  background: #ffffff;
}

.board-editor-modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.board-editor-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: #64748b;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.board-editor-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.board-editor-modal__close:focus {
  outline: 2px solid var(--agency-brand-color, #C9A55A);
  outline-offset: 2px;
  background: #f1f5f9;
}

.board-editor-modal__close:active {
  transform: scale(0.95);
}

/* Tabs */
.board-editor-modal__tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 2rem;
  background: #ffffff;
  flex-shrink: 0;
  gap: 0.5rem;
}

.board-editor-modal__tab {
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  white-space: nowrap;
}

.board-editor-modal__tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.board-editor-modal__tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

.board-editor-modal__tab:focus {
  outline: 2px solid var(--agency-brand-color, #C9A55A);
  outline-offset: -2px;
  background: #f8fafc;
  border-radius: 8px 8px 0 0;
}

.board-editor-modal__tab--active {
  color: var(--agency-brand-color, #C9A55A);
  border-bottom-color: var(--agency-brand-color, #C9A55A);
  background: transparent;
}

.board-editor-modal__tab--active:focus {
  outline: 2px solid var(--agency-brand-color, #C9A55A);
  outline-offset: -2px;
}

/* Form & Body */
.board-editor-modal__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.board-editor-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: #f8fafc;
}

.board-editor-modal__tab-content {
  display: none;
  animation: boardTabFadeIn 0.2s ease-out;
}

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

.board-editor-modal__tab-content--active {
  display: block;
}

/* Intro Text */
.board-editor-modal__intro {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: 12px;
  border-left: 3px solid var(--agency-brand-color, #C9A55A);
}

.board-editor-modal__intro p {
  margin: 0;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Field Groups */
.board-editor-modal__field-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
}

.board-editor-modal__field {
  margin-bottom: 0;
}

.board-editor-modal__label {
  display: block;
  font-weight: 700; /* font-bold */
  color: #78716c; /* text-stone-500 */
  margin-bottom: 0.5rem; /* mb-2 */
  font-size: 0.75rem; /* text-xs */
  text-transform: uppercase; /* uppercase */
  letter-spacing: 0.1em; /* tracking-widest */
  font-family: var(--agency-font-sans);
}

.board-editor-modal__required {
  color: #ef4444;
  margin-left: 2px;
}

.board-editor-modal__label-hint {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.8125rem;
  margin-left: 0.5rem;
}

.board-editor-modal__input,
.board-editor-modal__textarea,
.board-editor-modal__select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d6d3d1; /* border-stone-300 */
  border-radius: 0.5rem; /* rounded-lg */
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #0c0a09; /* text-stone-900 */
  font-family: inherit;
}

.board-editor-modal__input::placeholder,
.board-editor-modal__textarea::placeholder {
  color: #a8a29e; /* placeholder-stone-400 */
}

.board-editor-modal__input:hover,
.board-editor-modal__textarea:hover,
.board-editor-modal__select:hover {
  border-color: #d6d3d1; /* border-stone-300 */
}

.board-editor-modal__input:focus,
.board-editor-modal__textarea:focus,
.board-editor-modal__select:focus {
  outline: none;
  border-color: #000000; /* border-black */
  box-shadow: 0 0 0 1px #000000; /* ring-1 ring-black */
}

.board-editor-modal__input--error {
  border-color: #ef4444;
}

.board-editor-modal__input--error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.board-editor-modal__textarea {
  resize: vertical;
  min-height: 8rem; /* h-32 */
  line-height: 1.6;
}

.board-editor-modal__error {
  margin-top: 0.5rem;
  color: #ef4444;
  font-size: 0.8125rem;
  display: block;
  min-height: 1.25rem;
}

.board-editor-modal__hint {
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Sections */
.board-editor-modal__section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.board-editor-modal__section:last-child {
  margin-bottom: 0;
}

.board-editor-modal__section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.board-editor-modal__section-title svg {
  width: 18px;
  height: 18px;
  color: var(--agency-brand-color, #C9A55A);
  flex-shrink: 0;
}

/* Range Groups */
.board-editor-modal__range-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Measurements Grid */
.board-editor-modal__measurements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Checkbox Group */
.board-editor-modal__checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.board-editor-modal__checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 140px;
}

.board-editor-modal__checkbox-option:hover {
  border-color: var(--agency-brand-color, #C9A55A);
  background: #fefbf5;
}

.board-editor-modal__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.board-editor-modal__checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.board-editor-modal__checkbox:checked + .board-editor-modal__checkbox-custom {
  background: var(--agency-brand-color, #C9A55A);
  border-color: var(--agency-brand-color, #C9A55A);
}

.board-editor-modal__checkbox:checked + .board-editor-modal__checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: absolute;
}

.board-editor-modal__checkbox-text {
  font-weight: 500;
  color: #0f172a;
  font-size: 0.875rem;
}

/* Switch Toggle */
.board-editor-modal__switch {
  display: flex;
  align-items: flex-start;
}

.board-editor-modal__switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.board-editor-modal__switch-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.board-editor-modal__switch-slider {
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.board-editor-modal__switch-slider::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.board-editor-modal__switch-input:checked + .board-editor-modal__switch-label .board-editor-modal__switch-slider {
  background: var(--agency-brand-color, #C9A55A);
}

.board-editor-modal__switch-input:checked + .board-editor-modal__switch-label .board-editor-modal__switch-slider::after {
  transform: translateX(20px);
}

.board-editor-modal__switch-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.board-editor-modal__switch-text strong {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.875rem;
}

.board-editor-modal__switch-description {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

/* Weights */
.board-editor-modal__weights-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.board-editor-modal__weight-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.board-editor-modal__weight-label {
  min-width: 140px;
  font-weight: 500;
  color: #0f172a;
  font-size: 0.875rem;
}

.board-editor-modal__weight-control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.board-editor-modal__weight-slider {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.board-editor-modal__weight-slider:hover {
  background: #cbd5e1;
}

.board-editor-modal__weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--agency-brand-color, #C9A55A);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(201, 165, 90, 0.4);
  transition: all 0.2s ease;
}

.board-editor-modal__weight-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(201, 165, 90, 0.5);
}

.board-editor-modal__weight-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--agency-brand-color, #C9A55A);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(201, 165, 90, 0.4);
  transition: all 0.2s ease;
}

.board-editor-modal__weight-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(201, 165, 90, 0.5);
}

.board-editor-modal__weight-value {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
  color: var(--agency-brand-color, #C9A55A);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.board-editor-modal__weight-summary {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e2e8f0;
}

.board-editor-modal__weight-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.board-editor-modal__weight-total-label {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9375rem;
}

.board-editor-modal__weight-total-value {
  font-weight: 700;
  color: var(--agency-brand-color, #C9A55A);
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}

.board-editor-modal__weight-hint {
  color: #64748b;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

/* Actions Footer */
.board-editor-modal__footer,
.board-editor-modal__actions {
  display: flex;
  justify-content: flex-end; /* flex justify-end */
  gap: 0.75rem; /* gap-3 */
  padding: 1.25rem 2rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
}

.board-editor-modal__btn {
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  position: relative;
}

.board-editor-modal__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.board-editor-modal__btn-primary,
.board-editor-modal__btn--primary {
  background: #000000; /* bg-black */
  color: #ffffff; /* text-white */
  padding: 0.5rem 1.5rem; /* px-6 py-2 */
  border-radius: 0.375rem; /* rounded-md */
  box-shadow: none;
}

.board-editor-modal__btn-primary:hover:not(:disabled),
.board-editor-modal__btn--primary:hover:not(:disabled) {
  background: #292524; /* hover:bg-stone-800 */
  transform: none;
  box-shadow: none;
}

.board-editor-modal__btn--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(201, 165, 90, 0.2);
}

.board-editor-modal__btn--primary:focus {
  outline: 2px solid var(--agency-brand-color, #C9A55A);
  outline-offset: 2px;
}

.board-editor-modal__btn--primary.board-editor-modal__btn--loading {
  color: transparent;
  pointer-events: none;
}

.board-editor-modal__btn-text,
.board-editor-modal__btn--secondary {
  background: transparent;
  color: #78716c; /* text-stone-500 */
  border: none;
  padding: 0.5rem 1rem; /* px-4 py-2 */
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.board-editor-modal__btn-text:hover:not(:disabled),
.board-editor-modal__btn--secondary:hover:not(:disabled) {
  background: transparent;
  border: none;
  color: #000000; /* hover:text-black */
}

.board-editor-modal__btn--secondary:focus {
  outline: 2px solid var(--agency-brand-color, #C9A55A);
  outline-offset: 2px;
}

.board-editor-modal__spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  animation: boardSpinnerRotate 0.8s linear infinite;
}

@keyframes boardSpinnerRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.board-editor-modal__save-status {
  position: absolute;
  bottom: -1.5rem;
  left: 2rem;
  font-size: 0.8125rem;
  min-height: 1.25rem;
}

.board-editor-modal__save-status--error {
  color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .board-editor-modal {
    padding: 0.5rem;
  }

  .board-editor-modal__content {
    max-height: 98vh;
    border-radius: 16px;
  }

  .board-editor-modal__header {
    padding: 1.25rem 1.5rem;
  }

  .board-editor-modal__tabs {
    padding: 0 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .board-editor-modal__tab {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
  }

  .board-editor-modal__tab svg {
    width: 14px;
    height: 14px;
  }

  .board-editor-modal__body {
    padding: 1.5rem;
  }

  .board-editor-modal__range-group,
  .board-editor-modal__measurements-grid {
    grid-template-columns: 1fr;
  }

  .board-editor-modal__checkbox-group {
    flex-direction: column;
  }

  .board-editor-modal__checkbox-option {
    min-width: 100%;
  }

  .board-editor-modal__weight-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .board-editor-modal__weight-label {
    min-width: auto;
  }

  .board-editor-modal__actions {
    flex-direction: column-reverse;
    padding: 1.25rem 1.5rem;
  }

  .board-editor-modal__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Match Score Color Coding */
.agency-dashboard__card-score--excellent {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
}

.agency-dashboard__card-score--good {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
}

.agency-dashboard__card-score--fair {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  color: white;
}

.agency-dashboard__card-score--poor {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .board-editor-modal__content {
    width: 95%;
    max-height: 95vh;
  }

  .board-editor-modal__range-group,
  .board-editor-modal__measurements-grid {
    grid-template-columns: 1fr;
  }

  .boards-management__card-header {
    flex-direction: column;
  }

  .boards-management__card-actions {
    align-self: flex-end;
  }
}

/* ============================================
   ANALYTICS SECTION
   ============================================ */

.agency-dashboard__analytics {
  margin: var(--agency-spacing-2xl) 0;
  padding: var(--agency-spacing-2xl);
  background: var(--agency-bg-surface);
  border-radius: 16px;
  box-shadow: var(--agency-shadow-sm);
}

.agency-dashboard__analytics-container {
  max-width: 100%;
}

.agency-dashboard__analytics-header {
  margin-bottom: var(--agency-spacing-xl);
  text-align: center;
}

.agency-dashboard__analytics-title {
  font-family: var(--agency-font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.agency-dashboard__analytics-subtitle {
  font-size: 0.9375rem;
  color: var(--agency-text-secondary);
  font-weight: 400;
}

.agency-dashboard__analytics-content {
  position: relative;
  min-height: 200px;
}

.agency-dashboard__analytics-loading,
.agency-dashboard__analytics-error {
  text-align: center;
  padding: 3rem;
}

.agency-dashboard__analytics-main {
  animation: fadeIn 0.4s ease-in;
}

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

/* Analytics Grid */
.agency-dashboard__analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--agency-spacing-md);
  margin-bottom: var(--agency-spacing-xl);
}

.agency-dashboard__analytics-card {
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  padding: var(--agency-spacing-md);
  transition: var(--agency-transition-fast);
}

.agency-dashboard__analytics-card:hover {
  box-shadow: var(--agency-shadow-md);
  transform: translateY(-2px);
}

.agency-dashboard__analytics-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.agency-dashboard__analytics-card-header svg {
  width: 24px;
  height: 24px;
  color: var(--agency-brand-color, var(--agency-accent-gold));
  flex-shrink: 0;
}

.agency-dashboard__analytics-card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agency-dashboard__analytics-card-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--agency-font-serif);
  color: var(--agency-text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.agency-dashboard__analytics-card-subtext {
  font-size: 0.8125rem;
  color: var(--agency-text-tertiary);
}

/* Analytics Sections */
.agency-dashboard__analytics-section {
  margin-top: var(--agency-spacing-xl);
  padding-top: var(--agency-spacing-xl);
  border-top: 1px solid var(--agency-border);
}

.agency-dashboard__analytics-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.agency-dashboard__analytics-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin-bottom: var(--agency-spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

/* Status Grid */
.agency-dashboard__analytics-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--agency-spacing-sm);
}

.agency-dashboard__analytics-status-item {
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  padding: var(--agency-spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agency-dashboard__analytics-status-label {
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  font-weight: 500;
}

.agency-dashboard__analytics-status-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--agency-font-serif);
  color: var(--agency-text-primary);
}

/* Match Scores */
.agency-dashboard__analytics-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--agency-spacing-sm);
}

.agency-dashboard__analytics-score-item {
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  padding: var(--agency-spacing-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agency-dashboard__analytics-score-label {
  font-size: 0.8125rem;
  color: var(--agency-text-secondary);
  font-weight: 500;
  text-transform: capitalize;
}

.agency-dashboard__analytics-score-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--agency-font-serif);
  color: var(--agency-text-primary);
}

.agency-dashboard__analytics-score-item--excellent .agency-dashboard__analytics-score-value {
  color: #10b981;
}

.agency-dashboard__analytics-score-item--good .agency-dashboard__analytics-score-value {
  color: #f59e0b;
}

.agency-dashboard__analytics-score-item--fair .agency-dashboard__analytics-score-value {
  color: #f97316;
}

.agency-dashboard__analytics-score-item--poor .agency-dashboard__analytics-score-value {
  color: #ef4444;
}

/* Boards List */
.agency-dashboard__analytics-boards {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
}

.agency-dashboard__analytics-board-item {
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  padding: var(--agency-spacing-sm) var(--agency-spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agency-dashboard__analytics-board-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--agency-text-primary);
}

.agency-dashboard__analytics-board-count {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--agency-font-serif);
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

/* Responsive */
@media (max-width: 768px) {
  .agency-dashboard__analytics {
    padding: var(--agency-spacing-md);
    margin: var(--agency-spacing-lg) 0;
  }

  .agency-dashboard__analytics-title {
    font-size: 1.5rem;
  }

  .agency-dashboard__analytics-grid {
    grid-template-columns: 1fr;
  }

  .agency-dashboard__analytics-card-value {
    font-size: 2rem;
  }

  .agency-dashboard__analytics-status-grid,
  .agency-dashboard__analytics-scores {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

.agency-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 288px;
  height: 100vh;
  background: var(--agency-bg-surface);
  border-right: 1px solid var(--agency-border);
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.02);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.agency-sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 0;
}

/* Sidebar Header */
.agency-sidebar__header {
  padding: 0 2rem 1.5rem;
  border-bottom: 1px solid var(--agency-border);
  margin-bottom: 1rem;
}

.agency-sidebar__logo {
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}

.agency-sidebar__logo-text {
  font-family: var(--agency-font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--agency-text-primary);
  margin: 0;
  line-height: 1;
}

.agency-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.agency-sidebar__brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agency-sidebar__brand-name {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--agency-text-tertiary);
  font-weight: 500;
}

/* Command Palette Trigger */
.agency-sidebar__search-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem; /* px-3 py-2 */
  background: #fafaf9; /* bg-stone-50 */
  border: 1px solid transparent; /* border-transparent */
  border-radius: 0.5rem; /* rounded-lg */
  font-size: 0.75rem; /* text-xs */
  color: #6b7280; /* text-gray-500 */
  cursor: pointer;
  transition: all 0.2s ease; /* transition-colors */
  font-family: var(--agency-font-sans);
  gap: 0.5rem;
}

.agency-sidebar__search-trigger:hover {
  background: #f5f5f4; /* hover:bg-stone-100 */
  color: #374151; /* Slightly darker on hover */
}

.agency-sidebar__search-trigger svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: inherit;
}

.agency-sidebar__search-trigger span {
  flex: 1;
  text-align: left;
}

.agency-sidebar__kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 3px;
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--agency-text-tertiary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1;
}

/* Sidebar Navigation */
.agency-sidebar__nav {
  flex: 1;
  padding: 0.5rem 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.agency-sidebar__nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between; /* flex items-center justify-between */
  gap: 1rem;
  padding: 1rem 2rem 1rem 1.25rem; /* pl-5 - Add space for indicator (0.25rem) + gap-4 (1rem) */
  font-size: 0.75rem;
  font-weight: 500; /* font-medium */
  color: #9ca3af; /* text-gray-400 */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--agency-transition-fast);
  position: relative;
  background: transparent; /* bg-transparent */
  border-radius: 0 0.5rem 0.5rem 0; /* rounded-r-lg - Keep left flat, round right */
}

.agency-sidebar__nav-item:hover {
  color: #4b5563; /* hover:text-gray-600 */
  background: transparent;
}

/* Gold Indicator (The Spine) */
.agency-sidebar__nav-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.25rem; /* w-1 */
  height: 1.25rem; /* h-5 */
  background: transparent;
  border-radius: 9999px; /* rounded-full */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.agency-sidebar__nav-item--active .agency-sidebar__nav-indicator {
  background: #d4af37; /* bg-[#d4af37] - Metallic Gold */
  opacity: 1;
}

.agency-sidebar__nav-item--active {
  color: #000000; /* text-black */
  font-weight: 700; /* font-bold */
  letter-spacing: 0.1em; /* tracking-wide */
  background: rgba(212, 175, 55, 0.05); /* bg-[#d4af37]/5 - 5% opacity gold */
}

.agency-sidebar__nav-item svg {
  flex-shrink: 0;
  stroke-width: 1.5;
}

.agency-sidebar__nav-item > span:not(.agency-sidebar__badge) {
  flex: 1;
}

.agency-sidebar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0.125rem 0.5rem; /* px-2 py-0.5 */
  background: rgba(212, 175, 55, 0.1); /* bg-[#d4af37]/10 - Subtle ghost pill */
  color: #d4af37; /* text-[#d4af37] - Metallic gold */
  font-size: 0.625rem; /* text-[10px] */
  font-weight: 700; /* font-bold */
  border-radius: 9999px; /* rounded-full */
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto; /* Push to far right */
}

.agency-sidebar__badge--pulse {
  animation: sidebarBadgePulse 3s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
}

@keyframes sidebarBadgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0);
    opacity: 0.9;
  }
}

.agency-sidebar__badge--pulse {
  animation: sidebarBadgePulse 3s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
}

@keyframes sidebarBadgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0);
    opacity: 0.9;
  }
}

/* Sidebar Footer */
.agency-sidebar__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--agency-border);
}

.agency-sidebar__logout-form {
  margin: 0;
  padding: 0 2rem;
}

.agency-sidebar__logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--agency-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
}

.agency-sidebar__logout-btn:hover {
  color: #ef4444;
}

.agency-sidebar__logout-btn svg {
  flex-shrink: 0;
  stroke-width: 1.5;
  transition: transform 0.2s ease;
}

.agency-sidebar__logout-btn:hover svg {
  transform: translateX(4px);
}

/* User Profile Section */
.agency-sidebar__user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  margin-top: 1rem;
}

.agency-sidebar__user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.agency-sidebar__user-info {
  flex: 1;
  min-width: 0;
}

.agency-sidebar__user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary);
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agency-sidebar__user-location {
  font-size: 0.75rem;
  color: var(--agency-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agency-sidebar__logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--agency-text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
  text-transform: none;
  letter-spacing: normal;
}

.agency-sidebar__logout-btn:hover {
  color: var(--agency-text-primary);
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
  .agency-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .agency-sidebar.is-open {
    transform: translateX(0);
  }

  .agency-dashboard__main {
    margin-left: 0;
  }
}

/* ============================================
   COMMAND PALETTE
   ============================================ */

.agency-command-palette {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  padding-left: 1rem;
  padding-right: 1rem;
}

.agency-command-palette__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease;
}

.agency-command-palette__content {
  position: relative;
  width: 100%;
  max-width: 42rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  animation: commandPaletteFadeIn 0.2s ease;
}

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

.agency-command-palette__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--agency-border);
}

.agency-command-palette__header svg {
  flex-shrink: 0;
  color: var(--agency-text-tertiary);
}

.agency-command-palette__input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.125rem;
  color: var(--agency-text-primary);
  font-family: var(--agency-font-sans);
  outline: none;
  padding: 0;
}

.agency-command-palette__input::placeholder {
  color: var(--agency-text-tertiary);
}

.agency-command-palette__kbd-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.agency-command-palette__kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  background: var(--agency-bg-elevated);
  border: 1px solid var(--agency-border);
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--agency-text-tertiary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1;
}

.agency-command-palette__results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.5rem;
}

.agency-command-palette__section {
  margin-bottom: 0.5rem;
}

.agency-command-palette__section-title {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--agency-text-tertiary);
}

.agency-command-palette__items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.agency-command-palette__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  text-decoration: none;
  color: inherit;
}

.agency-command-palette__item:hover,
.agency-command-palette__item--active {
  background: rgba(201, 165, 90, 0.1);
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-command-palette__item-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--agency-bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
}

.agency-command-palette__item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agency-command-palette__item-info {
  flex: 1;
  min-width: 0;
}

.agency-command-palette__item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary);
  margin-bottom: 0.125rem;
}

.agency-command-palette__item-meta {
  font-size: 0.75rem;
  color: var(--agency-text-secondary);
}

.agency-command-palette__item-icon {
  flex-shrink: 0;
  color: var(--agency-text-tertiary);
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.agency-command-palette__item:hover .agency-command-palette__item-icon,
.agency-command-palette__item--active .agency-command-palette__item-icon {
  opacity: 1;
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-command-palette__empty {
  padding: 3rem;
  text-align: center;
  color: var(--agency-text-tertiary);
  font-size: 0.875rem;
}

.agency-command-palette__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--agency-bg-elevated);
  border-top: 1px solid var(--agency-border);
  font-size: 0.625rem;
  color: var(--agency-text-tertiary);
}

.agency-command-palette__footer-text {
  font-size: 0.625rem;
}

.agency-command-palette__footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agency-command-palette__footer-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================
   APPLICATION DETAIL DRAWER
   ============================================ */

.agency-detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.agency-detail-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.3);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.agency-detail-drawer__content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100vh;
  background: var(--agency-bg-surface, #ffffff);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

@media (max-width: 767px) {
  .agency-detail-drawer__header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .agency-detail-drawer__header-right {
    width: 100%;
    justify-content: space-between;
  }

  .agency-detail-drawer__name {
    font-size: 1.875rem;
  }

  .agency-detail-drawer__split-layout {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .agency-detail-drawer__content {
    max-width: 800px;
  }
  
  .agency-detail-drawer__header {
    padding: 2rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .agency-detail-drawer__content {
    max-width: 1000px;
  }
  
  .agency-detail-drawer__header {
    padding: 2.5rem 3rem;
  }
  
  .agency-detail-drawer__body {
    padding: 2.5rem 3rem;
  }
}

.agency-detail-drawer[style*="display: flex"] .agency-detail-drawer__content,
.agency-detail-drawer.is-open .agency-detail-drawer__content {
  transform: translateX(0);
}

.agency-detail-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--agency-border);
  background: var(--agency-bg-surface, #ffffff);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.agency-detail-drawer__header-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agency-detail-drawer__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary, #64748b);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-bottom: 0.5rem;
}

.agency-detail-drawer__back-link:hover {
  color: var(--agency-text-primary, #0f172a);
}

.agency-detail-drawer__header-name-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agency-detail-drawer__name {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 2.25rem; /* text-4xl equivalent */
  font-weight: 400;
  color: var(--agency-text-primary, #0f172a);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .agency-detail-drawer__name {
    font-size: 2.5rem;
  }
}

.agency-detail-drawer__badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.agency-detail-drawer__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-family: var(--agency-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.agency-detail-drawer__badge--verified {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.agency-detail-drawer__badge--pending {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.agency-detail-drawer__header-right {
  display: flex;
  align-items: center; /* items-center */
  gap: 1rem;
}

.agency-detail-drawer__header-actions {
  display: flex;
  align-items: center; /* items-center */
  gap: 0.75rem; /* gap-3 */
}

.agency-detail-drawer__header-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.agency-detail-drawer__comp-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem; /* px-4 py-2 */
  font-family: var(--agency-font-sans);
  font-size: 0.875rem; /* text-sm */
  font-weight: 500; /* font-medium */
  text-decoration: none;
  color: var(--agency-text-primary, #0f172a);
  border: 1px solid #d1d5db; /* border-gray-300 */
  border-radius: 0.375rem; /* rounded-md */
  background: var(--agency-bg-surface, #ffffff);
  transition: var(--agency-transition-fast);
  cursor: pointer;
}

.agency-detail-drawer__comp-card-btn:hover {
  border-color: var(--agency-text-primary, #0f172a);
  background: var(--agency-bg-elevated, #f5f5f4);
}

.agency-detail-drawer__accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem; /* px-4 py-2 */
  font-family: var(--agency-font-sans);
  font-size: 0.875rem; /* text-sm */
  font-weight: 500; /* font-medium */
  color: #ffffff; /* text-white */
  background: #000000; /* bg-black */
  border: none;
  border-radius: 0.375rem; /* rounded-md */
  cursor: pointer;
  transition: var(--agency-transition-fast);
  white-space: nowrap;
}

.agency-detail-drawer__accept-btn:hover {
  background: #292524; /* hover:bg-stone-800 */
}

.agency-detail-drawer__accept-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.agency-detail-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem; /* p-2 */
  background: transparent; /* No background */
  border: none; /* No border */
  color: #9ca3af; /* text-gray-400 */
  cursor: pointer;
  transition: color 0.2s ease; /* transition-colors */
  flex-shrink: 0;
}

.agency-detail-drawer__close:hover {
  color: #000000; /* hover:text-black */
  background: transparent; /* Keep background transparent on hover */
}

.agency-detail-drawer__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem;
  background: var(--agency-bg-surface, #ffffff);
}

/* Split-Screen Layout */
.agency-detail-drawer__split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .agency-detail-drawer__split-layout {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
}

.agency-detail-drawer__split-left {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .agency-detail-drawer__split-left {
    grid-column: span 5;
  }
}

.agency-detail-drawer__split-right {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .agency-detail-drawer__split-right {
    grid-column: span 7;
  }
}

/* Portrait Image */
.agency-detail-drawer__portrait-container {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 0.5rem; /* rounded-lg */
  overflow: hidden;
  background: var(--agency-bg-elevated, #f5f5f4);
}

.agency-detail-drawer__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tabs */
.agency-detail-drawer__tabs {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid #f3f4f6; /* border-b border-gray-100 */
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.agency-detail-drawer__tab {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: #9ca3af; /* text-gray-400 */
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent; /* border-b-2 border-transparent */
  border-radius: 0; /* rounded-none */
  padding: 0.75rem 0 0.5rem 0; /* pb-2 */
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.agency-detail-drawer__tab:hover {
  color: #000000; /* hover:text-black */
}

.agency-detail-drawer__tab--active {
  color: #000000; /* text-black */
  font-weight: 500; /* font-medium */
  border-bottom: 2px solid #000000; /* border-b-2 border-black */
  border-radius: 0; /* rounded-none */
  background: transparent; /* Remove any background */
}

/* Measurements Section */
.agency-detail-drawer__section {
  margin-bottom: 2rem;
}

.agency-detail-drawer__section-title {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--agency-text-primary, #0f172a);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.01em;
}

.agency-detail-drawer__measurements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

@media (max-width: 768px) {
  .agency-detail-drawer__measurements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
  }
}

.agency-detail-drawer__measurement-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem; /* Reduced from 0.375rem to tighten label-value spacing */
}

.agency-detail-drawer__measurement-label {
  font-family: var(--agency-font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--agency-text-tertiary, #94a3b8);
}

.agency-detail-drawer__measurement-value {
  font-family: var(--agency-font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--agency-text-primary, #0f172a);
}

/* Categories Section */
.agency-detail-drawer__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agency-detail-drawer__category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--agency-bg-elevated, #f5f5f4);
  border: 1px solid var(--agency-border, #e2e8f0);
  border-radius: 20px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary, #0f172a);
}

/* Tab Content */
.agency-detail-drawer__tab-content {
  display: block;
}

.agency-detail-drawer__tab-content[style*="display: none"] {
  display: none !important;
}

.agency-detail-drawer__loading,
.agency-detail-drawer__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--agency-text-secondary);
}

.agency-detail-drawer__spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--agency-border);
  border-top-color: var(--agency-brand-color, var(--agency-accent-gold));
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.agency-detail-drawer__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--agency-border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.agency-detail-drawer__footer-info {
  font-size: 0.75rem;
  color: var(--agency-text-tertiary);
}

.agency-detail-drawer__footer-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--agency-text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
}

.agency-detail-drawer__footer-action:hover {
  color: #ef4444;
}

/* Drawer Image Viewer */
.agency-detail-drawer__image-viewer {
  position: relative;
  width: 100%;
  height: 600px;
  background: var(--agency-bg-elevated);
  margin-bottom: 2rem;
}

.agency-detail-drawer__image-viewer-group {
  position: relative;
  width: 100%;
  height: 100%;
}

.agency-detail-drawer__image-mode-toggle {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.25rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--agency-border);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agency-detail-drawer__image-viewer-group:hover .agency-detail-drawer__image-mode-toggle {
  opacity: 1;
}

.agency-detail-drawer__image-mode-btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--agency-text-secondary);
  cursor: pointer;
  border-radius: 999px;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
}

.agency-detail-drawer__image-mode-btn--active {
  background: var(--agency-text-primary);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agency-detail-drawer__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: filter 0.3s ease;
}

.agency-detail-drawer__main-image--digitals {
  filter: grayscale(1) contrast(1.25);
}

.agency-detail-drawer__image-thumbnails {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.agency-detail-drawer__image-thumbnail {
  width: 3rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--agency-transition-fast);
}

.agency-detail-drawer__image-thumbnail:hover {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  transform: scale(1.05);
}

.agency-detail-drawer__image-thumbnail--active {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 2px rgba(201, 165, 90, 0.2);
}

.agency-detail-drawer__image-thumbnail--digitals {
  filter: grayscale(1);
}

/* Drawer Content Sections */
.agency-detail-drawer__content-section {
  padding: 2.5rem;
}

.agency-detail-drawer__info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.agency-detail-drawer__info-name {
  font-family: var(--agency-font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--agency-text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.agency-detail-drawer__info-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  margin-bottom: 0.5rem;
}

.agency-detail-drawer__match-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.agency-detail-drawer__match-score-value {
  font-family: var(--agency-font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--agency-brand-color, var(--agency-accent-gold));
  line-height: 1;
}

.agency-detail-drawer__match-score-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--agency-text-tertiary);
  margin-top: 0.25rem;
}
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.agency-detail-drawer__match-score-value {
  font-family: var(--agency-font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--agency-brand-color, var(--agency-accent-gold));
  line-height: 1;
}

.agency-detail-drawer__match-score-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--agency-text-tertiary);
  margin-top: 0.25rem;
}

.agency-detail-drawer__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--agency-border);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.agency-detail-drawer__stat-item {
  background: var(--agency-bg-elevated);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agency-detail-drawer__stat-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--agency-text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agency-detail-drawer__stat-value {
  font-family: var(--agency-font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--agency-text-primary);
}

.agency-detail-drawer__tags {
  margin-bottom: 3rem;
}

.agency-detail-drawer__tags-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--agency-text-primary);
  margin-bottom: 1rem;
}

.agency-detail-drawer__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agency-detail-drawer__tag {
  padding: 0.375rem 1rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Drawer Activity Timeline */
.agency-detail-drawer__timeline {
  border-top: 1px solid var(--agency-border);
  padding-top: 2.5rem;
}

.agency-detail-drawer__timeline-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--agency-text-primary);
  margin-bottom: 1.5rem;
}

.agency-detail-drawer__timeline-list {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.agency-detail-drawer__timeline-list::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--agency-border);
}

.agency-detail-drawer__timeline-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.agency-detail-drawer__timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--agency-bg-elevated);
  z-index: 1;
}

.agency-detail-drawer__timeline-dot--status {
  background: var(--agency-text-tertiary);
}

.agency-detail-drawer__timeline-dot--comment {
  background: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-detail-drawer__timeline-content {
  background: var(--agency-bg-elevated);
  padding: 1rem;
  border-radius: 8px;
  border-top-left-radius: 0;
}

.agency-detail-drawer__timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.agency-detail-drawer__timeline-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--agency-text-primary);
}

.agency-detail-drawer__timeline-date {
  font-size: 0.625rem;
  color: var(--agency-text-tertiary);
}

.agency-detail-drawer__timeline-text {
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  line-height: 1.5;
}

.agency-detail-drawer__note-input {
  width: 100%;
  padding: 1rem;
  padding-right: 3rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--agency-text-primary);
  font-family: var(--agency-font-sans);
  resize: none;
  outline: none;
  transition: var(--agency-transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.agency-detail-drawer__note-input:focus {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 3px rgba(201, 165, 90, 0.1);
}

.agency-detail-drawer__note-input-wrapper {
  position: relative;
}

.agency-detail-drawer__note-send {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--agency-text-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.agency-detail-drawer__note-send:hover:not(:disabled) {
  background: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-detail-drawer__note-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Drawer */
@media (max-width: 768px) {
  .agency-detail-drawer__content {
    max-width: 100%;
  }

  .agency-detail-drawer__title {
    font-size: 2rem;
  }

  .agency-detail-drawer__header {
    padding: 1.5rem;
  }

  .agency-detail-drawer__content-section {
    padding: 1.5rem;
  }

  .agency-detail-drawer__image-viewer {
    height: 400px;
  }

  .agency-detail-drawer__stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   OVERVIEW DASHBOARD
   ============================================ */

.agency-overview {
  margin-bottom: var(--agency-spacing-2xl);
}

.agency-overview__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--agency-spacing-xl);
}

.agency-overview__title {
  font-family: var(--agency-font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--agency-text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.agency-overview__subtitle {
  font-size: 1rem;
  color: var(--agency-text-secondary);
  margin: 0;
}

.agency-overview__header-actions {
  display: flex;
  gap: 1rem;
}

.agency-overview__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--agency-text-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
}

.agency-overview__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* KPI Grid */
.agency-overview__kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--agency-spacing-md);
  margin-bottom: var(--agency-spacing-xl);
}

.agency-overview__kpi-card {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  padding: var(--agency-spacing-lg);
  transition: var(--agency-transition-fast);
}

.agency-overview__kpi-card:hover {
  box-shadow: var(--agency-shadow-md);
  transform: translateY(-2px);
}

.agency-overview__kpi-card--highlight {
  border-color: #d4af37; /* border-[#d4af37] - Metallic Gold */
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, var(--agency-bg-surface) 100%);
}

.agency-overview__kpi-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.agency-overview__kpi-card--highlight .agency-overview__kpi-header svg {
  color: #d4af37; /* text-[#d4af37] - Metallic Gold */
  flex-shrink: 0;
}

.agency-overview__kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--agency-text-tertiary);
}

.agency-overview__kpi-value {
  font-family: var(--agency-font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--agency-text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.agency-overview__kpi-subtext {
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
}

.agency-overview__kpi-trend {
  color: var(--agency-brand-color, var(--agency-accent-gold));
  font-weight: 500;
  transition: color 0.3s ease;
}

.agency-overview__kpi-trend.positive {
  color: #10b981;
}

.agency-overview__kpi-trend.negative {
  color: #ef4444;
}

.agency-overview__kpi-trend.neutral {
  color: var(--agency-text-tertiary);
}

.agency-overview__kpi-value.loading,
.agency-overview__kpi-trend.loading {
  position: relative;
  color: transparent;
}

.agency-overview__kpi-value.loading::after,
.agency-overview__kpi-trend.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--agency-border);
  border-top-color: var(--agency-brand-color, var(--agency-accent-gold));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.agency-overview__kpi-value.error,
.agency-overview__kpi-trend.error {
  color: var(--agency-text-tertiary);
  opacity: 0.6;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Charts Section */
.agency-overview__charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--agency-spacing-lg);
  margin-bottom: var(--agency-spacing-xl);
}

.agency-overview__chart-card {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  padding: var(--agency-spacing-lg);
}

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

.agency-overview__chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0;
}

.agency-overview__chart-subtitle {
  font-size: 0.75rem;
  color: var(--agency-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agency-overview__chart-container {
  min-height: 200px;
  position: relative;
}

.agency-overview__chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--agency-text-tertiary);
  font-size: 0.875rem;
}

/* Activity Chart (Area Chart) */
.agency-overview__activity-chart {
  width: 100%;
  height: 200px;
  position: relative;
}

.agency-overview__activity-area {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Pipeline Breakdown */
.agency-overview__pipeline-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
}

.agency-overview__pipeline-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agency-overview__pipeline-bar {
  width: 100%;
  height: 8px;
  background: var(--agency-bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.agency-overview__pipeline-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.agency-overview__pipeline-fill--pending {
  background: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-overview__pipeline-fill--accepted {
  background: #10b981;
}

.agency-overview__pipeline-fill--declined {
  background: #ef4444;
}

.agency-overview__pipeline-fill--archived {
  background: var(--agency-text-tertiary);
}

.agency-overview__pipeline-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agency-overview__pipeline-label {
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  font-weight: 500;
}

.agency-overview__pipeline-value {
  font-family: var(--agency-font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--agency-text-primary);
}

/* Quick Stats */
.agency-overview__quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--agency-spacing-md);
}

.agency-overview__stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  padding: var(--agency-spacing-md);
  transition: var(--agency-transition-fast);
}

.agency-overview__stat-card:hover {
  box-shadow: var(--agency-shadow-sm);
  transform: translateY(-1px);
}

.agency-overview__stat-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.agency-overview__stat-content {
  flex: 1;
}

.agency-overview__stat-value {
  font-family: var(--agency-font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--agency-text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.agency-overview__stat-label {
  font-size: 0.75rem;
  color: var(--agency-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Greeting Section */
.agency-overview__greeting {
  margin-bottom: 2.5rem; /* mb-10 */
}

.agency-overview__greeting-title {
  font-family: var(--agency-font-serif);
  font-size: 3rem; /* text-5xl */
  font-weight: 400;
  color: var(--agency-text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  line-height: 1.375; /* leading-tight/leading-snug - Increased from 1.2 to prevent descender clipping */
  display: flex;
  align-items: baseline; /* Changed from items-center to items-baseline for perfect text alignment */
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.5rem; /* pb-2 - Add bottom padding for descenders (moved to parent) */
}

.agency-overview__greeting-text {
  color: #57534e; /* text-stone-600 - Darker, more readable warm gray */
  font-weight: 400;
  font-size: 3rem; /* Match parent font-size exactly */
  line-height: 1.375; /* Match parent line-height */
}

.agency-overview__greeting-agency-name {
  background: linear-gradient(to right, #C9A55A, #fbbf24, #C9A55A, #B8954F); /* Pholio gold-focused gradient: brand-gold to bright-gold to brand-gold to dark-gold */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600; /* font-semibold */
  font-size: 3rem; /* Match parent font-size exactly */
  line-height: 1.375; /* Match parent line-height */
  /* Removed padding-bottom - now on parent container */
}

.agency-overview__greeting-subtitle {
  font-size: 1rem;
  color: #78716c; /* text-stone-500 */
  font-family: var(--agency-font-sans); /* font-sans */
  margin: 0;
}

/* Section Headers */
.agency-overview__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--agency-spacing-md);
}

.agency-overview__section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0;
  font-family: var(--agency-font-serif);
}

.agency-overview__section-link {
  font-size: 0.75rem; /* text-xs */
  color: #000000; /* text-black */
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase; /* uppercase */
  letter-spacing: 0.1em; /* tracking-widest */
  border-bottom: 1px solid #000000; /* border-b border-black */
  padding-bottom: 0.25rem; /* pb-1 */
  transition: opacity 0.2s ease;
}

.agency-overview__section-link:hover {
  opacity: 0.7; /* hover:opacity-70 */
}

/* Recent Applicants Section */
.agency-overview__recent-applicants {
  margin-bottom: var(--agency-spacing-xl);
}

.agency-overview__recent-list {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  padding: var(--agency-spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
}

.agency-overview__recent-item {
  display: flex;
  align-items: center;
  gap: var(--agency-spacing-md);
  padding: var(--agency-spacing-md);
  border-radius: 12px;
  transition: var(--agency-transition-fast);
  cursor: pointer;
}

.agency-overview__recent-item:hover {
  background: var(--agency-bg-elevated);
  transform: translateX(4px);
}

.agency-overview__recent-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--agency-bg-elevated);
  flex-shrink: 0;
  border: 1px solid var(--agency-border);
  position: relative;
}

.agency-overview__recent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agency-overview__recent-new-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--agency-brand-color, var(--agency-accent-gold, #C9A55A));
  border: 2px solid var(--agency-bg-surface);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.agency-overview__recent-info {
  flex: 1;
  min-width: 0;
}

.agency-overview__recent-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.agency-overview__recent-name {
  font-family: var(--agency-font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--agency-text-primary);
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
}

.agency-overview__recent-match {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.agency-overview__match-number {
  font-family: var(--agency-font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: #000000; /* Pure black for maximum readability */
  line-height: 1;
  letter-spacing: -0.02em;
}

.agency-overview__match-number::after {
  content: '%';
  font-size: 1rem;
  font-weight: 400;
  color: var(--agency-brand-color, var(--agency-accent-gold, #C9A55A));
  margin-left: 0.125rem;
}

.agency-overview__recent-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.agency-overview__recent-location {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--agency-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--agency-font-sans);
}

.agency-overview__recent-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--agency-text-secondary); /* Darker for better readability */
  font-family: var(--agency-font-sans);
  font-weight: 500;
}

.agency-overview__stat-item {
  position: relative;
  padding-left: 0.75rem;
}

.agency-overview__stat-item:not(:first-child)::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--agency-text-tertiary);
}

.agency-overview__recent-meta span:not(:last-child) {
  display: flex;
  align-items: center;
}

.agency-overview__recent-badges {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.agency-overview__recent-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agency-overview__recent-badge--new {
  background: var(--agency-bg-elevated);
  color: var(--agency-text-secondary);
  border: 1px solid var(--agency-border);
}

/* Match badge styles removed - now integrated into header */

.agency-overview__empty-state {
  text-align: center;
  padding: var(--agency-spacing-xl);
  color: var(--agency-text-tertiary);
  font-size: var(--agency-text-sm);
  font-family: var(--agency-font-sans);
}

/* Typography Utility Classes */
.agency-text-xs { font-size: var(--agency-text-xs); }
.agency-text-sm { font-size: var(--agency-text-sm); }
.agency-text-base { font-size: var(--agency-text-base); }
.agency-text-lg { font-size: var(--agency-text-lg); }
.agency-text-xl { font-size: var(--agency-text-xl); }
.agency-text-2xl { font-size: var(--agency-text-2xl); }
.agency-text-3xl { font-size: var(--agency-text-3xl); }
.agency-text-4xl { font-size: var(--agency-text-4xl); }

.agency-weight-normal { font-weight: var(--agency-weight-normal); }
.agency-weight-medium { font-weight: var(--agency-weight-medium); }
.agency-weight-semibold { font-weight: var(--agency-weight-semibold); }
.agency-weight-bold { font-weight: var(--agency-weight-bold); }

.agency-leading-tight { line-height: var(--agency-leading-tight); }
.agency-leading-normal { line-height: var(--agency-leading-normal); }
.agency-leading-relaxed { line-height: var(--agency-leading-relaxed); }

.agency-overview__empty,
.agency-overview__error,
.agency-overview__loading {
  padding: var(--agency-spacing-xl);
  text-align: center;
  color: var(--agency-text-tertiary);
  font-size: 0.875rem;
}

.agency-overview__error {
  color: #ef4444;
}

/* Quick Actions Section */
.agency-overview__quick-actions {
  margin-bottom: var(--agency-spacing-xl);
}

.agency-overview__quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--agency-spacing-md);
}

.agency-overview__quick-action-card {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  padding: var(--agency-spacing-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--agency-spacing-md);
  transition: var(--agency-transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.agency-overview__quick-action-card:hover {
  box-shadow: var(--agency-shadow-md);
  transform: translateY(-2px);
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-overview__quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--agency-brand-color, var(--agency-accent-gold));
  flex-shrink: 0;
}

.agency-overview__quick-action-icon svg {
  width: 24px;
  height: 24px;
}

.agency-overview__quick-action-content {
  flex: 1;
  min-width: 0;
}

.agency-overview__quick-action-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0;
  font-family: var(--agency-font-serif);
  flex: 1;
}

.agency-overview__quick-action-description {
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.agency-overview__quick-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.agency-overview__quick-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0.125rem 0.5rem; /* px-2 py-0.5 */
  background: rgba(212, 175, 55, 0.1); /* bg-[#d4af37]/10 - Subtle ghost pill */
  color: #d4af37; /* text-[#d4af37] - Metallic gold */
  font-size: 0.625rem; /* text-[10px] */
  font-weight: 700; /* font-bold */
  border-radius: 9999px; /* rounded-full */
  line-height: 1;
  flex-shrink: 0;
}

.agency-overview__quick-action-badge--pulse {
  animation: sidebarBadgePulse 3s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
}
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .agency-overview__greeting-title {
    font-size: 2rem;
  }

  .agency-overview__kpi-grid {
    grid-template-columns: 1fr;
  }

  .agency-overview__quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .agency-overview__recent-item {
    flex-wrap: wrap;
  }

  .agency-overview__recent-badges {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Responsive Overview */
@media (max-width: 1024px) {
  .agency-overview__charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .agency-overview__title {
    font-size: 2rem;
  }

  .agency-overview__header {
    flex-direction: column;
    gap: 1rem;
  }

  .agency-overview__kpi-grid {
    grid-template-columns: 1fr;
  }

  .agency-overview__kpi-value {
    font-size: 2.5rem;
  }

  .agency-overview__quick-stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE HEADERS
   ============================================ */

/* Page Headers - Standardized */
.agency-discover-header,
.agency-inbox-header,
.agency-boards-header,
.agency-analytics-header {
  margin-bottom: var(--agency-spacing-xl);
  padding: 0;
}

.agency-discover-header__content,
.agency-inbox-header__content,
.agency-boards-header__content,
.agency-analytics-header__content {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-lg);
}

/* Standardized Header Typography */
.agency-discover-header__title,
.agency-inbox-header__title,
.agency-boards-header__title,
.agency-analytics-header__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--agency-text-primary);
  margin: 0 0 0.5rem 0;
  font-family: var(--agency-font-sans);
  line-height: 1.2;
}

.agency-discover-header__subtitle,
.agency-inbox-header__subtitle,
.agency-boards-header__subtitle,
.agency-analytics-header__subtitle {
  font-size: 1rem;
  color: var(--agency-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.agency-discover-header__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.agency-discover-header__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  transition: var(--agency-transition-fast);
}

.agency-discover-header__search:focus-within {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 3px var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.agency-discover-header__search svg {
  flex-shrink: 0;
  color: var(--agency-text-tertiary);
}

.agency-discover-header__search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--agency-text-primary);
  outline: none;
  font-family: var(--agency-font-sans);
}

.agency-discover-header__search-input::placeholder {
  color: var(--agency-text-tertiary);
}

.agency-discover-header__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary);
  cursor: pointer;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
}

.agency-discover-header__btn:hover {
  background: var(--agency-bg-elevated);
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-discover-header__btn--active {
  background: var(--agency-text-primary);
  color: white;
  border-color: var(--agency-text-primary);
}

.agency-discover-header__btn svg {
  flex-shrink: 0;
}

/* Boards Header - Specific Layout */
.agency-boards-header__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--agency-spacing-lg);
  margin-bottom: 3rem; /* mb-12 */
}

.agency-boards-header__text {
  flex: 1;
}

.agency-boards-header__title {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 400;
  color: #000000; /* text-black */
  margin: 0 0 0.25rem 0;
  font-family: var(--agency-font-serif, 'Noto Serif Display', serif);
  line-height: 1.2;
}

.agency-boards-header__subtitle {
  font-size: 0.875rem;
  color: var(--agency-text-secondary, #64748b);
  margin: 0;
  line-height: 1.5;
}

.agency-boards-header__create-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem; /* py-2 px-6 */
  background: #000000; /* bg-black */
  color: #ffffff; /* text-white */
  border: none;
  border-radius: 9999px; /* rounded-full */
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--agency-font-sans);
  white-space: nowrap;
}

.agency-boards-header__create-btn:hover {
  background: #292524; /* hover:bg-stone-800 */
  transform: translateY(-1px);
}

.agency-boards-header__create-btn svg {
  flex-shrink: 0;
}

/* Boards Page */
.agency-boards-page {
  margin-top: 0;
}

.agency-boards-page__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* grid-cols-1 */
  gap: 2rem; /* gap-8 */
}

@media (min-width: 640px) {
  .agency-boards-page__grid {
    grid-template-columns: repeat(2, 1fr); /* sm:grid-cols-2 */
  }
}

@media (min-width: 1024px) {
  .agency-boards-page__grid {
    grid-template-columns: repeat(3, 1fr); /* lg:grid-cols-3 */
  }
}

/* Board Card - Album Cover Look */
.agency-boards-page__card {
  position: relative;
  background: #ffffff; /* bg-white */
  border: 1px solid #f3f4f6; /* border-gray-100 */
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.agency-boards-page__card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
  transform: translateY(-2px);
}

/* Image Grid (Top Half) */
.agency-boards-page__card-images {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3; /* Square or 4:3 */
  background: #fafaf9; /* bg-stone-50 */
  overflow: hidden;
}

.agency-boards-page__image-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  background: #ffffff;
}

.agency-boards-page__grid-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fafaf9;
}

.agency-boards-page__grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.agency-boards-page__card:hover .agency-boards-page__grid-image img {
  transform: scale(1.05);
}

.agency-boards-page__image-placeholder {
  width: 100%;
  height: 100%;
  background: #f5f5f4; /* bg-stone-100 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Empty State - Pattern/Logo */
.agency-boards-page__card-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fafaf9; /* bg-stone-50 */
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.02) 10px, rgba(0, 0, 0, 0.02) 20px);
}

.agency-boards-page__card-placeholder svg {
  color: #d1d5db; /* text-gray-300 */
  opacity: 0.4;
}

/* Card Content (Bottom Half) */
.agency-boards-page__card-content {
  padding: 1.25rem; /* p-5 */
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* gap-2 */
  position: relative;
}

.agency-boards-page__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

.agency-boards-page__card-title {
  font-family: var(--agency-font-serif, 'Noto Serif Display', serif);
  font-size: 1.25rem; /* text-xl */
  font-weight: 500; /* font-medium */
  color: #111827; /* text-gray-900 */
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
  flex: 1;
}

.agency-boards-page__card:hover .agency-boards-page__card-title {
  color: #d4af37; /* group-hover:text-[#d4af37] */
}

.agency-boards-page__card-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.625rem; /* text-xs */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280; /* text-gray-500 */
  background: transparent;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.agency-boards-page__card-meta {
  font-size: 0.75rem; /* text-xs */
  font-weight: 500; /* font-medium */
  color: #a8a29e; /* text-stone-400 */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-wide */
  font-family: var(--agency-font-sans);
  line-height: 1.5;
}

/* Menu Button - Glass Icon Button */
.agency-boards-page__menu-wrapper {
  position: absolute;
  top: 0.5rem; /* top-2 */
  right: 0.5rem; /* right-2 */
  z-index: 10;
}

.agency-boards-page__menu-btn {
  width: auto;
  height: auto;
  min-width: 32px;
  min-height: 32px;
  padding: 0.375rem; /* p-1.5 */
  border-radius: 9999px; /* rounded-full */
  background: rgba(0, 0, 0, 0.2); /* bg-black/20 */
  backdrop-filter: blur(4px); /* backdrop-blur-sm */
  -webkit-backdrop-filter: blur(4px);
  border: none;
  color: #ffffff; /* text-white */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 1; /* Always visible */
  box-shadow: none;
}

.agency-boards-page__card:hover .agency-boards-page__menu-btn {
  opacity: 1;
}

.agency-boards-page__menu-btn:hover {
  background: rgba(0, 0, 0, 0.4); /* hover:bg-black/40 */
  color: #ffffff;
  transform: none; /* Remove translateY */
  box-shadow: none;
}

.agency-boards-page__menu-btn:active,
.agency-boards-page__menu-btn[aria-expanded="true"] {
  transform: scale(0.95);
  background: rgba(0, 0, 0, 0.5);
}

.agency-boards-page__menu-btn svg {
  width: 18px;
  height: 18px;
  transition: none;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.agency-boards-page__menu-btn:hover svg {
  transform: none;
  stroke-width: 2;
}

/* Dropdown Menu */
.agency-boards-page__menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 20;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
}

.agency-boards-page__menu-wrapper[data-open="true"] .agency-boards-page__menu-dropdown,
.agency-boards-page__menu-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.agency-boards-page__menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  font-family: var(--agency-font-sans);
}

.agency-boards-page__menu-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.agency-boards-page__menu-item--danger {
  color: #dc2626;
}

.agency-boards-page__menu-item--danger:hover {
  background: #fee2e2;
  color: #991b1b;
}

.agency-boards-page__menu-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2;
}

.agency-boards-page__menu-item span {
  flex: 1;
}

.agency-boards-page__menu-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0.25rem 0;
}

.agency-boards-page__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--agency-spacing-2xl);
  color: var(--agency-text-tertiary);
}

/* Use unified empty state for boards page */
.agency-boards-page__empty {
  /* Inherits from .agency-dashboard__empty-state */
}

/* Analytics Header - Uses standardized styles above */

/* Analytics Cards */
.agency-dashboard__analytics-card-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #10b981;
}

.agency-dashboard__analytics-card-trend--negative {
  color: #ef4444;
}

.agency-dashboard__analytics-card-trend svg {
  flex-shrink: 0;
}

.agency-dashboard__analytics-card-trend-text {
  color: inherit;
}

.agency-dashboard__analytics-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--agency-spacing-lg);
  margin-top: var(--agency-spacing-xl);
}

.agency-dashboard__analytics-chart-card {
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 16px;
  padding: var(--agency-spacing-lg);
}

.agency-dashboard__analytics-chart-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-secondary);
  margin: 0 0 var(--agency-spacing-md) 0;
}

.agency-dashboard__analytics-chart-container {
  min-height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.agency-dashboard__analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--agency-spacing-md);
  margin-top: var(--agency-spacing-md);
}

.agency-dashboard__analytics-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
}

.agency-dashboard__analytics-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Inbox Header - Uses standardized styles above */

.agency-inbox-header__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.agency-inbox-header__filter-pill {
  padding: 0.5rem 1rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-secondary);
  cursor: pointer;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
}

.agency-inbox-header__filter-pill:hover {
  background: var(--agency-bg-elevated);
}

.agency-inbox-header__filter-pill--active {
  background: var(--agency-text-primary);
  color: white;
  border-color: var(--agency-text-primary);
}

.agency-inbox-header__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  transition: var(--agency-transition-fast);
}

.agency-inbox-header__search:focus-within {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 3px var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.agency-inbox-header__search svg {
  flex-shrink: 0;
  color: var(--agency-text-tertiary);
}

.agency-inbox-header__search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--agency-text-primary);
  outline: none;
  font-family: var(--agency-font-sans);
}

.agency-inbox-header__search-input::placeholder {
  color: var(--agency-text-tertiary);
}

.agency-inbox-header__filters-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary);
  cursor: pointer;
  transition: var(--agency-transition-fast);
  font-family: var(--agency-font-sans);
  margin-left: auto;
}

.agency-inbox-header__filters-btn:hover {
  background: var(--agency-bg-elevated);
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-inbox-header__filters-btn--active {
  background: var(--agency-text-primary);
  color: white;
  border-color: var(--agency-text-primary);
}

.agency-inbox-header__filters-btn svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .agency-discover-header__actions,
  .agency-inbox-header__search {
    flex-direction: column;
  }

  .agency-boards-header__content {
    flex-direction: column;
  }

  .agency-boards-page__grid {
    grid-template-columns: 1fr;
  }

  .agency-dashboard__analytics-charts {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MY APPLICANTS HEADER - Redesigned
   ============================================ */

.agency-applicants-header {
  margin-bottom: 2rem;
  margin-top: 0;
  padding: 0;
}

.agency-applicants-header__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Main Row - Title + Search + Actions */
.agency-applicants-header__main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.agency-applicants-header__title-group {
  flex: 0 0 auto;
}

.agency-applicants-header__title {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--agency-text-primary, #0f172a);
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.agency-applicants-header__subtitle {
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  color: var(--agency-text-secondary, #64748b);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

/* Actions Group - Search + Filters */
.agency-applicants-header__actions-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-end;
  max-width: 600px;
}

.agency-applicants-header__search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 320px;
  max-width: 480px;
}

.agency-applicants-header__search-icon {
  position: absolute;
  left: 1.125rem;
  width: 18px;
  height: 18px;
  color: var(--agency-text-tertiary, #94a3b8);
  pointer-events: none;
  z-index: 10;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.agency-applicants-header__search:focus-within .agency-applicants-header__search-icon {
  color: var(--agency-text-secondary, #64748b);
}

.agency-applicants-header__search-input {
  width: 100%;
  padding: 0.8125rem 1.25rem 0.8125rem 1rem;
  padding-left: 4rem !important;
  background: var(--agency-bg-elevated, #f8f8f7);
  border: none;
  border-radius: 10px;
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  color: var(--agency-text-primary, #0f172a);
  outline: none;
  transition: all 0.2s ease;
  line-height: 1.5;
  box-shadow: 
    inset 0 0 0 1px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
}

.agency-applicants-header__search-input::placeholder {
  color: var(--agency-text-tertiary, #94a3b8);
  opacity: 1;
  font-weight: 400;
}

.agency-applicants-header__search-input:hover:not(:focus) {
  background: #f5f5f4;
  box-shadow: 
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04);
}

.agency-applicants-header__search-input:focus {
  background: var(--agency-bg-surface, #ffffff);
  box-shadow: 
    inset 0 0 0 2px var(--agency-text-primary, #0f172a),
    0 6px 16px rgba(0, 0, 0, 0.1);
}

.agency-applicants-header__filters-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--agency-bg-surface, #ffffff);
  border: 1px solid var(--agency-border, #e2e8f0);
  border-radius: 8px;
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary, #0f172a);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.agency-applicants-header__filters-btn:hover {
  background: var(--agency-bg-elevated, #f5f5f4);
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-text-primary, #0f172a);
}

.agency-applicants-header__filters-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Status Tabs Row */
.agency-applicants-header__status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--agency-border, #e2e8f0);
}

/* Status Pills */
.applicants-status-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.applicants-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--agency-bg-surface, #ffffff);
  border: 1px solid var(--agency-border, #e2e8f0);
  border-radius: 20px;
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.applicants-status-pill:hover {
  background: var(--agency-bg-elevated, #f5f5f4);
  border-color: var(--agency-text-primary, #0f172a);
  color: var(--agency-text-primary, #0f172a);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Monochrome status pills - no color coding */
.applicants-status-pill[data-status="pending"],
.applicants-status-pill[data-status="under-review"],
.applicants-status-pill[data-status="new"],
.applicants-status-pill[data-status="accepted"],
.applicants-status-pill[data-status="declined"],
.applicants-status-pill[data-status="archived"] {
  background: var(--agency-bg-surface, #ffffff);
  border-color: var(--agency-border, #e2e8f0);
  color: var(--agency-text-secondary, #64748b);
}

.applicants-status-pill[data-status="pending"]:hover,
.applicants-status-pill[data-status="under-review"]:hover,
.applicants-status-pill[data-status="new"]:hover,
.applicants-status-pill[data-status="accepted"]:hover,
.applicants-status-pill[data-status="declined"]:hover,
.applicants-status-pill[data-status="archived"]:hover {
  background: var(--agency-bg-elevated, #f5f5f4);
  border-color: var(--agency-text-primary, #0f172a);
  color: var(--agency-text-primary, #0f172a);
}

.applicants-status-pill--active {
  background: var(--agency-text-primary, #0f172a);
  border-color: var(--agency-text-primary, #0f172a);
  color: #ffffff;
  font-weight: 600;
}

.applicants-status-pill--active:hover {
  background: var(--agency-text-primary, #0f172a);
  border-color: var(--agency-text-primary, #0f172a);
  color: #ffffff;
}

.applicants-status-pill__label {
  font-weight: inherit;
}

.applicants-status-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.375rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.applicants-status-pill--active .applicants-status-pill__count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Status Tabs (Clean Text Tab Style) */
.applicants-status-tabs {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* gap-6 */
}

.applicants-status-tab {
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  font-weight: 400; /* font-normal */
  color: #9ca3af; /* text-gray-400 */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.applicants-status-tab:hover {
  color: #4b5563; /* hover:text-gray-600 */
}

.applicants-status-tab--active {
  color: #000000; /* text-black */
  font-weight: 600; /* font-semibold */
}

.applicants-status-tab--active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  width: 0.25rem; /* w-1 */
  height: 0.25rem; /* h-1 */
  background: #000000; /* bg-black */
  border-radius: 50%; /* rounded-full */
  margin: 0.25rem auto 0; /* mt-1 mx-auto */
}

.agency-applicants-header__view-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #f5f5f4; /* bg-stone-100 */
  border: none;
  border-radius: 0.5rem; /* rounded-lg */
  padding: 0.25rem; /* p-1 */
  box-shadow: none;
}

.agency-applicants-header__view-toggle.is-hidden {
  display: none;
}

.agency-applicants-header__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 0.375rem; /* rounded-md */
  color: #6b7280; /* text-gray-500 */
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.agency-applicants-header__view-btn:hover {
  color: #000000; /* hover:text-black */
}

.agency-applicants-header__view-btn--active {
  background: #ffffff; /* bg-white */
  color: #000000; /* text-black */
  font-weight: 500; /* font-medium */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.agency-applicants-header__view-btn--active:hover {
  background: #ffffff;
  color: #000000;
}

.agency-applicants-header__view-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.agency-applicants-header__view-label {
  font-size: 0.875rem;
  font-weight: inherit;
  line-height: 1;
}

/* Quick Stats Cards */
.agency-applicants-header__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.applicants-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff; /* bg-white */
  border: 1px solid #f3f4f6; /* border-gray-100 */
  border-radius: 0.75rem; /* rounded-xl */
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.applicants-stat-card:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transform: none; /* Remove transform */
  border-color: #f3f4f6; /* Keep border-gray-100 */
}

.applicants-stat-card--highlight {
  background: #fafaf9; /* bg-stone-50 - subtle highlight for active/attention */
  border: 1px solid #f3f4f6; /* border-gray-100 - same as others */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm - same as others */
}

.applicants-stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--agency-bg-elevated, #f8f8f7);
  color: var(--agency-text-secondary, #64748b);
  flex-shrink: 0;
}

.applicants-stat-card--highlight .applicants-stat-card__icon {
  background: var(--agency-text-primary, #0f172a);
  color: #ffffff;
}

.applicants-stat-card__content {
  flex: 1;
  min-width: 0;
}

.applicants-stat-card__value {
  font-family: var(--agency-font-serif, 'Georgia', serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--agency-text-primary, #0f172a);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.applicants-stat-card__label {
  font-family: var(--agency-font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--agency-text-secondary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* ============================================
   PAGINATION
   ============================================ */

.applicants-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  margin-top: 2rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  box-shadow: var(--agency-shadow-sm);
}

.applicants-pagination__info {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
}

.applicants-pagination__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.applicants-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.applicants-pagination__btn:hover:not(.applicants-pagination__btn--disabled) {
  background: var(--agency-bg-elevated);
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-brand-color, var(--agency-accent-gold));
  transform: translateY(-1px);
  box-shadow: var(--agency-shadow-sm);
}

.applicants-pagination__btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.applicants-pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.applicants-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--agency-text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.applicants-pagination__page:hover:not(.applicants-pagination__page--active) {
  background: var(--agency-bg-elevated);
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.applicants-pagination__page--active {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: #ffffff;
  font-weight: 600;
  cursor: default;
}

.applicants-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-tertiary);
}

@media (max-width: 768px) {
  .applicants-pagination {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .applicants-pagination__controls {
    width: 100%;
    justify-content: center;
  }

  .applicants-pagination__pages {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .agency-applicants-header__main-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .agency-applicants-header__actions-group {
    width: 100%;
    max-width: none;
  }
  
  .agency-applicants-header__status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .agency-applicants-header__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .agency-applicants-header__actions-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .agency-applicants-header__search {
    min-width: 0;
  }
}

/* ============================================
   APPLICANTS PIPELINE VISUALIZATION
   ============================================ */

.applicants-pipeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  box-shadow: var(--agency-shadow-sm);
  overflow-x: auto;
  scrollbar-width: thin;
}

.applicants-pipeline__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--agency-bg-elevated);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--agency-transition-fast);
  white-space: nowrap;
  min-width: 100px;
  position: relative;
}

.applicants-pipeline__stage:hover {
  background: var(--agency-bg-surface);
  border-color: var(--agency-border);
  transform: translateY(-2px);
  box-shadow: var(--agency-shadow-sm);
}

.applicants-pipeline__stage--active {
  background: var(--agency-brand-color-light, var(--agency-accent-gold-light));
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 3px var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.applicants-pipeline__stage-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.applicants-pipeline__stage--active .applicants-pipeline__stage-label {
  color: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
}

.applicants-pipeline__stage-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--agency-text-primary);
  line-height: 1;
}

.applicants-pipeline__stage--active .applicants-pipeline__stage-count {
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.applicants-pipeline__connector {
  width: 24px;
  height: 2px;
  background: var(--agency-border);
  position: relative;
  flex-shrink: 0;
}

.applicants-pipeline__connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--agency-border);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ============================================
   FILTER DRAWER
   ============================================ */

.applicants-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  z-index: 1000;
  pointer-events: none;
}

.applicants-filter-drawer[aria-hidden="true"] {
  display: none;
}

.applicants-filter-drawer[aria-hidden="false"] {
  display: block;
  pointer-events: all;
}

.applicants-filter-drawer__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.applicants-filter-drawer__content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--agency-bg-surface);
  box-shadow: var(--agency-shadow-xl);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.applicants-filter-drawer[aria-hidden="false"] .applicants-filter-drawer__content {
  transform: translateX(0);
}

.applicants-filter-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--agency-border);
}

.applicants-filter-drawer__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--agency-text-primary);
  margin: 0;
}

.applicants-filter-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--agency-text-secondary);
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.applicants-filter-drawer__close:hover {
  background: var(--agency-bg-elevated);
  color: var(--agency-text-primary);
}

.applicants-filter-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.applicants-filter-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.applicants-filter-drawer__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.applicants-filter-drawer__input,
.applicants-filter-drawer__select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--agency-text-primary);
  outline: none;
  transition: var(--agency-transition-fast);
}

.applicants-filter-drawer__input:focus,
.applicants-filter-drawer__select:focus {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  box-shadow: 0 0 0 3px var(--agency-brand-color-light, var(--agency-accent-gold-light));
}

.applicants-filter-drawer__date-range {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.applicants-filter-drawer__date-input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--agency-text-primary);
  outline: none;
}

.applicants-filter-drawer__date-separator {
  color: var(--agency-text-tertiary);
  font-size: 0.875rem;
}

.applicants-filter-drawer__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.applicants-filter-drawer__checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--agency-text-primary);
}

.applicants-filter-drawer__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--agency-brand-color, var(--agency-accent-gold));
}

.applicants-filter-drawer__range-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.applicants-filter-drawer__range-input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--agency-text-primary);
  outline: none;
}

.applicants-filter-drawer__range-separator {
  color: var(--agency-text-tertiary);
  font-size: 0.875rem;
}

.applicants-filter-drawer__slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--agency-bg-elevated);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.applicants-filter-drawer__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--agency-brand-color, var(--agency-accent-gold));
  cursor: pointer;
}

.applicants-filter-drawer__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--agency-brand-color, var(--agency-accent-gold));
  cursor: pointer;
  border: none;
}

.applicants-filter-drawer__range-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  margin-top: 0.5rem;
}

.applicants-filter-drawer__footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--agency-border);
}

.applicants-filter-drawer__btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.applicants-filter-drawer__btn--secondary {
  background: var(--agency-bg-elevated);
  color: var(--agency-text-primary);
  border: 1px solid var(--agency-border);
}

.applicants-filter-drawer__btn--secondary:hover {
  background: var(--agency-bg-surface);
  border-color: var(--agency-border);
}

.applicants-filter-drawer__btn--primary {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: #ffffff;
}

.applicants-filter-drawer__btn--primary:hover {
  background: var(--agency-brand-color-dark, var(--agency-accent-gold-dark));
  transform: translateY(-1px);
  box-shadow: var(--agency-shadow-md);
}

@media (max-width: 1024px) {
  .agency-applicants-header__actions {
    flex-direction: column;
    width: 100%;
  }

  .agency-applicants-header__search {
    min-width: 100%;
  }

  .agency-applicants-header__top {
    flex-direction: column;
  }

  .applicants-pipeline {
    gap: 0.25rem;
    padding: 1rem;
  }

  .applicants-pipeline__stage {
    min-width: 80px;
    padding: 0.75rem 1rem;
  }

  .applicants-pipeline__stage-label {
    font-size: 0.75rem;
  }

  .applicants-pipeline__stage-count {
    font-size: 1.25rem;
  }

  .applicants-filter-drawer {
    max-width: 100%;
  }
}


/* ============================================
   APPLICATION CARD ENHANCEMENTS
   ============================================ */

.agency-dashboard__badge--status-new {
  background: #3b82f6;
  color: #ffffff;
}

.agency-dashboard__badge--status-pending {
  background: #f59e0b;
  color: #ffffff;
}

.agency-dashboard__badge--status-under-review {
  background: #8b5cf6;
  color: #ffffff;
}

.agency-dashboard__badge--status-accepted {
  background: #10b981;
  color: #ffffff;
}

.agency-dashboard__badge--status-declined {
  background: #ef4444;
  color: #ffffff;
}

.agency-dashboard__badge--status-archived {
  background: #6b7280;
  color: #ffffff;
}

.agency-dashboard__card-ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.agency-dashboard__ai-tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--agency-bg-elevated);
  color: var(--agency-text-secondary);
}

.agency-dashboard__ai-tag--purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.agency-dashboard__ai-tag--blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.agency-dashboard__ai-tag--green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.agency-dashboard__card-board {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: var(--agency-bg-elevated);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--agency-text-secondary);
}

.agency-dashboard__card-board svg {
  flex-shrink: 0;
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-dashboard__card-quick-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--agency-border);
}

.agency-dashboard__quick-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  border: 1.5px solid var(--agency-border);
  border-radius: 8px;
  background: var(--agency-bg-surface);
  color: var(--agency-text-secondary);
  cursor: pointer;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__quick-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--agency-shadow-sm);
}

.agency-dashboard__quick-action-btn--accept {
  border-color: #10b981;
  color: #10b981;
}

.agency-dashboard__quick-action-btn--accept:hover {
  background: #10b981;
  color: #ffffff;
}

.agency-dashboard__quick-action-btn--decline {
  border-color: #ef4444;
  color: #ef4444;
}

.agency-dashboard__quick-action-btn--decline:hover {
  background: #ef4444;
  color: #ffffff;
}

.agency-dashboard__quick-action-btn--view {
  border-color: var(--agency-brand-color, var(--agency-accent-gold));
  color: var(--agency-brand-color, var(--agency-accent-gold));
}

.agency-dashboard__quick-action-btn--view:hover {
  background: var(--agency-brand-color, var(--agency-accent-gold));
  color: #ffffff;
}

.applicants-views-container {
  margin-top: 0;
  padding-top: 0;
}

.applicants-views-container .agency-dashboard__view {
  display: none !important;
}

.applicants-views-container .agency-dashboard__view--active {
  display: block !important;
}

/* ============================================
   ANALYTICS DASHBOARD
   ============================================ */

.agency-dashboard__analytics-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--agency-spacing-md);
}

.agency-dashboard__analytics-status-card {
  display: flex;
  align-items: center;
  gap: var(--agency-spacing-md);
  padding: var(--agency-spacing-md);
  background: var(--agency-bg-surface);
  border: 1px solid var(--agency-border);
  border-radius: 12px;
  transition: var(--agency-transition-fast);
}

.agency-dashboard__analytics-status-card:hover {
  border-color: var(--agency-brand-color-light);
  transform: translateY(-2px);
  box-shadow: var(--agency-shadow-sm);
}

.agency-dashboard__analytics-status-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--agency-bg-elevated);
  border-radius: 8px;
}

.agency-dashboard__analytics-status-info {
  display: flex;
  flex-direction: column;
}

.agency-dashboard__analytics-status-label {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
}

.agency-dashboard__analytics-status-count {
  font-family: var(--agency-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--agency-text-primary);
}

/* Match Scores */
.agency-dashboard__analytics-scores {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-sm);
}

.agency-dashboard__analytics-score-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.agency-dashboard__analytics-score-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
}

.agency-dashboard__analytics-score-bar {
  width: 100%;
  height: 8px;
  background: var(--agency-bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.agency-dashboard__analytics-score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}

/* Boards List */
.agency-dashboard__analytics-boards {
  display: flex;
  flex-direction: column;
  gap: var(--agency-spacing-md);
}

.agency-dashboard__analytics-board-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.agency-dashboard__analytics-board-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
}

.agency-dashboard__analytics-board-name {
  color: var(--agency-text-primary);
  font-weight: 500;
}

.agency-dashboard__analytics-board-count {
  color: var(--agency-text-tertiary);
}

.agency-dashboard__analytics-board-bar {
  width: 100%;
  height: 6px;
  background: var(--agency-bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.agency-dashboard__analytics-board-fill {
  height: 100%;
  background: #1a1a1a;
  border-radius: 3px;
  transition: width 1s ease-out;
}

.agency-dashboard__analytics-board-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.agency-dashboard__analytics-board-item:hover {
  background-color: #f5f5f5;
}

.agency-dashboard__analytics-board-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
}

.agency-dashboard__analytics-board-name {
  color: #1a1a1a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agency-dashboard__analytics-board-name::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 50%;
  opacity: 0.2;
}

.agency-dashboard__analytics-board-count {
  color: #666;
  font-size: 0.75rem;
  font-weight: 500;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}


/* ============================================
   ANALYTICS REDESIGN - CHART STYLES
   ============================================ */

.agency-dashboard__analytics-chart-header {
  margin-bottom: var(--agency-spacing-lg);
}

.agency-dashboard__analytics-chart-title {
  font-family: var(--agency-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0 0 0.5rem 0;
}

.agency-dashboard__analytics-chart-subtitle {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: var(--agency-text-secondary);
  margin: 0;
}

.agency-dashboard__analytics-chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--agency-spacing-md) 0;
}

.agency-dashboard__analytics-legend {
  display: flex;
  justify-content: center;
  gap: var(--agency-spacing-md);
  margin-top: var(--agency-spacing-md);
  flex-wrap: wrap;
}

.agency-dashboard__analytics-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  color: var(--agency-text-secondary);
}

.agency-dashboard__analytics-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* KPI Card Typography Update */
.agency-dashboard__analytics-card-value {
  font-family: var(--agency-font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--agency-text-primary);
  margin: 0.5rem 0;
}

.agency-dashboard__analytics-card-title {
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--agency-text-tertiary);
}

.agency-dashboard__analytics-chart-container {
  width: 100%;
  position: relative;
}

.agency-dashboard__analytics-chart-container svg {
  width: 100%;
  height: 100%;
}

/* Analytics Tooltip */
.agency-analytics-tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid #1a1a1a;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-family: var(--agency-font-sans);
  font-size: 0.8125rem;
  color: #1a1a1a;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.15s ease;
  min-width: 140px;
}

.agency-analytics-tooltip__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agency-analytics-tooltip__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.125rem;
}

.agency-analytics-tooltip__label {
  color: #666;
}

.agency-analytics-tooltip__value {
  font-weight: 600;
  color: #1a1a1a;
}

/* Chart Hover Effects */
.agency-analytics-chart-point {
  transition: r 0.2s ease, stroke-width 0.2s ease;
  cursor: pointer;
}

.agency-analytics-chart-point:hover {
  r: 5;
  stroke-width: 2;
}

.agency-analytics-donut-segment {
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  transform-origin: center;
}

.agency-analytics-donut-segment:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* ============================================
   PREMIUM BOARD EDITOR MODAL
   ============================================ */

.board-editor-modal--premium .board-editor-modal__content {
  display: flex;
  flex-direction: column;
  width: 800px; /* Slightly narrower for single column */
  max-width: 95vw;
  height: auto;
  max-height: 90vh;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Main Content Area */
.board-editor-modal__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

.board-editor-modal__header {
  padding: 2rem 3rem 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.board-editor-modal__title {
  font-family: var(--agency-font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.board-editor-modal__close {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -0.5rem;
  margin-right: -0.5rem;
}

.board-editor-modal__close:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

/* Horizontal Navigation */
.board-editor-modal__nav--horizontal {
  display: flex;
  flex-direction: row;
  padding: 0 3rem;
  border-bottom: 1px solid #f5f5f4; /* border-b border-stone-100 */
  gap: 2rem;
  margin-bottom: 2rem;
}

.board-editor-modal__nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 1rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.board-editor-modal__nav-item:hover {
  color: #666;
}

.board-editor-modal__nav-item--active {
  color: #000000; /* text-black */
  font-weight: 700; /* font-bold */
}

.board-editor-modal__nav-item:not(.board-editor-modal__nav-item--active) {
  color: #d6d3d1; /* text-stone-300 */
}

/* Active Indicator (Bottom Border) */
.board-editor-modal__nav-item--active::after {
  content: '';
  position: absolute;
  bottom: -1px; /* Overlap border-bottom */
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--agency-brand-color);
  box-shadow: 0 -2px 6px rgba(201, 165, 90, 0.2);
}

.board-editor-modal__nav-number {
  font-family: var(--agency-font-serif);
  font-size: 0.875rem;
  color: var(--agency-brand-color);
  font-style: italic;
  opacity: 0.8;
}

.board-editor-modal__nav-label {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.board-editor-modal__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.board-editor-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 3rem 2rem 3rem;
}

/* Form Fields */
.board-editor-modal__field-group {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.board-editor-modal__label {
  display: block;
  font-family: var(--agency-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 0.5rem;
}

.board-editor-modal__input,
.board-editor-modal__textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #eee;
  font-family: var(--agency-font-sans);
  font-size: 1rem;
  color: #1a1a1a;
  background: transparent;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.board-editor-modal__input:focus,
.board-editor-modal__textarea:focus {
  outline: none;
  border-bottom-color: var(--agency-brand-color);
}

/* Hero Input for Board Name */
.board-editor-modal__input--hero {
  font-family: var(--agency-font-serif);
  font-size: 2rem;
  font-weight: 500;
  padding: 0.75rem 1rem; /* Match regular input padding */
  color: #0c0a09; /* text-stone-900 */
  border: 1px solid #d6d3d1; /* border-stone-300 */
  border-radius: 0.5rem; /* rounded-lg */
  background: #ffffff;
}

.board-editor-modal__input--hero::placeholder {
  color: #a8a29e; /* placeholder-stone-400 */
  font-style: italic;
}

.board-editor-modal__input--hero:focus {
  outline: none;
  border-color: #000000; /* border-black */
  box-shadow: 0 0 0 1px #000000; /* ring-1 ring-black */
}

.board-editor-modal__input::placeholder,
.board-editor-modal__textarea::placeholder {
  color: #ddd;
}

/* ============================================
   PREMIUM UI OVERHAUL
   ============================================ */

/* Card Layout */
.board-editor-modal__card-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.board-editor-modal__card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.board-editor-modal__card:hover {
  border-color: #e0e0e0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.board-editor-modal__card-header {
  background: #fafafa;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.board-editor-modal__card-header h4 {
  margin: 0;
  font-family: var(--agency-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

.board-editor-modal__card-body {
  padding: 1.5rem;
}

/* Split Input Design */
.board-editor-modal__split-input {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s ease;
  overflow: hidden;
}

.board-editor-modal__split-input:focus-within {
  border-color: var(--agency-brand-color);
  box-shadow: 0 0 0 1px var(--agency-brand-color);
}

.board-editor-modal__split-half {
  flex: 1;
  position: relative;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.board-editor-modal__split-half:first-child {
  background: linear-gradient(to right, #fff, #fafafa);
}

.board-editor-modal__split-divider {
  width: 1px;
  background: #eee;
  margin: 0.5rem 0;
}

.board-editor-modal__input-label {
  font-family: var(--agency-font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 0.125rem;
  font-weight: 600;
}

.board-editor-modal__input-clean {
  border: 1px solid #d6d3d1; /* border-stone-300 */
  background: #ffffff;
  padding: 0.75rem 1rem;
  width: 100%;
  font-family: var(--agency-font-mono);
  font-size: 1rem;
  color: #0c0a09; /* text-stone-900 */
  font-weight: 500;
  border-radius: 0.5rem; /* rounded-lg */
  transition: all 0.2s ease;
}

.board-editor-modal__input-clean:focus {
  outline: none;
  border-color: #000000; /* border-black */
  box-shadow: 0 0 0 1px #000000; /* ring-1 ring-black */
}

.board-editor-modal__input-clean::placeholder {
  color: #a8a29e; /* placeholder-stone-400 */
  font-family: var(--agency-font-sans);
}

/* Premium Chips */
.board-editor-modal__chips--premium {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.board-editor-modal__chips--premium .board-editor-modal__chip span {
  padding: 0.75rem 1.5rem;
  border: 1px solid #eee;
  background: #fff;
  font-size: 0.9375rem;
  color: #444;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.board-editor-modal__chips--premium .board-editor-modal__chip input:checked + span {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



/* Scoring Weights Overhaul */
.board-editor-modal__weights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.board-editor-modal__weight-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.board-editor-modal__weight-card:hover {
  border-color: #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.board-editor-modal__weight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.board-editor-modal__weight-header label {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.board-editor-modal__weight-val {
  font-family: var(--agency-font-mono);
  font-size: 1rem;
  color: var(--agency-brand-color);
  font-weight: 700;
  background: rgba(201, 165, 90, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.board-editor-modal__slider-container {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.board-editor-modal__slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: transparent;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.board-editor-modal__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--agency-brand-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: -6px;
  transition: transform 0.1s ease;
}

.board-editor-modal__slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.board-editor-modal__slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: #eee;
  border-radius: 2px;
}

.board-editor-modal__weight-desc {
  font-family: var(--agency-font-sans);
  font-size: 0.75rem;
  color: #999;
  margin: 0;
  line-height: 1.4;
}

/* Section Header Refinement */
.board-editor-modal__section-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 1rem;
}

.board-editor-modal__section-header h3 {
  font-family: var(--agency-font-serif);
  font-size: 1.5rem;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.board-editor-modal__section-header p {
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

/* Next Button Actions */
.board-editor-modal__actions-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f9f9f9;
}

.board-editor-modal__btn-next {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-family: var(--agency-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.board-editor-modal__btn-next:hover {
  border-color: var(--agency-brand-color);
  color: var(--agency-brand-color);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
