:root {
  --ink: #172b36;
  --muted: #526571;
  --nav: #122c39;
  --deep: #0d2430;
  --line: #d8e3e7;
  --paper: #f3f7f8;
  --white: #fff;
  --brand: #08675e;
  --mint: #9ce8cd;
  --amber: #ffb77d;
  --warning: #815020;
  --display: Georgia, serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--body);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--brand);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #388b81;
  outline-offset: 3px;
}
::selection {
  background: #b9ecdc;
  color: var(--deep);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  letter-spacing: -0.035em;
}
p {
  color: var(--muted);
}
.icon {
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.04em;
  color: inherit;
  text-decoration: none;
}
.logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--deep);
}
.logo .icon {
  width: 24px;
  height: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: #eaf3f2;
}
.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.primary:hover {
  background: #07564e;
}
.quiet {
  background: transparent;
}
.button:disabled {
  opacity: 0.55;
  cursor: default;
}
.link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 640;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.number {
  font-variant-numeric: tabular-nums;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  overflow: hidden;
}
.panel-pad {
  padding: 22px;
}
.full {
  width: 100%;
}
.iconbtn {
  padding: 8px;
  min-width: 42px;
}
.hidden,
[hidden] {
  display: none !important;
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: white;
}
.auth-art {
  position: relative;
  background: var(--deep);
  overflow: hidden;
  min-height: 680px;
  color: white;
  padding: 43px 49px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-art .brand,
.auth-art .art-copy,
.auth-art .art-footer {
  position: relative;
  z-index: 1;
}
.art-copy {
  max-width: 490px;
  margin-top: auto;
  margin-bottom: 36px;
}
.art-copy h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.02;
  color: white;
}
.art-copy p {
  color: #c2d9dd;
  margin-top: 18px;
  max-width: 34ch;
  font-size: 17px;
}
.art-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #a8c5cb;
  border-top: 1px solid #3d5964;
  padding-top: 17px;
  font-size: 13px;
}
.auth-art canvas,
.map canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.art-label {
  position: absolute;
  top: 30%;
  right: 13%;
  z-index: 1;
  color: #b5e9d9;
  background: #143743;
  padding: 7px 12px;
  border: 1px solid #537583;
  border-radius: 7px;
  font-size: 13px;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 42px;
  position: relative;
}
.auth-inner {
  width: min(100%, 405px);
}
.auth-inner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  margin-bottom: 13px;
}
.auth-inner > p {
  margin-bottom: 25px;
}
.auth form {
  display: grid;
  gap: 16px;
}
.auth .mobile-brand {
  display: none;
}
.demo {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.field {
  display: grid;
  gap: 6px;
  font-weight: 650;
  font-size: 14px;
}
.field input,
.field select,
.filter {
  width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid #aebfc7;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  min-height: 43px;
}
.field small {
  font-weight: 400;
  color: var(--muted);
}
.password {
  display: flex;
  position: relative;
}
.password input {
  padding-right: 47px;
}
.password button {
  position: absolute;
  right: 3px;
  top: 2px;
  border: 0;
  background: white;
}
.notice {
  background: #e5f4ed;
  color: #155344;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.error {
  background: #fcebec;
  color: #861f2c;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.check input {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--nav);
  color: #e8f3f5;
  display: flex;
  flex-direction: column;
  padding: 24px 15px 16px;
}
.sidebar .brand {
  padding: 0 8px 25px;
}
.workspace {
  margin: 0 4px 23px;
  padding: 10px;
  border: 1px solid #43616b;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 14px;
}
.workspace span:first-child {
  background: #244856;
  color: #d7eee9;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a,
.side-action {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #d3e5ea;
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}
.nav a:hover,
.side-action:hover {
  background: #214754;
}
.nav a.active {
  color: #bff3de;
  background: #244d56;
}
.nav-label {
  font-size: 12px;
  color: #a9c5cd;
  margin: 20px 12px 6px;
}
.sidebar-bottom {
  flex: none;
  margin-top: auto;
  border-top: 1px solid #385764;
  padding-top: 10px;
}
.main {
  min-width: 0;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 65px;
  padding: 0 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crumb {
  color: var(--muted);
  font-size: 14px;
}
.crumb b {
  color: var(--ink);
  font-weight: 650;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  background: #e2eeec;
  color: #13574d;
  font-size: 13px;
  font-weight: 750;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 630;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e8eff2;
  color: #394e59;
}
.badge.ok {
  background: #e2f3e9;
  color: #15573f;
}
.badge.warn {
  background: #fff0dd;
  color: #754518;
}
.badge.bad {
  background: #fae9eb;
  color: #8c2939;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.layout {
  max-width: 1430px;
  margin: auto;
  padding: 28px 31px 36px;
}
.page-head {
  margin-bottom: 21px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.page-head h1 {
  font: 400 clamp(2rem, 4vw, 3.1rem)/1.03 var(--display);
  letter-spacing: -0.038em;
  margin-bottom: 7px;
}
.page-head p {
  max-width: 65ch;
}
.section-head {
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
}
.section-head h2,
.section-title {
  font-size: 20px;
  margin-bottom: 1px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 17px;
}
.stat {
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat .stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 9px 0 4px;
}
.stat small {
  font-size: 12px;
  color: var(--muted);
}
.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr);
  gap: 16px;
  margin-bottom: 17px;
}
.map {
  min-height: 226px;
  background: var(--deep);
  color: white;
  position: relative;
}
.map .map-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 226px;
  padding: 20px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
.map .map-content h2 {
  font: 400 31px/1.1 var(--display);
  letter-spacing: -0.04em;
}
.map p,
.map small {
  color: #c6e2e7;
}
.map .badge {
  background: #244954;
  color: #c4f1e1;
}
.map .map-bottom {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
}
.map .button {
  background: #e7fff6;
  border-color: #e7fff6;
  color: #124740;
  min-height: 36px;
  padding: 6px 11px;
  font-size: 13px;
}
.activity {
  display: grid;
  align-content: start;
}
.activity .list-line {
  margin: 0 16px;
  padding: 12px 3px;
}
.list-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.list-line:last-child {
  border-bottom: 0;
}
.list-line b {
  display: block;
}
.progress {
  height: 7px;
  border-radius: 10px;
  background: #e4edef;
  overflow: hidden;
}
.progress div {
  background: var(--brand);
  height: 100%;
  transition: width 0.45s ease;
}
.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin: 0 0 5px;
}
.table-wrap {
  overflow: auto;
  scrollbar-color: #a6bbb9 #edf3f4;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  font-size: 12px;
  background: #f5f8f9;
  color: #475c68;
  font-weight: 680;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f6faf9;
}
.entity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.entity b {
  display: block;
}
.entity small {
  color: var(--muted);
}
.entity .avatar {
  width: 33px;
  height: 33px;
}
.table-foot {
  border-top: 1px solid var(--line);
  padding: 10px 16px;
}
.toolbar {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar .filter {
  width: auto;
  max-width: 100%;
  min-height: 38px;
  padding: 7px 10px;
}
.toolbar input {
  flex: 1 1 190px;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.form-grid {
  display: grid;
  gap: 16px;
}
.form-grid > .row > .field {
  flex: 1 1 160px;
}
.steps {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child {
  border: 0;
}
.steps .icon {
  color: var(--brand);
}
.intro {
  margin: 4px 0 17px;
}
.stack {
  display: grid;
  gap: 14px;
}
.empty {
  padding: 33px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  color: var(--brand);
  margin-bottom: 8px;
}
.result-cards {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.result-card {
  padding: 15px 18px;
}
.menu {
  display: none;
}
.toast {
  position: fixed;
  bottom: 19px;
  right: 19px;
  z-index: 6;
  background: var(--deep);
  color: white;
  border-radius: 10px;
  max-width: min(380px, calc(100vw - 38px));
  padding: 13px 17px;
  box-shadow: 0 8px 30px #0000002e;
}
.toast:empty {
  display: none;
}
dialog {
  border: 0;
  border-left: 1px solid var(--line);
  margin: 0 0 0 auto;
  height: 100%;
  max-height: 100%;
  max-width: min(480px, 100%);
  width: 100%;
  padding: 24px;
  background: white;
  color: var(--ink);
  box-shadow: -10px 0 40px #00000022;
}
dialog::backdrop {
  background: #0a223374;
}
dialog dl {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 11px 14px;
  margin: 20px 0;
}
dialog dt {
  color: var(--muted);
}
dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.source-card {
  padding: 16px 19px;
}
.source-card h2 {
  font-size: 17px;
}
.source-card p {
  margin-top: 4px;
}
.help details {
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
}
.help details:last-child {
  border-bottom: 0;
}
.help summary {
  cursor: pointer;
  font-weight: 650;
}
.help details p {
  margin-top: 9px;
}
.demo-banner {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
@media (max-width: 1060px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .layout,
  .topbar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .stat {
    padding: 12px;
  }
  .stats .stat-label {
    font-size: 13px;
  }
  .overview {
    grid-template-columns: minmax(0, 1.22fr) minmax(225px, 1fr);
  }
}
@media (max-width: 760px) {
  .auth {
    display: block;
  }
  .auth-art {
    display: none;
  }
  .auth-main {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 22px 42px;
  }
  .auth .mobile-brand {
    display: flex;
    align-self: flex-start;
    margin-bottom: 42px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(260px, 85vw);
    z-index: 5;
    height: 100dvh;
  }
  .sidebar.open {
    display: flex;
    box-shadow: 0 0 0 100vmax #0a223374;
  }
  .menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 14px;
    height: 57px;
  }
  .topbar .row {
    flex-wrap: nowrap;
  }
  .profile span:last-child {
    display: none;
  }
  .layout {
    padding: 19px 14px 28px;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  .overview,
  .two {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .map,
  .map .map-content {
    min-height: 195px;
  }
  .panel-pad {
    padding: 16px;
  }
  .section-head {
    padding: 13px 15px;
  }
  th,
  td {
    padding: 10px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.tool-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.work-note {
  margin: 0 0 16px;
}
.source-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5faf9;
  overflow-wrap: anywhere;
}
.source-preview p {
  margin: 4px 0;
}
.source-meta {
  overflow-wrap: anywhere;
}
.source-meta h2 {
  margin-bottom: 2px;
}
.source-actions {
  justify-content: flex-end;
}
.source-entry {
  align-items: start;
  flex-wrap: wrap;
}
.source-entry > div:first-child {
  flex: 1 1 280px;
  min-width: 0;
}
.jobs-name {
  white-space: normal;
  min-width: 130px;
}
.evidence {
  display: grid;
  gap: 0;
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
}
.evidence li {
  display: flex;
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.evidence li p {
  font-size: 13px;
  margin-top: 2px;
}
.evidence .icon {
  margin-top: 2px;
  color: var(--brand);
}
.lead-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  width: 100%;
}
.lead-filter .filter {
  width: 100%;
  min-width: 0;
}
.lead-filter input {
  grid-column: 1/-1;
}
.qualification {
  margin-bottom: 14px;
}
.segment-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.segment-bar select {
  width: auto;
  min-height: 39px;
}
.source-status {
  font-size: 13px;
  color: var(--muted);
}
.wide-row {
  flex-wrap: wrap;
}
.source-preview strong {
  display: block;
}
.source-entry p {
  max-width: 65ch;
}
@media (max-width: 760px) {
  .source-actions {
    justify-content: flex-start;
  }
  .source-actions .button {
    min-height: 42px;
  }
  .lead-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .segment-bar {
    align-items: stretch;
  }
  .segment-bar select {
    width: 100%;
  }
}

/* Styles for the server-rendered screens. */
.skip {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 12px;
  transform: translateY(-120%);
  padding: 10px;
  background: white;
}
.skip:focus {
  transform: none;
}
textarea {
  font: inherit;
}
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #aebfc7;
  border-radius: 8px;
  color: var(--ink);
  resize: vertical;
}
textarea:focus-visible,
summary:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid #388b81;
  outline-offset: 3px;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
a.stat {
  color: inherit;
  text-decoration: none;
}
a.stat:hover {
  border-color: #8bacaa;
}
.profile-name {
  max-width: min(34vw, 30ch);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.mapping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mapping-grid select {
  width: 100%;
}
.connector-nav {
  margin: 0 0 18px;
}
.form-panel {
  max-width: 720px;
}
.break-word {
  overflow-wrap: anywhere;
}
.fact-list {
  margin: 18px 0 0;
}
.fact-list div {
  display: grid;
  grid-template-columns: minmax(100px, 2fr) 3fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.fact-list dt {
  font-weight: 650;
}
.fact-list dd {
  margin: 0;
  color: var(--muted);
}
.lead-reason,
.job-error {
  max-width: 34ch;
  margin-top: 4px;
}
.source-layout {
  align-items: start;
}
.sidebar-bottom button {
  white-space: normal;
}
.segment-bar form,
.toolbar form {
  align-items: end;
}
@media (max-width: 760px) {
  .profile-name {
    display: none;
  }
  .menu {
    display: none;
  }
  .nav-enhanced .menu {
    display: inline-flex;
  }
  html:not(.nav-enhanced) .sidebar {
    position: static;
    display: flex;
    height: auto;
    transform: none;
    visibility: visible;
  }
}
@media (max-width: 400px) {
  .mapping-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.sidebar-heading .iconbtn {
  background: transparent;
  border-color: #43616b;
  color: #e8f3f5;
  margin: -3px 2px 0 0;
}
.map .map-content {
  height: 100%;
}
@media (min-width: 761px) {
  .stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .stats .stat:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }
  .stats .stat:nth-child(even) {
    border-right: 0;
  }
  .stats .stat:last-child {
    grid-column: 1 / -1;
  }
}
