:root {
    --color-bg: #E3EBED;
    --color-surface: #FFFFFF;
    --color-surface-alt: #D3DDE0;
    --color-text: #000000;
    --color-muted: #455C63;
    --color-border: #A6B5BA;
    --color-danger: #BE343A;
    --font-base: 'Roboto', Arial, Helvetica, sans-serif;
    --font-weight-light: 300;
    --font-weight-bold: 700;
    --space-xs: 10px;
    --space-sm: 15px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 45px;
    --space-xxl: 60px;
    --radius-sm: 0;
    --radius-md: 0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: var(--font-weight-light);
    line-height: 1.5;
    background: var(--color-bg);
    color: var(--color-text);
}

a { color: inherit; }

.site-header {
    background: var(--color-surface);
    border-bottom: 1px dotted var(--color-border);
}

.site-header__inner,
.app-container {
    max-width: 1260px;
    width: calc(100% - 30px);
    margin: 0 auto;
}

.site-header__inner {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.site-brand__logo { width: 120px; height: auto; display: block; }

.site-brand__title,
.meta-label {
    font-size: 0.833334rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    font-weight: 400;
}

.site-nav { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }

.site-nav a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.833334rem;
    letter-spacing: 0.06em;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current='page'] {
    border-bottom-color: var(--color-border);
    outline: none;
}

.app-main { padding: var(--space-lg) 0 var(--space-xxl); }

.page-header,
.card,
.table-wrap,
.notice {
    background: var(--color-surface);
}

.page-header {
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-lg);
}

.page-header h2 {
    margin: 0 0 var(--space-xs);
    font-size: 2.2rem;
    font-weight: var(--font-weight-light);
    line-height: 1.1;
}

.page-header p,
.empty-state,
.notice {
    color: var(--color-muted);
}

.page-header p,
.empty-state { margin: 0; }

