/* ============================================
   EDITORIAL THEME - CAA Financial Dashboard
   COMPLETE REDESIGN - Magazine/Editorial Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
  /* Editorial Color Palette */
  --editorial-bg: #faf8f5;
  --editorial-bg-alt: #f5f0e8;
  --editorial-card: #ffffff;
  --editorial-border: #ebe4d6;
  --editorial-text: #1a1a1a;
  --editorial-text-muted: #4a4a4a;
  --editorial-text-secondary: #6b6b6b;
  --editorial-accent: #c45c26;
  --editorial-accent-light: #d97b4a;
  --editorial-accent-dark: #a34a1e;
  --editorial-sidebar-bg: #1a1a1a;
  --editorial-sidebar-text: #faf8f5;
  --cream-400: #c4b596;
  --cream-500: #9a9078;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* OVERRIDE design-system.css variables */
  --bg-base: #faf8f5 !important;
  --bg-surface: #ffffff !important;
  --bg-elevated: #f5f0e8 !important;
  --text-primary: #1a1a1a !important;
  --text-secondary: #4a4a4a !important;
  --text-tertiary: #6b6b6b !important;
  --accent: #c45c26 !important;
  --border-default: #ebe4d6 !important;
  --success: #059669 !important;
  --info: #2563eb !important;
}

/* ============================================
   GLOBAL BASE
   ============================================ */
html {
  font-size: 16px !important;
}

