:root {
  --bg: #f3f7fc;
  --panel: #ffffff;
  --panel-2: #f8fbff;
  --border: #dbe5f1;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-2: #dbeafe;
  --success: #16a34a;
  
  /* Uitgebreide kleurenpalet */
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --danger-2: #fecaca;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --warning-2: #fcd34d;
  --info: #0891b2;
  --info-light: #cffafe;
  --info-2: #a5f3fc;
  --success-light: #dcfce7;
  --success-2: #86efac;
  
  /* Accent kleuren */
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --purple-2: #d8b4fe;
  --pink: #ec4899;
  --pink-light: #fce7f3;
  --pink-2: #fbcfe8;
  --orange: #f97316;
  --orange-light: #ffedd5;
  --orange-2: #fed7aa;
  
  /* Shadow variabelen */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark {
  --bg: #0b1220;
  --panel: #111a2b;
  --panel-2: #0f1726;
  --border: #23314a;
  --text: #e5eefc;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-2: #13233d;
  --success: #22c55e;
  --danger: #ef4444;
  --danger-light: #7f1d1d;
  --danger-2: #fecaca;
  --warning: #f59e0b;
  --warning-light: #78350f;
  --warning-2: #fcd34d;
  --info: #06b6d4;
  --info-light: #0c4a6e;
  --info-2: #a5f3fc;
  --success-light: #064e3b;
  --success-2: #86efac;
  --purple: #a78bfa;
  --purple-light: #2e1065;
  --purple-2: #d8b4fe;
  --pink: #f472b6;
  --pink-light: #500724;
  --pink-2: #fbcfe8;
  --orange: #fb923c;
  --orange-light: #431407;
  --orange-2: #fed7aa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.48);
}

* { 
  box-sizing: border-box; 
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: var(--shadow-sm);
}

.brand {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark .brand {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.sidebar a.active,
.sidebar a:hover {
  background: var(--primary-2);
  color: var(--primary);
}

.main {
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 22px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-2);
}

.stat span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat strong {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============ KNOPPEN - PROFESSIONELE STYLING ============ */
.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn.secondary {
  background: var(--panel);
  border: 1.5px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--panel-2);
  border-color: var(--primary);
  color: var(--primary);
}

/* Kleurrijke button varianten */
.btn.danger {
  background: var(--danger);
}

.btn.danger:hover {
  background: #b91c1c;
  filter: brightness(1);
}

.btn.success {
  background: var(--success);
}

.btn.success:hover {
  background: #15803d;
  filter: brightness(1);
}

.btn.warning {
  background: var(--warning);
  color: #fff;
}

.btn.warning:hover {
  background: #b45309;
  filter: brightness(1);
}

.btn.info {
  background: var(--info);
}

.btn.info:hover {
  background: #0e7490;
  filter: brightness(1);
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* ============ BADGES & LABELS ============ */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-2);
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  transition: var(--transition);
}

.badge.success {
  background: var(--success-light);
  color: var(--success);
}

.badge.danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge.warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge.info {
  background: var(--info-light);
  color: var(--info);
}

.badge.purple {
  background: var(--purple-light);
  color: var(--purple);
}

.badge.pink {
  background: var(--pink-light);
  color: var(--pink);
}

.badge.orange {
  background: var(--orange-light);
  color: var(--orange);
}

body.dark .badge.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success-2);
}

body.dark .badge.danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-2);
}

body.dark .badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning-2);
}

body.dark .badge.info {
  background: rgba(6, 182, 212, 0.15);
  color: var(--info-2);
}

body.dark .badge.purple {
  background: rgba(167, 139, 250, 0.15);
  color: var(--purple-2);
}

body.dark .badge.pink {
  background: rgba(244, 114, 182, 0.15);
  color: var(--pink-2);
}

body.dark .badge.orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange-2);
}

.badge-sale,
.badge-sale.badge {
  background: var(--success);
  color: #fff;
}

.badge-huurt_inclusief,
.badge-huurt_inclusief.badge {
  background: var(--purple);
  color: #fff;
}

.badge-not_interested,
.badge-not_interested.badge {
  background: #6b7280;
  color: #fff;
}

.badge-callback,
.badge-callback.badge {
  background: var(--warning);
  color: #fff;
}

.badge-interested,
.badge-interested.badge {
  background: var(--primary);
  color: #fff;
}

.badge-appointment,
.badge-appointment.badge {
  background: var(--info);
  color: #fff;
}

.badge-not_reached,
.badge-not_reached.badge {
  background: #9ca3af;
  color: #222;
}

