:root {
  --ink: #142c35;
  --muted: #66747c;
  --accent: #237d69;
  --lime: #d8eea6;
  --border: #e2e7e5;
  --bg: #f3f5f2;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.65 "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #72b5a1;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  line-height: 1.25;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
h3 {
  font-size: 17px;
}
input,
select {
  border: 1px solid #cdd6d3;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  max-width: 100%;
}
input[type="search"] {
  width: 100%;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 9px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 650;
  text-decoration: none !important;
}
.primary {
  background: var(--ink);
  color: #fff;
}
.primary:hover {
  background: #29505a;
}
.secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
}
.secondary:hover {
  background: #eff4ee;
}
.text-button {
  background: none;
  color: var(--accent);
  font-weight: 600;
  padding: 6px;
}
.tag {
  display: inline-block;
  background: #f0f3ed;
  color: #5b6859;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 7px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -1px;
  color: var(--ink);
  text-decoration: none !important;
}
.brand span {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 650;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 2px 7px;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  background: var(--ink);
  color: #fff;
  position: relative;
  padding: 48px 9%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-story .brand {
  color: #fff;
  align-self: flex-start;
}
.story-main {
  margin: auto 0;
  padding: 70px 0;
  position: relative;
  z-index: 1;
}
.story-main .eyebrow {
  color: var(--lime);
  letter-spacing: 1.3px;
}
.story-main h1 {
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 1.13;
  letter-spacing: -2px;
  margin: 24px 0;
}
.story-main p {
  max-width: 380px;
  color: #d4dfdd;
  font-size: 17px;
  line-height: 1.8;
}
.story-foot {
  font-size: 12px;
  color: #9bb1af;
}
.orb {
  position: absolute;
  bottom: -190px;
  left: -230px;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  border: 1px solid #6f9c8c44;
  background: radial-gradient(circle at 45% 30%, #729c7e33, transparent 70%);
  z-index: -1;
  display: grid;
  place-items: center;
  transform: rotate(-20deg);
  font-size: 230px;
  color: #d8eea615;
  font-weight: 900;
}
.orb:after {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid #729c7e44;
  border-radius: 50%;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 50px 28px;
}
.login-form {
  width: 100%;
  max-width: 370px;
}
.login-form h2 {
  font-size: 34px;
  margin: 23px 0 7px;
}
.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 24px 0 8px;
}
.login-form input {
  width: 100%;
  padding: 13px;
}
.login-form .primary {
  width: 100%;
  margin-top: 28px;
  justify-content: space-between;
  padding: 13px 19px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 70px;
}
.password-wrap button {
  position: absolute;
  right: 9px;
  top: 9px;
  font-size: 12px;
}
.login-help {
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.login-help a {
  display: block;
  margin-top: 6px;
}
.error {
  color: #a23737;
}
.login-form .error {
  font-size: 13px;
  margin-top: 10px;
  min-height: 22px;
}
.app {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #fff;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.sidebar .brand {
  font-size: 23px;
}
.side-caption {
  color: var(--muted);
  font-size: 10px;
  margin-top: 8px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 45px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  border-radius: 10px;
  background: transparent;
  color: #617077;
  padding: 12px;
  font-size: 14px;
}
.nav span {
  font-size: 20px;
  width: 20px;
  text-align: center;
}
.nav.active {
  background: var(--ink);
  color: white;
  font-weight: 600;
}
.nav:hover:not(.active) {
  background: #f1f5f1;
}
.side-bottom {
  margin-top: auto;
}
.readonly {
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.dot {
  display: inline-block;
  background: var(--accent);
  width: 6px;
  height: 6px;
  border-radius: 100%;
}
.side-bottom p {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 20px;
}
.side-bottom button {
  width: 100%;
  font-size: 12px;
}
.app main {
  padding: 30px 40px;
  min-width: 0;
  max-width: 1700px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 15px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar h1 {
  font-size: 26px;
}
.topbar .eyebrow {
  letter-spacing: 0;
  font-weight: 400;
}
.top-actions button {
  font-size: 12px;
}
#mobileLogout {
  display: none;
}
.welcome {
  border-radius: var(--radius);
  padding: 28px 32px;
  background: var(--ink);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 23px;
}
.welcome .eyebrow {
  color: var(--lime);
  font-size: 10px;
}
.welcome h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
}
.welcome p {
  font-size: 13px;
  color: #ccdad7;
  max-width: 650px;
}
.status-pill {
  padding: 7px 12px;
  border: 1px solid #ffffff33;
  color: var(--lime);
  font-size: 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 22px;
}
.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.metric-title {
  font-size: 13px;
  color: var(--muted);
}
.metric-number {
  font-size: 39px;
  font-weight: 750;
  letter-spacing: -1.2px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.metric-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.metric.featured {
  background: #e7eedc;
  border-color: #d9e3cc;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
  min-width: 0;
}
.card h2 {
  font-size: 17px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.chart {
  height: 178px;
  display: flex;
  gap: 14px;
  align-items: end;
  direction: ltr;
  padding-top: 10px;
}
.chart-day {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  height: 100%;
  gap: 5px;
}
.chart-value {
  font-size: 11px;
  color: var(--muted);
  min-height: 18px;
}
.bar-stack {
  width: 100%;
  max-width: 42px;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  min-height: 3px;
  background: #edf1eb;
  display: flex;
  flex-direction: column;
}
.bar-initial {
  background: #3b8a76;
}
.bar-followup {
  background: #d4e5b3;
}
.chart-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 20px;
  font-size: 10px;
  color: var(--accent);
}
.legend span + span {
  color: #839467;
}
.target-card {
  text-align: center;
}
.target-ring {
  --progress: 0%;
  background: conic-gradient(var(--accent) var(--progress), #edf1e9 0);
  width: 172px;
  height: 172px;
  border-radius: 100%;
  padding: 12px;
  margin: 18px auto;
  display: grid;
  place-items: center;
}
.target-ring > div {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.target-ring strong {
  font-size: 42px;
  line-height: 1.3;
}
.target-ring span {
  font-size: 10px;
  color: var(--muted);
}
.timeline-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 15px;
  margin-top: 20px;
}
.timeline-item:before {
  content: "";
  width: 8px;
  height: 8px;
  background: #7eab8a;
  border-radius: 100%;
  margin-top: 8px;
  box-shadow: 0 0 0 4px #edf3e9;
}
.timeline-item strong {
  font-size: 13px;
}
.timeline-item p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.health-item {
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  border-bottom: 1px solid #edf0ec;
  align-items: center;
}
.health-item:last-child {
  border-bottom: 0;
}
.health-item > span {
  color: var(--muted);
}
.health-item strong {
  text-align: left;
  font-size: 12px;
  max-width: 64%;
  overflow-wrap: anywhere;
}
.footnote {
  margin-top: 15px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.funnel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.funnel-item {
  border-right: 2px solid #d7e6c4;
  padding-right: 16px;
}
.funnel-item strong {
  font-size: 25px;
  display: block;
}
.funnel-item span {
  color: var(--muted);
  font-size: 12px;
}
.filters {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.search-label {
  flex: 1;
}
.filters input,
.filters select {
  font-size: 13px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  padding: 13px 11px;
  background: #f5f7f3;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 16px 11px;
  border-bottom: 1px solid #edf1ec;
  vertical-align: middle;
}
tbody tr:hover {
  background: #fbfcf8;
}
.company-name {
  font-weight: 650;
  font-size: 13px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.company-type {
  display: block;
  color: var(--muted);
  font-size: 10px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-cell {
  direction: ltr;
  text-align: right;
  font-size: 11px;
}
.badge {
  display: inline-flex;
  font-size: 10px;
  border-radius: 6px;
  padding: 3px 8px;
  background: #edf1ec;
  color: #58635d;
}
.badge.sent,
.badge.replied {
  background: #e3f1e8;
  color: #246548;
}
.badge.stopped,
.badge.held {
  background: #fcf0df;
  color: #8a5b1c;
}
.badge.waiting {
  background: #edf0fa;
  color: #5666a0;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.pagination > div {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
}
.pagination button {
  font-size: 11px;
  padding: 6px 12px;
}
.empty {
  padding: 45px;
  text-align: center;
  color: var(--muted);
  white-space: normal;
}
.feature-icon {
  font-size: 28px;
  background: #eaf0e1;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card > .primary,
.card > .secondary {
  margin: 22px 0 0 8px;
  font-size: 12px;
}
.upload {
  display: block;
  border: 1px dashed #b5c7bb;
  border-radius: 12px;
  padding: 17px;
  margin: 22px 0 12px;
  font-size: 13px;
  background: #f7faf3;
  cursor: pointer;
}
.upload input {
  display: block;
  padding: 0;
  border: 0;
  margin-top: 10px;
  background: none;
  font-size: 11px;
}
.definitions dt {
  font-weight: 650;
  font-size: 13px;
  margin-top: 15px;
}
.definitions dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.support {
  align-self: start;
}
.notice {
  background: #fff1ee;
  border: 1px solid #f1d2c9;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #88928b;
  font-size: 10px;
  margin-top: 20px;
  gap: 15px;
}
dialog {
  border: 0;
  border-radius: 20px;
  padding: 30px;
  width: min(820px, 92vw);
  max-height: 88dvh;
  color: var(--ink);
  box-shadow: 0 25px 100px #142c3533;
}
dialog::backdrop {
  background: #142c3570;
  backdrop-filter: blur(3px);
}
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.detail-header h2 {
  font-size: 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 25px;
  margin-bottom: 25px;
}
.message {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-top: 18px;
}
.message pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    14px/1.7 "Segoe UI",
    Arial,
    sans-serif;
  background: #f6f8f3;
  padding: 18px;
  border-radius: 8px;
  direction: ltr;
  text-align: left;
  margin-bottom: 0;
}
.message h3 {
  direction: ltr;
  text-align: left;
  font-size: 15px;
  margin-top: 14px;
}
.sources-list {
  list-style: none;
  padding: 0;
  font-size: 12px;
}
.sources-list a {
  overflow-wrap: anywhere;
  direction: ltr;
  display: inline-block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1150px) {
  .app {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 15px;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .app main {
    padding: 25px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 18px;
  }
  .dashboard-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .card {
    padding: 20px;
  }
  .top-actions .muted {
    display: none;
  }
}
@media (max-width: 850px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 30px;
  }
  .story-main {
    padding: 35px 0;
  }
  .story-main h1 {
    font-size: 42px;
  }
  .story-main h1 br {
    display: none;
  }
  .story-main p {
    font-size: 14px;
    max-width: none;
  }
  .story-foot,
  .orb {
    display: none;
  }
  .login-form-wrap {
    padding: 40px 25px;
  }
  .app {
    display: block;
  }
  .sidebar {
    position: sticky;
    height: auto;
    z-index: 5;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .sidebar .brand,
  .side-caption,
  .side-bottom {
    display: none;
  }
  .sidebar nav {
    margin: 0;
    flex-direction: row;
    justify-content: space-around;
    gap: 4px;
  }
  .nav {
    font-size: 11px;
    padding: 9px 10px;
    gap: 5px;
  }
  .nav span {
    display: none;
  }
  #mobileLogout {
    display: block;
  }
  .app main {
    padding: 20px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .welcome {
    padding: 24px;
  }
  .welcome h2 {
    font-size: 24px;
  }
  .funnel {
    gap: 10px;
  }
  .funnel-item {
    padding-right: 10px;
  }
  .funnel-item span {
    font-size: 10px;
  }
}
@media (max-width: 620px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sidebar {
    padding: 10px 8px;
  }
  .nav {
    font-size: 10px;
    padding: 8px;
  }
  .app main {
    padding: 17px 13px;
  }
  .topbar h1 {
    font-size: 23px;
  }
  .topbar {
    margin-bottom: 20px;
  }
  .welcome {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .welcome p {
    font-size: 12px;
  }
  .status-pill {
    font-size: 10px;
    padding: 5px 10px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-number {
    font-size: 34px;
  }
  .metric-title {
    font-size: 12px;
  }
  .metric-note {
    font-size: 10px;
  }
  .card {
    padding: 19px;
    margin-bottom: 16px;
  }
  .funnel {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .filters {
    flex-direction: column;
  }
  .filters select {
    width: 100%;
  }
  .section-head > button {
    font-size: 11px;
    white-space: nowrap;
  }
  .section-head p {
    font-size: 12px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
  .message {
    padding: 15px;
  }
  .message pre {
    font-size: 12px;
    padding: 12px;
  }
  footer {
    flex-direction: column;
    font-size: 9px;
  }
  .target-ring {
    width: 155px;
    height: 155px;
  }
  .chart {
    height: 160px;
  }
  .login-story {
    padding: 25px;
  }
  .login-story .brand {
    font-size: 22px;
  }
  .story-main {
    padding: 24px 0 10px;
  }
  .story-main h1 {
    font-size: 36px;
  }
  .login-form h2 {
    font-size: 28px;
  }
  .login-form-wrap {
    padding: 30px 25px;
  }
}