body {
  font-family: var(--font-sans) !important;
  color: var(--editorial-text) !important;
  background-color: var(--editorial-bg) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Paper grain texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

::selection {
  background: var(--editorial-accent) !important;
  color: white !important;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  background: var(--editorial-bg) !important;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(196, 92, 38, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(196, 92, 38, 0.03) 0%, transparent 50%) !important;
  min-height: 100vh;
  /* display controlled by login.css .visible class */
  align-items: center;
  justify-content: center;
}

.login-page.visible {
  display: flex !important;
}

/* ============================================
   HIDE OLD DASHBOARD SECTIONS
   Editorial theme replaces these with new design
   ============================================ */
.board-layout,
.milestones-section,
.app-toolbar,
.spec-panel,
.spec-panel-overlay,
.qf-panel,
.qf-overlay,
.tb-detail-panel,
.tb-detail-overlay,
.worker-picker-overlay,
.modal-overlay {
  display: none !important;
}

.login-card {
  background: var(--editorial-card) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  padding: 3rem !important;
  max-width: 400px;
  width: 100%;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-icon {
  color: var(--editorial-accent) !important;
  font-size: 2rem !important;
  margin-bottom: 0.5rem;
}

.login-logo-title {
  font-family: var(--font-serif) !important;
  font-size: 1.75rem !important;
  font-weight: 500 !important;
  color: var(--editorial-text) !important;
}

.login-logo-subtitle {
  font-size: 0.625rem !important;
  color: var(--editorial-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  margin-top: 0.25rem;
}

.login-field label {
  font-size: 0.625rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-weight: 600 !important;
  color: var(--editorial-text-muted) !important;
}

.login-field input {
  background: var(--editorial-bg-alt) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 8px !important;
  color: var(--editorial-text) !important;
  padding: 0.875rem 1rem !important;
}

.login-field input:focus {
  border-color: var(--editorial-accent) !important;
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.12) !important;
  outline: none !important;
}

.login-btn {
  background: var(--editorial-accent) !important;
  color: white !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 1rem !important;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-btn:hover {
  background: var(--editorial-accent-dark) !important;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--editorial-text-secondary) !important;
  font-style: italic !important;
  font-family: var(--font-serif) !important;
  font-size: 0.75rem;
}

/* ============================================
   SIDEBAR - Dark Editorial
   ============================================ */
.sidebar-nav {
  background: var(--editorial-sidebar-bg) !important;
  border-right: none !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15) !important;
  width: 260px !important;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  border-bottom: 1px solid rgba(250, 248, 245, 0.08) !important;
  padding: 1.75rem 1.5rem !important;
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-direction: column;
}

.sidebar-brand-icon {
  display: none !important;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

/* Editorial Logo Style */
.sidebar-brand-name {
  font-family: var(--font-serif) !important;
  font-size: 1.875rem !important;
  font-weight: 600 !important;
  color: var(--editorial-sidebar-text) !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
}

.sidebar-brand-name::before {
  content: 'CAA';
  display: inline;
}

.sidebar-brand-name::after {
  content: ' Financial';
  font-style: italic;
  color: var(--editorial-accent);
  font-weight: 400;
}

/* Hide original text */
.sidebar-brand-name {
  font-size: 0 !important;
}

.sidebar-brand-name::before,
.sidebar-brand-name::after {
  font-size: 1.75rem !important;
}

.sidebar-user {
  font-size: 0.625rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  color: rgba(250, 248, 245, 0.4) !important;
  margin-top: 0.5rem;
}

.sidebar-user::before {
  content: 'C-SUITE DASHBOARD';
}

/* Hide original user text */
.sidebar-user {
  font-size: 0 !important;
}

.sidebar-user::before {
  font-size: 0.625rem !important;
}

.sidebar-collapse-btn {
  display: none !important;
}

/* Sidebar Navigation */
.sidebar-body {
  flex: 1;
  padding: 1.5rem 0;
  overflow-y: auto;
}

.nav-section-header {
  padding: 0.75rem 1.5rem 0.5rem !important;
}

.nav-section-label {
  font-size: 0.5625rem !important;
  color: rgba(250, 248, 245, 0.35) !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

.nav-item {
  color: rgba(250, 248, 245, 0.6) !important;
  font-size: 0.875rem !important;
  margin: 0.125rem 0.75rem !important;
  padding: 0.625rem 0.875rem !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--editorial-sidebar-text) !important;
}

.nav-item.active {
  background: var(--editorial-accent) !important;
  color: white !important;
  font-weight: 500 !important;
}

.nav-item-icon {
  font-size: 1rem !important;
  opacity: 0.8;
}

.nav-item.active .nav-item-icon {
  opacity: 1 !important;
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid rgba(250, 248, 245, 0.08) !important;
  padding: 1rem !important;
}

.sidebar-logout-btn {
  color: rgba(250, 248, 245, 0.5) !important;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  width: 100%;
  transition: all 0.15s ease;
}

.sidebar-logout-btn:hover {
  background: rgba(220, 38, 38, 0.15) !important;
  color: #f87171 !important;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  margin-left: 260px;
  background: var(--editorial-bg) !important;
}

/* App Header */
.app-header {
  background: var(--editorial-bg) !important;
  border-bottom: 1px solid var(--editorial-border) !important;
  padding: 1rem 3rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.app-title {
  font-size: 0.625rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  color: var(--editorial-text-muted) !important;
  font-weight: 500 !important;
  font-family: var(--font-sans) !important;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-header-timestamp {
  font-size: 0.6875rem !important;
  color: var(--editorial-text-secondary) !important;
}

.mobile-menu-btn {
  display: none;
}

/* ============================================
   TOOLBAR - Hide on board panel (use welcome banner instead)
   ============================================ */
.app-toolbar {
  display: none !important;
}

/* ============================================
   EDITORIAL WELCOME BANNER
   ============================================ */
.editorial-welcome {
  position: relative;
  margin-bottom: 4rem;
  padding: 0 3rem;
}

.editorial-welcome-inner {
  position: relative;
  padding-left: 2rem;
}

/* Q1 2026 vertical marker */
.editorial-quarter-marker {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editorial-quarter-line {
  width: 1px;
  height: 4rem;
  background: rgba(74, 74, 74, 0.3);
}

.editorial-quarter-text {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: rgba(74, 74, 74, 0.6);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 0.75rem;
}

/* Greeting */
.editorial-greeting {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--editorial-text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Giant name */
.editorial-name-first {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 500;
  color: var(--editorial-text);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
}

.editorial-name-last-wrap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.25rem;
}

.editorial-name-last {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-style: italic;
  color: var(--editorial-text-muted);
  font-weight: 400;
}

.editorial-accent-line {
  height: 2px;
  width: 6rem;
  background: var(--editorial-accent);
}

/* Subtitle */
.editorial-subtitle {
  margin-top: 1.5rem;
  color: var(--editorial-text-muted);
  max-width: 32rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.editorial-subtitle .highlight {
  color: var(--editorial-accent);
  font-weight: 500;
}

@media (min-width: 1024px) {
  .editorial-name-first {
    font-size: 6rem;
  }
  .editorial-name-last {
    font-size: 3.25rem;
  }
}

@media (min-width: 1440px) {
  .editorial-name-first {
    font-size: 7rem;
  }
  .editorial-name-last {
    font-size: 3.75rem;
  }
}

/* ============================================
   EDITORIAL SECTION HEADERS
   ============================================ */
.editorial-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.editorial-section-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--editorial-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.editorial-section-line {
  flex: 1;
  height: 1px;
  background: var(--editorial-border);
}

.editorial-section-badge {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(74, 74, 74, 0.5);
}

/* ============================================
   STAT CARDS - Giant Serif Numbers
   ============================================ */
.editorial-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
  padding: 0 3rem;
}

.editorial-stat-card {
  position: relative;
  padding-left: 1rem;
}

/* Left accent line */
.editorial-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--editorial-border);
  transition: background 0.2s ease;
}

.editorial-stat-card:hover::before {
  background: var(--editorial-accent);
}

.editorial-stat-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--editorial-text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.editorial-stat-value {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.editorial-stat-value.orange { color: var(--editorial-accent); }
.editorial-stat-value.green { color: #059669; }
.editorial-stat-value.blue { color: #2563eb; }
.editorial-stat-value.neutral { color: var(--editorial-text); }

.editorial-stat-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--editorial-text-secondary);
  margin-bottom: 0.75rem;
}

.editorial-stat-change {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
}

.editorial-stat-change .icon {
  font-size: 0.75rem;
}

.editorial-stat-change.positive { color: #059669; }
.editorial-stat-change.negative { color: #dc2626; }

.editorial-stat-change .label {
  color: rgba(74, 74, 74, 0.5);
}

@media (min-width: 1440px) {
  .editorial-stat-value {
    font-size: 5.5rem;
  }
}

@media (max-width: 1024px) {
  .editorial-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .editorial-stat-value {
    font-size: 3.5rem;
  }
}

@media (max-width: 640px) {
  .editorial-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CHARTS SECTION
   ============================================ */
.editorial-charts-section {
  margin-bottom: 4rem;
  padding: 0 3rem;
}

.editorial-charts-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
}

.editorial-chart-card {
  background: var(--editorial-card);
  border: 1px solid var(--editorial-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.editorial-chart-header {
  margin-bottom: 1.5rem;
}

.editorial-chart-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--editorial-text);
  margin-bottom: 0.25rem;
}

.editorial-chart-subtitle {
  font-size: 0.75rem;
  color: var(--editorial-text-secondary);
}

.editorial-chart-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.editorial-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editorial-legend-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.editorial-legend-dot.orange { background: var(--editorial-accent); }
.editorial-legend-dot.cream { background: var(--cream-400); }
.editorial-legend-dot.black { background: var(--editorial-text); }

.editorial-legend-label {
  font-size: 0.6875rem;
  color: var(--editorial-text-muted);
}

@media (max-width: 1024px) {
  .editorial-charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   QUICK ACCESS MODULES
   ============================================ */
.editorial-modules-section {
  margin-bottom: 4rem;
  padding: 0 3rem;
}

.editorial-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.editorial-module-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  border: none;
  width: 100%;
}

.editorial-module-card.featured {
  background: var(--editorial-text);
  color: var(--editorial-bg);
}

.editorial-module-card:not(.featured) {
  background: var(--editorial-bg-alt);
  color: var(--editorial-text);
}

.editorial-module-card:hover {
  transform: translateY(-4px);
}

.editorial-module-card.featured:hover {
  background: #2d2d2d;
}

.editorial-module-card:not(.featured):hover {
  background: var(--editorial-border);
}

.editorial-module-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.editorial-module-card.featured .editorial-module-icon {
  background: var(--editorial-accent);
  color: white;
}

.editorial-module-card:not(.featured) .editorial-module-icon {
  background: rgba(196, 92, 38, 0.1);
  color: var(--editorial-accent);
}

.editorial-module-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.editorial-module-subtitle {
  font-size: 0.6875rem;
  opacity: 0.6;
}

.editorial-module-stat {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  text-align: right;
}

.editorial-module-stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--editorial-accent);
}

.editorial-module-stat-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.editorial-module-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.editorial-module-card:hover .editorial-module-arrow {
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .editorial-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .editorial-modules-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CUSTOMER 360 PANEL - Editorial Style
   ============================================ */
.c360-wrap {
  padding: 0 3rem;
}

.c360-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.c360-title-group {
  display: flex;
  flex-direction: column;
}

.c360-back-btn {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--editorial-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c360-back-btn:hover {
  color: var(--editorial-accent);
}

.c360-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 500;
  color: var(--editorial-text);
  line-height: 1;
}

.c360-title-accent {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.c360-title-360 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--editorial-text-muted);
}

.c360-title-360 sup {
  font-size: 1rem;
  color: var(--editorial-accent);
}

.c360-title-line {
  width: 4rem;
  height: 2px;
  background: var(--editorial-accent);
}

.c360-search-wrap {
  position: relative;
  width: 24rem;
}

.c360-search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  background: var(--editorial-bg-alt);
  border: 1px solid var(--editorial-border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--editorial-text);
}

.c360-search-input:focus {
  outline: none;
  border-color: var(--editorial-accent);
}

.c360-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--editorial-text-secondary);
}

/* Customer Profile Card */
.c360-profile-card {
  background: var(--editorial-card);
  border: 1px solid var(--editorial-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.c360-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.c360-profile-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--editorial-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
}

.c360-profile-info h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--editorial-text);
  margin-bottom: 0.25rem;
}

