:root {
  color-scheme: light;
  font: 15px/1.45 "Inter", "Segoe UI", system-ui, sans-serif;
  color: #182d2b;
  background: #f5f7f7;
  --side: #102b2b;
  --ink: #182d2b;
  --muted: #556865;
  --line: #e0e8e5;
  --accent: #08775f;
  --accent-dark: #05604d;
  --pale: #e8f5ef;
  --motion: 160ms;
  --ease: cubic-bezier(.2,.7,.25,1);
  scrollbar-gutter: stable;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent-dark); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled, .pagination button[aria-disabled="true"] { opacity: .52; cursor: default; }
:focus-visible { outline: 3px solid #38a98e; outline-offset: 3px; }
input:focus, select:focus { border-color: #38a98e; box-shadow: 0 0 0 3px #38a98e2b; outline: none; }
input { caret-color: #183a32; }
@media (any-hover: hover) and (any-pointer: fine) {
  input:not([type="checkbox"]):not(:disabled) { cursor: url('/text-cursor.svg') 12 12, text; }
}
svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, p { margin: 0; }
h1, h2, p, td { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { display: grid; grid-template-columns: 236px minmax(0,1fr); min-height: 100vh; }
.sidebar { background: var(--side); color: white; display: flex; flex-direction: column; height: 100dvh; position: sticky; top: 0; padding: 26px 16px 18px; z-index: 5; }
.brand { text-decoration: none; color: inherit; display: flex; gap: 11px; align-items: center; font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.8px; width: fit-content; }
.sidebar .brand { margin-left: 10px; }
.brand small { display: block; color: #a3c1b8; margin-top: 7px; font-size: 9px; letter-spacing: 1.75px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; background: #a9f0cc; color: #123b34; }
.brand-mark svg { width: 21px; height: 21px; }
.nav-group { margin-top: 49px; }
.nav-title { margin: 0 10px 11px; font-size: 10px; color: #a3c1b8; font-weight: 700; letter-spacing: 1.45px; }
.nav-button { display: flex; align-items: center; width: 100%; text-align: left; border: 0; border-radius: 8px; background: transparent; color: #c4d7d3; min-height: 45px; gap: 10px; padding: 9px 11px; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.nav-button:hover { background: #1e3c3b; }
.nav-button[aria-current] { background: #244b44; color: #d0f8e6; }
.nav-button[aria-current] svg { color: #9befc7; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #30504c; padding: 17px 7px 1px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #adcbc1; }
.sidebar-foot svg { width: 16px; height: 16px; }
.topbar { min-height: 68px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(22px,3vw,44px); }
.breadcrumbs, .account { display: flex; align-items: center; gap: 11px; }
.breadcrumbs { color: var(--muted); font-size: 13px; min-width: 0; }
.breadcrumbs strong { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.breadcrumbs svg { width: 13px; height: 13px; }
.mode { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 5px 10px; background: #edf4f1; color: #315e52; font-size: 11px; font-weight: 650; white-space: nowrap; }
.mode i, .badge i { display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.account { position: relative; }
.account-button { display: flex; align-items: center; gap: 5px; min-height: 44px; border: 0; background: transparent; color: var(--muted); padding: 4px; border-radius: 8px; }
.account-button svg { width: 13px; height: 13px; }
.avatar { background: #dcefe7; color: #2b5b4d; font-weight: 700; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.mobile-menu { display: none !important; }
main { width: min(100%, 1510px); margin: 0 auto; padding: 35px clamp(22px,3vw,44px) 22px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { font-size: clamp(33px,3vw,43px); line-height: 1.1; font-weight: 730; letter-spacing: -1.8px; }
.page-heading p { margin-top: 9px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 680; text-decoration: none; text-align: center; }
.button svg { width: 17px; height: 17px; }
.primary { background: var(--accent); color: white; box-shadow: 0 2px 2px #15383116; }
.primary:hover:not(:disabled) { background: var(--accent-dark); }
#export-open { flex: none; min-height: 44px; }
.secondary { border-color: #ceded8; background: #fff; color: #254943; }
.secondary:hover:not(:disabled), .ghost:hover:not(:disabled) { background: #edf5f1; }
.ghost { color: var(--accent-dark); background: transparent; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #45635e; border: 1px solid var(--line); border-radius: 8px; background: white; flex: none; }
.icon-button:hover:not(:disabled) { background: #edf5f1; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 19px; }
.metrics article { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.metric-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 10px; flex: none; }
.metric-icon svg { width: 22px; height: 22px; }
.metric-icon.blue { color: #305e77; background: #eaf2f8; }
.metric-icon.green { color: #197154; background: #e3f4eb; }
.metric-icon.amber { color: #8a5b16; background: #fff3de; }
.metrics p { font-size: 12px; color: var(--muted); font-weight: 600; }
.metrics strong { display: block; font-size: 29px; line-height: 1.1; font-weight: 720; letter-spacing: -.8px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; box-shadow: 0 2px 3px #162d2405; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2, .dialog-heading h2 { font-size: 18px; letter-spacing: -.32px; font-weight: 700; }
.panel-heading p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.filters { padding: 16px 19px 19px; }
.filters h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.filters h2 svg { color: #3b6a5f; }
.text-button { border: 0; background: transparent; color: var(--accent-dark); border-radius: 6px; min-height: 34px; padding: 4px 6px; font-size: 12px; font-weight: 700; }
.text-button:hover { background: var(--pale); }
#filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) minmax(92px,.75fr) auto; align-items: end; gap: 11px; margin-top: 7px; }
label { display: block; font-weight: 650; font-size: 12px; min-width: 0; }
label input, label select { margin-top: 5px; }
select, input { width: 100%; min-height: 40px; border: 1px solid #d5e1dd; border-radius: 7px; color: var(--ink); padding: 8px 10px; background: #fff; font-weight: 450; }
select { text-overflow: ellipsis; }
input::placeholder { color: #62746f; opacity: 1; }
.search-button { background: #e4f3eb; color: #145c4a; min-height: 40px; }
.search-button:hover { background: #d6ede3; }
.status-line { height: 37px; overflow: auto; padding: 7px 2px 3px; font-size: 12px; font-weight: 600; color: #246353; }
[data-error="true"] { color: #a33c2d !important; }
.results-heading { padding: 18px 19px 13px; }
.tabs { display: flex; flex-wrap: wrap; gap: 15px; padding: 0 19px; border-bottom: 1px solid var(--line); }
.tabs button { min-height: 40px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); padding: 4px 1px; font-size: 12px; font-weight: 650; }
.tabs button[aria-pressed="true"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
th { text-align: left; background: #f5f8f7; color: #536964; font-size: 11px; font-weight: 700; }
th, td { padding: 9px 8px; border-bottom: 1px solid #e8eeeb; }
th:first-child, td:first-child { padding-left: 19px; width: 30%; }
th:nth-child(2) { width: 16%; }
th:nth-child(3) { width: 15%; }
th:nth-child(4) { width: 15%; }
th:nth-child(5) { width: 18%; }
th:last-child, td:last-child { padding-right: 15px; text-align: right; width: 6%; }
.company { display: flex; align-items: center; gap: 9px; min-width: 0; }
.company-mark { width: 31px; height: 31px; display: grid; place-items: center; flex: none; border-radius: 8px; background: #edf3f1; color: #486860; font-size: 10px; font-weight: 750; }
.company-name { font-weight: 680; line-height: 1.26; }
.company-org { color: var(--muted); margin-top: 3px; font-size: 11px; font-variant-numeric: tabular-nums; }
.phone { font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone small { display: block; color: var(--muted); white-space: normal; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px 7px; background: #eef0f0; color: #536963; font-size: 10px; font-weight: 700; line-height: 1.3; text-align: left; }
.badge.ready { background: #e3f4e9; color: #20634a; }
.badge.review { background: #fff3dd; color: #79501a; }
.badge.blocked { background: #f8eae5; color: #8a3f30; }
.row-toggle { width: 30px; height: 34px; border-color: transparent; }
.row-toggle svg { width: 17px; height: 17px; }
.action-cell { position: relative; }
.popup { z-index: 4; position: absolute; right: 12px; top: calc(50% + 17px); border: 1px solid var(--line); border-radius: 9px; min-width: 175px; max-width: min(260px, 80vw); background: white; box-shadow: 0 8px 28px #0f2e2722; padding: 5px; color: var(--ink); text-align: left; }
.popup.opens-up { top: auto; bottom: calc(50% + 17px); }
.popup:not(.open) { visibility: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none; }
.popup button, .popup a { display: flex; align-items: center; width: 100%; min-height: 38px; padding: 6px 9px; text-align: left; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 13px; text-decoration: none; }
.popup button:hover, .popup a:hover { background: #edf5f1; }
.account-popup { top: 100%; right: 0; }
.account-popup p { padding: 8px 9px; color: var(--muted); font-size: 12px; }
.empty { padding: 33px 19px; color: var(--muted); font-size: 14px; }
.table-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 11px 19px; color: var(--muted); font-size: 12px; }
.pagination { display: flex; align-items: center; gap: 8px; }
.pagination span { color: var(--accent-dark); background: var(--pale); min-width: 29px; min-height: 29px; display: grid; place-items: center; border-radius: 7px; font-weight: 700; }
.pagination button { width: 30px; height: 30px; }
.pagination svg { width: 15px; height: 15px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 14px 19px; border-top: 1px solid var(--line); }
.history-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.history-meta p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.download-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
dialog { border: 1px solid var(--line); border-radius: 14px; width: min(490px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 19px; color: var(--ink); box-shadow: 0 14px 42px #142f2b30; overflow: auto; overscroll-behavior: contain; }
html:has(dialog[open]) { overflow: hidden; }
dialog::backdrop { background: #0d292a88; }
dialog[data-closing] { pointer-events: none; }
.security-tabs { padding-inline: 0; margin-bottom: 12px; }
#security-dialog form { min-height: 293px; }
#alternate-state { min-height: 3.2em; }
#export-dialog { min-height: min(260px, calc(100dvh - 28px)); }
.custom-quantity-slot { display: grid; grid-template-rows: 0fr; margin-inline: -4px; }
.custom-quantity-slot.open { grid-template-rows: 1fr; }
.custom-quantity-slot > div { overflow: hidden; padding-inline: 4px; }
.custom-quantity-slot label { margin: 8px 0 4px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 16px; }
.dialog-heading p, .dialog-status, #contact-info { color: var(--muted); margin-top: 4px; font-size: 13px; }
.dialog-status { min-height: 2.7em; margin-top: 8px; }
dialog form > label { margin: 8px 0 4px; }
.check-label { display: flex; align-items: center; gap: 8px; }
.check-label input { width: 18px; min-height: 18px; height: 18px; margin: 0; flex: none; }
.contact-sources { margin: 8px 0 14px; padding-left: 19px; overflow-wrap: anywhere; }
.contact-roles { margin: 10px 0; }
.contact-name-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; border: 0; margin: 8px 0 0; padding: 0; min-width: 0; }
.contact-name-fields legend { font-size: 12px; font-weight: 650; padding: 0; }
#contact-name-hint, .optional { color: var(--muted); font-size: 12px; font-weight: 450; }
#contact-name-hint { margin: 4px 0 9px; }
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 18px; background: linear-gradient(135deg,#f4f7f6,#e8f1ed); }
.gate-card { width: min(100%,400px); padding: 27px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 26px #193f3210; }
.gate-card h1 { margin: 23px 0 5px; font-size: 29px; letter-spacing: -.8px; }
.gate-card p { color: var(--muted); }
.gate-card form, .gate-card #google { margin-top: 19px; }
.gate-card form .primary { margin-top: 10px; }
.gate-card input { margin-top: 4px; }
.gate-message { min-height: 2.8em; margin-top: 8px; font-size: 13px; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 194px minmax(0,1fr); }
  .sidebar { padding-inline: 11px; }
  .company-mark { display: none; }
  th:first-child { width: 27%; }
  th:nth-child(5) { width: 20%; }
  th:last-child, td:last-child { width: 7%; padding-right: 8px; }
}
@media (max-width: 960px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 65px auto auto 0; height: min(410px, calc(100dvh - 65px)); width: min(260px,85vw); border-radius: 0 0 13px 0; box-shadow: 0 12px 24px #183b3833; overflow: auto; overscroll-behavior: contain; }
  .sidebar:not(.open) { visibility: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none; }
  .nav-group { margin-top: 26px; }
  .mobile-menu { display: inline-grid !important; width: 40px; height: 40px; }
  .mobile-menu svg { width: 18px; height: 18px; }
  .company-mark { display: grid; }
}
@media (max-width: 680px) {
  main { padding: 23px 14px 14px; }
  .topbar { min-height: 63px; padding-inline: 14px; }
  .breadcrumb-root { display: none; }
  .page-heading { align-items: start; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
  .page-heading p { font-size: 13px; }
  .metrics { gap: 6px; margin-bottom: 14px; }
  .metrics article { display: grid; gap: 7px; padding: 9px 7px; align-content: start; }
  .metric-icon { width: 29px; height: 29px; border-radius: 7px; }
  .metric-icon svg { width: 17px; height: 17px; }
  .metrics p { font-size: 11px; }
  .metrics strong { font-size: 23px; }
  .filters { padding: 11px 12px 13px; }
  #filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .status-line { height: 46px; }
  input, select { font-size: 16px; }
  .results-heading { padding: 13px 12px 9px; align-items: flex-start; flex-wrap: wrap; }
  .tabs { padding-inline: 12px; gap: 11px; }
  .tabs button { min-height: 44px; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr) 44px; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--line); gap: 6px 7px; }
  td, td:first-child, td:last-child { width: auto; border: 0; padding: 0; min-width: 0; }
  td:first-child { grid-column: 1 / 3; grid-row: 1; }
  td:nth-child(2) { grid-column: 1; grid-row: 2; }
  td:nth-child(3) { grid-column: 2 / 4; grid-row: 2; }
  td:nth-child(4) { grid-column: 1; grid-row: 3; }
  td:nth-child(5) { grid-column: 2 / 4; grid-row: 3; }
  td:last-child { grid-column: 3; grid-row: 1; }
  .row-toggle { width: 44px; height: 44px; }
  .company-mark { display: none; }
  .table-footer, .history-row { padding-inline: 12px; }
  .history-row { align-items: flex-start; flex-direction: column; }
  .history-row button { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .button, .popup a, input, select { transition: background-color var(--motion) var(--ease), border-color var(--motion) var(--ease), color var(--motion) var(--ease), box-shadow var(--motion) var(--ease); }
  .popup { transition: opacity var(--motion) var(--ease), transform var(--motion) var(--ease), visibility 0s var(--motion); }
  .popup.open { transition-delay: 0s; }
  dialog[open] { animation: dialog-reveal var(--motion) var(--ease) both; }
  dialog[open]::backdrop { animation: backdrop-reveal var(--motion) ease-out both; }
  dialog[open][data-closing] { animation: dialog-dismiss var(--motion) ease-in both; }
  dialog[open][data-closing]::backdrop { animation: backdrop-dismiss var(--motion) ease-in both; }
  .custom-quantity-slot { transition: grid-template-rows var(--motion) var(--ease); }
}
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .sidebar { transition: opacity var(--motion) var(--ease), transform var(--motion) var(--ease), visibility 0s var(--motion); }
  .sidebar.open { transition-delay: 0s; }
}
@keyframes dialog-reveal { from { opacity: 0; transform: translateY(5px); } }
@keyframes dialog-dismiss { to { opacity: 0; transform: translateY(5px); } }
@keyframes backdrop-reveal { from { opacity: 0; } }
@keyframes backdrop-dismiss { to { opacity: 0; } }
@media (forced-colors: active) {
  input:focus, select:focus { outline: 2px solid Highlight; }
  input:not([type="checkbox"]):not(:disabled) { cursor: text; caret-color: CanvasText; }
  .nav-button[aria-current], .tabs button[aria-pressed="true"] { border: 1px solid Highlight; }
}
