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

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --teal: #2563eb;
  --teal-soft: #eff6ff;
  --blue: #2563eb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-hover: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --radius: 6px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}




/* --- NEW GHL STYLE LAYOUT --- */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #111827; /* Dark mode */
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #1f2937;
}

.sidebar .brand {
  padding: 20px;
  border-bottom: 1px solid #1f2937;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar .logo {
  background: #2563eb;
  color: white;
}
.sidebar .brand strong {
  color: #f9fafb;
}
.sidebar .brand span {
  color: #9ca3af;
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 12px;
  font-weight: 600;
}

.sidebar .field span {
  color: #d1d5db;
}
.sidebar .field select, .sidebar .field input[type="search"] {
  background: #1f2937;
  border: 1px solid #374151;
  color: #f9fafb;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.sidebar-actions .btn {
  width: 100%;
}
.sidebar-actions .btn-secondary {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}
.sidebar-actions .btn-secondary:hover {
  background: #374151;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  text-align: center;
}
.sidebar-link:hover {
  color: #f9fafb;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Stats Bar */
.top-stats {
  display: flex;
  gap: 24px;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.stat strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-hot strong {
  color: var(--red);
}

/* Workspace */
.workspace {
  flex: 1;
  display: flex;
  padding: 24px 32px;
  gap: 24px;
  overflow: hidden;
}

/* Columns */
.col-list {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 8px; /* For scrollbar */
}
.col-detail {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

/* Map Widget */
.map-widget {
  height: 200px;
  min-height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  position: relative;
  transition: height 0.3s ease;
  overflow: hidden;
}
.map-widget.expanded {
  height: 500px;
}
.map-container {
  width: 100%;
  height: 100%;
}
.expand-map-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.expand-map-btn:hover {
  background: #f9fafb;
}

/* Custom scrollbars for columns */
.col-list::-webkit-scrollbar, .col-detail::-webkit-scrollbar, .sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}
.col-list::-webkit-scrollbar-thumb, .col-detail::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 999px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background-color: #374151;
  border-radius: 999px;
}

/* Fix Status Pill for Dark Mode Sidebar */
.sidebar .status-pill {
  background: rgba(255,255,255,0.1);
  border-color: transparent;
  color: #fff;
  width: 100%;
  justify-content: center;
}



.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.brand strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 1px;
}



.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-live {
  background: var(--green-soft);
  border-color: #bbf7d0;
  color: var(--green);
}

.status-live i {
  background: var(--green);
}

.status-sample {
  background: var(--amber-soft);
  border-color: #fde68a;
  color: var(--amber);
}

.status-sample i {
  background: var(--amber);
}

.status-error {
  background: var(--red-soft);
  border-color: #fecaca;
  color: var(--red);
}

.status-error i {
  background: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.btn:hover {
  background: #f8fafc;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: #000;
  box-shadow: var(--shadow-hover);
}

.btn-primary:hover {
  background: #0d9488;
  border-color: #0d9488;
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.link-btn {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Toolbar */


@media (max-width: 900px) {
  
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field select,
.field input[type="search"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.field select:focus,
.field input:focus {
  outline: 2px solid #99f6e4;
  border-color: var(--blue);
}

.field.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding-bottom: 2px;
}

.field.check span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.field.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

/* Stats */


@media (max-width: 800px) {
  
}











/* Banner / loading */
.banner {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
}

.banner.hidden,
.loading.hidden,
.detail-card.hidden,
.empty-detail.hidden {
  display: none !important;
}

.banner.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.banner.warn {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid #fde68a;
}

.banner.error {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #fecaca;
}

.loading {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* Workspace */


@media (max-width: 1080px) {
  
  
}

@media (max-width: 768px) {
  
  
  
}

.list-panel,
.map-panel,


.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.prospect-list {
  overflow: auto;
  flex: 1;
  max-height: calc(100vh - 340px);
}

.prospect {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  transition: background 0.12s;
}

.prospect:hover {
  background: #f8fafc;
}

.prospect.selected {
  background: #f0fdfa;
  box-shadow: inset 3px 0 0 var(--blue);
}

.prospect-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.prospect-name {
  font-weight: 700;
  font-size: 15px;
}

.prospect-meta {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-noweb {
  background: #eff6ff;
  color: #1e40af;
}

.badge-hasweb {
  background: #f1f5f9;
  color: #475569;
}

.badge-risk-high {
  background: var(--red-soft);
  color: var(--red);
}

.badge-risk-med {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-risk-low {
  background: var(--green-soft);
  color: var(--green);
}

.prospect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

/* Map Panel */




/* Custom Leaflet Marker Styling */
.custom-map-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--muted);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.2s, z-index 0.1s;
  display: grid;
  place-items: center;
}
.custom-map-marker.marker-noweb {
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}
.custom-map-marker.marker-hasweb {
  background: var(--blue);
}
.custom-map-marker:hover,
.custom-map-marker.selected {
  transform: scale(1.3);
  z-index: 1000 !important;
  border-color: #fbbf24;
}

/* Map Popups */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 4px;
}
.leaflet-popup-content {
  margin: 8px 12px;
}
.leaflet-popup-content strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}
.leaflet-popup-content span {
  color: var(--muted);
  font-size: 12px;
}

/* Detail Panel & Profile Card */


.empty-detail {
  margin: auto;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  max-width: 280px;
}

.empty-detail h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.empty-detail p {
  margin: 0;
  font-size: 14px;
}

.detail-card {
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  max-height: calc(100vh - 280px);
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}

.profile-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.profile-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
  display: block;
}

.profile-name {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  gap: 10px;
}

.profile-row span:first-child {
  color: var(--muted);
  font-weight: 600;
}

.profile-row strong,
.profile-row span:last-child {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

.detail-address {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.detail-box span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.detail-box strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-actions a,
.detail-actions button {
  text-decoration: none;
}

.pitch-box {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  border-radius: 12px;
  padding: 14px;
}

.pitch-box h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1e40af;
}

.pitch-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.pitch-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.action-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
}

.action-list li {
  margin-bottom: 6px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  padding: 0 4px;
}

.footer a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.profile-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--line);
}