.c360-profile-info p {
  font-size: 0.875rem;
  color: var(--editorial-text-secondary);
}

/* Customer Stats */
.c360-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--editorial-border);
}

.c360-stat-item {
  text-align: center;
}

.c360-stat-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--editorial-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.c360-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--editorial-text-secondary);
}

/* Search Results */
.c360-search-results {
  background: var(--editorial-card);
  border: 1px solid var(--editorial-border);
  border-radius: 12px;
  max-height: 20rem;
  overflow-y: auto;
}

.c360-search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--editorial-border);
  cursor: pointer;
  transition: background 0.15s ease;
}

.c360-search-result-item:last-child {
  border-bottom: none;
}

.c360-search-result-item:hover {
  background: var(--editorial-bg-alt);
}

.c360-result-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--editorial-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--editorial-text-muted);
}

.c360-result-info h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--editorial-text);
}

.c360-result-info p {
  font-size: 0.75rem;
  color: var(--editorial-text-secondary);
}

/* ============================================
   BOARD LAYOUT
   ============================================ */
.board-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: calc(100vh - 60px);
}

.board-main {
  padding: 2rem 0;
}

/* Board Sidebar */
.board-sidebar {
  background: var(--editorial-card) !important;
  border-left: 1px solid var(--editorial-border) !important;
  padding: 1.5rem !important;
}

