:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --line: #e4e8f0;
  --line-strong: #d5dbe7;
  --text: #172033;
  --muted: #687387;
  --blue: #315bd7;
  --blue-dark: #2449b8;
  --blue-soft: #eef3ff;
  --green: #168765;
  --amber: #a86008;
  --amber-soft: #fff7e8;
  --red: #d33d55;
  --shadow: 0 18px 45px rgba(28, 40, 68, .08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); line-height: 1.7; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }

.brand { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 800; font-style: italic; letter-spacing: .08em; }
.brand-mark { display: grid; width: 33px; height: 27px; place-items: center; border-radius: 9px; color: #fff; background: var(--blue); font-size: 13px; font-style: normal; letter-spacing: -.05em; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 20% 10%, #e8efff 0, transparent 36%), radial-gradient(circle at 85% 80%, #e4f8ef 0, transparent 32%), #f7f8fb; }
.login-card { width: min(440px, 100%); padding: 38px; border: 1px solid rgba(213, 219, 231, .8); border-radius: 24px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); }
.login-card .brand { margin-bottom: 38px; }
.login-card h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.03em; }
.login-tabs { display: flex; gap: 6px; margin: 26px 0 20px; padding: 4px; border-radius: 11px; background: #f0f2f6; }
.tab { flex: 1; padding: 9px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.tab.is-active { color: var(--text); background: #fff; box-shadow: 0 2px 8px rgba(28, 40, 68, .08); font-weight: 700; }
.login-form { display: grid; gap: 16px; }
.login-form label, .field { display: grid; gap: 7px; color: #3c4659; font-size: 13px; font-weight: 700; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.form-status { min-height: 20px; margin: 14px 0 0; color: var(--red); font-size: 13px; }

input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; color: var(--text); background: #fff; transition: border .16s, box-shadow .16s; }
input, select { height: 42px; padding: 0 12px; }
textarea { resize: vertical; min-height: 88px; padding: 11px 12px; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 91, 215, .12); }

.primary-button, .secondary-button, .ghost-button, .danger-button, .icon-button { min-height: 38px; border-radius: 9px; padding: 0 14px; border: 1px solid transparent; font-weight: 700; transition: transform .12s, background .15s, opacity .15s; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .58; }
.primary-button { color: #fff; background: var(--blue); }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); }
.secondary-button, .ghost-button { border-color: var(--line); color: #3e4a60; background: #fff; }
.secondary-button:hover:not(:disabled), .ghost-button:hover:not(:disabled) { background: #f7f8fb; }
.danger-button { border-color: #f2ccd3; color: var(--red); background: #fff8f9; }
.icon-button { width: 36px; padding: 0; color: #fff; background: var(--blue); font-size: 22px; line-height: 1; }
.wide { width: 100%; min-height: 44px; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }

.workspace { min-height: 100vh; }
.topbar { position: sticky; z-index: 20; top: 0; height: 66px; display: flex; align-items: center; gap: 24px; padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); }
.topbar-title { display: flex; align-items: baseline; gap: 9px; padding-left: 24px; border-left: 1px solid var(--line); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-pill, .security-pill { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #536078; background: #fafbfc; font-size: 12px; }
.security-pill { border-color: #cfe9df; color: #19765c; background: #effaf6; font-weight: 700; }

.workspace-body { display: grid; grid-template-columns: 92px 310px minmax(0, 1fr); max-width: 1920px; min-height: calc(100vh - 66px); margin: 0 auto; }
.workspace-body.library-mode { grid-template-columns: 92px minmax(0, 1fr); }
.primary-sidebar, .secondary-sidebar { position: sticky; top: 66px; height: calc(100vh - 66px); overflow: auto; border-right: 1px solid var(--line); }
.primary-sidebar { z-index: 3; padding: 20px 10px; background: #f1f4fa; }
.primary-navigation { display: grid; gap: 10px; }
.primary-nav-button { width: 100%; min-height: 74px; display: grid; place-items: center; gap: 7px; padding: 9px 5px; border: 1px solid transparent; border-radius: 13px; color: #647087; background: transparent; font-size: 11px; font-weight: 750; }
.primary-nav-button:hover { color: var(--text); background: #e9edf5; }
.primary-nav-button.is-active { border-color: #c7d4fa; color: var(--blue); background: #fff; box-shadow: 0 7px 22px rgba(49, 91, 215, .09); }
.primary-nav-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #647087; background: #e2e7f0; font-size: 13px; font-weight: 800; }
.primary-nav-button.is-active .primary-nav-icon { color: #fff; background: var(--blue); }
.secondary-sidebar { z-index: 2; padding: 24px 18px 40px; background: #f8f9fc; }
.secondary-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.secondary-heading h2 { margin: 0; font-size: 19px; }
.add-customer-button { width: 100%; margin: 19px 0 17px; }
.screenshot-import-button { width: 100%; margin: -7px 0 17px; border-color: #c7d4fa; color: var(--blue); background: #f5f7ff; }
.sidebar-search { display: grid; gap: 6px; margin-bottom: 11px; color: #687387; font-size: 11px; font-weight: 700; }
.sidebar-search input, .sidebar-search select { height: 38px; }
.customer-list { display: grid; gap: 8px; }
.customer-item { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; text-align: left; color: var(--text); background: #fff; }
.customer-item:hover { border-color: #bcc8e9; }
.customer-item.is-active { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(49, 91, 215, .08); }
.customer-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-card-badges, .customer-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.customer-card-badges { margin-top: 8px; }
.customer-badges { margin-top: 10px; }
.customer-badge { padding: 4px 7px; border-radius: 999px; color: #58657c; background: #eef1f6; font-size: 10px; font-weight: 700; }
.customer-badge.status { color: #23765f; background: #eaf8f3; }
.customer-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.sidebar-empty { padding: 40px 12px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.7; }

.main-content { min-width: 0; padding: 30px clamp(18px, 3vw, 44px) 70px; }
.library-content { grid-column: 2 / -1; }
.workspace-empty { min-height: calc(100vh - 160px); display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); text-align: center; }
.workspace-empty-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 17px; color: var(--blue); background: var(--blue-soft); font-size: 20px; font-weight: 800; }
.workspace-empty h1, .workspace-empty p { margin: 0; }
.workspace-empty h1 { color: var(--text); font-size: 24px; }
.workspace-empty p { margin-bottom: 8px; font-size: 13px; }
.page-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin: 0 auto 22px; max-width: 1220px; }
.page-heading h1 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.page-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.panel { max-width: 1220px; margin: 0 auto 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); box-shadow: 0 5px 20px rgba(28, 40, 68, .035); }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 22px; }
.field.compact { max-width: 520px; }
.customer-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.customer-profile-form .full, .manual-listing-form .full { grid-column: 1 / -1; }
.inquiry-panel-body { display: grid; gap: 14px; }
.inquiry-panel-body > .muted { margin: 0; font-size: 12px; }
.inquiry-history { display: grid; gap: 9px; }
.inquiry-item { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; }
.inquiry-item > strong { font-size: 13px; }
.inquiry-item > small { color: var(--muted); }
.inquiry-answers { margin-top: 4px; color: var(--blue); font-size: 12px; }
.inquiry-answers summary { cursor: pointer; font-weight: 700; }
.inquiry-answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 17px; margin-top: 11px; }
.inquiry-answer-grid p { display: grid; gap: 2px; margin: 0; padding: 8px; border-radius: 7px; background: #f6f8fc; }
.inquiry-answer-grid span { color: var(--muted); font-size: 11px; }
.inquiry-answer-grid strong { color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.tertiary-tabs { max-width: 1220px; display: flex; gap: 6px; margin: -7px auto 18px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #edf0f6; }
.tertiary-tab { min-height: 39px; padding: 0 17px; border: 0; border-radius: 9px; color: #667287; background: transparent; font-size: 13px; font-weight: 750; }
.tertiary-tab.is-active { color: var(--blue); background: #fff; box-shadow: 0 3px 10px rgba(28, 40, 68, .08); }
.tertiary-tab span { display: inline-grid; min-width: 20px; height: 19px; margin-left: 4px; place-items: center; border-radius: 999px; color: inherit; background: var(--blue-soft); font-size: 10px; }
.recommendation-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 17px 22px 22px; }
.recommendation-history-panel > .empty-state { margin: 0 22px 22px; }
.recommendation-item { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #fff; text-align: left; }
.recommendation-item:hover { border-color: #bdc9e8; }
.recommendation-item.is-active { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(49, 91, 215, .08); }
.recommendation-item-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.recommendation-item h3 { overflow: hidden; margin: 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.recommendation-item-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.recommendation-state { flex: none; padding: 4px 7px; border-radius: 999px; color: #8c650f; background: #fff4d7; font-size: 10px; font-weight: 800; }
.recommendation-state.published { color: var(--green); background: #eaf8f3; }
.link-entry { margin-top: 20px; padding: 17px; border: 1px solid #cfdafb; border-radius: 13px; background: var(--blue-soft); }
.link-entry label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; color: #274da5; font-size: 13px; }
.link-entry label span { color: #6f7fa8; font-size: 11px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 10px; }
#listing-url::placeholder { color: #aeb7c7; opacity: 1; }
.library-pick-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 15px 17px; border: 1px solid #d9e0ee; border-radius: 13px; background: #f8f9fc; }
.library-pick-row div { display: grid; gap: 5px; }
.library-pick-row strong { font-size: 13px; }
.library-pick-row span { color: var(--muted); font-size: 11px; }
.quality-banner { margin-top: 16px; padding: 13px 15px; border: 1px solid #f1d39f; border-radius: 11px; color: var(--amber); background: var(--amber-soft); font-size: 12px; line-height: 1.65; }
.listing-list { display: grid; gap: 13px; margin-top: 18px; }
.listing-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.listing-card.has-validation-error { border-color: #e94e65; box-shadow: 0 0 0 3px rgba(233, 78, 101, .1); }
.listing-thumb { position: relative; min-height: 128px; background: #edf0f5; }
.listing-thumb img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; }
.listing-index { position: absolute; top: 9px; left: 9px; padding: 4px 7px; border-radius: 7px; color: #fff; background: rgba(18, 27, 45, .72); font-size: 11px; font-weight: 800; }
.listing-content { min-width: 0; padding: 14px 15px; }
.listing-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.listing-title { min-width: 0; }
.listing-title h3 { overflow: hidden; margin: 0; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.listing-title p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.listing-validation-badge { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; color: #b62f47; background: #fff0f3; font-size: 12px; font-weight: 700; }
.listing-actions { display: flex; gap: 5px; }
.listing-actions button { width: 31px; height: 31px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: #526077; background: #fff; }
.listing-actions .remove { color: var(--red); }
.reason-field { display: grid; gap: 6px; margin-top: 12px; color: #566176; font-size: 11px; font-weight: 700; }
.reason-field textarea { min-height: 64px; font-size: 13px; }
.empty-state { display: grid; place-items: center; gap: 6px; min-height: 150px; margin-top: 18px; border: 1px dashed var(--line-strong); border-radius: 13px; color: var(--muted); font-size: 12px; }
.empty-state strong { color: #4b566c; font-size: 14px; }

.report-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.report-form .full { grid-column: 1 / -1; }
.check-field { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 10px; color: var(--amber); background: var(--amber-soft); font-size: 13px; }
.check-field input { width: 17px; height: 17px; }
.publish-row { display: flex; align-items: center; gap: 13px; }
.publish-row p { margin: 0; color: var(--muted); font-size: 12px; }
.publish-button { min-height: 44px; }

.report-list { display: grid; gap: 10px; padding: 18px 22px 22px; }
.report-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.report-card-main { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.report-card h3 { margin: 0; font-size: 14px; }
.report-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.status { padding: 4px 8px; border-radius: 999px; color: var(--green); background: #eaf8f3; font-size: 11px; font-weight: 700; }
.status.revoked, .status.expired { color: #8a6470; background: #f4eef0; }
.report-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.feedback-list { display: grid; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.feedback-item { padding: 10px; border-radius: 9px; color: #4c586e; background: #f7f9fc; font-size: 12px; line-height: 1.6; }

.library-content { width: 100%; }
.library-add-form { margin-top: 0; }
.manual-listing-details { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 14px; }
.manual-listing-details summary { color: var(--blue); cursor: pointer; font-size: 13px; font-weight: 750; }
.manual-listing-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 17px; }
.manual-listing-form input[type="file"] { height: auto; padding: 9px; }
.manual-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.manual-actions span { color: var(--muted); font-size: 12px; }
.library-panel-head { display: grid; gap: 14px; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.library-category-row { display: flex; align-items: baseline; gap: 14px; }
.library-category-row > span { flex: 0 0 56px; color: var(--muted); font-size: 12px; }
.library-category-options { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.library-category-button { padding: 6px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #59657a; font-size: 12px; cursor: pointer; }
.library-category-button:hover { background: #f1f4fa; }
.library-category-button[aria-pressed="true"] { color: var(--blue); border-color: #d4dffc; background: var(--blue-soft); font-weight: 700; }
.library-category-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.library-check-progress { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.library-listing-invalid, .library-listing-error { margin: 7px 0 0; font-size: 11px; line-height: 1.5; }
.library-listing-invalid { color: var(--red); }
.library-listing-error { color: var(--amber); }
.count-badge { display: inline-grid; min-width: 25px; height: 22px; margin-left: 5px; place-items: center; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 11px; vertical-align: 2px; }
.library-search { display: grid; min-width: min(340px, 100%); gap: 5px; color: #59657a; font-size: 11px; font-weight: 700; }
.library-search input { height: 38px; }
.library-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; }
.library-filters > label:not(.library-search) { display: grid; min-width: 118px; gap: 5px; color: #59657a; font-size: 11px; font-weight: 700; }
.library-filters select { height: 38px; }
.picker-filters { padding: 0 22px 14px; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.library-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.library-card-thumb { min-height: 132px; background: #edf0f5; }
.library-card-thumb img { width: 100%; height: 100%; min-height: 132px; object-fit: cover; }
.library-card-body { min-width: 0; display: flex; flex-direction: column; padding: 13px; }
.library-card h3 { overflow: hidden; margin: 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.library-card-meta { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.library-card-id { overflow: hidden; margin: 5px 0 0; color: #8993a5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.library-room-picker { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.library-room-picker select { width: auto; min-width: 108px; height: 30px; padding: 0 7px; font-size: 11px; }
.library-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 11px; }
.library-card-actions button { min-height: 31px; padding: 0 10px; font-size: 11px; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(20, 29, 48, .46); backdrop-filter: blur(4px); }
.modal-card { width: min(780px, 100%); max-height: min(760px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(20, 29, 48, .24); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 21px 22px 15px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; color: #69758a; background: #fff; font-size: 23px; line-height: 1; }
.picker-search { margin: 0 22px 14px; }
.picker-list { min-height: 120px; display: grid; gap: 9px; overflow: auto; padding: 0 22px 18px; }
.picker-item { display: grid; grid-template-columns: auto 76px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.picker-item:hover { border-color: #bdc9e8; background: #fafbfe; }
.picker-item.is-selected { border-color: var(--blue); background: var(--blue-soft); }
.picker-item input { width: 18px; height: 18px; }
.picker-item img { width: 76px; height: 58px; border-radius: 8px; object-fit: cover; background: #edf0f5; }
.picker-item h3 { overflow: hidden; margin: 0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.picker-item p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-card > .empty-state { margin: 0 22px 18px; }
.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; border-top: 1px solid var(--line); background: #fafbfc; }
.modal-actions > span { color: var(--muted); font-size: 12px; }

.lead-ocr-card { width: min(820px, 100%); }
.lead-ocr-card .modal-head p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.lead-ocr-body { display: grid; gap: 15px; overflow: auto; padding: 0 22px 20px; }
.lead-ocr-body > .field { max-width: 260px; }
.lead-ocr-dropzone { display: grid; min-height: 132px; place-content: center; justify-items: center; gap: 8px; padding: 24px; border: 1px dashed #aebde9; border-radius: 14px; color: #3657aa; background: #f5f7ff; text-align: center; cursor: pointer; }
.lead-ocr-dropzone:hover, .lead-ocr-dropzone.is-dragging { border-color: var(--blue); background: #edf2ff; }
.lead-ocr-dropzone span { max-width: 560px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lead-ocr-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.lead-ocr-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lead-ocr-preview:empty { display: none; }
.lead-ocr-preview-item { position: relative; min-height: 110px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #edf0f5; }
.lead-ocr-preview-item img { width: 100%; height: 130px; object-fit: cover; }
.lead-ocr-preview-item span { position: absolute; right: 7px; bottom: 7px; max-width: calc(100% - 14px); overflow: hidden; padding: 4px 7px; border-radius: 6px; color: #fff; background: rgba(18, 27, 45, .72); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lead-ocr-result { display: grid; gap: 12px; padding: 15px; border: 1px solid #cdd8f7; border-radius: 13px; background: #f8faff; }
.lead-ocr-result > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead-ocr-result dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.lead-ocr-result dl div { padding: 9px 10px; border-radius: 8px; background: #fff; }
.lead-ocr-result dt { color: var(--muted); font-size: 10px; }
.lead-ocr-result dd { margin: 4px 0 0; color: var(--text); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.lead-ocr-warnings { display: grid; gap: 5px; color: #98610b; font-size: 12px; }
.lead-ocr-result summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 700; }
.lead-ocr-result pre { max-height: 190px; overflow: auto; margin: 10px 0 0; padding: 11px; border-radius: 8px; color: #3e4b62; background: #fff; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }

.toast { position: fixed; z-index: 100; top: 78px; left: 50%; max-width: min(520px, calc(100vw - 32px)); transform: translate(-50%, -16px); padding: 11px 15px; border: 1px solid #bdd5ca; border-radius: 11px; color: #17684f; background: #f1fbf7; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; font-size: 13px; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { border-color: #efc4cc; color: #b62f47; background: #fff5f7; }

@media (max-width: 1100px) {
  .workspace-body { grid-template-columns: 76px 270px minmax(0, 1fr); }
  .workspace-body.library-mode { grid-template-columns: 76px minmax(0, 1fr); }
  .primary-sidebar { padding-inline: 7px; }
}

@media (max-width: 900px) {
  .workspace-body, .workspace-body.library-mode { grid-template-columns: 1fr; }
  .primary-sidebar, .secondary-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .primary-sidebar { padding: 10px 14px; }
  .primary-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav-button { min-height: 48px; display: flex; justify-content: center; }
  .secondary-sidebar { padding: 16px 18px; }
  .customer-list { grid-auto-flow: column; grid-auto-columns: minmax(180px, 250px); overflow-x: auto; }
  .library-content { grid-column: auto; }
  .main-content { padding-top: 22px; }
  .report-form { grid-template-columns: 1fr 1fr; }
  .topbar-title { display: none; }
  .library-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .login-view { padding: 14px; }
  .login-card { padding: 27px 22px; }
  .topbar { height: 58px; padding: 0 14px; }
  .brand span:last-child { display: none; }
  .user-pill { display: none; }
  .page-heading, .panel-head, .report-card-main { align-items: stretch; flex-direction: column; }
  .security-pill { align-self: flex-start; }
  .panel-body, .panel-head { padding: 16px; }
  .inline-form, .listing-card, .report-form, .customer-profile-form, .manual-listing-form, .recommendation-history-list, .inquiry-answer-grid { grid-template-columns: 1fr; }
  .listing-thumb { max-height: 210px; }
  .report-form .full { grid-column: auto; }
  .publish-row { align-items: stretch; flex-direction: column; }
  .library-pick-row, .library-panel-head, .modal-actions { align-items: stretch; flex-direction: column; }
  .library-card { grid-template-columns: 105px minmax(0, 1fr); }
  .library-filters, .manual-actions { align-items: stretch; flex-direction: column; }
  .library-filters > label { width: 100%; }
  .library-card-thumb, .library-card-thumb img { min-height: 130px; }
  .modal-backdrop { padding: 10px; }
  .picker-item { grid-template-columns: auto 58px minmax(0, 1fr); gap: 8px; }
  .picker-item img { width: 58px; height: 50px; }
  .lead-ocr-preview, .lead-ocr-result dl { grid-template-columns: 1fr; }
}
#leads-view { height: calc(100vh - 66px); display: flex; flex-direction: column; overflow: hidden; padding: 22px clamp(16px, 2vw, 30px) 20px; }
#leads-view > .lead-filters, #leads-view > #lead-load-status { width: min(1760px, 100%); flex: 0 0 auto; margin-left: auto; margin-right: auto; }
.lead-filters { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.lead-filters .field:first-child { flex: 1; min-width: 220px; }
.lead-filter-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.lead-columns { width: min(1760px, 100%); flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); gap: 14px; align-items: stretch; margin: 6px auto 0; }
.lead-list-pane { min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #f8f9fc; box-shadow: 0 5px 20px rgba(28, 40, 68, .035); }
.lead-pane-heading { flex: 0 0 auto; padding: 16px 17px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.lead-pane-heading strong, .lead-pane-heading span { display: block; }
.lead-pane-heading strong { font-size: 15px; }
.lead-pane-heading span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.lead-pane-title-row { display: flex; align-items: center; gap: 8px; }
.lead-pane-title-row .count-badge { display: inline-flex; margin-top: 0; color: var(--blue); }
.lead-list-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; scrollbar-gutter: stable; overscroll-behavior: contain; }
.lead-list { display: grid; gap: 10px; }
.lead-item { display: grid; gap: 6px; width: 100%; text-align: left; padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: white; color: #172033; cursor: pointer; overflow-wrap: anywhere; transition: border-color .15s, background .15s, box-shadow .15s; }
.lead-item:hover { border-color: #bdc9e8; }
.lead-item.is-active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px rgba(49, 91, 215, .08); }
.lead-item > strong { font-size: 14px; line-height: 1.5; }
.lead-item > span { font-size: 12px; line-height: 1.55; }
.lead-pagination { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.lead-pagination .secondary-button { min-height: 34px; padding-inline: 11px; }
.lead-detail-pane.panel { width: 100%; height: 100%; min-height: 0; max-width: none; margin: 0; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.lead-detail-pane > .panel-head { position: sticky; z-index: 2; top: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.lead-detail-layout { display: grid; grid-template-columns: minmax(390px, .9fr) minmax(460px, 1.1fr); align-items: start; padding: 0; }
.lead-detail-content, .lead-media-pane { min-width: 0; padding: 20px; }
.lead-media-pane { position: sticky; top: 78px; max-height: calc(100vh - 190px); overflow-y: auto; border-left: 1px solid var(--line); background: #fafbfe; scrollbar-gutter: stable; }
.lead-detail-content > :first-child, .lead-media-pane > :first-child { margin-top: 0; }
.lead-status-row { display: grid; grid-template-columns: minmax(160px, 240px) auto; align-items: end; gap: 12px; margin-bottom: 24px; }
.lead-status-row > .muted { padding-bottom: 11px; font-size: 12px; }
.lead-source-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; background: #f8fafc; padding: 16px; border-radius: 10px; }
#lead-title, #lead-meta { overflow-wrap: anywhere; }
@media (max-width: 1050px) {
  #leads-view { height: auto; overflow: visible; padding-bottom: 70px; }
  .lead-columns { flex: none; grid-template-columns: 1fr; }
  .lead-list-pane { max-height: min(520px, 56vh); }
  .lead-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .lead-detail-pane.panel { height: auto; overflow: hidden; }
  .lead-detail-pane > .panel-head { position: static; }
}
@media (max-width: 520px) {
  .lead-status-row { grid-template-columns: 1fr; }
  .lead-status-row > .muted { padding-bottom: 0; }
}

@media (max-width: 1300px) {
  .lead-detail-layout { grid-template-columns: 1fr; }
  .lead-media-pane { position: static; max-height: none; overflow: visible; border-top: 1px solid var(--line); border-left: 0; }
}

.lead-captures { margin: 16px 0 24px; }
.lead-gallery { overflow: hidden; border: 1px solid #dce2ed; border-radius: 17px; background: #fff; box-shadow: 0 12px 30px rgba(28, 40, 68, .08); outline: 0; }
.lead-gallery:focus-visible { box-shadow: 0 0 0 3px rgba(49, 91, 215, .2), 0 12px 30px rgba(28, 40, 68, .08); }
.lead-gallery-stage { position: relative; display: grid; width: 100%; height: min(62vh, 680px); min-height: 390px; place-items: center; overflow: hidden; background: #0d0e11; touch-action: pan-y; user-select: none; }
.lead-gallery-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.lead-gallery-type, .lead-gallery-counter { position: absolute; z-index: 2; top: 16px; padding: 7px 10px; border-radius: 999px; color: #fff; background: rgba(15, 23, 42, .72); font-size: 12px; font-weight: 750; backdrop-filter: blur(8px); }
.lead-gallery-type { left: 16px; }
.lead-gallery-counter { right: 16px; }
.lead-gallery-arrow { position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #172033; background: rgba(255, 255, 255, .84); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); font-size: 30px; line-height: 1; transform: translateY(-50%); backdrop-filter: blur(8px); }
.lead-gallery-arrow:hover:not(:disabled) { background: #fff; }
.lead-gallery-arrow:disabled { cursor: default; opacity: .25; }
.lead-gallery-prev { left: 16px; }
.lead-gallery-next { right: 16px; }
.lead-gallery-status { position: absolute; z-index: 2; inset: 50% auto auto 50%; min-height: 42px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; color: #fff; background: rgba(15, 23, 42, .74); transform: translate(-50%, -50%); }
.lead-gallery-stage.is-loading .lead-gallery-status { cursor: wait; }
.lead-gallery-stage.has-error .lead-gallery-status { border-color: rgba(248, 113, 113, .72); background: rgba(127, 29, 29, .82); }
.lead-gallery-dots { position: absolute; z-index: 3; right: 72px; bottom: 18px; left: 72px; display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; }
.lead-gallery-dots::-webkit-scrollbar { display: none; }
.lead-gallery-dot { flex: 0 0 auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .45); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.lead-gallery-dot.is-active { background: #fff; transform: scale(1.22); }
@media (max-width: 620px) {
  .lead-gallery-stage { height: 55vh; min-height: 300px; }
  .lead-gallery-arrow { width: 38px; height: 38px; }
  .lead-gallery-prev { left: 10px; }
  .lead-gallery-next { right: 10px; }
  .lead-gallery-dots { right: 54px; left: 54px; }
}

/* Matching workspace */
.matching-main { overflow-y: auto; }
.matching-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.matching-heading h1 { margin: 0; font-size: 27px; }
.matching-heading p { margin: 8px 0 0; }
.matching-scope { color: var(--blue); background: var(--blue-soft); border-radius: 20px; padding: 10px 15px; font-size: 13px; white-space: nowrap; }
.matching-controls { max-width: none; padding: 20px; display: grid; gap: 14px; }
.matching-search, .matching-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.matching-pagination { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.matching-pagination > span { margin-right: auto; }
.matching-preview { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; white-space: pre-wrap; max-height: 140px; overflow-y: auto; overflow-wrap: anywhere; }
.matching-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 18px; background: var(--blue-soft); border-radius: 12px; font-size: 13px; }
.matching-summary > strong { color: var(--blue); margin-right: 5px; }
.matching-tag { padding: 6px 10px; background: white; border-radius: 7px; overflow-wrap: anywhere; }
.matching-result-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 24px 0 14px; }
.matching-result-toolbar h2 { margin: 0; font-size: 18px; }
.matching-result-toolbar .field { white-space: nowrap; display: flex; align-items: center; }
.matching-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.matching-card { width: 100%; margin: 0; padding: 22px; min-width: 0; overflow-wrap: anywhere; }
.matching-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.matching-card-head h3 { font-size: 17px; line-height: 1.6; margin: 9px 0 0; }
.matching-source { font-size: 11px; color: var(--blue); background: var(--blue-soft); padding: 4px 8px; border-radius: 5px; }
.matching-score { flex-shrink: 0; display: grid; text-align: center; color: var(--green); gap: 2px; }
.matching-score strong { font-size: 32px; line-height: 1; }
.matching-score span { font-size: 10px; white-space: nowrap; }
.matching-score.is-low { color: var(--amber); }
.matching-facts { font-weight: 600; font-size: 14px; line-height: 1.8; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.matching-reasons, .matching-gaps, .matching-unknowns { font-size: 12px; line-height: 1.8; margin: 12px 0; }
.matching-reasons > strong { color: var(--green); }
.matching-gaps > strong { color: var(--red); }
.matching-unknowns > strong { color: var(--amber); }
.matching-card ul { margin: 4px 0; padding-left: 18px; }
.matching-original { color: var(--muted); font-size: 12px; line-height: 1.8; }
.matching-original summary { cursor: pointer; }
.matching-original p { white-space: pre-wrap; }
.matching-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 11px; }
.matching-card-footer a { font-size: 12px; }
.matching-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); }
@media (max-width: 1050px) { .matching-results { grid-template-columns: 1fr; } .matching-heading { align-items: flex-start; flex-direction: column; } }
@media (max-width: 600px) { .matching-picker { grid-template-columns: 1fr; } .matching-card { padding: 16px; } .matching-result-toolbar .field { font-size: 0; } .matching-result-toolbar select { font-size: 13px; } }

/* Automatic customer–property feed */
.matching-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.matching-metric { display: grid; gap: 12px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.matching-metric span { color: var(--muted); font-size: 12px; }
.matching-metric strong { font-size: 27px; color: var(--text); }
.matching-metric:nth-child(3) strong { color: var(--blue); }
.matching-feed-toolbar { display: flex; align-items: end; gap: 16px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.matching-feed-search { flex: 1; display: flex; align-items: end; gap: 10px; }
.matching-feed-search .field { flex: 1; }
.matching-focus { display: flex; align-items: center; gap: 12px; margin: 10px 0; color: var(--blue); font-size: 13px; }
.matching-table-heading, .matching-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) 100px; gap: 26px; padding: 20px 24px; }
.matching-table-heading { font-size: 12px; color: var(--muted); padding-top: 14px; padding-bottom: 12px; }
.matching-table-heading span:last-child { text-align: center; }
.matching-feed-results { display: grid; gap: 12px; }
.matching-pair { background: white; border: 1px solid var(--line); border-radius: 12px; }
.matching-pair > div { min-width: 0; overflow-wrap: anywhere; }
.matching-pair h3 { font-size: 15px; line-height: 1.6; margin: 10px 0 5px; }
.matching-pair p { font-size: 12px; line-height: 1.8; margin: 6px 0; }
.matching-pair .matching-customer-title { color: var(--muted); }
.matching-pair-price { font-weight: 650; color: var(--blue); }
.matching-pair-analysis { font-size: 12px; line-height: 1.8; }
.matching-pair-analysis > strong { color: var(--green); }
.matching-pair-analysis ul { margin: 8px 0; padding-left: 17px; }
.matching-pair-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.matching-pair-score > strong { color: var(--green); font-size: 30px; }
.matching-pair-score > span { font-size: 10px; color: var(--muted); }
.matching-pair-score .matching-ai-tag { color: var(--green); background: #eaf7ef; padding: 5px 8px; border-radius: 5px; }
.matching-pair-score .matching-rules-tag { color: var(--amber); background: var(--amber-soft); padding: 5px 8px; border-radius: 5px; }
.matching-source-link { display: inline-block; color: var(--blue); font-size: 12px; margin-top: 10px; }
.matching-pair-unknowns { color: var(--amber); }
.matching-feed-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; }
@media (max-width: 1100px) { .matching-table-heading { display: none; } .matching-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; } .matching-pair-score { align-items: flex-end; } }
@media (max-width: 620px) { .matching-metrics { grid-template-columns: 1fr 1fr; gap: 10px; } .matching-metric { padding: 15px; } .matching-feed-toolbar { flex-wrap: wrap; } .matching-feed-search { flex-basis: 100%; } .matching-pair { padding: 18px; gap: 16px; } .matching-feed-pagination { align-items: flex-start; flex-direction: column; } }

/* Customer master list with the selected customer's complete property matches. */
.matching-split-view { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.matching-customers-panel { position: sticky; top: 82px; min-width: 0; border: 1px solid var(--line); background: white; border-radius: 14px; overflow: hidden; }
.matching-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); }
.matching-panel-heading h2, .matching-selected-heading h2 { margin: 0; font-size: 17px; }
.matching-panel-heading > span { font-size: 12px; }
.matching-customer-list { max-height: 62vh; overflow-y: auto; padding: 8px; display: grid; gap: 5px; }
.matching-customer-item { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; padding: 16px 14px; text-align: left; color: var(--text); background: white; border: 1px solid transparent; border-radius: 10px; overflow-wrap: anywhere; }
.matching-customer-item:hover { background: #f7f9fd; }
.matching-customer-item.is-active { background: var(--blue-soft); border-color: #bbcbfb; box-shadow: inset 3px 0 var(--blue); }
.matching-customer-item:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.matching-customer-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.matching-customer-item-top strong { font-size: 14px; }
.matching-customer-count { flex-shrink: 0; font-size: 11px; color: var(--blue); }
.matching-customer-snippet { font-size: 12px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.matching-customer-facts { font-size: 12px; line-height: 1.6; }
.matching-customer-item-footer { font-size: 11px; color: var(--muted); }
.matching-customers-panel .matching-feed-pagination { flex-direction: column; align-items: flex-start; margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); }
.matching-customers-panel .button-row { width: 100%; }
.matching-customers-panel .button-row button { flex: 1; font-size: 12px; }
.matching-properties-panel { min-width: 0; }
.matching-selected-customer { padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: white; margin-bottom: 14px; scroll-margin-top: 82px; overflow-wrap: anywhere; }
.matching-selected-customer:empty { display: none; }
.matching-selected-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.matching-selected-heading > span { flex-shrink: 0; }
.matching-selected-customer > p { margin: 10px 0; font-size: 13px; }
.matching-split-view .matching-pair { grid-template-columns: minmax(0, 1fr) 105px; gap: 16px 22px; padding: 22px 24px; }
.matching-split-view .matching-pair-analysis { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.matching-split-view .matching-pair-analysis ul { margin-bottom: 0; }
.matching-split-view .matching-pair-score { align-items: center; padding-top: 4px; }
.matching-split-view .matching-pair h3 { font-size: 16px; }
.matching-split-view .matching-pair-price { font-size: 14px; }
@media (min-width: 761px) {
  /* Sticky follows the window; only the list scrolls inside the full-height panel. */
  .matching-main { overflow: visible; }
  .matching-customers-panel { height: calc(100vh - 98px); height: calc(100dvh - 98px); display: flex; flex-direction: column; }
  .matching-customers-panel .matching-panel-heading,
  .matching-customers-panel .matching-feed-pagination { flex: 0 0 auto; }
  .matching-customer-list { flex: 1 1 auto; min-height: 0; max-height: none; align-content: start; scrollbar-gutter: stable; overscroll-behavior-y: contain; }
}
@media (max-width: 1100px) { .matching-split-view { grid-template-columns: 260px minmax(0, 1fr); gap: 14px; } .matching-split-view .matching-pair { padding: 18px; gap: 14px; } }
@media (max-width: 760px) {
  .matching-split-view { grid-template-columns: 1fr; }
  .matching-customers-panel { position: static; }
  .matching-customer-list { display: flex; overflow-x: auto; max-height: none; scroll-snap-type: x proximity; }
  .matching-customer-item { flex: 0 0 240px; scroll-snap-align: start; }
  .matching-customer-item.is-active { box-shadow: inset 0 3px var(--blue); }
  .matching-customers-panel .matching-feed-pagination { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .matching-customers-panel .button-row { width: auto; }
  .matching-customers-panel .button-row button { min-height: 32px; padding: 0 10px; }
  .matching-selected-customer { padding: 18px; }
  .matching-split-view .matching-pair { grid-template-columns: minmax(0, 1fr) 86px; }
}