.cards-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.two-columns { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card,
.table-wrap,
.notice {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px dotted var(--color-border);
    border-left: 1px dotted var(--color-border);
}

.card h3 {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.5rem;
    font-weight: 400;
}

.card p { margin: var(--space-sm) 0 0; }

.stat-card { min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }

.stat-value { margin: 0; font-size: 2.2rem; line-height: 1; font-weight: var(--font-weight-light); }

.row-item {
    background: var(--color-surface);
    padding: var(--space-md);
    border-bottom: 1px dotted var(--color-border);
}

.button,
button,
input[type='submit'] {
    display: inline-block;
    border: 1px solid var(--color-text);
    background: var(--color-surface);
    color: var(--color-text);
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    font: inherit;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: background-color 300ms ease, color 120ms ease;
}

.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible,
input[type='submit']:hover,
input[type='submit']:focus-visible {
    background: var(--color-surface-alt);
    outline: none;
}

.button--quiet { background: var(--color-bg); }
.button--danger { border-color: var(--color-danger); color: var(--color-danger); }

input,
select,
textarea {
    width: 100%;
    font: inherit;
    color: var(--color-text);
    background: var(--color-bg);
    border: 0;
    border-top: 1px dotted var(--color-border);
    border-left: 1px dotted var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    min-height: 42px;
}

input::placeholder,
textarea::placeholder { color: var(--color-muted); }

input:focus,
select:focus,
textarea:focus { background: #E3EBED66; outline: none; }

table { width: 100%; border-collapse: collapse; font-weight: var(--font-weight-light); }

thead th {
    color: var(--color-muted);
    font-size: 0.833334rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

th,
td {
    padding: 5px 10px;
    text-align: left;
    border-bottom: 1px dotted var(--color-border);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .site-header__inner { flex-direction: column; align-items: flex-start; }
    .page-header,
    .card,
    .table-wrap,
    .notice { padding: var(--space-md); }
}

.logout-form { margin: 0; }
.nav-button {
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 6px 0;
    background: transparent;
    font-size: 0.833334rem;
    letter-spacing: 0.06em;
}
.nav-button:hover,
.nav-button:focus-visible { background: transparent; border-bottom-color: var(--color-border); }
.property-filters { display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--space-sm);align-items:end }
.property-filters label { display:grid;gap:5px;color:var(--color-muted);font-size:.833rem;text-transform:uppercase }
.property-thumb { width:88px;height:58px;object-fit:cover;display:block;margin-bottom:5px }
.pagination { display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:var(--space-sm);margin-top:var(--space-lg) }
.pagination__jump { display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-xs);margin:0;text-transform:uppercase;font-size:.833rem;letter-spacing:.04em }
.pagination__input { width:5.5rem;min-height:0;padding:7px 8px;text-align:center }
.pagination__go { min-height:0;padding:8px 12px }
.property-section { margin-top:var(--space-lg) }
.dashboard-header { display:flex;align-items:center;justify-content:space-between;gap:var(--space-lg) }
.dashboard-header .meta-label,.section-heading .meta-label { margin:0 0 5px }
.dashboard-section { margin-bottom:var(--space-xl) }
.section-heading { display:flex;align-items:end;justify-content:space-between;gap:var(--space-md);margin-bottom:var(--space-sm) }
.section-heading h2,.section-heading__title { margin:0;font-size:1.7rem;font-weight:var(--font-weight-light);line-height:1.25;color:var(--color-text) }
.section-heading__title .badge { display:inline-flex;align-items:center;vertical-align:middle;margin-left:var(--space-xs) }
.attention-section { background:#f7fafb;padding:var(--space-lg);border-top:3px solid #455c63 }
.attention-total { font-size:2rem;font-weight:300 }
.attention-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--color-border) }
.attention-item { display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:var(--space-md);padding:var(--space-md);background:#fff;text-decoration:none;min-width:0 }
.attention-item:hover,.attention-item:focus-visible { background:var(--color-bg);outline:none }
.attention-item--urgent { border-left:5px solid var(--color-danger);background:#fff7f7 }
.attention-count { font-size:2rem;line-height:1;min-width:2ch;text-align:center }
.attention-copy { display:flex;flex-direction:column;min-width:0 }.attention-copy small,.health-card small { color:var(--color-muted) }
.attention-action { font-size:.833rem;text-transform:uppercase;white-space:nowrap }
.dashboard-success { padding:var(--space-lg);background:#fff;display:flex;flex-direction:column;border-left:5px solid #668875 }
.operations-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-lg) }
.operation-card { min-width:0 }.operation-card h3 { color:var(--color-text) }
.status-list { display:grid;grid-template-columns:minmax(130px,1fr) 1.3fr;margin:var(--space-md) 0 }.status-list dt,.status-list dd { padding:6px 0;border-bottom:1px dotted var(--color-border);margin:0 }.status-list dt { color:var(--color-muted) }
.compact-table-wrap { overflow-x:auto;margin-top:var(--space-md) }.compact-table-wrap th,.compact-table-wrap td { white-space:nowrap }
.status-dot { display:inline-block;width:9px;height:9px;background:var(--color-border);margin-right:6px }.text-danger { color:var(--color-danger);font-weight:700 }
.health-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-lg) }.health-card h3 { display:flex;justify-content:space-between }.health-card ul { list-style:none;padding:0;margin:var(--space-md) 0 0 }.health-card li { display:flex;flex-direction:column;padding:8px 0;border-bottom:1px dotted var(--color-border) }.health-card--action_required { border-top:3px solid var(--color-danger) }.health-card--warnings { border-top:3px solid #b28a3b }
@media (max-width:768px) { .dashboard-header,.section-heading { align-items:flex-start;flex-direction:column }.attention-section { padding:var(--space-md) }.attention-list,.operations-grid,.health-grid { grid-template-columns:1fr }.attention-item { grid-template-columns:auto 1fr }.attention-action { grid-column:2;white-space:normal }.status-list { grid-template-columns:1fr 1fr } }

button:not(:disabled),input[type="submit"]:not(:disabled){cursor:pointer}button:disabled,input[type="submit"]:disabled,[aria-disabled="true"],.is-processing{cursor:not-allowed;opacity:.55}.submission-locked form[method="post"] button,.submission-locked form[method="post"] input[type="submit"]{pointer-events:none}
.disposition-card{border:1px solid var(--color-border)}.disposition-card__link{display:grid;grid-template-columns:1fr auto;gap:8px var(--space-lg);color:var(--color-text);text-decoration:none}.disposition-card:hover,.disposition-card:focus-within{background:var(--color-surface-alt)}.disposition-card__link:hover,.disposition-card__link:focus-visible{text-decoration:none}.disposition-card__heading{font-size:1.35rem;color:var(--color-muted)}.disposition-card__count{grid-column:2;grid-row:1/3;align-self:center;font-size:2rem;font-variant-numeric:tabular-nums}.disposition-card__copy{line-height:1.5}.disposition-card__action{grid-column:1/-1;padding-top:8px;border-top:1px dotted var(--color-border);font-size:.86rem}.disposition-card--attention{border-top:3px solid #b28a3b}.disposition-card--clear{border-top:3px solid #5e8068}
.attention-list--odd .attention-item:last-child{grid-column:1/-1}.health-grid{align-items:start}.health-card{align-self:start}
.automation-health-wrap{margin-top:var(--space-md)}.automation-health-table{width:100%;table-layout:fixed;font-size:.86rem}.automation-health-table th,.automation-health-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:9px 7px}.automation-health-table th:nth-child(1){width:16%}.automation-health-table th:nth-child(2){width:11%}.automation-health-table th:nth-child(3),.automation-health-table th:nth-child(4){width:14%}.automation-health-table th:nth-child(5){width:15%}.automation-health-table th:nth-child(6){width:20%}.automation-health-table th:nth-child(7){width:10%}.automation-health-table__time{font-size:.79rem;font-variant-numeric:tabular-nums}.automation-health-table time span{display:block}
@media(max-width:900px){.automation-health-table,.automation-health-table tbody,.automation-health-table tr,.automation-health-table td{display:block;width:100%}.automation-health-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.automation-health-table tr{margin-bottom:var(--space-md);padding:10px 12px;border:1px solid var(--color-border);background:var(--color-surface)}.automation-health-table td{display:grid;grid-template-columns:minmax(130px,40%) 1fr;gap:var(--space-sm);padding:6px 0;border:0}.automation-health-table td::before{content:attr(data-label);font-weight:700;color:var(--color-muted)}}
@media(max-width:768px){.attention-list--odd .attention-item:last-child{grid-column:auto}.disposition-card{grid-template-columns:1fr auto}}
.detail-list { display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:8px 15px }
.detail-list dt { color:var(--color-muted) }
.detail-list dd { margin:0 }
.break-word{overflow-wrap:anywhere}
.property-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px 10px;list-style:none;padding:0;margin:var(--space-md) 0 0}
.property-features li{background:var(--color-bg);border-top:1px dotted var(--color-border);border-left:1px dotted var(--color-border);padding:8px 10px;overflow-wrap:anywhere}
.property-images{margin-top:var(--space-lg);padding-top:var(--space-md);border-top:1px dotted var(--color-border)}
.property-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin-top:20px}
.property-gallery img{display:block;width:100%;height:120px;object-fit:cover}
.detail-job-list{display:grid;gap:var(--space-md);margin-top:var(--space-md)}
.detail-job{padding:var(--space-md);background:var(--color-bg);border-top:1px dotted var(--color-border);border-left:1px dotted var(--color-border);min-width:0}
.detail-job header{display:flex;justify-content:space-between;align-items:center;gap:var(--space-sm);padding-bottom:var(--space-sm);border-bottom:1px dotted var(--color-border)}
.detail-job__metadata{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:var(--space-sm) var(--space-md);margin:var(--space-md) 0 0}
.detail-job__metadata div{min-width:0}.detail-job__metadata dt{color:var(--color-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}.detail-job__metadata dd{margin:3px 0 0;overflow-wrap:anywhere}.detail-job__error{grid-column:span 2}
@media(max-width:520px){.detail-list{grid-template-columns:1fr}.detail-job__error{grid-column:auto}}
.auth-card { max-width: 520px; margin: 0 auto; }
.form-stack { display: grid; gap: var(--space-md); margin-top: var(--space-md); }
.form-stack label,
.settings-grid label { display: grid; gap: 6px; }
.form-stack span,
.settings-grid span { color: var(--color-muted); text-transform: uppercase; font-size: 0.833334rem; letter-spacing: 0.04em; }
.notice { margin-bottom: var(--space-lg); }
.notice--error { border-left-color: var(--color-danger); color: var(--color-danger); }
.analysis-uncertainty{margin-top:var(--space-sm);max-width:100%;color:var(--color-text)}.analysis-uncertainty summary{cursor:pointer;color:var(--color-muted);overflow-wrap:anywhere}.analysis-uncertainty summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}.analysis-uncertainty ul{padding-left:1.25rem;overflow-wrap:anywhere}.notice--error .analysis-uncertainty summary{color:var(--color-danger)}
.notice--success { color: var(--color-muted); }
.settings-form-card { margin-bottom: var(--space-lg); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); margin-top: var(--space-md); }
.settings-grid__full { grid-column: 1 / -1; min-width: 0; }
.workflow-mode-status { overflow-wrap: anywhere; }
.workflow-mode-status .notice { margin-bottom: var(--space-xs); }
.workflow-mode-status .muted { margin: 0; }
.checkbox-label { grid-template-columns: auto 1fr; align-items: center; }
.checkbox-label input { width: auto; min-height: auto; }
.form-actions { grid-column: 1 / -1; }
.badge--ok { background: #E7E7E7; }
.badge--warning { background: var(--color-surface-alt); }
.badge--error { color: var(--color-danger); border-color: var(--color-danger); background: var(--color-surface); }
.settings-grid,
.filters-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.checkbox-label { display: flex !important; grid-template-columns: none !important; align-items: center; gap: var(--space-xs); }
.checkbox-label input,
td input[type='checkbox'] { width: auto; min-height: 0; }
.form-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: center; margin-top: var(--space-md); }
.integration-actions form { margin: 0; }
.table-wrap--inner { padding: 0; border: 0; margin-top: var(--space-md); overflow-x: auto; }
.muted { color: var(--color-muted); font-size: .9rem; }
.lead-timestamp-text { color: var(--color-muted); font-size: .9rem; }
.badge--warning { background: var(--color-bg); }
.badge--error { color: var(--color-danger); border-color: var(--color-danger); }
.timeline h4 { margin: var(--space-xs) 0; font-weight: 400; color: var(--color-muted); }
pre { white-space: pre-wrap; max-height: 260px; overflow: auto; background: var(--color-bg); padding: var(--space-sm); }