.board-sidebar-title {
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--editorial-text) !important;
  margin-bottom: 1rem !important;
}

.board-sidebar-section {
  padding-bottom: 1.25rem !important;
  margin-bottom: 1.25rem !important;
  border-bottom: 1px solid var(--editorial-border) !important;
}

.metric-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  padding: 0.375rem 0 !important;
}

.metric-row .metric-label {
  font-size: 0.8125rem !important;
  color: var(--editorial-text-muted) !important;
}

.metric-row .metric-val {
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

.metric-row .metric-val.accent { color: var(--editorial-accent) !important; }
.metric-row .metric-val.muted { 
  color: var(--editorial-text-secondary) !important; 
  font-style: italic !important; 
}
.metric-row .metric-val.warning { color: #d97706 !important; }
.metric-row .metric-val.error { color: #dc2626 !important; }

/* ============================================
   KANBAN BOARD
   ============================================ */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 3rem;
}

.kanban-column {
  background: var(--editorial-bg-alt) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 12px !important;
  min-height: 300px;
}

.kanban-header {
  padding: 1rem !important;
  border-bottom: 1px solid var(--editorial-border) !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--editorial-text-muted) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-count {
  background: var(--editorial-border) !important;
  color: var(--editorial-text-muted) !important;
  border-radius: 9999px !important;
  font-size: 0.5625rem !important;
  padding: 0.125rem 0.5rem !important;
}

.kanban-body {
  padding: 0.75rem !important;
}

/* Task Cards */
.task-card {
  background: var(--editorial-card) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 8px !important;
  padding: 0.875rem !important;
  margin-bottom: 0.5rem !important;
  cursor: grab !important;
  transition: all 0.15s ease !important;
}

.task-card:hover {
  border-color: var(--editorial-accent) !important;
  box-shadow: 0 2px 8px rgba(196, 92, 38, 0.1) !important;
}

.task-card-title {
  font-weight: 500 !important;
  color: var(--editorial-text) !important;
  font-size: 0.875rem !important;
}

/* ============================================
   PANEL SECTION LABEL - Override
   ============================================ */
.panel-section-label {
  font-size: 0.625rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.25em !important;
  color: var(--editorial-text-muted) !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
  padding: 0 3rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.panel-section-label::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: var(--editorial-border) !important;
}

/* ============================================
   EXEC GRID
   ============================================ */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem !important;
  margin-bottom: 2rem !important;
  padding: 0 3rem;
}

.exec-card {
  background: var(--editorial-card) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  transition: all 0.2s ease !important;
}

.exec-card:hover {
  border-color: var(--editorial-accent) !important;
  box-shadow: 0 4px 16px rgba(196, 92, 38, 0.08) !important;
}

.exec-name {
  font-family: var(--font-serif) !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  color: var(--editorial-text) !important;
}

.exec-title {
  font-size: 0.75rem !important;
  color: var(--editorial-text-muted) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-family: var(--font-sans) !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  font-size: 0.8125rem !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.15s ease !important;
}

.btn-primary {
  background: var(--editorial-accent) !important;
  color: white !important;
  border: none !important;
}

.btn-primary:hover {
  background: var(--editorial-accent-dark) !important;
}

.btn-secondary {
  background: var(--editorial-bg-alt) !important;
  color: var(--editorial-text) !important;
  border: 1px solid var(--editorial-border) !important;
}

.btn-secondary:hover {
  background: var(--editorial-border) !important;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  background: rgba(26, 26, 26, 0.6) !important;
  backdrop-filter: blur(4px) !important;
}

.modal {
  background: var(--editorial-card) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15) !important;
}