.badge-new,
.badge-new.badge {
  background: #e5e7eb;
  color: #222;
}

.mini-pill.badge-sale {
  background: var(--success) !important;
  color: #fff !important;
}

.mini-pill.badge-huurt_inclusief {
  background: var(--purple) !important;
  color: #fff !important;
}

.mini-pill.badge-callback {
  background: var(--warning) !important;
  color: #fff !important;
}

.mini-pill.badge-interested {
  background: var(--primary) !important;
  color: #fff !important;
}

.stack {
  display: grid;
  gap: 14px;
}

input,
select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--panel);
}

input:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--panel-2);
}

tr:hover {
  background: var(--panel-2);
}

ul {
  padding-left: 18px;
}

.notice.error {
  border-color: #f87171;
  background: var(--danger-light);
  color: #991b1b;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  border-left: 4px solid #dc2626;
}

body.dark .notice.error {
  background: var(--danger-light);
  color: var(--danger-2);
  border-color: #b91c1c;
  border-left-color: #ef4444;
}

.actions {
  white-space: nowrap;
}

.inline {
  display: inline;
}

.smallbtn {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: var(--transition);
  background: var(--primary-2);
  color: var(--primary);
  border: 1px solid transparent;
  cursor: pointer;
}

.smallbtn:hover {
  background: var(--primary);
  color: #fff;
}

.smallbtn.danger {
  background: var(--danger-light);
  color: var(--danger);
}

.smallbtn.danger:hover {
  background: var(--danger);
  color: #fff;
}

.smallbtn.success {
  background: var(--success-light);
  color: var(--success);
}

.smallbtn.success:hover {
  background: var(--success);
  color: #fff;
}

textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: var(--transition);
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--panel);
}