.profile-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.profile-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.review-item {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  background: #f8fafc;
  padding: 8px;
  border-radius: 6px;
}

.review-item strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  margin-bottom: 4px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.hours-row strong {
  color: var(--ink);
  font-weight: 500;
}

/* CRM Profile Polish */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-header-new {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.profile-name-new {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}
.profile-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.profile-status-badge.missing {
  background: var(--red-soft);
  color: var(--red);
}
.profile-status-badge.found {
  background: var(--green-soft);
  color: var(--green);
}
.profile-address-row {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.profile-actions-row .btn {
  padding: 6px 12px;
  font-size: 12px;
}
.demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}
.demo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0;
}
.stat-box {
  background: #f9fafb;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-box span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.stat-box strong {
  font-size: 18px;
  color: var(--ink);
}
.strategy-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pitch-template-box {
  background: #f3f4f6;
  border-left: 3px solid #2563eb;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: #374151;
  border-radius: 0 6px 6px 0;
  white-space: pre-wrap;
}

/* --- PIPELINE & NAVIGATION STYLES --- */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}
.nav-item:hover {
  background: #1f2937;
  color: #f9fafb;
}
.nav-item.active {
  background: #2563eb;
  color: #ffffff;
}

.view-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.view-container.hidden {
  display: none !important;
}

.view-header {
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.view-header h2 {
  font-size: 18px;
  margin: 0;
  color: var(--ink);
}

.search-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.compact-field select, .compact-field input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  background: #f9fafb;
}
.compact-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Kanban Board */
.kanban-board {
  flex: 1;
  display: flex;
  padding: 24px;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bg);
}
.kanban-col {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
  border-radius: 8px;
  max-height: 100%;
}
.kanban-col-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.kanban-col-header h3 {
  font-size: 14px;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}
.kanban-count {
  background: #e5e7eb;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.kanban-cards {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Pipeline Card */
.pipe-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}
.pipe-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}
.pipe-card-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 14px;
}
.pipe-card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.pipe-card-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  margin-top: 8px;
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
}
.drawer-overlay.hidden {
  display: none !important;
}
.deal-drawer {
  width: 500px;
  max-width: 100%;
  background: #fff;
  height: 100%;
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-header h2 {
  margin: 0;
  font-size: 18px;
}
.drawer-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.drawer-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px 0;
  letter-spacing: 0.05em;
}

.workflow-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 12px;
}

.stage-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stage-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.stage-btn:hover { background: #f9fafb; }
.stage-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.copy-alert {
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- CLIENT ROSTER STYLES --- */
.client-grid-container {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg);
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.client-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.client-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: #d1d5db;
}
.client-card.cancelled {
  opacity: 0.6;
  background: #f9fafb;
}
.client-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.client-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  padding-right: 8px;
  line-height: 1.2;
}
.client-status {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.client-status.active {
  background: var(--green-soft);
  color: var(--green);
}
.client-status.cancelled {
  background: var(--line);
  color: var(--muted);
}
.client-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.client-card-tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 500;
}