.integration-actions {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px dotted var(--color-border);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

.integration-actions form {
    margin: 0;
}

/* Settings-only information typography and section rhythm. */
.settings-section > * { margin-block: 0; }
.settings-section > * + * { margin-top: var(--space-md); }
.settings-section > table { table-layout: fixed; }
.settings-section > table th,
.settings-section > table td { vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
.settings-section > table th { color: var(--color-muted); font-weight: 400; }
.settings-section > table tbody th:first-child { width: 34%; }
.settings-section .notice--error { color: var(--color-danger); }
.account-security details { border-top: 1px dotted var(--color-border); padding-top: var(--space-sm); }
.account-security summary { color: var(--color-muted); cursor: pointer; padding: var(--space-xs) 0; }
.account-security summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.account-security details[open] summary { margin-bottom: var(--space-md); }
.account-security__form { max-width: 560px; }

@media (max-width: 600px) {
    .settings-section > table tbody th:first-child { width: 42%; }
}

.lead-filters-card {
    margin-bottom: var(--space-lg);
}

.filters-form {
    margin-top: var(--space-md);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    align-items: end;
}

.filters-grid label {
    display: grid;
    gap: 6px;
}

.filters-grid input,
.filters-grid select {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    line-height: 20px;
    vertical-align: middle;
}

.filters-grid span,
.filters-options span {
    color: var(--color-muted);
    text-transform: uppercase;
    font-size: 0.833334rem;
    letter-spacing: 0.04em;
}

.filters-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px dotted var(--color-border);
}

.filters-actions {
    margin-top: var(--space-md);
}

.lead-bulk-form {
    margin-top: var(--space-lg);
}

.lead-bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px dotted var(--color-border);
}

.lead-result-summary {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    color: var(--color-muted);
    font-size: .9rem;
    line-height: 1.35;
    text-align: right;
}

.lead-result-summary strong { color: var(--color-text); font-weight: 500; }

.button--primary-action {
    background: var(--color-surface);
    border-color: var(--color-muted);
}

.lead-table-wrap {
    overflow-x: auto;
}

