:root {
  --ink: #182b3a;
  --muted: #70808d;
  --line: #e5eaec;
  --canvas: #f5f7f6;
  --card: #ffffff;
  --navy: #123547;
  --navy-deep: #0d2a39;
  --mint: #44c7a2;
  --mint-dark: #249b7a;
  --mint-soft: #e7f8f2;
  --coral: #f28a72;
  --gold: #e7b54b;
  --blue: #5e8fdc;
  --shadow: 0 14px 36px rgba(26, 51, 63, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { outline: none; }
.hidden { display: none !important; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.6px;
}
.brand--light { color: white; }
.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 9px;
  background: var(--mint);
  box-shadow: inset 0 -8px 12px rgba(0,0,0,.05);
}
.brand-mark span { width: 4px; border-radius: 3px; background: white; transform: rotate(30deg); }
.brand-mark span:nth-child(1) { height: 7px; }
.brand-mark span:nth-child(2) { height: 12px; }
.brand-mark span:nth-child(3) { height: 17px; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.08fr) minmax(420px, .92fr); background: white; }
.auth-brand {
  position: relative;
  min-height: 100vh;
  padding: 48px 7vw;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 12% 85%, rgba(68,199,162,.18), transparent 24%),
    linear-gradient(145deg, var(--navy-deep) 0%, #174558 100%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -260px;
  top: -230px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02);
}
.auth-copy { position: relative; z-index: 1; max-width: 570px; margin-top: 15vh; }
.eyebrow { color: #80e2c7; font-size: 12px; letter-spacing: 2.2px; font-weight: 700; }
.auth-copy h1 { max-width: 560px; margin: 18px 0 20px; font: 800 clamp(38px, 4.6vw, 66px)/1.04 "Manrope"; letter-spacing: -2.6px; }
.auth-copy p { max-width: 510px; margin: 0; color: #b8ccd4; font-size: 17px; line-height: 1.7; }
.source-preview { position: relative; width: 520px; height: 280px; margin: 44px auto 5px; }
.source-orbit, .source-hub {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  color: #d8e6ea;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  font-size: 12px;
}
.source-logo { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: white; background: #6a8fe0; font-weight: 800; }
.source-logo--coral { background: var(--coral); }
.source-logo--gold { background: var(--gold); }
.orbit-one { top: 12px; left: 20px; }
.orbit-two { top: 18px; right: 7px; }
.orbit-three { right: 15px; bottom: 8px; }
.source-hub { top: 102px; left: 205px; display: grid; grid-template-columns: auto 1fr; padding: 13px 18px 13px 13px; background: white; color: var(--ink); }
.source-hub .brand-mark { grid-row: 1 / 3; }
.source-hub strong { align-self: end; font-size: 13px; }
.source-hub small { align-self: start; color: var(--muted); }
.orbit-lines { position: absolute; inset: 0; z-index: 1; overflow: visible; }
.orbit-lines path { fill: none; stroke: rgba(116,220,192,.37); stroke-width: 1.5; stroke-dasharray: 5 5; }
.auth-trust { display: flex; gap: 19px; align-items: center; color: #97b0ba; font-size: 11px; }
.auth-trust span { color: var(--mint); }
.auth-form-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: #fbfcfc; }
.auth-form-card { width: 100%; max-width: 410px; }
.mobile-brand { display: none; }
.auth-heading { margin-bottom: 34px; }
.welcome-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 20px; border-radius: 13px; background: var(--mint-soft); color: var(--mint-dark); font-size: 22px; font-weight: 700; }
.auth-heading h2 { margin: 0 0 9px; font: 800 32px/1.2 "Manrope"; letter-spacing: -1px; }
.auth-heading p { margin: 0; color: var(--muted); }
label { display: block; margin-bottom: 8px; color: #324753; font-size: 13px; font-weight: 600; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.label-row label { margin: 0 0 8px; }
.text-button { border: 0; padding: 0; color: var(--mint-dark); background: transparent; font-size: 12px; font-weight: 600; }
.input-shell { position: relative; display: flex; align-items: center; }
.input-shell input, .form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dce3e6;
  border-radius: 11px;
  color: var(--ink);
  background: white;
  transition: border .2s, box-shadow .2s;
}
.input-shell input { padding: 0 44px; }
.input-shell input:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(68,199,162,.12); }
.input-icon { position: absolute; left: 15px; z-index: 1; color: #91a0a9; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
}
.icon-button:hover { color: var(--ink); background: #f0f3f3; }
.password-toggle { position: absolute; right: 5px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; margin: 17px 0 22px; color: var(--muted); font-weight: 400; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--mint-dark); }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(18,53,71,.14);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.primary-button:hover { transform: translateY(-1px); background: #17485d; }
.primary-button--wide { width: 100%; min-height: 50px; background: var(--mint-dark); box-shadow: 0 10px 22px rgba(36,155,122,.2); font-size: 14px; }
.primary-button--wide:hover { background: #218c6f; }
.demo-note { padding: 11px; border-radius: 9px; color: #809099; background: #f0f4f3; text-align: center; font-size: 11px; }
.demo-note span { color: var(--mint-dark); font-weight: 700; }
.auth-footer { margin: 50px 0 -30px; color: #a0abb1; font-size: 11px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 246px;
  padding: 27px 19px 20px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 27px; }
.sidebar-close { display: none; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #6f808a;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.nav-item:hover { color: var(--ink); background: #f5f7f6; }
.nav-item.active { color: var(--navy); background: var(--mint-soft); }
.nav-item.active svg { color: var(--mint-dark); }
.nav-item svg { width: 18px; height: 18px; }
.nav-count { margin-left: auto; padding: 2px 7px; border-radius: 8px; color: var(--muted); background: #edf1f1; font-size: 10px; }
.nav-label { margin: 25px 12px 7px; color: #a4aeb4; font-size: 9px; letter-spacing: 1.5px; font-weight: 700; }
.sidebar-insight { margin-top: auto; padding: 16px; border-radius: 14px; background: #f3f8f6; }
.insight-spark { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 11px; border-radius: 9px; color: #fff; background: var(--mint); }
.sidebar-insight strong { font-size: 12px; }
.sidebar-insight p { margin: 5px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.sidebar-insight button { padding: 0; border: 0; color: var(--mint-dark); background: transparent; font-size: 11px; font-weight: 700; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 4px 0; border-top: 1px solid var(--line); }
.sidebar-user > span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 11px; }
.sidebar-user small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; color: white; background: var(--navy); font-size: 10px; font-weight: 700; }
.main-panel { min-height: 100vh; margin-left: 246px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}
.topbar-title { flex: 1; color: #98a4aa; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.global-search { display: flex; align-items: center; width: 245px; height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfb; }
.global-search svg { width: 16px; color: #a1acb2; }
.global-search input { min-width: 0; flex: 1; border: 0; padding: 0 9px; background: transparent; font-size: 12px; }
kbd { padding: 3px 6px; border: 1px solid #dfe4e5; border-radius: 5px; color: #9aa5ab; background: white; font-family: inherit; font-size: 9px; }
.notification-button { position: relative; border: 1px solid var(--line); }
.notification-button #notification-dot { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.notification-wrap { position: relative; }
.notification-panel {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  width: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 22px 55px rgba(18,53,71,.18);
}
.notification-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 17px; border-bottom: 1px solid var(--line); }
.notification-head strong, .notification-head span { display: block; }
.notification-head strong { font: 700 13px "Manrope"; }
.notification-head span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.notification-list { max-height: 340px; overflow-y: auto; }
.notification-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  width: 100%;
  padding: 14px 17px;
  border: 0;
  border-bottom: 1px solid #eff2f2;
  color: var(--ink);
  background: white;
  text-align: left;
}
.notification-item:hover { background: #f8faf9; }
.notification-item.unread { background: #f1faf7; }
.notification-item.unread > span:nth-child(2) { position: relative; }
.notification-item.unread > span:nth-child(2)::after { content: ""; position: absolute; top: 3px; right: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.notification-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #edf5f8; color: #3d7b99; font-weight: 800; }
.notification-icon--mint { color: var(--mint-dark); background: var(--mint-soft); }
.notification-icon--gold { color: #a97917; background: #fff5d9; }
.notification-icon--purple { color: #7258bc; background: #f0edff; }
.notification-item strong, .notification-item small, .notification-item time { display: block; padding-right: 10px; }
.notification-item strong { margin: 1px 0 3px; font-size: 11px; }
.notification-item small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.notification-item time { margin-top: 5px; color: #a0aab0; font-size: 8px; }
.notification-footer { width: 100%; height: 39px; border: 0; color: var(--mint-dark); background: white; font-size: 10px; font-weight: 700; }
.notification-empty { margin: 0; padding: 35px; color: var(--muted); text-align: center; font-size: 11px; }
.menu-button { display: none; margin-right: 8px; }
.page-content { max-width: 1540px; margin: auto; padding: 33px 34px 60px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { margin: 0 0 7px; font: 800 26px/1.2 "Manrope"; letter-spacing: -.8px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: #5f717c; background: white; font-size: 11px; font-weight: 600; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card { position: relative; overflow: hidden; min-height: 144px; padding: 20px; border: 1px solid #e7ebec; border-radius: var(--radius); background: var(--card); box-shadow: 0 3px 13px rgba(27,48,59,.025); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--mint-dark); background: var(--mint-soft); }
.metric-icon--coral { color: #d76650; background: #fff0ec; }
.metric-icon--gold { color: #b78317; background: #fff7e4; }
.metric-icon--blue { color: #4c78bc; background: #eef4ff; }
.metric-value { display: flex; align-items: end; gap: 9px; margin-top: 20px; }
.metric-value strong { font: 800 28px/1 "Manrope"; letter-spacing: -1px; }
.trend { padding: 3px 6px; border-radius: 6px; color: var(--mint-dark); background: var(--mint-soft); font-size: 9px; font-weight: 700; }
.trend--down { color: #cb6653; background: #fff0ec; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 16px; margin-top: 16px; }
.panel { border: 1px solid #e7ebec; border-radius: var(--radius); background: white; box-shadow: 0 3px 13px rgba(27,48,59,.025); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 21px 14px; }
.panel-head h2 { margin: 0; font: 700 15px "Manrope"; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.panel-link { border: 0; color: var(--mint-dark); background: transparent; font-size: 10px; font-weight: 700; }
.chart-wrap { position: relative; height: 256px; padding: 14px 19px 19px; }
.chart-y { position: absolute; inset: 18px auto 36px 20px; display: flex; flex-direction: column; justify-content: space-between; color: #a0abb0; font-size: 9px; }
.line-chart { width: 100%; height: 195px; padding-left: 25px; overflow: visible; }
.line-chart .grid-line { stroke: #edf0f0; stroke-width: 1; }
.line-chart .area { fill: url(#areaGradient); }
.line-chart .line { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.line-chart circle { fill: white; stroke: var(--mint); stroke-width: 3; }
.chart-x { display: flex; justify-content: space-between; padding: 5px 4px 0 31px; color: #a0abb0; font-size: 9px; }
.source-list { padding: 1px 20px 21px; }
.source-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #eff1f1; }
.source-row:last-child { border: 0; }
.website-favicon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: white; background: var(--navy); font-size: 10px; font-weight: 800; }
.source-row strong { display: block; font-size: 11px; }
.source-row small { color: var(--muted); font-size: 9px; }
.source-bar { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 5px; background: #edf1f1; }
.source-bar span { display: block; height: 100%; border-radius: 5px; background: var(--mint); }
.source-count { color: var(--muted); font-size: 10px; font-weight: 600; }
.recent-panel { margin-top: 16px; overflow: hidden; }

.table-tools { display: flex; align-items: center; gap: 9px; padding: 0 20px 15px; }
.table-search { display: flex; align-items: center; flex: 1; max-width: 330px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; }
.table-search svg { width: 15px; color: #9ca8ae; }
.table-search input { min-width: 0; width: 100%; border: 0; padding-left: 8px; font-size: 11px; }
.filter-select { height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 30px 0 11px; color: #60717b; background: white; font-size: 10px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #95a0a6; background: #fafbfb; text-align: left; font-size: 9px; letter-spacing: .4px; font-weight: 700; }
.data-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.72); font-size: 11px; }
.data-table tbody tr { position: relative; transition: transform .18s, box-shadow .18s, filter .2s; }
.data-table tbody tr:hover { filter: saturate(1.1) brightness(.995); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15,41,54,.08); }
.lead-row td { background: inherit; }
.lead-row td:first-child { border-left: 6px solid transparent; }
.row-status-new { background: linear-gradient(90deg, #c7efff 0%, #ecfaff 55%, #ffffff 100%); }
.row-status-new td:first-child { border-left-color: #1599d6; }
.row-status-contacted { background: linear-gradient(90deg, #ffe59b 0%, #fff6d8 55%, #ffffff 100%); }
.row-status-contacted td:first-child { border-left-color: #d99a13; }
.row-status-qualified { background: linear-gradient(90deg, #bdf2df 0%, #e6fbf3 55%, #ffffff 100%); }
.row-status-qualified td:first-child { border-left-color: #19a879; }
.row-status-won { background: linear-gradient(90deg, #dacdff 0%, #f0ecff 55%, #ffffff 100%); }
.row-status-won td:first-child { border-left-color: #7156d9; }
.row-status-lost { background: linear-gradient(90deg, #ffc8bd 0%, #fff0ed 55%, #ffffff 100%); }
.row-status-lost td:first-child { border-left-color: #d55d46; }
.lead-cell { display: flex; align-items: center; gap: 10px; }
.lead-cell strong { display: block; margin-bottom: 2px; font-size: 11px; }
.lead-cell small { color: var(--muted); font-size: 9px; }
.mini-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--navy); background: #eaf1f3; font-size: 9px; font-weight: 700; }
.website-cell { display: inline-flex; align-items: center; gap: 7px; color: #536772; }
.website-dot { width: 7px; height: 7px; border-radius: 3px; background: var(--blue); }
.status-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.status-new { color: #075b82; background: #bdefff; }
.status-contacted { color: #775100; background: #ffe08a; }
.status-qualified { color: #086f50; background: #b6f0db; }
.status-won { color: #4b35a2; background: #d8ccff; }
.status-lost { color: #9b351f; background: #ffc7bb; }
.assignee-select {
  width: 132px;
  height: 32px;
  border: 1px solid rgba(83,103,114,.16);
  border-radius: 9px;
  padding: 0 25px 0 9px;
  color: #334c59;
  background-color: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 600;
}
.assignee-select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(68,199,162,.12); }
.assignee-select.unassigned { color: #9a6d25; border-style: dashed; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.table-action { width: 30px; height: 30px; }
.empty-state { padding: 55px 20px !important; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); }

.website-grid, .team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.website-card, .team-card { padding: 20px; }
.website-card-head, .team-card-head { display: flex; align-items: center; justify-content: space-between; }
.website-card .website-favicon { width: 43px; height: 43px; font-size: 13px; }
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; color: var(--mint-dark); background: var(--mint-soft); font-size: 9px; font-weight: 700; }
.live-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.website-card h3, .team-card h3 { margin: 17px 0 3px; font: 700 14px "Manrope"; }
.website-card p, .team-card p { margin: 0; color: var(--muted); font-size: 10px; }
.website-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.website-stats span { color: var(--muted); font-size: 9px; }
.website-stats strong { display: block; margin-top: 4px; color: var(--ink); font: 700 16px "Manrope"; }
.team-card-head .avatar { width: 43px; height: 43px; }
.role-badge { padding: 4px 8px; border-radius: 8px; color: #536772; background: #f0f3f3; font-size: 9px; font-weight: 700; }
.team-meta { display: flex; align-items: center; gap: 14px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.team-meta span { display: flex; align-items: center; gap: 5px; }
.team-meta svg { width: 13px; }
.settings-stack { display: grid; gap: 16px; max-width: 820px; }
.settings-panel { padding: 24px; }
.settings-panel h2 { margin: 0 0 5px; font: 700 15px "Manrope"; }
.settings-panel > p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.settings-row strong { display: block; font-size: 11px; }
.settings-row small { color: var(--muted); font-size: 9px; }
.integration-card { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 15px; }
.integration-card div { display: grid; gap: 6px; }
.integration-card strong { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.integration-card code { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #f7faf9; padding: 11px 12px; color: var(--ink); font-size: 11px; }
.switch { position: relative; width: 40px; height: 23px; border: 0; border-radius: 20px; background: #dfe5e6; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: left .2s; }
.switch.on { background: var(--mint); }
.switch.on::after { left: 20px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(9,30,40,.55); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 1; width: min(540px, 100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 20px; background: white; box-shadow: 0 30px 80px rgba(6,28,39,.28); animation: modalIn .25s ease; }
#modal[data-variant="lead"] .modal-card { width: min(900px, 100%); border-radius: 26px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 25px 19px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0 0 5px; font: 800 19px "Manrope"; }
.modal-head p { margin: 0; color: var(--muted); font-size: 10px; }
.modal-form { padding: 21px 25px 25px; }
.lead-detail-modal { background: #fff; }
.lead-detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 30px; border-bottom: 1px solid rgba(15,41,54,.08); }
.lead-detail-identity { display: flex; align-items: center; gap: 17px; min-width: 0; }
.lead-detail-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 22px; color: #0f2936; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.75); font: 800 17px "Manrope"; box-shadow: 0 14px 32px rgba(15,41,54,.12); }
.lead-detail-identity small { display: block; margin-bottom: 5px; color: #51666f; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.lead-detail-identity h2 { margin: 0; color: #102b38; font: 800 30px/1.05 "Manrope"; }
.lead-detail-identity p { margin: 8px 0 0; color: #405660; font-size: 13px; }
.lead-detail-close { flex: 0 0 auto; background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.7); }
.lead-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 25px 0; }
.lead-detail-summary article { min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc; }
.lead-detail-summary span, .lead-detail-summary small { display: block; color: var(--muted); font-size: 9px; }
.lead-detail-summary article > span { margin-bottom: 7px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.lead-detail-summary strong { display: block; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.lead-detail-summary small { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-detail-form { padding-top: 18px; }
.lead-detail-form .form-grid { gap: 16px 18px; }
.lead-detail-form .form-field label { font-size: 11px; font-weight: 800; }
.lead-detail-form .form-field input,
.lead-detail-form .form-field select { height: 46px; font-size: 13px; }
.lead-detail-form .form-field textarea { min-height: 128px; font-size: 13px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { margin-bottom: 15px; }
.form-field input, .form-field select, .form-field textarea { padding: 0 13px; font-size: 12px; }
.form-field textarea { min-height: 90px; padding-top: 12px; resize: vertical; }
.form-field--full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.secondary-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; color: #5f717a; background: white; font-size: 12px; font-weight: 600; }
.secondary-button:hover { background: #f7f9f8; }
.toast-region { position: fixed; top: 18px; right: 18px; z-index: 200; display: grid; gap: 8px; }
.toast { min-width: 270px; padding: 13px 15px; border: 1px solid #dfe9e5; border-radius: 12px; color: #29433e; background: white; box-shadow: var(--shadow); font-size: 11px; animation: toastIn .3s ease; }
.toast strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } }
.lead-live-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: min(430px, calc(100vw - 36px));
  border: 0;
  border-radius: 20px;
  padding: 15px;
  color: white;
  text-align: left;
  background: linear-gradient(135deg, #12b886 0%, #1594d6 48%, #7755dd 100%);
  box-shadow: 0 22px 55px rgba(21,148,214,.32), 0 8px 18px rgba(18,184,134,.18);
  animation: liveAlertIn .35s cubic-bezier(.2,.9,.2,1), liveAlertPulse 1.4s ease-in-out infinite;
}
.lead-live-alert__spark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #123; background: #fff; font-size: 22px; box-shadow: 0 10px 20px rgba(0,0,0,.15); }
.lead-live-alert__copy { min-width: 0; }
.lead-live-alert__copy strong,
.lead-live-alert__copy span,
.lead-live-alert__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-live-alert__copy strong { font: 800 15px "Manrope"; }
.lead-live-alert__copy span { margin-top: 3px; font-size: 12px; font-weight: 700; }
.lead-live-alert__copy small { margin-top: 4px; color: rgba(255,255,255,.82); font-size: 10px; }
.lead-live-alert__action { padding: 8px 10px; border-radius: 999px; color: #173342; background: rgba(255,255,255,.9); font-size: 10px; font-weight: 800; }
@keyframes liveAlertIn { from { opacity: 0; transform: translateX(18px) scale(.96); } }
@keyframes liveAlertPulse { 0%, 100% { filter: saturate(1); } 50% { filter: saturate(1.25) brightness(1.04); } }
.sidebar-scrim { display: none; }

svg.icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .website-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-brand { padding: 40px 5vw; }
  .auth-copy h1 { font-size: 48px; }
  .source-preview { transform: scale(.82); transform-origin: left center; }
}
@media (max-width: 850px) {
  .auth-screen { display: block; background: #fbfcfc; }
  .auth-brand { display: none; }
  .auth-form-wrap { min-height: 100vh; padding: 30px 24px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 70px; font: 800 19px "Manrope"; }
  .auth-footer { margin-bottom: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(9,30,40,.35); }
  .sidebar-scrim.open { display: block; }
  .main-panel { margin-left: 0; }
  .menu-button { display: grid; }
  .global-search { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { height: 68px; padding: 0 17px; }
  .topbar-title { display: none; }
  .topbar-actions { margin-left: auto; }
  .notification-panel { position: fixed; top: 62px; right: 10px; left: 10px; width: auto; }
  .page-content { padding: 24px 17px 50px; }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 22px; }
  .date-chip { display: none; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 124px; }
  .website-grid, .team-grid { grid-template-columns: 1fr; }
  .table-tools { flex-wrap: wrap; }
  .table-search { max-width: none; flex-basis: 100%; }
  .data-table th:nth-child(2), .data-table td:nth-child(2), .data-table th:nth-child(4), .data-table td:nth-child(4), .data-table th:nth-child(6), .data-table td:nth-child(6) { display: none; }
  .data-table th, .data-table td { padding-left: 13px; padding-right: 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .modal { padding: 10px; }
  .lead-detail-hero { align-items: flex-start; padding: 22px; }
  .lead-detail-identity { align-items: flex-start; }
  .lead-detail-avatar { width: 54px; height: 54px; border-radius: 18px; }
  .lead-detail-identity h2 { font-size: 23px; }
  .lead-detail-summary { grid-template-columns: 1fr; padding: 14px 16px 0; }
  .lead-detail-form { padding-left: 16px; padding-right: 16px; }
  .lead-live-alert { grid-template-columns: auto 1fr; }
  .lead-live-alert__action { grid-column: 1 / -1; text-align: center; }
}
