@charset "UTF-8";
:root {
  --ink: #18352e;
  --green: #1f5545;
  --muted: #768078;
  --paper: #f5f6f2;
  --line: #e2e6de;
  --white: #fff;
  --accent: #d6e5a5;
  font-family: Inter, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #9bbd70;
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    transform 0.15s;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.8px;
  line-height: 1.45;
}
h2 {
  font-size: 18px;
  font-weight: 650;
}
p {
  line-height: 1.8;
}
small {
  font-size: 12px;
}
button {
  border: 0;
}
input,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  color: var(--ink);
  min-width: 0;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  margin-bottom: 12px;
  color: #8b977e;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.5px;
  color: #a0b4a5;
  margin-top: 3px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: var(--accent);
  color: #264b38;
  border-radius: 11px;
  font-size: 25px;
  letter-spacing: 0;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  background: #183f36;
  color: #fff;
  padding: 60px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 760px;
  background-image: radial-gradient(ellipse at bottom right, #426349 0, transparent 60%);
}
.login-story h1 {
  font-size: 44px;
  line-height: 1.5;
  letter-spacing: -1px;
  margin: 20px 0;
}
.login-story p:not(.eyebrow) {
  color: #b4c8bb;
  font-size: 15px;
}
.login-story > small {
  color: #a0b4a5;
}
.flow-mini {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
  color: #d9e5d1;
  font-size: 12px;
}
.flow-mini b {
  color: #79917e;
}
.flow-mini span {
  border: 1px solid #587661;
  border-radius: 6px;
  padding: 10px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 32px;
}
.login-form-wrap form {
  width: 100%;
  max-width: 355px;
}
.login-form-wrap h2 {
  font-size: 27px;
  margin-bottom: 9px;
}
.login-form-wrap label {
  display: block;
  margin-top: 26px;
  margin-bottom: 9px;
  font-size: 13px;
}
.login-form-wrap input {
  width: 100%;
  height: 48px;
}
.primary {
  background: var(--green);
  color: #fff;
  padding: 13px 19px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.primary:hover {
  background: #28664f;
}
.wide {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}
.login-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}
.error {
  font-size: 13px;
  color: #a53c35;
  margin-top: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #183f36;
  color: #d8e4dc;
  padding: 35px 21px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin: 0 8px 52px;
}
.sidebar-caption {
  color: #8fa89a;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin: 0 14px 17px;
}
.nav {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  color: #a8c0b2;
  background: transparent;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.nav span {
  font-size: 18px;
  line-height: 1;
}
.nav.active {
  color: #edf4df;
  background: #305346;
}
.nav:hover {
  background: #294f40;
}
.sidebar-bottom {
  margin-top: auto;
}
.workspace-label {
  display: flex;
  gap: 10px;
  font-size: 11px;
  align-items: center;
  border-top: 1px solid #3c5b4b;
  padding: 24px 5px;
}
.workspace-label i {
  background: var(--accent);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.workspace-label small {
  display: block;
  color: #8aa794;
  font-size: 9px;
  margin-top: 7px;
}
.logout {
  background: transparent;
  color: #a5bbab;
  font-size: 11px;
  padding: 10px 5px;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  font-size: 11px;
  color: var(--muted);
  background: #fafbf8;
}
.topbar strong {
  font-weight: 500;
  color: #526358;
}
.crumb {
  padding: 0 13px;
  color: #afb7ac;
}
.view {
  max-width: 1510px;
  margin: auto;
  padding: 38px 40px 28px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading .muted {
  margin-top: 7px;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.secondary:hover {
  background: #eaf0e4;
}
.notice {
  font-size: 12px;
  padding: 12px 15px;
  border: 1px solid #dce4cc;
  border-radius: 7px;
  background: #edf2e4;
  color: #5b6d42;
  margin-bottom: 23px;
  line-height: 1.7;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 27px;
}
.stats article {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.stats article:first-child {
  background: #eaf0df;
  border-color: #dbe4cc;
}
.stats span {
  display: block;
  font-size: 12px;
  color: #65765d;
}
.stats strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  margin: 20px 0 14px;
  font-weight: 550;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stats small {
  font-size: 10px;
  color: #88937f;
}
.lead-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
}
.card-top {
  padding: 25px 25px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.card-top p {
  font-size: 11px;
  margin-top: 7px;
}
.count {
  margin-left: 7px;
  background: #f0f2eb;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9f6;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  max-width: 300px;
  flex: 1;
}
.search span {
  font-size: 24px;
  color: #8a9684;
}
.search input {
  border: 0;
  background: transparent;
  padding: 11px 0;
  font-size: 11px;
  width: 100%;
}
.tabs {
  display: flex;
  gap: 22px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  white-space: nowrap;
}
.tabs button {
  background: transparent;
  font-size: 12px;
  color: #8a9286;
  padding: 12px 0 14px;
  border-bottom: 2px solid transparent;
}
.tabs button.selected {
  color: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #959d90;
  background: #fcfdfb;
  padding: 15px 20px;
  border-bottom: 1px solid #edf0e8;
}
th:first-child,
td:first-child {
  padding-left: 25px;
}
td {
  font-size: 11px;
  padding: 17px 20px;
  border-bottom: 1px solid #edf0e8;
  color: #7a8777;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcf6;
}
.lead-link {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #edf0e5;
  color: #6b8059;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.lead-link strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #354f3f;
  margin-bottom: 6px;
}
.lead-link small {
  font-size: 10px;
  color: #929b8a;
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.new {
  background: #eef0f5;
  color: #798296;
}
.badge.unresponsive {
  background: #f7f0df;
  color: #b19755;
}
.badge.engaged {
  background: #eaf1e2;
  color: #6c8d43;
}
.badge.qualified {
  background: #e4f0e9;
  color: #457a57;
}
.badge.disqualified {
  background: #f3eae7;
  color: #aa7767;
}
.feedback {
  font-size: 10px;
  color: #97a08e;
}
.feedback.accepted {
  color: #457a57;
}
.row-open {
  background: transparent;
  font-size: 18px;
  color: #9dab91;
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: #8c9a7f;
}
.empty > span {
  font-size: 35px;
  display: block;
  margin-bottom: 16px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  font-size: 12px;
  margin-top: 12px;
}
.table-footer {
  padding: 14px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #8b9481;
}
.table-footer button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  margin-left: 6px;
  width: 30px;
  height: 28px;
  color: #698157;
}
.footnote {
  font-size: 10px;
  color: #8d9784;
  margin-top: 20px;
}
.connection-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.info-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  line-height: 1.8;
}
.info-card h2 {
  margin-bottom: 14px;
}
.info-card p {
  font-size: 13px;
  color: #7c8775;
  margin-bottom: 10px;
}
.info-card .connection-status {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
}
.info-card .step {
  color: #a4b690;
  font-size: 12px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 18px;
}
.failure {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.failure input {
  width: 140px;
  margin: 7px;
}
.failure small {
  display: block;
  color: var(--muted);
}
dialog {
  border: 0;
  padding: 30px;
  width: 480px;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  position: fixed;
  margin: 0 0 0 auto;
  inset: 0;
  color: var(--ink);
  box-shadow: -8px 0 45px #17332b1a;
  overflow-y: auto;
}
dialog::backdrop {
  background: #18382c45;
  backdrop-filter: blur(2px);
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.icon-button {
  background: #f0f3eb;
  border-radius: 50%;
  font-size: 24px;
  width: 32px;
  height: 32px;
  color: #698257;
}
.detail-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 17px 12px;
  font-size: 13px;
  padding-bottom: 28px;
}
.detail-grid dt {
  color: #929c87;
}
.detail-grid dd {
  margin: 0;
  word-break: break-all;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 15px;
}
.detail-section h3 {
  font-size: 14px;
  margin-bottom: 15px;
}
.detail-section form {
  display: flex;
  gap: 9px;
}
.detail-section select {
  flex: 1;
  font-size: 13px;
}
.history {
  padding: 15px 0;
  border-bottom: 1px solid #edf0e8;
  font-size: 12px;
}
.history small {
  display: block;
  color: #8d9980;
  margin-top: 7px;
}
.detail-note {
  font-size: 11px;
  color: #919b86;
  margin-top: 15px;
}
.demo-tag {
  font-size: 9px;
  color: #8f8665;
}
.error-line {
  font-size: 12px;
  color: #ad5545;
  margin-bottom: 10px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: #183f36;
  color: #fff;
  padding: 14px 24px;
  border-radius: 9px;
  box-shadow: 0 5px 25px #17352a25;
  z-index: 20;
  font-size: 13px;
  max-width: 90vw;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .view {
    padding: 45px 55px;
  }
  .stats article {
    padding: 27px;
  }
  .card-top {
    padding-top: 30px;
  }
  td {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 13px;
  }
  .view {
    padding: 30px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .stats {
    gap: 10px;
  }
  .stats article {
    padding: 18px;
  }
  .tabs {
    gap: 18px;
  }
  .card-top {
    flex-wrap: wrap;
  }
  .search {
    max-width: 100%;
    flex-basis: 240px;
  }
  h1 {
    font-size: 25px;
  }
  .login-story h1 {
    font-size: 34px;
  }
}
@media (max-width: 760px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .sidebar .brand {
    margin: 0;
    font-size: 17px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
  .sidebar-caption,
  .sidebar-bottom,
  .sidebar .brand small {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
  }
  .nav {
    padding: 10px 8px;
    margin: 0;
    font-size: 11px;
    white-space: nowrap;
  }
  .nav span {
    display: none;
  }
  .topbar {
    height: 48px;
    padding: 0 19px;
    font-size: 10px;
  }
  .view {
    padding: 25px 17px;
  }
  .page-heading {
    gap: 10px;
    align-items: flex-start;
  }
  h1 {
    font-size: 22px;
  }
  .page-heading .secondary {
    font-size: 10px;
    padding: 8px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 19px;
  }
  .stats article {
    padding: 18px;
  }
  .stats strong {
    font-size: 30px;
    margin: 14px 0 12px;
  }
  .notice {
    font-size: 11px;
  }
  .card-top {
    padding: 19px;
  }
  .card-top p {
    font-size: 10px;
  }
  .search {
    flex-basis: 100%;
  }
  .tabs {
    padding: 0 19px;
    gap: 20px;
  }
  .connection-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .login-screen {
    display: block;
  }
  .login-story {
    min-height: 0;
    padding: 24px;
  }
  .login-story > div:nth-child(2),
  .login-story > small {
    display: none;
  }
  .login-form-wrap {
    padding: 50px 30px;
  }
  .failure {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar #today-date {
    font-size: 9px;
  }
  dialog {
    padding: 24px;
  }
  .flow-mini {
    gap: 8px;
  }
}
th {
  position: relative;
}
td {
  font-size: 12px;
}
th {
  font-size: 11px;
}
.lead-link strong {
  font-size: 13px;
}
.lead-link small {
  font-size: 11px;
}
.badge,
.feedback {
  font-size: 11px;
}
.row-open {
  min-width: 32px;
  min-height: 32px;
}
@media (max-width: 760px) {
  th:nth-child(2),
  td:nth-child(2),
  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }
  th,
  td {
    padding: 14px 10px;
  }
  th:first-child,
  td:first-child {
    padding-left: 17px;
  }
  .lead-link {
    gap: 8px;
  }
  .lead-link strong {
    font-size: 12px;
  }
  .lead-link small {
    font-size: 10px;
  }
  .badge {
    font-size: 10px;
  }
  .row-open {
    min-width: 28px;
  }
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-logout {
  display: none;
  background: transparent;
  color: var(--green);
  font-size: 10px;
  padding: 6px;
}
@media (max-width: 760px) {
  .mobile-logout {
    display: inline-block;
  }
  .topbar-right {
    gap: 5px;
  }
  .topbar #today-date {
    display: none;
  }
}

.badge.expired {
  background: #f3eae7;
  color: #a06956;
}
.badge.late_reply {
  background: #f5eddf;
  color: #998154;
}
.detail-section form {
  flex-wrap: wrap;
}
.contact-time {
  width: 100%;
  font-size: 11px;
  color: #768078;
  margin-top: 8px;
}
.contact-time input {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#export-dialog {
  inset: 0;
  margin: auto;
  width: 640px;
  max-width: calc(100vw - 24px);
  height: auto;
  max-height: calc(100dvh - 32px);
  border-radius: 16px;
}
#export-form label {
  display: block;
  font-size: 12px;
  color: var(--green);
  margin: 16px 0 8px;
}
#export-form input:not([type='checkbox']),
#export-form select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}
.export-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
#export-form .export-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.export-preview {
  padding: 16px;
  background: #f0f4ef;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
  margin: 20px 0;
}
#meta-dialog {
  width: min(620px, calc(100vw - 32px));
  padding: 28px;
}
#meta-dialog form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
#meta-dialog label {
  display: grid;
  gap: 8px;
}
#meta-dialog fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
#meta-dialog .meta-form-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
}
#meta-dialog input[type='checkbox'] {
  width: auto;
  margin-top: 4px;
}
#meta-dialog small {
  display: block;
  color: var(--muted);
}
.export-preview strong {
  font-size: 22px;
  color: var(--green);
}
.export-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .heading-actions {
    max-width: 100px;
  }
  #export-dialog {
    padding: 20px;
  }
  .export-dates {
    gap: 8px;
  }
}