.help {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 13px;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: min(100%, 460px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.demo-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.theme-form {
  margin-top: 16px;
}

.userbox {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  margin-bottom: 18px;
  transition: var(--transition);
}

.userbox:hover {
  border-color: var(--primary);
}

.userbox span {
  text-transform: capitalize;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chipbtn {
  background: var(--panel-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.chipbtn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-2);
}

.chipbtn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.quick-results {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 280px;
}

.muted-mini {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border-left: 4px solid var(--border);
}

.timeline-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--primary);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.timeline-form {
  margin-top: 16px;
}

.lead-summary {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  margin-bottom: 14px;
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

.lead-summary:hover {
  border-color: var(--primary);
  background: var(--panel);
  border-left-color: var(--primary);
}

.leadlink {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.leadlink:hover {
  color: var(--primary);
}

.smalllink {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.smalllink:hover {
  text-decoration: underline;
}

.detail-hero {
  margin-bottom: 20px;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-grid {
  align-items: start;
}

.detail-main {
  grid-column: span 2;
}

.detail-side {
  grid-column: span 1;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.detail-list div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  display: grid;
  gap: 6px;
  transition: var(--transition);
  border-left: 3px solid var(--primary);
}

.detail-list div:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.detail-list span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.detail-notes-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}

.next-action ul {
  padding-left: 18px;
  margin-top: 10px;
}

/* ============== WORKSPACE STYLES ============== */

.workspace-shell {
  display: grid;
  gap: 20px;
}

.workspace-frame {
  max-width: 100%;
  margin: 0;
}

.workspace-topbar.exact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 82px;
  padding: 0 20px;
  background: #121c2f;
  border: 1px solid #273755;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

body.light .workspace-topbar.exact {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.brandblock h1 {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: #eef4ff;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light .brandblock h1 {
  color: var(--text);
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brandblock p {
  margin: 6px 0 0;
  color: #8e9eb8;
  font-size: 13px;
  font-weight: 600;
}

body.light .brandblock p {
  color: var(--muted);
}

.workspace-pills.exact {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #324666;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  background: #1c2840;
  color: #ebf1fd;
  transition: var(--transition);
}

body.light .mini-pill {
  background: var(--primary-2);
  border-color: var(--border);
  color: var(--primary);
}

.mini-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.mini-pill.lead {
  background: #1c2840;
  color: #ebf1fd;
  border-color: #324666;
}

body.light .mini-pill.lead {
  background: var(--primary-2);
  color: var(--primary);
  border-color: var(--border);
}

.mini-pill.live {
  background: #193826;
  border-color: #27553a;
  color: #ddf6e4;
}

body.light .mini-pill.live {
  background: var(--success-light);
  border-color: var(--success-2);
  color: var(--success);
}

.mini-pill.hot {
  background: #40311d;
  border-color: #70542e;
  color: #f5dbad;
}

body.light .mini-pill.hot {
  background: var(--warning-light);
  border-color: var(--warning-2);
  color: var(--warning);
}

/* GRID LAYOUT - NEUE STRUKTUR VOOR DESKTOP */
.workspace-layout.exact {
  display: grid;
  grid-template-columns: 426px 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  grid-template-areas:
    'lead location location'
    'callback script notes'
    'results script notes'
    'footer footer footer';
  gap: 18px;
  margin-top: 20px;
  align-items: start;
  padding: 0;
}

.panel.exact {
  background: #121c2f;
  border: 1px solid #273755;
  border-radius: var(--radius-xl);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-md);
  color: #e7edf9;
  transition: var(--transition);
}

body.light .panel.exact {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.panel.exact:hover {
  box-shadow: var(--shadow-lg);
}

.panel.exact h3 {
  margin: 0;
  color: #eef4ff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.light .panel.exact h3 {
  color: var(--text);
}

.panel-sub {
  margin: 6px 0 14px;
  color: #91a0ba;
  font-size: 13px;
  line-height: 1.35;
}

body.light .panel-sub {
  color: var(--muted);
}

.lead-card.exact {
  grid-area: lead;
}

.location-card.exact {
  grid-area: location;
}

.callback-card.exact {
  grid-area: callback;
}

.results-card.exact {
  grid-area: results;
}

.script-card.exact {
  grid-area: script;
}

.notes-card.exact {
  grid-area: notes;
}

.footer-card.exact {
  grid-area: footer;
}

.lead-meta.exact {
  margin-top: 4px;
}

.lead-meta.exact div {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 0;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #23314d;
  transition: var(--transition);
  position: relative;
}

body.light .lead-meta.exact div {
  border-bottom: 1px solid var(--border);
}

.lead-meta.exact div:last-child {
  border-bottom: none;
}

.lead-meta.exact span {
  font-size: 14px;
  color: #8e9eb8;
  font-weight: 600;
}

body.light .lead-meta.exact span {
  color: var(--muted);
}

.lead-meta.exact strong {
  font-size: 16px;
  color: #f1f5fe;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light .lead-meta.exact strong {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: unset;
}

.placeholder-bg {
  height: 154px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #22324e, #1a2740);
  border: 1px solid #314767;
  position: relative;
  overflow: hidden;
}

body.light .placeholder-bg {
  background: linear-gradient(180deg, var(--panel-2), var(--panel-2));
  border: 1px solid var(--border);
}

.placeholder-bg:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(89, 111, 146, 0.35) 2px, transparent 2px),
    linear-gradient(90deg, rgba(89, 111, 146, 0.35) 2px, transparent 2px);
  background-size: 80px 38px;
  opacity: 0.7;
}

.placeholder-bg:after {
  content: '';
  position: absolute;
  inset: 22% 28% 18% 26%;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f2f5 0 28%, #dde4ec 28% 62%, #f0f2f5 62% 100%);
  border: 3px solid #97a8c0;
  box-shadow: inset 0 0 0 10px rgba(182, 194, 210, 0.45);
}

.placeholder-geo-left,
.placeholder-geo-right,
.placeholder-pin {
  position: absolute;
  display: block;
}

.placeholder-geo-left {
  left: 20%;
  bottom: 26px;
  width: 110px;
  height: 52px;
  background: #9db0cf;
  clip-path: polygon(0 100%, 48% 12%, 100% 100%);
}

.placeholder-geo-right {
  right: 20%;
  bottom: 26px;
  width: 100px;
  height: 56px;
  background: #9db0cf;
  clip-path: polygon(0 100%, 50% 12%, 100% 100%);
}

.placeholder-pin {
  right: 13%;
  top: 18px;
  width: 28px;
  height: 28px;
  background: #ef534d;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(239, 83, 77, 0.12);
}

.placeholder-pin:after {
  content: '';
  position: absolute;
  inset: 8px;
  background: #fff;
  border-radius: 50%;
}

.result-grid.exact,
.bottom-code-row.exact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.result-chip.exact {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid #45608d;
  color: #dbe5fb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

body.light .result-chip.exact {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--panel-2);
}

.result-chip.exact.small {
  height: 34px;
}

.result-chip.exact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.result-chip.exact.active {
  background: #223150;
  box-shadow: var(--shadow-md);
}

body.light .result-chip.exact.active {
  background: var(--primary-2);
  border-color: var(--primary);
  color: var(--primary);
}

.outline-not_reached {
  border-color: #d2a24d;
  color: #f2d8a2;
}

body.light .outline-not_reached {
  border-color: var(--warning-2);
  color: var(--warning);
  background: var(--warning-light);
}

.outline-callback {
  border-color: #4d89f3;
  color: #d8e8ff;
}

body.light .outline-callback {
  border-color: var(--warning-2);
  color: var(--warning);
  background: var(--warning-light);
}

.outline-interested {
  border-color: #3cbf73;
  color: #d5f4e1;
}

body.light .outline-interested {
  border-color: var(--success-2);
  color: var(--success);
  background: var(--success-light);
}

.outline-not_interested {
  border-color: #e76161;
  color: #ffd4d4;
}

body.light .outline-not_interested {
  border-color: var(--danger-2);
  color: var(--danger);
  background: var(--danger-light);
}

.outline-mail_sent {
  border-color: #58719b;
  color: #d7e0ef;
}

body.light .outline-mail_sent {
  border-color: var(--info-2);
  color: var(--info);
  background: var(--info-light);
}

.outline-appointment {
  border-color: #7884df;
  color: #e2e6ff;
}

body.light .outline-appointment {
  border-color: var(--info-2);
  color: var(--info);
  background: var(--info-light);
}

.outline-sale {
  border-color: #22c55e;
  color: #dcfce7;
}

body.light .outline-sale {
  border-color: var(--success-2);
  color: var(--success);
  background: var(--success-light);
}

.outline-huurt_inclusief {
  border-color: #a78bfa;
  color: #ede9fe;
}

body.light .outline-huurt_inclusief {
  border-color: var(--purple-2);
  color: var(--purple);
  background: var(--purple-light);
}

.script-copy {
  color: #edf3ff;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
  padding-top: 2px;
}

body.light .script-copy {
  color: var(--text);
}

.notes-lines.exact {
  margin-top: 10px;
}

.notes-lines.exact textarea {
  width: 100%;
  min-height: 148px;
  background: repeating-linear-gradient(
    to bottom,
    #121c2f 0,
    #121c2f 33px,
    #243351 34px
  );
  border: none;
  outline: none;
  color: #eef4ff;
  font-size: 15px;
  line-height: 34px;
  padding: 2px 0 0;
  resize: none;
}

body.light .notes-lines.exact textarea {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  line-height: 1.5;
  padding: 12px;
}

.callback-row {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}

.callback-row label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9aa9c1;
  font-size: 14px;
  font-weight: 500;
}

body.light .callback-row label {
  color: var(--text);
}

.callback-row input {
  width: 80px;
  height: 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid #324666;
  background: #172338;
  color: #ced8ea;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

body.light .callback-row input {
  background: var(--panel-2);
  border: 1.5px solid var(--border);
  color: var(--text);
}

.callback-row input:focus {
  border-color: #4d89f3;
  box-shadow: 0 0 0 3px rgba(77, 137, 243, 0.1);
}

.callback-row label:first-child input {
  width: 92px;
}

.footer-caption {
  margin-top: 18px;
  color: #8e9eb8;
  font-size: 14px;
}

body.light .footer-caption {
  color: var(--muted);
}

.workspace-actions.exact {
  display: flex;
  justify-content: flex-end;
  margin-top: -44px;
}

.primary-large.exact {
  width: 208px;
  height: 60px;
  border: none;
  border-radius: var(--radius-lg);
  background: #4680ea;
  color: #f2f7ff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}

body.light .primary-large.exact {
  background: var(--primary);
  color: #fff;
}

.primary-large.exact:hover {
  background: #5088ef;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

body.light .primary-large.exact:hover {
  background: #1d4ed8;
}

.primary-large.exact:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1260px) {
  .workspace-layout.exact {
    grid-template-columns: 426px 1fr;
    grid-template-areas:
      'lead location'
      'callback location'
      'results results'
      'script notes'
      'footer footer';
  }
}

@media (max-width: 860px) {
  .workspace-topbar.exact {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 14px;
  }

  .workspace-layout.exact {
    grid-template-columns: 1fr;
    grid-template-areas:
      'lead'
      'callback'
      'results'
      'location'
      'script'
      'notes'
      'footer';
  }

  .workspace-actions.exact {
    justify-content: stretch;
    margin-top: 18px;
  }

  .primary-large.exact {
    width: 100%;
  }

  .callback-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .cols-4,
  .cols-2 {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-main,
  .detail-side {
    grid-column: span 2;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }
}