:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #243a30;
  background: #f5f7f3;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #2b6049;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #81a68a;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e5e9e1;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #202923;
}
.brand img {
  display: block;
  width: 32px;
  height: 32px;
}
.brand .brand-name {
  font-size: 21px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.65px;
  color: #202923;
}
.account-menu {
  position: relative;
  flex-shrink: 0;
}
.account-trigger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  list-style: none;
  cursor: pointer;
  color: #57675b;
  background: #fafbf8;
  border: 1px solid #e4e9df;
  border-radius: 50%;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}
.account-trigger::-webkit-details-marker {
  display: none;
}
.account-trigger::marker {
  content: "";
}
.account-trigger:hover,
.account-menu[open] .account-trigger {
  background: #eef2ea;
  border-color: #cdd7c6;
  color: #263d2e;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 176px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e9e0;
  border-radius: 12px;
  box-shadow:
    0 12px 36px #23352914,
    0 2px 6px #23352905;
}
.account-signout {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #711e23;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.account-signout:hover {
  background: #f9f3f2;
}
.account-signout svg {
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .account-trigger {
    transition: none;
  }
}
.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #35644d;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}
main {
  max-width: 1248px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #72806f;
  margin: 0 0 10px;
}
h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 0;
  color: #20392b;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.35px;
  margin: 0 0 20px;
}
p {
  color: #69786b;
  line-height: 1.65;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading p {
  margin: 12px 0 0;
  font-size: 14px;
}
.refresh-link {
  font-size: 13px;
}
.panel {
  background: #fff;
  border: 1px solid #dfe5db;
  border-radius: 14px;
  box-shadow: 0 2px 4px #263e2904;
}
.inbox {
  overflow: hidden;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #e5eadd;
}
.filters > div {
  min-width: 170px;
}
.filters .search-field {
  flex: 1;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: #647262;
  margin-bottom: 9px;
}
input,
select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #d7dfd2;
  border-radius: 7px;
  background: #fff;
  color: #20392b;
  font-size: 14px;
  min-width: 0;
}
input::placeholder {
  color: #8d978b;
}
input:focus,
select:focus {
  border-color: #588063;
}
.filter-button,
.primary {
  border: 1px solid #711e23;
  background: #711e23;
  border-radius: 7px;
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  font-size: 13px;
  min-height: 44px;
  white-space: nowrap;
}
.clear-link {
  font-size: 12px;
  align-self: center;
  padding-top: 23px;
}
.table-scroll {
  overflow-x: auto;
}
.lead-table,
.delivery-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.lead-table th,
.delivery-table th {
  font-size: 11px;
  letter-spacing: 0.35px;
  font-weight: 650;
  color: #75806f;
  padding: 15px 20px;
  background: #fafbf8;
  border-bottom: 1px solid #e6eadd;
  white-space: nowrap;
}
.lead-table td,
.delivery-table td {
  padding: 21px 20px;
  vertical-align: top;
  border-bottom: 1px solid #edf0e8;
  line-height: 1.65;
}
.lead-table tbody tr:hover {
  background: #fafcf8;
}
.lead-table tbody tr:last-child td {
  border-bottom: 0;
}
.lead-name {
  display: block;
  font-size: 15px;
  font-weight: 650;
  color: #294732;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.lead-name:hover {
  text-decoration: underline;
}
.secondary {
  display: block;
  font-size: 12px;
  color: #80907c;
  overflow-wrap: anywhere;
}
.company-name {
  font-weight: 550;
  overflow-wrap: anywhere;
}
.received {
  font-size: 12px;
  min-width: 150px;
}
.received time {
  display: block;
}
.open-cell a {
  white-space: nowrap;
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 24px;
  border-top: 1px solid #e6eadd;
  font-size: 12px;
  color: #7b8874;
}
.empty {
  text-align: center;
  padding: 60px 24px;
}
.empty h1 {
  font-size: 24px;
  margin-bottom: 20px;
}
.empty h2 {
  margin-bottom: 8px;
}
.empty p {
  font-size: 14px;
  margin: 0;
}
.login {
  max-width: 420px;
  margin: 35px auto;
}
.login h1 {
  font-size: 43px;
  line-height: 1.08;
  letter-spacing: -1.8px;
}
.login .intro {
  font-size: 14px;
  margin: 22px 0 28px;
  max-width: 360px;
}
.login-panel {
  padding: 28px;
}
.login-panel input {
  font-size: 16px;
  min-height: 48px;
}
.login-panel .primary {
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
}
.hint {
  font-size: 12px;
  margin: 15px 0 0;
}
.code-input {
  letter-spacing: 7px;
  font-size: 22px !important;
}
.code-input::placeholder {
  letter-spacing: normal;
}
.change-phone {
  margin: 18px 0 0;
}
.form-status {
  font-size: 13px;
  margin: 14px 0 0;
  line-height: 1.6;
}
.form-status:empty {
  display: none;
}
.form-status[role="alert"] {
  color: #9e4033;
}
.back-link {
  font-size: 12px;
  display: inline-block;
  margin-bottom: 28px;
}
.detail-heading {
  margin-bottom: 26px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
  margin-top: 18px;
  font-size: 14px;
}
.contact-links span {
  color: #85917e;
}
.provenance {
  padding: 24px 28px;
  margin-bottom: 20px;
}
.provenance dl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin: 0;
}
.answer {
  min-width: 0;
}
.answer dt {
  font-size: 11px;
  color: #7a8774;
  margin-bottom: 8px;
  font-weight: 550;
}
.answer dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.source-answer {
  grid-column: 1 / -1;
}
.detail-section {
  padding: 28px;
  margin-bottom: 20px;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
}
.customer-message {
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.original {
  margin-top: 18px;
  overflow: hidden;
}
.original summary {
  cursor: pointer;
  padding: 20px 28px;
  font-size: 13px;
  color: #5a705b;
  font-weight: 550;
}
.original-body {
  padding: 0 28px 25px;
}
.original pre {
  font-family: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
  color: #5e705e;
}
.delivery-state {
  font-size: 12px;
  text-transform: capitalize;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .filters {
    flex-wrap: wrap;
  }
  .filters .search-field {
    flex-basis: 100%;
  }
  .filters > div {
    flex: 1;
  }
  .lead-table th,
  .lead-table td {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 68px;
    padding: 0 16px;
  }
  main {
    padding: 28px 16px 44px;
  }
  h1 {
    font-size: 29px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 12px;
  }
  .refresh-link {
    font-size: 11px;
    white-space: nowrap;
    margin-top: 24px;
  }
  .filters {
    padding: 18px;
    gap: 14px;
  }
  .filters > div {
    min-width: 0;
    flex-basis: 100%;
  }
  .filter-button {
    flex: 1;
  }
  .clear-link {
    padding: 0;
    align-self: center;
  }
  .lead-table,
  .lead-table tbody,
  .lead-table tr,
  .lead-table td {
    display: block;
    width: 100%;
  }
  .lead-table thead {
    display: none;
  }
  .lead-table tbody tr {
    padding: 22px 18px;
    border-bottom: 1px solid #e4eadf;
  }
  .lead-table tbody tr:last-child {
    border-bottom: 0;
  }
  .lead-table td {
    border: 0;
    padding: 5px 0;
    min-width: 0;
  }
  .lead-table td[data-label] {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 10px;
  }
  .lead-table td[data-label]::before {
    content: attr(data-label);
    font-size: 11px;
    color: #82907b;
    padding-top: 2px;
  }
  .lead-table td[data-label] .secondary {
    grid-column: 2;
    margin-top: -8px;
  }
  .lead-table .lead-customer {
    padding: 0 0 14px;
  }
  .lead-name {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .lead-table .open-cell {
    padding-top: 14px;
  }
  .lead-table .open-cell a {
    font-size: 13px;
  }
  .pagination {
    padding: 18px;
    font-size: 11px;
  }
  .login {
    margin: 22px auto;
  }
  .login h1 {
    font-size: 38px;
  }
  .login-panel {
    padding: 24px;
  }
  .provenance,
  .detail-section {
    padding: 22px;
  }
  .provenance dl,
  .answers {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .source-answer {
    grid-column: 1 / -1;
  }
  .contact-links {
    gap: 12px 18px;
  }
  .original summary {
    padding: 18px 22px;
  }
  .original-body {
    padding: 0 22px 22px;
  }
  .delivery-table {
    min-width: 610px;
  }
}
@media (max-width: 380px) {
  .provenance dl,
  .answers {
    grid-template-columns: 1fr;
  }
  .source-answer {
    grid-column: auto;
  }
}

select {
  height: 44px;
}
/* Compact controls and one continuous list. */
.page-heading {
  margin-bottom: 24px;
}
.filters {
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}
.filters > div {
  min-width: 0;
  flex: none;
}
.filters .lead-search {
  position: relative;
  width: 300px;
  max-width: 100%;
}
.lead-search svg {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: #84907e;
  pointer-events: none;
}
.lead-search input {
  height: 42px;
  min-height: 42px;
  padding: 10px 12px 10px 39px;
  font-size: 14px;
}
.filters .lead-filter {
  position: relative;
  width: 224px;
  max-width: 100%;
}
.lead-filter select {
  appearance: none;
  -webkit-appearance: none;
  height: 42px;
  min-height: 42px;
  padding: 10px 36px 10px 13px;
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.lead-filter svg {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #657461;
}
.results-count {
  margin-left: auto;
  font-size: 12px;
  color: #75836e;
  white-space: nowrap;
}
.empty h2 {
  margin: 0;
}
@media (max-width: 700px) {
  .page-heading {
    margin-bottom: 20px;
  }
  .filters {
    gap: 10px;
    padding: 16px;
  }
  .filters .lead-search {
    width: 100%;
    flex: 1 1 100%;
  }
  .filters .lead-filter {
    width: min(224px, calc(100% - 62px));
    flex: none;
  }
  .lead-search input,
  .lead-filter select {
    font-size: 16px;
  }
}
/* Inbox controls and reusable lead dialog. */
.page-heading {
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
}
.lead-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #dce4d8;
  border-radius: 9px;
  background: #fff;
  color: #647262;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.filters .lead-search,
.filters .lead-filter {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
}
.lead-open,
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e0e7dc;
  border-radius: 12px;
  background: #fafbf8;
  color: #45614f;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.lead-open:hover,
.dialog-close:hover {
  background: #edf2e9;
  border-color: #bfccba;
}
.lead-dialog-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.lead-dialog {
  width: min(820px, calc(100% - 48px));
  max-width: none;
  height: auto;
  max-height: min(900px, calc(100dvh - 64px));
  padding: 0;
  border: 1px solid #e1e7dd;
  border-radius: 20px;
  color: #243a30;
  background: #f8faf6;
  box-shadow: 0 28px 100px #122a2640;
  overflow: hidden;
}
.lead-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: lead-dialog-in 0.18s ease-out;
}
.lead-dialog::backdrop {
  background: #10271f70;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.lead-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: none;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e1e7dd;
}
.lead-dialog-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.dialog-close {
  border: 0;
  background: transparent;
  border-radius: 50%;
}
.lead-dialog-body {
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  overflow-wrap: anywhere;
}
.lead-detail-name {
  margin: 9px 0 16px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.lead-dialog .detail-heading {
  margin-bottom: 24px;
}
.lead-dialog .detail-section h2 {
  font-size: 16px;
}
.dialog-status {
  padding: 24px 0;
  margin: 0;
  color: #647262;
}
.dialog-retry {
  padding: 10px 18px;
  border: 1px solid #cad7c4;
  border-radius: 9px;
  background: #fff;
  color: #2b6049;
}
@keyframes lead-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 700px) {
  .filters .lead-search,
  .filters .lead-filter {
    width: 100%;
    flex: 1 1 100%;
  }
  .lead-dialog {
    width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
  .lead-dialog-header {
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .lead-dialog-body {
    padding: 22px 16px max(28px, env(safe-area-inset-bottom));
  }
  .lead-dialog .provenance dl,
  .lead-dialog .answers {
    grid-template-columns: 1fr;
  }
  .lead-dialog .source-answer {
    grid-column: auto;
  }
  .lead-dialog .contact-links {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lead-dialog[open] {
    animation: none;
  }
  .lead-open,
  .dialog-close {
    transition: none;
  }
}
/* Person rows follow the Arena members pattern, with complete mobile text. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  touch-action: manipulation;
}
.lead-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lead-list > li {
  min-width: 0;
}
.lead-list > li + li {
  border-top: 1px solid #e6eadd;
}
.lead-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 18px;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
  min-height: 100px;
  padding: 20px 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #243a30;
  text-align: left;
  line-height: 1.5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lead-row:focus-visible {
  outline-offset: -4px;
  border-radius: 8px;
}
.lead-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dce5d7;
  border-radius: 50%;
  background: #f0f4ec;
  color: #5d7358;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lead-identity,
.lead-routing,
.lead-context {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lead-identity strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.lead-contact {
  color: #71816c;
  font-size: 13px;
}
.lead-company {
  font-size: 14px;
  font-weight: 550;
}
.lead-recipient {
  color: #71816c;
  font-size: 13px;
}
.lead-context {
  justify-items: start;
  gap: 8px;
}
.lead-inquiry {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f2f5ee;
  color: #5d7158;
  font-size: 12px;
  font-weight: 500;
}
.lead-date {
  color: #71816c;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.lead-chevron {
  color: #82917a;
}
@media (hover: hover) and (pointer: fine) {
  .lead-row:hover {
    background: #fafcf8;
  }
}
@media (max-width: 700px) {
  .lead-row {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: start;
    column-gap: 12px;
    row-gap: 12px;
    padding: 18px 16px;
  }
  .lead-avatar {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    margin-top: 1px;
    font-size: 12px;
  }
  .lead-identity {
    grid-column: 2;
    grid-row: 1;
    gap: 4px;
  }
  .lead-identity strong {
    font-size: 17px;
  }
  .lead-contact,
  .lead-recipient,
  .lead-company {
    font-size: 14px;
  }
  .lead-routing {
    grid-column: 2;
    grid-row: 2;
    gap: 2px;
  }
  .lead-context {
    grid-column: 2;
    grid-row: 3;
    gap: 6px;
  }
  .lead-inquiry,
  .lead-date {
    font-size: 13px;
  }
  .lead-chevron {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    margin-top: 9px;
  }
  .lead-dialog-open body {
    overflow: hidden;
  }
  .lead-dialog,
  .lead-dialog-body {
    touch-action: manipulation;
  }
  .lead-dialog-header {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }
  .lead-dialog-body {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
  }
}
