/* A customer register, using the central's graphite surfaces and blue identity marks. */
.leads-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.leads-summary > div { padding: 20px 24px; min-width: 0; }
.leads-summary > div + div { border-left: 1px solid var(--line); }
.leads-summary span, .leads-summary small { display: block; color: var(--muted); font-size: 11px; }
.leads-summary strong { display: block; margin: 6px 0 4px; font-family: Manrope, Arial, sans-serif; font-size: clamp(23px, 2vw, 29px); font-weight: 650; line-height: 1.4; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.leads-summary > div:first-child strong { color: var(--accent); }
.leads-summary small { font-size: 10px; }
.panel.leads-library { padding: 0; overflow: hidden; }
.leads-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 23px 24px 18px; }
.leads-heading p { color: var(--muted); margin-top: 5px; font-size: 12px; }
.leads-environment { display: inline-flex; flex-shrink: 0; padding: 5px 9px; border-radius: 5px; border: 1px solid var(--line); background: var(--deep); color: var(--muted); font-size: 10px; }
.leads-environment.is-test { color: var(--warning); border-color: #5a4930; background: var(--warning-soft); }
.leads-filters { display: grid; grid-template-columns: minmax(210px, 1.5fr) minmax(125px, 1fr) minmax(125px, 1fr) minmax(155px, 1fr); align-items: end; gap: 12px; padding: 0 24px 14px; }
.leads-filters label { margin: 0; min-width: 0; }
.leads-filters label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.leads-filters input, .leads-filters select { min-height: 39px; font-size: 11px; padding: 9px 10px; }
.leads-filter-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.leads-filter-actions .button { min-height: 33px; padding: 7px 15px; font-size: 11px; }
.leads-scope { color: var(--muted); font-size: 10px; line-height: 1.7; padding: 0 24px 15px; }
.leads-feedback-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0 24px; }
.leads-feedback-line:has(.form-feedback:empty):not(:has(button:not([hidden]))) { display: none; }
.leads-feedback-line .form-feedback { margin: 0; padding: 0 0 13px; }
.leads-feedback-line .text-button { margin-bottom: 10px; }
.leads-columns, .leads-item { display: grid; grid-template-columns: minmax(225px, 1.55fr) minmax(160px, 1.3fr) minmax(110px, .8fr) minmax(115px, .85fr) 92px; gap: 20px; align-items: center; }
.leads-columns { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 11px 24px; background: var(--deep); color: var(--muted); font-size: 10px; }
.leads-list, .leads-product-list, .leads-purchase-list { padding: 0; margin: 0; list-style: none; }
.leads-item { padding: 20px 24px; border-bottom: 1px solid var(--line); transition: background .15s; }
.leads-item:last-child { border-bottom: 0; }
.leads-item:hover { background: color-mix(in srgb, var(--panel-raised) 45%, transparent); }
.leads-item > * { min-width: 0; }
.leads-identity { display: flex; gap: 12px; align-items: start; }
.leads-avatar { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #354769; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 650; flex-shrink: 0; }
.leads-contact { min-width: 0; display: grid; gap: 3px; }
.leads-contact strong { font-weight: 600; font-size: 12px; overflow-wrap: anywhere; }
.leads-phone { font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.leads-email { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.leads-product-list { display: grid; gap: 7px; font-size: 11px; }
.leads-product-list li { display: flex; gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
.leads-product-list li span { min-width: 0; }
.leads-product-list small { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.leads-more-products { color: var(--muted); font-size: 10px; }
.leads-totals { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.leads-totals > span { color: var(--muted); font-size: 10px; }
.leads-totals > strong { font-size: 12px; font-weight: 500; }
.leads-last time { font-size: 10px; color: var(--muted); }
.leads-mobile-label { display: none; }
.leads-open { justify-self: end; }
.leads-empty { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 36px 24px; text-align: center; }
.leads-empty strong { font-family: Manrope, Arial, sans-serif; font-size: 16px; font-weight: 600; }
.leads-empty p { max-width: 440px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.leads-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 24px; border-top: 1px solid var(--line); }
.leads-pagination > div { display: flex; gap: 8px; }
.leads-pagination .button { min-height: 33px; padding: 7px 10px; font-size: 10px; }
.leads-dialog { width: min(800px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 25px; color: var(--ink); background: var(--panel); border: 1px solid #485365; border-radius: 16px; box-shadow: 0 28px 100px #070a12b3; }
.leads-dialog::backdrop { background: #070a12bf; backdrop-filter: blur(5px); }
.leads-dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.leads-dialog-heading h2 { overflow-wrap: anywhere; }
.leads-dialog-heading .eyebrow { color: var(--accent); }
.leads-detail-contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.leads-detail-contact:empty { display: none; }
.leads-detail-contact > div { display: grid; gap: 4px; min-width: 0; }
.leads-detail-contact span { color: var(--muted); font-size: 10px; }
.leads-detail-contact strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.leads-dialog .leads-scope { padding: 0 0 18px; }
.leads-dialog .leads-feedback-line { padding: 0; }
.leads-purchase { padding: 19px 0; border-top: 1px solid var(--line); }
.leads-purchase-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.leads-purchase-heading > div { min-width: 0; }
.leads-purchase-heading h3 { font: 600 13px/1.6 Inter, Arial, sans-serif; letter-spacing: 0; overflow-wrap: anywhere; }
.leads-purchase-origin { color: var(--muted); display: block; font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.leads-purchase-price { font-size: 12px; font-weight: 500; white-space: nowrap; padding-top: 3px; }
.leads-purchase-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.leads-purchase-meta code { font-size: 10px; }
.leads-purchase-meta .chip { margin-left: auto; font-size: 9px; }
.leads-dialog .leads-pagination { padding: 18px 0 0; }
@media (max-width: 1250px) {
  .leads-columns, .leads-item { grid-template-columns: minmax(210px, 1.5fr) minmax(135px, 1.1fr) minmax(105px, .8fr) 90px; gap: 16px; }
  .leads-columns > span:nth-child(4) { display: none; }
  .leads-last { grid-column: 1 / 4; grid-row: 2; display: flex; gap: 8px; padding-left: 48px; }
  .leads-mobile-label { display: inline; color: var(--muted); font-size: 10px; }
  .leads-open { grid-column: 4; grid-row: 1 / 3; }
}
@media (max-width: 900px) {
  .leads-summary > div { padding: 17px 16px; }
  .leads-summary small { display: none; }
  .leads-summary strong { font-size: 21px; }
  .leads-heading { padding: 20px 18px; }
  .leads-filters { grid-template-columns: 1fr 1fr; padding: 0 18px 14px; }
  .leads-search { grid-column: 1 / -1; }
  .leads-filters label:has(#leads-environment) { grid-column: 1 / -1; }
  .leads-filter-actions { gap: 16px; }
  .leads-scope { padding-left: 18px; padding-right: 18px; }
  .leads-feedback-line { padding: 0 18px; }
  .leads-columns { display: none; }
  .leads-item { grid-template-columns: 1fr auto; padding: 20px 18px; gap: 15px 20px; }
  .leads-item:first-child { border-top: 1px solid var(--line); }
  .leads-identity { grid-column: 1 / -1; }
  .leads-product-list { grid-column: 1; grid-row: 2; padding-left: 48px; }
  .leads-totals { grid-column: 2; grid-row: 2; align-self: start; text-align: right; }
  .leads-last { grid-column: 1; grid-row: 3; display: grid; gap: 3px; }
  .leads-open { grid-column: 2; grid-row: 3; }
  .leads-pagination { padding: 15px 18px; flex-wrap: wrap; }
  .leads-pagination > div { margin-left: auto; }
}
@media (max-width: 440px) {
  .leads-summary { grid-template-columns: 1fr 1fr; }
  .leads-summary > div { padding: 14px; }
  .leads-summary > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .leads-summary > div:last-child strong { margin: 0; }
  .leads-heading { flex-direction: column; gap: 12px; }
  .leads-dialog { padding: 20px 16px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .leads-detail-contact { grid-template-columns: 1fr; gap: 14px; }
  .leads-purchase-heading { gap: 12px; }
  .leads-purchase-meta .chip { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .leads-item { transition: none; } }