.modal-header h2 {
  font-family: var(--font-serif) !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  color: var(--editorial-text) !important;
}

/* ============================================
   FORMS
   ============================================ */
.field label,
label {
  font-size: 0.625rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-weight: 600 !important;
  color: var(--editorial-text-muted) !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  background: var(--editorial-bg-alt) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 8px !important;
  color: var(--editorial-text) !important;
  padding: 0.75rem 1rem !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--editorial-accent) !important;
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.12) !important;
  outline: none !important;
}

/* ============================================
   MILESTONES
   ============================================ */
.milestones-section {
  background: var(--editorial-card) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  margin: 2rem 3rem !important;
}

.timeline-item {
  padding-left: 1.5rem !important;
  padding-bottom: 1.25rem !important;
  position: relative !important;
  border-left: 2px solid var(--editorial-border) !important;
}

.timeline-dot {
  position: absolute !important;
  left: -6px !important;
  top: 0 !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: var(--editorial-border) !important;
}

.timeline-dot.active {
  background: var(--editorial-accent) !important;
}

.timeline-label {
  font-family: var(--font-serif) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  color: var(--editorial-text) !important;
}

.timeline-desc {
  font-size: 0.875rem !important;
  color: var(--editorial-text-muted) !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

::-webkit-scrollbar-track {
  background: var(--editorial-bg-alt) !important;
}

::-webkit-scrollbar-thumb {
  background: var(--editorial-border) !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #c4b596 !important;
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-text {
  font-size: 0.6875rem;
  color: var(--editorial-text-muted);
}

.toggle-track {
  width: 2rem;
  height: 1.125rem;
  background: var(--editorial-border);
  border-radius: 9999px;
  position: relative;
  transition: background 0.2s ease;
}

input:checked + .toggle-track {
  background: var(--editorial-accent);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.875rem;
  height: 0.875rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

input:checked + .toggle-track .toggle-thumb {
  transform: translateX(0.875rem);
}

/* ============================================
   NOTIFICATION
   ============================================ */
.notif-bell-wrap {
  position: relative;
}

.notif-bell {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--editorial-accent);
  color: white;
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
}

.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--editorial-card);
  border: 1px solid var(--editorial-border);
  border-radius: 12px;
  width: 20rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 100;
}

/* ============================================
   TAB PANELS
   ============================================ */
.tab-panel {
  display: none;
  padding: 2rem 0 !important;
}

.tab-panel.active {
  display: block;
}

/* ============================================
   CUSTOMER 360 - EDITORIAL OVERRIDES
   ============================================ */
.c360-wrap {
  padding: 2rem 3rem !important;
}

/* Back button - Editorial style */
.c360-back-btn {
  font-size: 0.6875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: var(--editorial-text-muted) !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  cursor: pointer;
}

.c360-back-btn:hover {
  color: var(--editorial-accent) !important;
  background: none !important;
}

/* Search section - Editorial style */
.c360-search-section {
  margin-bottom: 3rem !important;
}

.c360-search-bar {
  background: var(--editorial-bg-alt) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 12px !important;
  padding: 1rem 1.25rem !important;
}

.c360-search-bar:focus-within {
  border-color: var(--editorial-accent) !important;
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.12) !important;
}