.leads-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.leads-table__col--select { width: 6%; }
.leads-table__col--client { width: 18%; }
.leads-table__col--sources { width: 7%; }
.leads-table__col--owner { width: 6%; }
.leads-table__col--organisation { width: 8%; }
.leads-table__col--update { width: 9%; }
.leads-table__col--communication { width: 9%; }
.leads-table__col--evidence { width: 16%; }
.leads-table__col--status { width: 11%; }
.leads-table__col--pipedrive { width: 6%; }
.lead-evidence-cell > * { display: block; margin-bottom: 3px; }
.lead-evidence-cell .badge { display: inline-block; }
.evidence-warning { color: var(--color-danger); font-size: .75rem; }
.evidence-summary__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin:20px 0; }
.evidence-summary__grid span { border-left:1px dotted var(--color-border); padding-left:10px; }
@media (max-width: 800px) { .evidence-summary__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.leads-table th,
.leads-table td {
    padding: 10px 6px;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.leads-table thead th {
    white-space: normal;
    line-height: 1.25;
    overflow-wrap: normal;
}

@media (max-width: 1050px) {
    .lead-result-summary { flex-basis: 100%; text-align: left; }
}

.lead-client-cell,
.lead-contact-text,
.lead-sources-cell,
.lead-source-title,
.lead-organisation-cell {
    overflow-wrap: anywhere;
}

.lead-client-name,
.lead-contact-text,
.lead-source-title,
.lead-timestamp-date,
.lead-timestamp-time {
    display: block;
}

.lead-timestamp-text {
    line-height: 1.35;
}

.lead-select-cell {
    text-align: center;
    vertical-align: middle;
}

.leads-empty-state {
    padding: var(--space-lg) 0 0;
    border-top: 1px dotted var(--color-border);
}

@media (max-width: 980px) {
    .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

.ai-analysis-actions{display:grid;grid-template-columns:minmax(240px,420px) auto;gap:var(--space-md);align-items:end;margin-top:var(--space-md)}
.ai-analysis-actions label{display:grid;gap:6px}.ai-analysis-actions label span{color:var(--color-muted);text-transform:uppercase;font-size:.833334rem;letter-spacing:.04em}
.ai-analysis-actions select,.ai-analysis-actions button{height:42px;min-height:42px}.ai-analysis-actions select{width:100%;max-width:420px}
.follow-up-section{margin:var(--space-lg) 0;padding:var(--space-lg) 0;border-top:1px dotted var(--color-border);border-bottom:1px dotted var(--color-border)}
.follow-up-section__header{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-lg)}
.follow-up-section__header h3{margin-top:0}.follow-up-section__status{margin:0;color:var(--color-muted);font-size:.833334rem;text-align:right;overflow-wrap:anywhere}
.follow-up-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-lg)}
.clean-list{padding-left:var(--space-md)}.clean-list li,.follow-up-question{padding:var(--space-xs) 0;border-bottom:1px dotted var(--color-border)}
.follow-up-question{display:grid;grid-template-columns:auto 1fr;gap:var(--space-xs);align-items:start}.follow-up-question input{width:auto;min-height:0;margin-top:12px}.follow-up-question textarea{width:100%}
.follow-up-question-form>button{margin-top:var(--space-md)}.follow-up-draft{margin-top:var(--space-lg);padding-top:var(--space-md);border-top:1px dotted var(--color-border)}
.follow-up-draft-form,.follow-up-draft-form label{display:grid;gap:6px}.follow-up-draft-form{gap:var(--space-md)}.follow-up-draft-form span{color:var(--color-muted);text-transform:uppercase;font-size:.833334rem;letter-spacing:.04em}.follow-up-draft-form textarea{min-height:280px}.draft-history{margin-top:var(--space-md)}
@media(max-width:700px){.ai-analysis-actions,.follow-up-grid{grid-template-columns:1fr}.ai-analysis-actions select,.ai-analysis-actions button{width:100%;max-width:none}.follow-up-section__header{flex-direction:column;align-items:flex-start;gap:var(--space-xs)}.follow-up-section__status{text-align:left;max-width:100%}.follow-up-question{grid-template-columns:auto minmax(0,1fr)}}

/* Property enrichment controls are scoped so global form geometry remains unchanged. */
.property-enrichment-page input[type='checkbox'],
.property-enrichment-page input[type='radio']{width:18px;height:18px;min-height:0;padding:0;margin:0;flex:0 0 auto}
.enrichment-benchmark-form{display:grid;gap:var(--space-md);margin-top:var(--space-md);justify-items:start}
.enrichment-model-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-xs) var(--space-md);width:100%}
.enrichment-model-option{display:flex;align-items:center;gap:var(--space-xs);min-width:0;cursor:pointer}
.enrichment-model-option span{overflow-wrap:anywhere}
.enrichment-model-options--readonly{margin-top:var(--space-md)}
.enrichment-replacement-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-xs);align-items:end;min-width:220px}
.enrichment-replacement-form input,.enrichment-replacement-form button,.enrichment-batch-form input,.enrichment-batch-form button{height:42px;min-height:42px}
.enrichment-comparison-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:var(--space-lg);width:100%}
.enrichment-comparison-card{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.enrichment-comparison-card p,.enrichment-comparison-card h4{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.enrichment-review-form{display:grid;gap:var(--space-sm);margin-top:auto;padding-top:var(--space-md);border-top:1px dotted var(--color-border)}
.enrichment-review-form,.enrichment-review-form label,.enrichment-review-form select,.enrichment-review-form textarea{min-width:0;max-width:100%}
.enrichment-rating-field,.enrichment-notes-field{display:grid;gap:6px}
.enrichment-rating-field>span,.enrichment-notes-field>span,.enrichment-batch-form label>span{color:var(--color-muted);text-transform:uppercase;font-size:.833334rem;letter-spacing:.04em}
.enrichment-checkbox-field{display:flex;align-items:center;gap:var(--space-xs)}
.enrichment-notes-field textarea{width:100%;min-height:110px;resize:vertical}
.enrichment-review-form button{justify-self:start}
.enrichment-batch-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-md);align-items:end;margin-top:var(--space-md)}
.enrichment-batch-form label{display:grid;gap:6px}
@media(max-width:1000px){.enrichment-model-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.enrichment-model-options,.enrichment-comparison-grid,.enrichment-replacement-form,.enrichment-batch-form{grid-template-columns:1fr}.enrichment-replacement-form{min-width:0}.enrichment-replacement-form button,.enrichment-batch-form button{width:100%}}