.c360-search-input {
  font-size: 0.9375rem !important;
  color: var(--editorial-text) !important;
}

.c360-search-input::placeholder {
  color: var(--editorial-text-secondary) !important;
}

/* Results dropdown - Editorial */
.c360-results {
  background: var(--editorial-card) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

.c360-result-item {
  border-bottom: 1px solid var(--editorial-border) !important;
  padding: 1rem 1.25rem !important;
}

.c360-result-item:hover {
  background: var(--editorial-bg-alt) !important;
}

.c360-result-name {
  font-family: var(--font-serif) !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  color: var(--editorial-text) !important;
}

.c360-result-contact {
  color: var(--editorial-text-secondary) !important;
  font-size: 0.75rem !important;
}

.c360-result-stat-val {
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

/* Profile Header - Editorial */
.c360-profile-header {
  background: var(--editorial-card) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  margin-bottom: 2rem !important;
}

.c360-avatar {
  background: var(--editorial-accent) !important;
  width: 5rem !important;
  height: 5rem !important;
  font-size: 1.75rem !important;
  font-family: var(--font-serif) !important;
}

.c360-cust-name {
  font-family: var(--font-serif) !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
  color: var(--editorial-text) !important;
}

/* Badges - Editorial */
.c360-badge {
  font-size: 0.5625rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  border-radius: 4px !important;
  padding: 0.25rem 0.5rem !important;
}

.c360-badge-won {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669 !important;
}

.c360-badge-lead {
  background: rgba(196, 92, 38, 0.1) !important;
  color: var(--editorial-accent) !important;
}

/* Stats Grid - Editorial */
.c360-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid var(--editorial-border) !important;
  margin-top: 1.5rem !important;
}

.c360-stat {
  text-align: center !important;
}

.c360-stat-val {
  font-family: var(--font-serif) !important;
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  color: var(--editorial-accent) !important;
  line-height: 1 !important;
}

.c360-stat-label {
  font-size: 0.5625rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: var(--editorial-text-secondary) !important;
  margin-top: 0.375rem !important;
}

/* Tabs - Editorial */
.c360-tabs {
  display: flex !important;
  gap: 0 !important;
  border-bottom: 1px solid var(--editorial-border) !important;
  margin-bottom: 1.5rem !important;
}

.c360-tab {
  padding: 0.875rem 1.5rem !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--editorial-text-muted) !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -1px !important;
  cursor: pointer;
  background: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.c360-tab:hover {
  color: var(--editorial-text) !important;
}

.c360-tab.active {
  color: var(--editorial-accent) !important;
  border-bottom-color: var(--editorial-accent) !important;
  font-weight: 600 !important;
}

/* Policy Cards - Editorial */
.c360-policy-card {
  background: var(--editorial-card) !important;
  border: 1px solid var(--editorial-border) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  transition: all 0.15s ease !important;
}

.c360-policy-card:hover {
  border-color: var(--editorial-accent) !important;
  box-shadow: 0 4px 12px rgba(196, 92, 38, 0.08) !important;
}

.c360-policy-title {
  font-family: var(--font-serif) !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  color: var(--editorial-text) !important;
}

.c360-policy-premium {
  font-family: var(--font-serif) !important;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  color: var(--editorial-accent) !important;
}

/* Activity Timeline - Editorial */
.c360-activity-item {
  padding: 1rem 0 !important;
  border-bottom: 1px solid var(--editorial-border) !important;
}

.c360-activity-title {
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--editorial-text) !important;
}

.c360-activity-time {
  font-size: 0.6875rem !important;
  color: var(--editorial-text-secondary) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .sidebar-nav {
    width: 0;
    overflow: hidden;
  }
  
  .sidebar-nav.open {
    width: 260px;
  }
  
  .app-main {
    margin-left: 0;
  }
  
  .board-layout {
    grid-template-columns: 1fr;
  }
  
  .board-sidebar {
    display: none;
  }
  
  .kanban {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
}

@media (max-width: 640px) {
  .editorial-welcome {
    padding: 0 1.5rem;
  }
  
  .editorial-name-first {
    font-size: 3.5rem;
  }
  
  .editorial-name-last {
    font-size: 2rem;
  }
  
  .editorial-stats-grid,
  .editorial-charts-section,
  .editorial-modules-section,
  .panel-section-label,
  .exec-grid,
  .kanban,
  .milestones-section {
    padding: 0 1.5rem;
  }
  
  .kanban {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Stagger children */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.35s; }