.reconciliation-form{display:grid;grid-template-columns:minmax(220px,360px) auto;gap:var(--space-md);align-items:end;margin-top:var(--space-md)}
.reconciliation-form label{display:grid;gap:6px}.reconciliation-form label span{color:var(--color-muted);text-transform:uppercase;font-size:.833334rem;letter-spacing:.04em}
.property-match__summary{display:grid;grid-template-columns:180px minmax(0,1fr);gap:var(--space-md);align-items:start}.property-match__thumbnail{width:180px;height:125px;object-fit:cover}.property-match__reference{font-size:1.65rem;margin:.15em 0}.property-match__links{display:flex;gap:var(--space-md);flex-wrap:wrap}.match-evidence{border-top:1px dotted var(--color-border);margin:var(--space-md) 0}.match-evidence details{padding:var(--space-xs) 0;border-bottom:1px dotted var(--color-border)}.match-evidence summary{font-weight:700;cursor:pointer}
@media(max-width:600px){.reconciliation-form,.property-match__summary{grid-template-columns:1fr}.reconciliation-form button{width:100%}.property-match__thumbnail{width:100%;height:auto;max-height:260px}}

/* Property-selection email workflow */
.property-email-builder form { margin-top: var(--space-lg); }
.selection-list-heading,.preview-heading { display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);margin-bottom:var(--space-sm) }
.selection-list-heading h4 { margin:0;font-size:1rem;font-weight:400;text-transform:uppercase;letter-spacing:.04em;color:var(--color-muted) }
.selection-list { display:grid;gap:8px }
.selection-card { display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);padding:10px 12px;background:var(--color-bg);border-left:1px dotted var(--color-border);border-top:1px dotted var(--color-border) }
.selection-card__choice { display:flex;align-items:center;gap:12px;min-width:0;cursor:pointer;flex:1 }
.selection-card__checkbox { width:16px;height:16px;min-height:0;flex:0 0 auto;padding:0 }
.selection-card__thumbnail { width:74px;height:52px;object-fit:cover;display:block;flex:0 0 auto }
.selection-card__content { display:grid;gap:2px;min-width:0 }.selection-card__content strong { font-size:1.05rem }.selection-card__links { display:flex;gap:12px;white-space:nowrap;font-size:.85rem }
.eyebrow { display:block;color:var(--color-muted);font-size:.75rem;line-height:1.4;text-transform:uppercase;letter-spacing:.05em }
.email-options { margin:var(--space-lg) 0 0;padding:var(--space-md);border:1px dotted var(--color-border);display:grid;gap:var(--space-md) }.email-options legend { padding:0 8px;color:var(--color-muted);font-size:1rem;text-transform:uppercase;letter-spacing:.04em }.email-options label,.email-content-form>label,.property-note-editor label { display:grid;gap:6px }.email-options__language { max-width:240px }.field-help { display:block;color:var(--color-muted);font-size:.82rem;margin-top:5px }.queue-action { display:flex;justify-content:flex-end;align-items:center;gap:var(--space-md);margin-top:var(--space-md);padding-top:var(--space-md);border-top:1px dotted var(--color-border) }
.draft-metadata .detail-list { font-size:.9rem }.draft-metadata .badge { margin:2px;text-decoration:none }.email-content-form { display:grid;gap:var(--space-md) }.property-note-editor { padding:var(--space-md);background:var(--color-bg);border-left:1px dotted var(--color-border);border-top:1px dotted var(--color-border) }.property-note-editor__context { display:flex;align-items:center;gap:var(--space-md);margin-bottom:var(--space-sm) }.property-note-editor__context img { width:110px;height:76px;object-fit:cover }.property-note-editor__context div { display:grid;gap:3px }.property-note-editor__context a { font-size:.85rem }.preview-heading h3 { margin:0 }.email-preview-viewport { margin-top:var(--space-md);padding:var(--space-lg);background:#d3dde0;overflow:auto }.email-preview { max-width:640px;margin:0 auto;background:#fff;box-shadow:0 2px 12px #455c6333 }.draft-actions__groups { display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-lg);flex-wrap:wrap }.draft-actions form { margin:0 }.draft-actions form .field-help { max-width:250px }.draft-actions .form-actions { margin-top:var(--space-md) }
@media(max-width:700px){.selection-card{align-items:flex-start;flex-direction:column}.selection-card__links{padding-left:28px}.selection-card__thumbnail{display:none}.queue-action{align-items:flex-start;flex-direction:column}.email-preview-viewport{padding:8px}.property-note-editor__context img{width:80px;height:60px}}
.delivery-controls{display:grid;gap:var(--space-lg);margin-top:var(--space-lg)}.delivery-control-form{display:grid;gap:var(--space-xs)}.delivery-control-row{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:var(--space-sm);align-items:end}.delivery-control-row label{margin:0}.delivery-control-row button{min-height:42px}.delivery-state{display:inline-block;padding:4px 10px;border-radius:999px}.delivery-state--success{color:#176b3a;background:#e3f5e9}.delivery-state--urgent,.delivery-state--blocked{color:var(--color-danger);background:#fff0ef}.delivery-state--neutral{background:var(--color-bg)}.delivery-uncertain{border-width:2px}
@media(max-width:600px){.delivery-control-row{grid-template-columns:1fr}.delivery-control-row button{width:100%}}
.enrichment-attention__table-wrap{max-width:100%;overflow-x:auto}.compact-table-wrap .enrichment-attention__table{table-layout:fixed}.compact-table-wrap .enrichment-attention__table th,.compact-table-wrap .enrichment-attention__table td{white-space:normal;overflow-wrap:anywhere;word-break:break-word;vertical-align:top}.enrichment-attention__property{width:12%}.enrichment-attention__category{width:19%}.enrichment-attention__model{width:22%}.enrichment-attention__action{width:47%}.enrichment-attention__table td:nth-child(2),.enrichment-attention__table td:nth-child(3){font-size:.9rem;line-height:1.4}
.enrichment-retry-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-xs);align-items:end;min-width:0}.enrichment-retry-form label,.enrichment-retry-form input{min-width:0}.enrichment-retry-form label{margin:0}.enrichment-retry-form input{width:100%}.enrichment-retry-form button{min-height:42px;padding-left:12px;padding-right:12px;white-space:normal}
@media(max-width:850px){.enrichment-retry-form{grid-template-columns:1fr}.enrichment-retry-form button{width:100%}}

/* Pipedrive lead-safety settings */
.pipedrive-safety-summary{color:var(--color-muted);max-width:760px}
.pipedrive-safety-hard-rules{display:flex;flex-wrap:wrap;gap:var(--space-xs);margin-top:var(--space-md)}
.pipedrive-safety-rule{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;background:var(--color-bg);border:1px solid var(--color-border);color:var(--color-muted);font-size:.85rem;font-weight:400}
.pipedrive-safety-rule>span{color:var(--color-text);font-weight:700}
.pipedrive-safety .pipedrive-safety-caption{margin-top:7px;color:var(--color-muted);font-size:.8rem}
.pipedrive-safety-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-md);margin-top:var(--space-lg)}
.pipedrive-safety-options{min-width:0;padding:var(--space-md);background:#E3EBED66;border-top:1px dotted var(--color-border);border-left:1px dotted var(--color-border)}
.pipedrive-safety-options h4{margin:0 0 var(--space-sm);color:var(--color-muted);font-size:1rem;font-weight:700}
.pipedrive-safety-option-list{max-height:310px;overflow-y:auto;padding-right:5px}
.pipedrive-safety-pipeline+ .pipedrive-safety-pipeline{margin-top:var(--space-sm);padding-top:var(--space-sm);border-top:1px dotted var(--color-border)}
.pipedrive-safety-pipeline h5{margin:0 0 5px;color:var(--color-muted);font-size:.75rem;font-weight:400;text-transform:uppercase;letter-spacing:.05em}
.pipedrive-safety-checkbox{display:flex;align-items:flex-start;gap:9px;padding:6px 4px;border-bottom:1px dotted #A6B5BA80;cursor:pointer}
.pipedrive-safety-checkbox input{width:auto;min-height:0;margin:4px 0 0;accent-color:var(--color-muted)}
.pipedrive-safety-checkbox span{overflow-wrap:anywhere}
.pipedrive-safety-empty{padding:var(--space-sm);background:var(--color-surface);border-left:1px dotted var(--color-border)}
.pipedrive-safety-empty p{margin:0;color:var(--color-muted);font-size:.9rem}
.pipedrive-safety-empty p+p{margin-top:5px;font-size:.8rem}
.pipedrive-safety .pipedrive-safety-warning{padding:10px 12px;margin-top:var(--space-md);color:#754f00;background:#fff8e5;border-left:2px solid #b98400;font-size:.9rem}
.pipedrive-safety-status{display:flex;flex-wrap:wrap;gap:var(--space-sm) var(--space-lg);margin-top:var(--space-md);padding-top:var(--space-md);border-top:1px dotted var(--color-border)}
.pipedrive-safety-status>div{display:flex;align-items:center;gap:var(--space-xs);color:var(--color-muted);font-size:.85rem}
.pipedrive-safety-actions{display:flex;align-items:center;gap:var(--space-sm);margin-top:var(--space-md)}
.pipedrive-safety-actions form{margin:0}
.pipedrive-safety-save{background:var(--color-text);color:var(--color-surface)}
.pipedrive-safety-save:hover,.pipedrive-safety-save:focus-visible{background:var(--color-muted);color:var(--color-surface)}
@media(max-width:700px){.pipedrive-safety-grid{grid-template-columns:1fr}.pipedrive-safety-actions{align-items:stretch;flex-direction:column}.pipedrive-safety-actions form,.pipedrive-safety-actions button{width:100%}}

/* Exact property-selection refresh */
.selection-refresh{overflow:hidden}.selection-refresh__heading,.selection-refresh__progress-header,.selection-refresh__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md)}.selection-refresh__heading h3,.selection-refresh__progress-header h4{margin:2px 0 0}.selection-refresh__scope{margin:var(--space-md) 0;padding:10px 12px}.selection-refresh__summary{padding:12px 0;margin:0;border-top:1px dotted var(--color-border);border-bottom:1px dotted var(--color-border)}.selection-refresh__summary span{color:var(--color-danger)}.selection-refresh__context{margin:var(--space-md) 0}.selection-refresh__cards{display:grid;gap:10px;margin-top:var(--space-md)}.selection-refresh-card{display:grid;grid-template-columns:32px 92px minmax(180px,1fr) minmax(230px,auto);align-items:center;gap:var(--space-md);padding:12px;border:1px solid var(--color-border);border-left:3px solid var(--color-muted);background:var(--color-bg)}.selection-refresh-card--refresh,.selection-refresh-card--reenrichment{border-left-color:#92723a}.selection-refresh-card--unavailable{border-left-color:var(--color-danger)}.selection-refresh-card__position{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--color-border);border-radius:50%;font-size:.82rem;font-weight:700}.selection-refresh-card__thumbnail{width:92px;height:66px;object-fit:cover;background:var(--color-surface-alt)}.selection-refresh-card__thumbnail--empty{display:grid;place-items:center;color:var(--color-muted);font-size:.75rem;letter-spacing:.08em}.selection-refresh-card__details{display:grid;gap:3px;min-width:0}.selection-refresh-card__details>strong{font-size:1.05rem}.selection-refresh-card__details>span{color:var(--color-muted);overflow-wrap:anywhere}.selection-refresh-card__state{display:grid;justify-items:end;gap:8px;text-align:right}.selection-refresh-badge{white-space:normal;line-height:1.25}.selection-refresh-badge--unavailable{color:var(--color-danger);border-color:var(--color-danger)}.selection-refresh-badge--refresh,.selection-refresh-badge--reenrichment{background:var(--color-surface-alt)}.selection-refresh-card__locked{font-size:.82rem;color:var(--color-muted)}.selection-refresh-card__choice{display:flex;align-items:center;gap:7px;font-size:.88rem;cursor:pointer}.selection-refresh-card__choice input,.selection-refresh__confirmation input{width:16px;height:16px;min-height:0;margin:0;padding:0;flex:0 0 16px}.selection-refresh__confirmation{margin-top:var(--space-md);padding:12px;border:1px solid var(--color-danger)}.selection-refresh__footer{margin:var(--space-lg) calc(var(--space-lg) * -1) calc(var(--space-lg) * -1);padding:var(--space-md) var(--space-lg);border-top:1px solid var(--color-border);background:var(--color-surface-alt)}.selection-refresh__footer p{margin:0;color:var(--color-muted);font-size:.86rem;max-width:520px}.selection-refresh__footer button{white-space:nowrap}.selection-refresh__progress{display:grid;gap:var(--space-md);padding:var(--space-md);border:1px solid var(--color-border);background:var(--color-bg)}.selection-refresh__progress-header p{margin:4px 0 0;color:var(--color-muted)}.selection-refresh__item-progress{display:grid;gap:6px}.selection-refresh__item-progress>div{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);padding:8px 0;border-bottom:1px dotted var(--color-border)}
@media(max-width:900px){.selection-refresh-card{grid-template-columns:32px 74px 1fr}.selection-refresh-card__thumbnail{width:74px;height:56px}.selection-refresh-card__state{grid-column:2/4;display:flex;align-items:center;justify-content:space-between;text-align:left;justify-items:initial}.selection-refresh__footer{align-items:flex-start;flex-direction:column}.selection-refresh__footer button{white-space:normal}}
@media(max-width:600px){.selection-refresh__heading,.selection-refresh__progress-header{align-items:flex-start;flex-direction:column}.selection-refresh-card{grid-template-columns:28px 1fr;gap:10px}.selection-refresh-card__thumbnail{grid-column:1/3;width:100%;height:140px}.selection-refresh-card__details{grid-column:1/3}.selection-refresh-card__state{grid-column:1/3;align-items:flex-start;flex-direction:column}.selection-refresh__footer{margin-left:calc(var(--space-md) * -1);margin-right:calc(var(--space-md) * -1);margin-bottom:calc(var(--space-md) * -1);padding:var(--space-md)}.selection-refresh__footer button{width:100%}.selection-refresh__item-progress>div{align-items:flex-start;flex-direction:column}}

/* In-platform help */
.help-header{align-items:flex-start}.page-help-link{color:var(--color-muted);font-size:.9rem;white-space:nowrap}.help-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-lg);margin:var(--space-lg) 0}.help-path{display:block;color:inherit;text-decoration:none;border:1px dotted var(--color-border)}.help-path:hover,.help-path:focus-visible{background:#fff}.help-path h2{margin:var(--space-xs) 0}.help-path>span:last-child{color:var(--color-muted);text-decoration:underline}.help-toc{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-xs) var(--space-lg);margin-bottom:var(--space-lg)}.help-toc h2,.help-toc p{width:100%}.help-section{margin-bottom:var(--space-lg);scroll-margin-top:20px}.help-section h2:first-child,.help-section .meta-label+h2{margin-top:0}.help-section h3{margin-top:var(--space-lg)}.help-steps li{margin-bottom:var(--space-xs)}.help-glossary{display:grid;grid-template-columns:minmax(180px,280px) 1fr;gap:0 var(--space-lg)}.help-glossary dt,.help-glossary dd{padding:var(--space-xs) 0;border-bottom:1px dotted var(--color-border)}.help-glossary dt{font-weight:700}.help-glossary dd{margin:0}.operations-appendix{border-left:3px solid var(--color-muted)}
.context-help-host{position:relative}.context-help-host>.context-help,.context-help-host>.section-heading-with-help>.context-help,.context-help-host>.section-heading>.context-help{position:absolute;z-index:30;top:var(--space-sm);right:var(--space-sm)}.context-help-host>.section-heading-with-help,.context-help-host>.section-heading,.context-help-host>.disposition-card__link{padding-right:calc(30px + var(--space-md))}.context-help-host--nested{min-height:30px;padding-right:calc(30px + var(--space-md))}.context-help{display:inline-flex;flex:0 0 auto;vertical-align:middle}.context-help__button{display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:1px solid var(--color-muted);border-radius:50%;background:var(--color-surface);color:var(--color-muted);font-size:.82rem;font-weight:700;text-transform:none}.context-help__button:hover,.context-help__button:focus-visible{background:var(--color-surface-alt);outline:2px solid var(--color-text);outline-offset:2px}.context-help__panel{position:absolute;z-index:40;top:calc(100% + 6px);right:0;display:grid;gap:8px;width:min(360px,calc(100vw - 40px));padding:var(--space-md);background:var(--color-surface);border:1px dotted var(--color-border);box-shadow:0 5px 16px #455c6326;color:var(--color-text);font-size:.9rem;font-weight:300;line-height:1.45;text-align:left;text-transform:none}.context-help__panel[hidden]{display:none}.context-help__panel strong{color:var(--color-muted);font-size:1rem}.context-help__panel a{color:var(--color-text)}.section-heading-with-help{display:flex;align-items:flex-start;gap:var(--space-md)}
@media screen {
    .help-page .page-header h1 { margin:0 0 var(--space-xs);color:var(--color-text);font-size:2.2rem;font-weight:var(--font-weight-light);line-height:1.1 }
    .help-page h2 { margin:var(--space-lg) 0 var(--space-sm);color:var(--color-muted);font-size:1.5rem;font-weight:400;line-height:1.25 }
    .help-page h3 { margin:var(--space-md) 0 var(--space-xs);color:var(--color-text);font-size:1.1rem;font-weight:400;line-height:1.35 }
    .help-page p { font-weight:var(--font-weight-light) }
    .help-situations { display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-sm) }
    .help-situation { min-width:0;padding:var(--space-sm) var(--space-md);background:#e3ebed66;border-left:1px dotted var(--color-border) }
    .help-page .help-situation h3 { margin:0 0 var(--space-xs);color:var(--color-text);font-size:1.05rem;font-weight:var(--font-weight-bold);line-height:1.4 }
    .help-page .help-situation p { margin:0;color:var(--color-muted);font-size:1rem;font-weight:var(--font-weight-light);line-height:1.55 }
    .help-page .help-path h2 { margin:var(--space-xs) 0 }
    .help-page .help-toc h2 { margin:0 }
}
@media(max-width:700px){.context-help-host>.context-help,.context-help-host>.section-heading-with-help>.context-help,.context-help-host>.section-heading>.context-help{top:var(--space-xs);right:var(--space-xs)}.help-paths{grid-template-columns:1fr}.help-glossary{grid-template-columns:1fr}.help-glossary dt{border-bottom:0;padding-bottom:0}.help-header{gap:var(--space-sm)}.page-help-link{white-space:normal}}
@media print{.context-help-host>.section-heading-with-help,.context-help-host>.section-heading,.context-help-host>.disposition-card__link,.context-help-host--nested{min-height:0;padding-right:0}.site-header,.context-help,.page-help-link,.help-toc,.interactive-only,form,button{display:none!important}.app-main{padding:0;background:#fff}.app-container{width:100%;max-width:none}.card{box-shadow:none;border:1px solid #ccc;break-inside:avoid}.help-section{break-inside:avoid;page-break-inside:avoid}.help-situation{background:transparent;border:0;break-inside:avoid;page-break-inside:avoid}.help-situation h3{break-after:avoid;page-break-after:avoid}.help-paths{display:block}.help-path{margin-bottom:20px}a{color:#000;text-decoration:none}}

/* Email-review inbox: scoped so global cards, links and headings are unchanged. */
.email-review__summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-md);margin-bottom:var(--space-lg)}
.email-review__summary-card{display:grid;grid-template-columns:1fr auto;gap:8px var(--space-lg);padding:var(--space-lg) var(--space-xl);border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);text-decoration:none}
.email-review__summary-card:hover,.email-review__summary-card:focus-visible{background:var(--color-surface-alt);text-decoration:none}
.email-review__count{grid-column:2;grid-row:1/3;align-self:center;font-size:2rem;line-height:1;font-variant-numeric:tabular-nums;color:var(--color-text)}
.email-review__label{grid-column:1;grid-row:1;font-size:1.35rem;font-weight:var(--font-weight-light);line-height:1.25;color:var(--color-muted)}
.email-review__summary-card small{grid-column:1;grid-row:2;color:var(--color-text);font-size:1rem;font-weight:var(--font-weight-light);line-height:1.5}.email-review__action{grid-column:1/-1;padding-top:8px;border-top:1px dotted var(--color-border);font-size:.86rem;font-weight:var(--font-weight-light);color:var(--color-text)}
.email-review__list{margin-top:var(--space-lg);padding-top:var(--space-lg);border-top:1px solid var(--color-border)}.email-review__rows{display:grid;gap:var(--space-sm)}
.email-review__row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-lg);padding:var(--space-md);border:1px solid var(--color-border);background:var(--color-surface)}
.email-review__row h4{margin:0 0 .35rem;color:var(--color-text);font-size:1rem;font-weight:var(--font-weight-bold)}.email-review__meta{display:flex;flex-wrap:wrap;gap:.35rem 1rem;color:var(--color-muted);font-size:.833334rem;font-weight:var(--font-weight-light);line-height:1.4}.email-review__row-action{display:flex;align-items:center;gap:var(--space-sm);flex-shrink:0}
@media(max-width:760px){.email-review__summary{grid-template-columns:1fr}.email-review__row,.email-review__row-action{align-items:flex-start;flex-direction:column}.email-review__row-action{width:100%}.email-review__row-action .button{width:100%;text-align:center}}
/* Task 046E: review rows follow the established lightweight dashboard rhythm. */
.email-review__row h4{font-weight:var(--font-weight-light);font-size:1.05rem}.email-review__row:focus-within{border-color:var(--color-text)}
.property-selection-header__lead-details{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-xs) var(--space-md);min-width:0;margin-top:var(--space-sm);margin-bottom:var(--space-md);color:var(--color-muted);font-weight:var(--font-weight-light)}
.property-selection-header__lead-name{font-weight:400}.property-selection-header__contact{min-width:0;overflow-wrap:anywhere;word-break:break-word}.property-selection-header__status{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-xs) var(--space-sm);margin:0 0 var(--space-sm);color:var(--color-muted)}.property-selection-header__status .badge{flex:0 0 auto}

.pipedrive-label-colour{display:inline-block;width:.75rem;height:.75rem;border-radius:50%;border:1px solid rgba(0,0,0,.18);flex:0 0 auto}
