.crm-page,
.crm-auth-shell,
.crm-record-dialog,
.crm-scope-bar,
.crm-context-notice {
    --crm-ink: #20343c;
    --crm-muted: #53666f;
    --crm-border: #dce4e7;
    --crm-accent: #174f60;
    color: var(--crm-ink);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.crm-page {
    width: min(72rem, calc(100% - 3rem));
    margin: 2.5rem auto 4rem;
}

.crm-page-narrow { max-width: 44rem; }
.crm-page *, .crm-auth-shell * { box-sizing: border-box; }
.crm-page h1, .crm-auth-panel h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
.crm-page h2 { margin: 0; font-size: 1.4rem; font-weight: 650; line-height: 1.3; }
.crm-page a, .crm-auth-shell a { color: var(--crm-accent); text-underline-offset: .2em; }
.crm-page a:hover, .crm-auth-shell a:hover { text-decoration: underline; }
.crm-page :focus-visible, .crm-auth-shell :focus-visible { outline: 3px solid #357c96; outline-offset: 3px; }
.crm-eyebrow { margin: 0 0 .65rem; color: var(--crm-muted); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.crm-intro { margin: .8rem 0 0; color: var(--crm-muted); max-width: 44rem; }
.crm-page-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.crm-header-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.crm-card, .crm-auth-panel { border: 1px solid var(--crm-border); border-radius: 14px; background: #fff; padding: 2rem; }
.crm-auth-shell { min-height: calc(100dvh - 7rem); display: flex; justify-content: center; align-items: center; padding: 2.5rem 1rem; background: radial-gradient(ellipse at top, #edf4f5 0, transparent 65%); }
.crm-auth-panel { width: min(100%, 27rem); box-shadow: 0 15px 50px rgb(23 55 65 / 7%); }
.crm-auth-panel-wide { width: min(100%, 39rem); }
.crm-auth-panel .crm-form { margin-top: 2rem; }
.crm-auth-footer { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--crm-border); text-align: center; font-size: .92rem; }
.crm-auth-footer p { margin: 0 0 .35rem; color: var(--crm-muted); }
.crm-auth-footer a { font-weight: 600; }

.crm-form { display: grid; gap: 1.25rem; }
.crm-field { display: grid; align-content: start; gap: .45rem; min-width: 0; }
.crm-field label { font-size: .9rem; font-weight: 600; }
.crm-field input { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid #b9c8ce; border-radius: 7px; background: #fff; color: var(--crm-ink); font: inherit; box-shadow: none; }
.crm-field input:hover { border-color: #839da8; }
.crm-field input:focus { border-color: var(--crm-accent); }
.crm-field-hint { margin: 0; font-size: .83rem; color: var(--crm-muted); }
.crm-optional { margin-left: .3rem; color: var(--crm-muted); font-size: .76rem; font-weight: 400; }
.crm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.crm-fieldset { display: grid; gap: 1.2rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.crm-fieldset + .crm-fieldset { padding-top: 1.25rem; border-top: 1px solid var(--crm-border); }
.crm-fieldset legend { padding: 0 0 1rem; font-size: 1.05rem; font-weight: 650; }
.crm-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--crm-border); }

.crm-page .crm-button, .crm-auth-shell .crm-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .7rem 1.15rem; border: 1px solid var(--crm-accent); border-radius: 7px; background: var(--crm-accent); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; text-align: center; white-space: normal; }
.crm-page .crm-button:hover, .crm-auth-shell .crm-button:hover { background: #103e4c; border-color: #103e4c; text-decoration: none; }
.crm-page .crm-button-secondary, .crm-auth-shell .crm-button-secondary { background: #fff; border-color: #b9c8ce; color: var(--crm-accent); }
.crm-page .crm-button-secondary:hover, .crm-auth-shell .crm-button-secondary:hover { background: #f0f6f7; border-color: var(--crm-accent); }
.crm-button-wide { width: 100%; }
.crm-page .crm-button-small { min-height: 38px; padding: .5rem .85rem; font-size: .83rem; }
.crm-page .crm-button:disabled, .crm-auth-shell .crm-button:disabled { opacity: .65; cursor: wait; }
.crm-message { margin: 0; padding: .8rem 1rem; border: 1px solid #ecc9c3; border-radius: 7px; background: #fff4f1; color: #8a2f23; font-size: .9rem; overflow-wrap: anywhere; }
.crm-message[hidden] { display: none; }

.crm-company-summary { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; margin-bottom: 1.5rem; border: 1px solid #cbdcdf; border-radius: 14px; background: #f0f6f6; }
.crm-company-summary h2 { overflow-wrap: anywhere; }
.crm-company-summary p:last-child { margin: .6rem 0 0; color: var(--crm-muted); }
.crm-company-summary > a { flex-shrink: 0; }
.crm-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.crm-page .crm-shortcut { display: grid; align-content: start; gap: .7rem; padding: 1.5rem; border: 1px solid var(--crm-border); border-radius: 12px; color: var(--crm-muted); text-decoration: none; }
.crm-page .crm-shortcut:hover { border-color: #96b0ba; background: #fafcfc; text-decoration: none; }
.crm-shortcut-heading { display: flex; justify-content: space-between; gap: 1rem; color: var(--crm-ink); font-size: 1.08rem; font-weight: 650; }
.crm-shortcut-heading > span { color: var(--crm-accent); }

.crm-table-scroll { overflow-x: auto; border: 1px solid var(--crm-border); border-radius: 12px; background: #fff; }
.crm-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.crm-table thead { background: #f5f8f9; }
.crm-table th, .crm-table td { padding: 1.1rem 1.2rem; vertical-align: middle; border-bottom: 1px solid var(--crm-border); }
.crm-table thead th { font-size: .75rem; letter-spacing: .035em; color: var(--crm-muted); font-weight: 650; white-space: nowrap; }
.crm-table tbody th { min-width: 13rem; font-weight: 600; }
.crm-table tbody tr:last-child > * { border-bottom: 0; }
.crm-row-current { background: #f7fbfb; }
.crm-company-name { overflow-wrap: anywhere; }
.crm-company-legal-name { display: block; margin-top: .25rem; font-size: .8rem; color: var(--crm-muted); font-weight: 400; }
.crm-badge { display: inline-flex; padding: .22rem .65rem; border-radius: 20px; background: #edf1f3; color: #4c626b; font-size: .75rem; white-space: nowrap; }
.crm-badge-active { background: #e1f1e9; color: #1e6145; }
.crm-table-actions-heading { text-align: right; }
.crm-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .65rem 1rem; min-width: 12rem; }
.crm-row-actions form { margin: 0; }
.crm-row-actions .crm-message { margin-top: .6rem; max-width: 20rem; text-align: left; }
.crm-text-link { font-size: .84rem; white-space: nowrap; }
.crm-empty-state { padding: 3rem 1.5rem; border: 1px dashed #b9c8ce; border-radius: 12px; text-align: center; }
.crm-empty-state p { color: var(--crm-muted); }
.crm-details { margin: 0; display: grid; gap: 1.5rem; }
.crm-details dt { margin-bottom: .4rem; color: var(--crm-muted); font-size: .82rem; }
.crm-details dd { margin: 0; overflow-wrap: anywhere; }
.crm-back-link { margin-top: 1.5rem; font-size: .9rem; }
.crm-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Host styling for framework components; existing CRM tables keep their own styles. */
.crm-framework,
.crm-record-dialog {
    --theme-c: var(--crm-ink);
    --theme-bg: #fff;
    --theme-bg-a: #f4f8f9;
    --theme-border: var(--crm-border);
    --theme-primaryc: var(--crm-accent);
    --theme-button-c: var(--crm-accent);
    --theme-button-bg: #fff;
    --theme-button-bg-a: #edf4f6;
    --theme-button-iconinvert: 0;
    --theme-button-default-c: #fff;
    --theme-button-default-bg: var(--crm-accent);
    --theme-button-default-bg-a: #103e4c;
    --theme-button-default-iconinvert: 1;
}

.crm-framework .WA_ActionBar { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 0; line-height: 1.4; }
.crm-framework .crm-page-header > .WA_ActionBar { justify-content: flex-end; }
.crm-framework button.WA_Button,
.crm-framework a.WA_Button,
.crm-record-dialog button.WA_Button {
    min-height: 44px;
    padding: .7rem 1rem;
    border: 1px solid #b9c8ce;
    border-radius: 8px;
    background-color: #fff;
    color: var(--crm-accent);
    box-shadow: none;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: normal;
}
.crm-framework button.WA_Button:hover,
.crm-framework a.WA_Button:hover,
.crm-record-dialog button.WA_Button:hover { border-color: var(--crm-accent); background-color: #edf4f6; }
.crm-framework button.WA_Button.Default,
.crm-framework a.WA_Button.Default,
.crm-record-dialog button.WA_Button.Default { border-color: var(--crm-accent); background-color: var(--crm-accent); color: #fff; }
.crm-framework button.WA_Button.Default:hover,
.crm-framework a.WA_Button.Default:hover,
.crm-record-dialog button.WA_Button.Default:hover { background-color: #103e4c; border-color: #103e4c; }
.crm-framework button.WA_Button.WA_Link,
.crm-framework button.WA_Button.WA_Menu { padding-right: 1.9rem; background-position: right .65rem center; }
.crm-framework button.WA_Button:disabled,
.crm-record-dialog button.WA_Button:disabled { opacity: .55; cursor: default; }
.crm-framework #crm-company-new,
.crm-framework #crm-contact-new,
.crm-framework #crm-company-edit { border-color: var(--crm-accent); background-color: var(--crm-accent); color: #fff; }
.crm-framework #crm-company-new:hover,
.crm-framework #crm-contact-new:hover,
.crm-framework #crm-company-edit:hover { border-color: #103e4c; background-color: #103e4c; }
.crm-framework #crm-company-new.WA_Link,
.crm-framework #crm-contact-new.WA_Link,
.crm-framework #crm-company-edit.WA_Link { background-image: var(--theme-computed-button-default-icon-rightlink); }
.crm-framework #crm-company-new img.WA_BlackIcon,
.crm-framework #crm-contact-new img.WA_BlackIcon,
.crm-framework #crm-company-edit img.WA_BlackIcon { filter: invert(1); }
.crm-framework :focus-visible,
.crm-record-dialog :focus-visible { outline: 3px solid #357c96; outline-offset: 3px; }

/* Global scope remains distinct from the company breadcrumb and its section tabs. */
.crm-scope-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .75rem; padding: .65rem max(1rem, calc((100% - 72rem) / 2)); border-bottom: 1px solid var(--crm-border); background: #f4f8f9; color: var(--crm-ink); font-size: .85rem; }
.crm-changing-context .crm-context-content { visibility: hidden; }
#crm-scope-message { flex-basis: 100%; margin: 0; color: #9a3a22; text-align: right; }
.crm-scope-bar select { min-height: 40px; min-width: 8rem; padding: .4rem .75rem; border: 1px solid #b9c8ce; border-radius: 7px; background: #fff; color: var(--crm-accent); font: inherit; font-weight: 600; }
.crm-scope-bar select:focus-visible { outline: 2px solid var(--crm-accent); outline-offset: 2px; }
.crm-context-notice { position: fixed; inset: 0; z-index: 2147483647; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; background: #f4f8f9; color: var(--crm-ink); text-align: center; }
.crm-context-notice p { max-width: 34rem; line-height: 1.6; }
.crm-context-notice button { min-height: 44px; padding: .7rem 1.2rem; border: 1px solid var(--crm-accent); border-radius: 8px; background: var(--crm-accent); color: white; font: inherit; cursor: pointer; }
.crm-context-notice button:focus-visible { outline: 3px solid #357c96; outline-offset: 3px; }

/* Section navigation reuses AddTab; its appearance is scoped to the CRM company pages. */
.crm-framework .crm-company-tabs { margin-bottom: 1.5rem; border-bottom: 1px solid var(--crm-border); }
.crm-framework .crm-company-tabs > .WA_ActionBar { display: block; }
.crm-framework .crm-company-tabs .WA_TabSelector { display: flex; gap: 1.25rem; max-width: 100%; margin: 0; padding: .25rem .2rem 0; border: 0; overflow-x: auto; scrollbar-width: thin; }
.crm-framework .crm-company-tabs .WA_TabSelector > button.WA_Button {
    flex: 0 0 auto;
    margin: 0;
    padding: .8rem .35rem;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--crm-muted);
    opacity: 1;
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
}
.crm-framework .crm-company-tabs .WA_TabSelector > button.WA_Button:hover { background: #f4f8f9; color: var(--crm-accent); }
.crm-framework .crm-company-tabs .WA_TabSelector > button.WA_Button.Default { border-bottom-color: var(--crm-accent); color: var(--crm-accent); }
.crm-framework .crm-company-tabs .WA_TabSelector > button.WA_Button:focus-visible { outline-offset: -3px; }
.crm-framework .crm-section-actions { margin-bottom: 1rem; }
.crm-framework .crm-section-actions > .WA_ActionBar { justify-content: flex-end; }

.crm-framework .crm-art-region { min-width: 0; }
.crm-framework .crm-text-link { position: relative; }
.crm-framework .crm-art-region .WA_RecordTableContainer { margin-top: 0; }
/* ART puts the table and both pagers inside this node; scrolling preserves every control. */
.crm-framework .crm-art-region div[id$="_table"] { max-width: 100%; overflow-x: auto; padding: .25rem .2rem .5rem; scrollbar-width: thin; }
.crm-framework .WA_RecordTable {
    width: 100%;
    min-width: 44rem;
    margin: 0;
    border: 1px solid var(--crm-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--crm-ink);
    font-size: .9rem;
    line-height: 1.5;
}
.crm-framework .WA_RecordTable > tbody > tr > th,
.crm-framework .WA_RecordTable > thead > tr > th { padding: .95rem 1.1rem; border: 0; border-bottom: 1px solid var(--crm-border); background: #f3f7f8; color: var(--crm-muted); font-size: .75rem; font-weight: 700; letter-spacing: .025em; vertical-align: middle; white-space: nowrap; }
.crm-framework .WA_RecordTable > tbody > tr:first-child > th:first-child,
.crm-framework .WA_RecordTable > thead > tr:first-child > th:first-child { border-top-left-radius: 11px; }
.crm-framework .WA_RecordTable > tbody > tr:first-child > th:last-child,
.crm-framework .WA_RecordTable > thead > tr:first-child > th:last-child { border-top-right-radius: 11px; }
.crm-framework .WA_RecordTable > tbody > tr > td { padding: 1.05rem 1.1rem; border: 0; border-bottom: 1px solid var(--crm-border); max-width: 25rem; color: var(--crm-ink); vertical-align: middle; white-space: normal; overflow-wrap: anywhere; }
.crm-framework .WA_RecordTable > tbody > tr:last-child > td { border-bottom: 0; }
.crm-framework .WA_RecordTable > tbody > tr:last-child > td:first-child { border-bottom-left-radius: 11px; }
.crm-framework .WA_RecordTable > tbody > tr:last-child > td:last-child { border-bottom-right-radius: 11px; }
.crm-framework .WA_RecordTable > tbody > tr.WA_Button:hover > td { background-color: #f0f6f7; }
.crm-framework .WA_RecordTable > tbody > tr.WA_Button.WA_NoHover:hover > td { background-color: #fff; }
.crm-framework .WA_RecordTable > tbody > tr > td.WA_Button { width: 3.75rem; min-width: 3.75rem; padding: .85rem; box-shadow: none; white-space: nowrap; }
.crm-framework .WA_RecordTable > tbody > tr > td.WA_Button:hover,
.crm-framework .WA_RecordTable > tbody > tr.WA_Button:hover > td.WA_Button:hover { background-color: #e2eef1; }
.crm-framework .WA_RecordTable > tbody > tr > th.WA_Button:hover { background-color: #e8f0f2; color: var(--crm-accent); }
.crm-framework .WA_RecordTable .WA_InlineBlackIcon { width: 1.1rem; height: 1.1rem; }
.crm-framework.crm-list-page .WA_RecordTable > tbody > tr > th:last-child,
.crm-framework.crm-list-page .WA_RecordTable > thead > tr > th:last-child { text-align: right; }
.crm-framework .WA_RecordTable > tbody > tr.crm-row-current > td { background-color: #f3f9f7; }
.crm-framework.crm-list-page .WA_RecordTable > tbody > tr:hover > td { background-color: #f0f6f7; }
.crm-framework .WA_RecordTable .crm-company-name,
.crm-framework .WA_RecordTable .crm-contact-name { font-weight: 600; }
.crm-framework .WA_RecordTable > tbody > tr > td.crm-art-actions { width: 1%; min-width: 14.5rem; }
.crm-framework.crm-contacts-list .WA_RecordTable { min-width: 54rem; }
.crm-framework.crm-contacts-list .WA_RecordTable > tbody > tr > td.crm-art-actions { min-width: 8rem; }
.crm-framework.crm-activity-list .WA_RecordTable { min-width: 52rem; }
.crm-framework.crm-activity-list .WA_RecordTable > tbody > tr > td.crm-art-actions { min-width: 6rem; }
.crm-framework.crm-activity-list .WA_RecordTable .crm-activity-note { display: block; min-width: 12rem; white-space: pre-wrap; }
.crm-note-body { margin-top: 1.5rem; overflow-wrap: anywhere; line-height: 1.6; }
.crm-note-body > div { white-space: pre-wrap; }

/* Read-only knowledge review keeps original text literal and within the page on small screens. */
.crm-knowledge-notice { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--crm-border); border-radius: 10px; background: #f4f8f9; color: var(--crm-ink); line-height: 1.6; }
.crm-knowledge-page .crm-message { margin-bottom: 1rem; }
.crm-knowledge-page h1, .crm-knowledge-page h2, .crm-knowledge-page h3 { overflow-wrap: anywhere; }
.crm-knowledge-page h2 { margin: 2rem 0 1rem; font-size: 1.35rem; }
.crm-knowledge-page h3 { margin: 0 0 .65rem; font-size: 1.05rem; }
.crm-framework.crm-knowledge-page .crm-record-card { max-width: none; }
.crm-knowledge-text { margin-top: 1.75rem; line-height: 1.65; overflow-wrap: anywhere; }
.crm-knowledge-text > div { white-space: pre-wrap; }
.crm-knowledge-evidence .crm-card, .crm-knowledge-original { margin-bottom: 1rem; }
.crm-knowledge-original { margin-top: 1.5rem; }
.crm-knowledge-page summary { cursor: pointer; color: var(--crm-accent); font-weight: 600; }
.crm-knowledge-page pre { margin: 1rem 0 0; padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.6 ui-monospace, Consolas, monospace; background: #f4f8f9; border-radius: 8px; }
.crm-knowledge-evidence p { overflow-wrap: anywhere; }
.crm-knowledge-page .WA_RecordTable > tbody > tr > td:first-child { white-space: nowrap; }
.crm-framework .crm-art-actions .crm-row-actions { min-width: 0; flex-wrap: nowrap; gap: .75rem 1rem; }
.crm-framework .crm-art-actions .crm-art-select { min-height: 40px; padding: .55rem .85rem; font-size: .83rem; white-space: nowrap; }

.crm-framework .WA_Pagination { margin: .9rem 0; color: var(--crm-muted); font-size: .82rem; line-height: 1.4; }
.crm-framework .WA_Pagination .Link { min-width: 2.4rem; min-height: 2.4rem; padding: .6rem; margin: .15rem .25rem .15rem 0; border: 1px solid var(--crm-border); border-radius: 7px; background: #fff; color: var(--crm-accent); box-shadow: none; }
.crm-framework .WA_Pagination .Link:hover { border-color: #9eb7c0; background: #edf4f6; }
.crm-framework .WA_Pagination .Link.Active { border-color: var(--crm-accent); background: var(--crm-accent); color: #fff; }
.crm-framework .WA_Pagination .Total { margin: 0 0 .5rem; }
.crm-framework .WA_Pagination .Total > span { opacity: 1; }
.crm-framework .WA_Pagination span.Selected { padding: .6rem; }
.crm-framework .WA_RecordTableFilters { color: var(--crm-muted); }

.crm-framework .crm-record-card { max-width: 58rem; padding: 2rem; }
.crm-framework .crm-record-card > h2 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .65rem; color: var(--crm-muted); font-size: .86rem; font-weight: 600; }
.crm-framework .crm-record-card > h2 > .WA_Button { min-height: 36px; padding: .45rem .75rem; font-size: .8rem; }
.crm-framework .crm-record-card > div[id^="WA_Field_"][id$="_value"] { margin-bottom: 1.75rem; color: var(--crm-ink); font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
/* SecondaryFieldsHeader uses colspan=999; fixed layout would allocate hundreds of empty columns. */
.crm-framework .WA_FieldTable { width: 100%; margin: 0; border-collapse: collapse; table-layout: auto; }
.crm-framework .WA_FieldTable > tbody > tr > th,
.crm-framework .WA_FieldTable > thead > tr > th { padding: 1.4rem 0 .8rem; border-bottom: 1px solid var(--crm-border); color: var(--crm-accent); font-size: .9rem; font-weight: 700; }
.crm-framework .WA_FieldTable > tbody > tr:first-child > th { padding-top: 0; }
.crm-framework .WA_FieldTable > tbody > tr > td { max-width: none; padding: 1rem .85rem; border-bottom: 1px solid #edf1f3; vertical-align: top; overflow-wrap: anywhere; }
.crm-framework .WA_FieldTable > tbody > tr > td:first-child { width: 32%; padding-left: 0; color: var(--crm-muted); font-size: .85rem; text-align: left; opacity: 1; }
.crm-framework .WA_FieldTable > tbody > tr > td:last-child { padding-right: 0; color: var(--crm-ink); }
.crm-framework .WA_FieldTable > tbody > tr:last-child > td { border-bottom: 0; }
.crm-framework .WA_FieldTable > tbody > tr.WA_Button:hover > td { background-color: #f4f8f9; }
.crm-framework #crm-contact-name_value,
.crm-framework #crm-company-name_value { font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 600; line-height: 1.3; }

/* GenerateFormDialog exposes the outer three-row table to the host. Only its inline frame rules need priority. */
.crm-record-dialog { width: min(38rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem); border: 1px solid var(--crm-border); border-radius: 14px; border-collapse: separate !important; border-spacing: 0; box-shadow: 0 18px 60px rgb(23 55 65 / 18%) !important; }
.crm-record-dialog * { box-sizing: border-box; }
.crm-record-dialog > tbody > tr > td > .WA_NavBar { background-color: #f5f8f9 !important; color: var(--crm-ink); border-color: var(--crm-border) !important; }
.crm-record-dialog > tbody > tr:first-child > td > .WA_NavBar { border-radius: 13px 13px 0 0; }
.crm-record-dialog > tbody > tr:first-child > td > .WA_NavBar > div { padding: 1.15rem 1.5rem !important; font-size: 1.15rem !important; font-weight: 700; }
.crm-record-dialog > tbody > tr:nth-child(2) > td > div { display: block !important; padding: 1.4rem 1.5rem !important; }
.crm-company-create-dialog > tbody > tr:nth-child(2) > td > div { max-height: 65vh; overflow-y: auto; }
.crm-record-dialog > tbody > tr:nth-child(2) > td > div > table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 .6rem; }
.crm-record-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr > td { vertical-align: middle; font-size: .9rem; }
.crm-record-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr > td:first-child { width: 34%; padding-right: 1rem !important; text-align: left !important; color: var(--crm-muted); }
.crm-record-dialog input[type="text"],
.crm-record-dialog input[type="email"],
.crm-record-dialog input[type="url"],
.crm-record-dialog input[type="tel"],
.crm-record-dialog input[type="password"],
.crm-record-dialog textarea,
.crm-record-dialog select { width: 100%; max-width: 100%; min-width: 0; min-height: 44px; padding: .65rem .8rem; border: 1px solid #b9c8ce; border-radius: 7px; background: #fff; color: var(--crm-ink); font: inherit; }
.crm-record-dialog > tbody > tr:last-child > td { border-top-color: var(--crm-border) !important; }
.crm-record-dialog > tbody > tr:last-child > td > .WA_NavBar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; height: auto !important; min-height: 4rem; padding: 1rem 1.5rem; border-radius: 0 0 13px 13px; }
.crm-record-dialog > tbody > tr:last-child > td > .WA_NavBar > button { margin: 0 !important; }
.crm-dialog-company { margin: 0 0 .5rem; color: var(--crm-accent); font-weight: 600; overflow-wrap: anywhere; }

/* Stack the note dialog's generated fields; keep the other record dialogs unchanged. */
.crm-record-dialog table:has(#crm-create-body) { display: block; border-spacing: 0; }
.crm-record-dialog table:has(#crm-create-body) > tbody { display: grid; gap: 1.1rem; }
.crm-record-dialog table:has(#crm-create-body) > tbody > tr { display: grid; gap: .45rem; min-width: 0; }
/* Override the framework's inline cell padding and the shared label-column width. */
.crm-record-dialog table:has(#crm-create-body) > tbody > tr > td { display: block; width: auto !important; min-width: 0; padding: 0 !important; text-align: left !important; }
.crm-record-dialog table:has(#crm-create-body) label { display: block; font-weight: 600; }
.crm-record-dialog #crm-create-body { display: block; min-height: 10rem; resize: vertical; }

/* Need editors keep each datum and its provenance together, using the framework dialog. */
.crm-need-dialog > tbody > tr:nth-child(2) > td > div { max-height: 65vh; overflow-y: auto; }
.crm-need-dialog > tbody > tr:nth-child(2) > td > div > table { display: block; }
.crm-need-dialog > tbody > tr:nth-child(2) > td > div > table > tbody { display: grid; gap: .85rem; }
.crm-need-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr { display: grid; gap: .35rem; min-width: 0; }
.crm-need-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr > td { display: block; width: auto !important; min-width: 0; padding: 0 !important; text-align: left !important; }
.crm-need-dialog label { font-weight: 600; }
.crm-need-dialog input[type="date"], .crm-need-dialog input[type="number"] { width: 100%; min-width: 0; min-height: 44px; padding: .65rem .8rem; border: 1px solid #b9c8ce; border-radius: 7px; color: var(--crm-ink); background: #fff; font: inherit; }
.crm-need-dialog textarea { resize: vertical; }
.crm-framework #crm-need-subject_value { font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 600; line-height: 1.3; }
.crm-need-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-need-provenance { display: block; margin-top: .6rem; font-size: .78rem; font-weight: 400; line-height: 1.5; color: var(--crm-muted); }
.crm-need-hint { max-width: 58rem; color: var(--crm-muted); font-size: .85rem; }
.crm-need-history { margin-top: 2rem; min-width: 0; }
.crm-need-history > summary { padding: .85rem 0; color: var(--crm-accent); font-weight: 600; cursor: pointer; }
.crm-need-history .crm-art-region { margin-top: 1rem; }

@media (max-width: 600px) {
    .crm-framework.crm-need-details .WA_FieldTable > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid #edf1f3; }
    .crm-framework.crm-need-details .WA_FieldTable > tbody > tr > td { display: block; width: auto; padding: .5rem 0 1rem; border: 0; }
    .crm-framework.crm-need-details .WA_FieldTable > tbody > tr > td:first-child { width: auto; padding: 1rem 0 0; }
    .crm-framework.crm-need-details .WA_FieldTable > tbody > tr > th { text-align: left; }
}

/* Internal Academy consultation uses the shared company tabs and CRM-owned presentation. */
.crm-consultation > .crm-card { margin-top: 1.25rem; }
.crm-consultation h2 { margin-top: 0; font-size: 1.3rem; }
.crm-consultation :is(h2, .crm-message) { scroll-margin-top: 5rem; }
.crm-consultation h3 { font-size: 1rem; }
.crm-consultation .crm-muted { color: var(--crm-muted); font-size: .9rem; }
.crm-consultation form { display: grid; gap: .65rem; margin-top: 1.25rem; }
.crm-consultation form > label { font-weight: 600; }
.crm-consultation form > label:not(:first-child) { margin-top: .75rem; }
.crm-consultation select, .crm-consultation textarea, .crm-consultation input:is([type="number"], [type="date"]) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: .75rem; border: 1px solid #b9c8ce; border-radius: 7px; color: var(--crm-ink); background: #fff; font: inherit; }
.crm-consultation fieldset { min-width: 0; margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--crm-border); border-radius: 8px; }
.crm-consultation fieldset legend { padding: 0 .5rem; font-weight: 650; }
.crm-consultation textarea { resize: vertical; }
.crm-consultation :is(select, textarea, button, summary, input):focus-visible { outline: 3px solid #357f98; outline-offset: 3px; }
.crm-consultation-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.crm-consultation-piece { padding: .9rem 0; border-top: 1px solid var(--crm-border); }
.crm-consultation summary { cursor: pointer; font-weight: 600; }
.crm-consultation :is(p, li, summary, a, blockquote) { overflow-wrap: anywhere; }
.crm-consultation blockquote { white-space: pre-wrap; margin: .6rem 0 1.25rem; padding: .75rem; border-left: 3px solid var(--crm-border); background: #f5f8f9; font-size: .9rem; }
.crm-consultation ul { padding-left: 1.3rem; }
.crm-consultation li { margin-bottom: .55rem; }
.crm-consultation-generate { border-top: 1px solid var(--crm-border); padding-top: 1.25rem; margin-top: 1.25rem; }
.crm-consultation-confirm { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.crm-consultation-confirm input { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .1rem; }
.crm-consultation-notice { padding: .85rem; background: #f1f7f8; border-radius: 7px; }
.crm-consultation-error { color: #a52820; }
.crm-consultation .crm-message:not(.crm-consultation-error) { color: var(--crm-accent); border-color: var(--crm-border); background: #f1f7f8; }
.crm-consultation #crm-consultation-answer-body > p { white-space: pre-wrap; }
.crm-consultation .crm-consultation-citations { margin: -.2rem 0 1.5rem; color: var(--crm-muted); font-size: .88rem; }
.crm-consultation .crm-consultation-citations li { margin-bottom: .35rem; }
.crm-consultation-limits { margin-top: 1.75rem; border: 1px solid var(--crm-border); border-radius: 9px; background: #f7f9fa; }
.crm-consultation-limits > summary { padding: 1rem; color: var(--crm-accent); border-radius: 9px; }
.crm-consultation-limits > summary:hover { background: #edf3f5; }
.crm-consultation-limits[open] > summary { border-bottom: 1px solid var(--crm-border); border-radius: 9px 9px 0 0; }
.crm-consultation-limits-body { padding: 0 1rem 1rem; color: var(--crm-muted); font-size: .9rem; }
.crm-consultation-limits-body > p { margin: 1rem 0; }
.crm-consultation-limits-body > ul { margin-bottom: 0; }
.crm-consultation .crm-button:disabled { cursor: not-allowed; }
.crm-consultation-need-data { margin: 1rem 0; }
.crm-consultation-need-data > div { padding: .85rem 0; border-bottom: 1px solid #edf1f3; }
.crm-consultation-need-data dt { font-weight: 600; margin-bottom: .4rem; }
.crm-consultation-need-data dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-consultation-need-data small { display: block; color: #526a75; margin-top: .4rem; }
.crm-consultation-recorded-need li { margin-bottom: .7rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-consultation-recorded-need small { display: block; color: #526a75; margin-top: .2rem; }
.crm-consultation-save-actions { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--crm-border); }
.crm-consultation-save-actions p { margin-bottom: 0; }
.crm-consultation-saved-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-consultation-saved-evidence { scroll-margin-top: 4rem; }
.crm-consultation-saved-evidence:target { background: #f1f7f8; border-radius: 7px; }

/* Business reading first; exact sources and technical metadata remain available on demand. */
.crm-consultation-disclosure { margin: 1rem 0; border: 1px solid var(--crm-border); border-radius: 9px; background: #fff; }
.crm-consultation-disclosure > summary { padding: 1rem; color: var(--crm-accent); border-radius: 9px; }
.crm-consultation-disclosure > summary:hover { background: #f5f8f9; }
.crm-consultation-disclosure[open] > summary { border-bottom: 1px solid var(--crm-border); border-radius: 9px 9px 0 0; }
.crm-consultation-disclosure-body { padding: 1rem; }
.crm-consultation-disclosure-body > :first-child { margin-top: 0; }
.crm-consultation-disclosure-body > :last-child { margin-bottom: 0; }
.crm-consultation-disclosure-body > .crm-consultation-piece:first-child { border-top: 0; }
.crm-consultation-reason { margin: -.1rem 0 1.6rem; color: var(--crm-accent); }
.crm-consultation-reason > summary { width: fit-content; min-height: 24px; padding: .35rem 0; font-size: .9rem; }
.crm-consultation-reason[open] { padding-bottom: .5rem; }
.crm-consultation-reason .crm-consultation-citations { margin: .5rem 0 0; padding: 0; list-style: none; }
.crm-consultation-evidence { padding: 1rem; border-left: 3px solid var(--crm-border); background: #f7f9fa; color: var(--crm-ink); border-radius: 0 7px 7px 0; }
.crm-consultation-evidence blockquote { margin: .75rem 0; padding: 0; border: 0; background: transparent; color: var(--crm-ink); }
.crm-consultation-evidence > :last-child { margin-bottom: 0; }
.crm-consultation-evidence > h4 { margin: 0; font-size: .95rem; }
.crm-consultation-evidence + .crm-consultation-evidence { margin-top: .75rem; }
.crm-consultation .crm-consultation-technical { color: var(--crm-muted); font-size: .85rem; }
.crm-saved-consultation > section:has(> .crm-consultation-disclosure) { padding: 0; border: 0; background: transparent; }
.crm-saved-consultation > section > .crm-consultation-disclosure { margin: 0; }
.crm-draft-text .WA_FieldTable,
.crm-draft-text .WA_FieldTable > tbody,
.crm-draft-text .WA_FieldTable > tbody > tr,
.crm-draft-text .WA_FieldTable > tbody > tr > td { display: block; width: auto; }
.crm-draft-text .WA_FieldTable > tbody > tr > td { padding: .6rem 0; }
.crm-draft-dialog textarea { min-height: 45vh; width: 100% !important; box-sizing: border-box; }
.crm-draft-dialog > tbody > tr:nth-child(2) > td > div > table,
.crm-draft-dialog > tbody > tr:nth-child(2) > td > div > table > tbody,
.crm-draft-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr,
.crm-draft-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr > td { display: block; width: 100% !important; box-sizing: border-box; }
.crm-draft-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr > td:first-child { padding: .5rem 0 !important; }
.crm-draft-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr:has(input[type="checkbox"]) { display: flex; align-items: flex-start; gap: .7rem; margin-top: .5rem; }
.crm-draft-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr:has(input[type="checkbox"]) > td:first-child { order: 2; flex: 1; padding: 0 !important; }
.crm-draft-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr:has(input[type="checkbox"]) > td:last-child { order: 1; width: auto !important; padding: 0; }
#crm-consultation-need-preview:not(:empty) { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid #dae5e9; }

@media (max-width: 640px) {
    body:has(.crm-draft-page) .WA_NavBar.App td.WA_NavBar_Title.Pulsable:has(~ td.WA_NavBar_Title.Pulsable) { display: none; }
    /* Keep the current title and account menu visible when the breadcrumb path grows. */
    .WA_NavBar.App td.WA_NavBar_Title { padding-right: .4em; padding-left: .4em; }
    .WA_NavBar.App td.WA_NavBar_Title > div { font-size: 1em; }
    .WA_NavBar.App td.WA_NavBar_Title.Pulsable > div { max-width: clamp(2rem, 10vw, 4rem); }
    /* Archive paths can have five ancestors: retain the nearest one, back, current title and account. */
    body:has(.crm-saved-consultation, #crm_saved_consultations) .WA_NavBar.App td.WA_NavBar_Title.Pulsable:has(~ td.WA_NavBar_Title.Pulsable) { display: none; }
    .crm-page { width: calc(100% - 2rem); margin-top: 1.5rem; }
    .crm-page-header, .crm-company-summary { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
    .crm-card, .crm-auth-panel, .crm-company-summary { padding: 1.5rem; }
    .crm-consultation.crm-page { width: calc(100% - 1.5rem); }
    .crm-consultation > .crm-card { padding: 1rem; }
    .crm-consultation .crm-consultation-disclosure-body { padding: .85rem; }
    .crm-consultation .crm-consultation-evidence { padding: .75rem; }
    .crm-auth-shell { align-items: flex-start; padding-top: 1.5rem; }
    .crm-shortcuts, .crm-form-grid { grid-template-columns: minmax(0, 1fr); }
    .crm-form-actions { justify-content: stretch; }
    .crm-form-actions > * { flex: 1; }
    .crm-framework .crm-page-header > .WA_ActionBar { justify-content: flex-start; width: 100%; }
    .crm-framework .WA_ActionBar > button { flex: 0 1 auto; }
    .crm-framework .crm-record-card { padding: 1.25rem; }
    .crm-framework .WA_FieldTable > tbody > tr > td { padding-top: .85rem; padding-bottom: .85rem; }
    .crm-framework .WA_FieldTable > tbody > tr > td:first-child { width: 40%; padding-right: .65rem; }
    /* Long documentary fields need the full width on mobile, while retaining the framework markup. */
    .crm-knowledge-page .WA_FieldTable,
    .crm-knowledge-page .WA_FieldTable > tbody,
    .crm-knowledge-page .WA_FieldTable > tbody > tr,
    .crm-knowledge-page .WA_FieldTable > tbody > tr > td { display: block; }
    .crm-knowledge-page .WA_FieldTable > tbody > tr { padding: .85rem 0; border-bottom: 1px solid #edf1f3; }
    .crm-knowledge-page .WA_FieldTable > tbody > tr:last-child { border-bottom: 0; }
    .crm-knowledge-page .WA_FieldTable > tbody > tr > td:first-child,
    .crm-knowledge-page .WA_FieldTable > tbody > tr > td:last-child { width: auto; padding: 0; border: 0; }
    .crm-knowledge-page .WA_FieldTable > tbody > tr > td:first-child { margin-bottom: .45rem; }
    .crm-framework .WA_RecordTable > tbody > tr > td { padding: .9rem; }
    .crm-record-dialog > tbody > tr:nth-child(2) > td > div { padding: 1rem !important; }
    .crm-record-dialog > tbody > tr:nth-child(2) > td > div > table > tbody > tr > td:first-child { width: 36%; padding-right: .65rem !important; }
    .crm-record-dialog > tbody > tr:last-child > td > .WA_NavBar { padding: 1rem; }
}

/* Company overview: bounded recent records, with the original detail one link away. */
.crm-commercial-overview { margin-bottom: 2rem; }
.crm-overview-heading { margin-bottom: 1.25rem; }
.crm-overview-heading .crm-intro { max-width: 54rem; }
.crm-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.crm-followup-overview { margin-bottom: 1.25rem; }
.crm-overview-card { min-width: 0; padding: 1.5rem; overflow-wrap: anywhere; }
.crm-overview-card h3 { margin: 0 0 1rem; font-size: 1.15rem; }
.crm-overview-list { list-style: none; margin: 0; padding: 0; }
.crm-overview-list > li { padding: 1rem 0; border-top: 1px solid var(--crm-border); }
.crm-overview-list > li:first-child { padding-top: 0; border-top: 0; }
.crm-overview-title { font-weight: 600; }
.crm-overview-preview { margin: .5rem 0; white-space: pre-line; }
.crm-overview-list > li > .crm-overview-preview:first-child { margin-top: 0; }
.crm-overview-meta { margin: .5rem 0; font-size: .85rem; color: var(--crm-muted); }
.crm-overview-empty { color: var(--crm-muted); margin: 0 0 1rem; }
.crm-overview-all { display: inline-block; margin-top: .75rem; font-weight: 600; }
@media (max-width: 800px) { .crm-overview-grid { grid-template-columns: minmax(0, 1fr); } }
/* Seguimiento manual: lectura de estado, actuación e historial en una sola columna. */
.crm-followup-filters { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.25rem 0; }
.crm-followup-filters a { padding: .4rem 0; }
.crm-followup-filters a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid currentColor; }
.crm-action-facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 1.5rem; }
.crm-action-facts dt { font-weight: 700; margin-bottom: .3rem; }
.crm-action-facts dd { margin: 0; }
.crm-card:has(.crm-action-facts) + .crm-card { margin-top: 1.25rem; }
.crm-action-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-action-history { list-style: none; padding: 0; margin: 1rem 0 0; }
.crm-action-history li { padding: 1.2rem 0; border-top: 1px solid #d8e3e8; overflow-wrap: anywhere; }
.crm-action-history h3 { margin: 0 0 .4rem; font-size: 1rem; }
.crm-action-history p { margin: .5rem 0; }
.crm-today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; margin: 1.5rem 0; }
.crm-today-group { min-width: 0; margin: 0; padding: 1.5rem; }
.crm-today-group h2 { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 0; color: var(--crm-accent); }
.crm-today-count { font-size: 1rem; background: #edf4f6; border-radius: 999px; padding: .2rem .6rem; }
.crm-today-items { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.crm-today-items li { padding: 1rem 0; border-bottom: 1px solid #d8e3e7; overflow-wrap: anywhere; }
.crm-today-items li:first-child { padding-top: .25rem; }
.crm-today-items p { margin: .4rem 0 0; }
.crm-today-subject { font-weight: 600; }
.crm-responsible-filter { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; }
.crm-responsible-filter select { padding: .6rem; border: 1px solid #b6c9d0; border-radius: 6px; min-width: 12rem; max-width: 100%; min-height: 2.75rem; font: inherit; color: var(--crm-ink); background: #fff; }
.crm-field > #timezone { width: 100%; min-height: 2.75rem; padding: .6rem; border: 1px solid #b6c9d0; border-radius: 6px; font: inherit; color: var(--crm-ink); background: #fff; }
@media (max-width: 1050px) { .crm-today-grid { grid-template-columns: 1fr; } }

/* Company presentation only: keep the existing tabs, data and authorized destinations. */
.crm-company-page, .crm-followup-page {
    --crm-accent: #186b5c;
    --crm-ink: #173f47;
    --crm-muted: #506970;
    --crm-border: #d5e3e0;
    padding: 1.75rem;
    background: #f4f8f7;
    border-radius: 12px;
}
.crm-company-page .crm-page-header { margin-bottom: 1.5rem; }
.crm-company-page .crm-eyebrow { margin-bottom: .45rem; }
.crm-company-page .crm-company-tabs { margin-bottom: 1.5rem; }
.crm-company-page .crm-company-tabs .WA_TabSelector { flex-wrap: wrap; overflow-x: visible; gap: .25rem 1.1rem; }
.crm-company-page .crm-company-tabs .WA_TabSelector > button.WA_Button { font-size: 1rem; font-weight: 500; }
.crm-company-page .crm-commercial-overview { margin-bottom: 1.25rem; }
.crm-company-page .crm-overview-card { padding: 1.25rem; border-radius: 9px; }
.crm-company-page .crm-overview-card h3 { font-size: 1.1rem; font-weight: 600; }
.crm-company-page .crm-overview-title { font-weight: 600; font-size: 1rem; }
.crm-company-page .crm-overview-meta { font-size: .9rem; }
.crm-company-page .crm-overview-all { font-size: .95rem; font-weight: 500; }
.crm-company-pending { padding: 1.25rem; margin-bottom: 1.25rem; border: 1px solid #cce3da; border-radius: 9px; background: #e8f4ee; }
.crm-company-pending > h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; font-size: 1rem; font-weight: 500; }
.crm-company-pending .crm-today-count { background: #fff; }
.crm-company-pending-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.crm-company-pending-row > div { min-width: 0; overflow-wrap: anywhere; }
.crm-company-pending-row h4 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.crm-company-pending-row .crm-button { flex-shrink: 0; }
.crm-company-pending .crm-overview-list > li:last-child { padding-bottom: 0; }
.crm-company-pending .crm-overview-empty { margin-bottom: 0; }
.crm-company-main-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.crm-company-quick-info { margin-bottom: 1.25rem; }
.crm-company-quick-info h2 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.crm-company-quick-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; }
.crm-company-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem 1.5rem; margin: 0; }
.crm-company-quick-grid > div { min-width: 0; }
.crm-company-quick-grid dt { font-size: .85rem; color: #52636c; margin-bottom: .3rem; }
.crm-company-quick-grid dd { margin: 0; overflow-wrap: anywhere; }
.crm-company-history-value { min-width: 12rem; max-width: 26rem; white-space: normal; overflow-wrap: anywhere; }
.crm-company-email-source { display: block; margin-top: .35rem; font-size: .8rem; color: var(--crm-muted); }
.crm-company-secondary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; margin-top: 1.25rem; }
.crm-company-card-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }
.crm-company-card-heading h3 { margin-bottom: 0 !important; }
.crm-company-card-heading > a { font-size: .9rem; }
.crm-company-nature { display: table; margin: .65rem 0; padding: .2rem .5rem; border-radius: 4px; font-size: .9rem; color: #234f46; background: #e8f4ee; }
.crm-company-nature-hypothesis { color: #815519; background: #fff2dc; }
.crm-company-consult { display: inline-block; margin-top: .4rem; }
.crm-company-meta-details { margin-top: .75rem; }
.crm-company-meta-details > summary { padding: .35rem 0; cursor: pointer; color: var(--crm-accent); }
.crm-company-meta-details > summary { font-size: .9rem; }
.crm-company-meta-details[open] > summary { margin-bottom: .65rem; }
.crm-company-page .crm-company-short-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.crm-company-page a.crm-company-short-preview:focus-visible { display: block; overflow: visible; }
.crm-company-page .crm-company-secondary-grid .crm-overview-all { display: block; }
.crm-company-page .crm-company-data { padding: 1rem 1.25rem; border-radius: 9px; }
.crm-company-data > h2 { margin-bottom: 1rem; }
.crm-company-page .crm-contacts-panel, .crm-company-page .crm-contact-card { padding: 1.25rem; border-radius: 9px; }
.crm-company-page .crm-contacts-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; }
.crm-company-page .crm-contacts-heading > h2, .crm-company-page .crm-contact-card > h2 { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--crm-ink); }
.crm-company-page .crm-contact-card > h2 { margin-bottom: 1.25rem; }
.crm-company-page .crm-contacts-heading > .WA_ActionBar { margin: 0; }
.crm-framework.crm-contacts-list .WA_RecordTable { min-width: 48rem; border-radius: 7px; }
.crm-contacts-list .WA_RecordTable > tbody > tr > th, .crm-contacts-list .WA_RecordTable > thead > tr > th { white-space: normal; font-size: .82rem; background: #f4f8f7; padding: .85rem; }
.crm-contacts-list .WA_RecordTable > tbody > tr > td { padding: 1rem .85rem; }
.crm-contacts-list .WA_RecordTable .crm-contact-identity { min-width: 10rem; }
.crm-contacts-list .crm-contact-identity small.crm-intro { display: block; margin-top: .25rem; }
.crm-contacts-list .WA_RecordTable .crm-contact-role { font-weight: 500; }
.crm-company-page #crm-contact-new:hover { background-color: #125447; border-color: #125447; }
/* Needs share the company setting; current provenance stays next to each editable value. */
.crm-company-page .crm-needs-panel, .crm-company-page .crm-need-card { padding: 1.25rem; border-radius: 9px; max-width: none; }
.crm-company-page .crm-needs-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; }
.crm-company-page .crm-needs-heading > h2, .crm-company-page .crm-need-card > h2,
.crm-company-page .crm-need-followup h2 { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--crm-ink); }
.crm-company-page .crm-needs-heading > .WA_ActionBar, .crm-company-page .crm-need-tools > .WA_ActionBar { margin: 0; }
.crm-company-page .crm-needs-panel > .crm-intro { margin: 0 0 1.25rem; font-size: .9rem; }
.crm-company-page .crm-need-tools { margin-bottom: 1rem; }
.crm-framework.crm-needs-list .WA_RecordTable { min-width: 44rem; border-radius: 7px; }
.crm-needs-list .WA_RecordTable > tbody > tr > th, .crm-needs-list .WA_RecordTable > thead > tr > th { white-space: normal; font-size: .82rem; background: #f4f8f7; padding: .85rem; }
.crm-needs-list .WA_RecordTable > tbody > tr > td { padding: 1rem .85rem; }
.crm-needs-list .WA_RecordTable > tbody > tr > td:first-child { min-width: 12rem; font-weight: 600; }
.crm-framework.crm-needs-list .WA_RecordTable > tbody > tr > td.crm-art-actions { min-width: 8rem; }
.crm-company-page .crm-need-provenance { font-size: .85rem; }
.crm-need-nature { display: inline-block; padding: .1rem .35rem; border-radius: 4px; font-weight: 500; }
.crm-company-page .crm-need-hint { max-width: none; margin: .65rem 0 1rem; }
.crm-company-page .crm-need-followup { margin-top: 1.5rem; }
.crm-company-page .crm-need-followup > .crm-page-header { margin-bottom: 1rem; }
.crm-company-page .crm-need-history { margin-top: 1.25rem; padding: .25rem 1.25rem; border-radius: 9px; }
.crm-company-page #crm-need-new { color: #fff; background-color: var(--crm-accent); border-color: var(--crm-accent); }
.crm-company-page #crm-need-new img.WA_BlackIcon { filter: invert(1); }
.crm-company-page #crm-need-new:hover, .crm-company-page #crm-need-create-action:hover { background-color: #125447; border-color: #125447; }
/* Internal notes keep their existing read-only content and company authorization. */
.crm-company-page .crm-activity-panel, .crm-company-page .crm-activity-card { padding: 1.25rem; border-radius: 9px; max-width: none; }
.crm-company-page .crm-activity-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; }
.crm-company-page .crm-activity-heading > h2, .crm-company-page .crm-activity-card > h2 { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--crm-ink); }
.crm-company-page .crm-activity-heading > .WA_ActionBar { margin: 0; }
.crm-company-page .crm-activity-panel > .crm-intro { margin: 0 0 1.25rem; font-size: .9rem; }
.crm-framework.crm-activity-list .WA_RecordTable { min-width: 48rem; border-radius: 7px; }
.crm-company-page.crm-activity-list .WA_RecordTable > tbody > tr > th, .crm-company-page.crm-activity-list .WA_RecordTable > thead > tr > th { white-space: normal; font-size: .82rem; background: #f4f8f7; padding: .85rem; }
.crm-company-page.crm-activity-list .WA_RecordTable > tbody > tr > td { padding: 1rem .85rem; }
.crm-company-page.crm-activity-list .crm-activity-note { font-weight: 600; overflow-wrap: anywhere; }
.crm-company-page .crm-activity-card > h2 { margin-bottom: 1.25rem; }
.crm-company-page .crm-activity-card .WA_FieldTable > tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.crm-company-page .crm-activity-card .WA_FieldTable > tbody > tr { display: block; min-width: 0; }
.crm-company-page .crm-activity-card .WA_FieldTable > tbody > tr > td { display: block; width: auto; padding: 0; border: 0; }
.crm-company-page .crm-activity-card .WA_FieldTable > tbody > tr > td:first-child { margin-bottom: .4rem; }
.crm-company-page .crm-activity-card .crm-note-body { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--crm-border); }
.crm-company-page .crm-activity-card .crm-note-body > div { max-width: 75ch; line-height: 1.7; }
.crm-company-page #crm-activity-new { color: #fff; background-color: var(--crm-accent); border-color: var(--crm-accent); }
.crm-company-page #crm-activity-new img.WA_BlackIcon { filter: invert(1); }
.crm-company-page #crm-activity-new:hover { background-color: #125447; border-color: #125447; }

/* Acciones: el mismo entorno, también para la vista personal sin pestañas de empresa. */
.crm-followup-page .crm-page-header { margin-bottom: 1.5rem; }
.crm-followup-page .crm-page-header > div { min-width: 0; }
.crm-followup-page .crm-page-header h1 { overflow-wrap: anywhere; }
.crm-followup-page .crm-followup-panel, .crm-followup-page .crm-followup-card,
.crm-followup-page .crm-followup-history { padding: 1.25rem; border-radius: 9px; max-width: none; }
.crm-followup-page .crm-followup-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; }
.crm-followup-page .crm-followup-heading > h2, .crm-followup-page .crm-followup-history > h2,
.crm-followup-page .crm-followup-description-title { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--crm-ink); }
.crm-followup-page .crm-followup-subject { margin: 0 0 1.25rem; font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }
.crm-followup-page .crm-followup-heading > .WA_ActionBar, .crm-followup-page .crm-followup-tools > .WA_ActionBar { margin: 0; }
.crm-followup-page .crm-calendar-reference { max-width: none; margin: 1rem 0; font-size: .85rem; }
.crm-followup-page .crm-followup-need { margin: 1rem 0; overflow-wrap: anywhere; }
.crm-followup-page .crm-followup-filters { gap: .5rem; margin: 1.25rem 0 .75rem; }
.crm-followup-page .crm-followup-filters a { padding: .55rem .85rem; border: 1px solid var(--crm-border); border-radius: 6px; text-decoration: none; font-size: .95rem; }
.crm-followup-page .crm-followup-filters a:hover { background: #f4f8f7; }
.crm-followup-page .crm-followup-filters a[aria-current="page"] { color: #124e41; background: #e8f4ee; border-color: #9ac6b8; font-weight: 600; }
.crm-followup-page .crm-followup-hint { max-width: none; margin: 0 0 1rem; font-size: .85rem; }
.crm-followup-page .crm-followup-footer { margin: 1.25rem 0 0; font-size: .9rem; }
.crm-followup-list .WA_RecordTable > tbody > tr > th, .crm-followup-list .WA_RecordTable > thead > tr > th { white-space: normal; font-size: .82rem; background: #f4f8f7; padding: .85rem; }
.crm-followup-list .WA_RecordTable > tbody > tr > td { padding: 1rem .85rem; }
.crm-followup-list .WA_RecordTable > tbody > tr > td:first-child { font-weight: 600; overflow-wrap: anywhere; }
.crm-followup-page .crm-action-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.crm-followup-page .crm-action-facts > div { min-width: 0; padding: 1rem; border: 1px solid var(--crm-border); border-radius: 6px; background: #f4f8f7; overflow-wrap: anywhere; }
.crm-followup-page .crm-action-facts dt { color: var(--crm-muted); font-size: .85rem; font-weight: 400; }
.crm-followup-page .crm-action-facts dd { font-weight: 600; }
.crm-followup-page .crm-followup-card > .crm-action-text { max-width: 75ch; margin: .75rem 0 1.25rem; line-height: 1.7; }
.crm-followup-page .crm-followup-description-title { margin-top: 1.5rem; }
.crm-followup-page .crm-followup-tools { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--crm-border); }
.crm-followup-page .crm-followup-history { margin-top: 1.25rem; }
.crm-followup-page .crm-followup-history > .crm-intro { font-size: .9rem; margin: .65rem 0 1rem; }
.crm-followup-page .crm-action-history li { padding: 1rem; margin-top: .75rem; border: 1px solid var(--crm-border); border-left: 3px solid #c2d8d1; border-radius: 6px; }
.crm-followup-page .crm-action-history li:first-child { margin-top: 0; }
.crm-followup-page .crm-action-history li.crm-action-result { background: #f4f8f7; border-left-color: var(--crm-accent); }
.crm-followup-page .crm-action-history .crm-intro, .crm-followup-page .crm-action-history-state { font-size: .85rem; color: var(--crm-muted); }
.crm-followup-page #crm-action-new, .crm-followup-page #crm-action-work { color: #fff; background-color: var(--crm-accent); border-color: var(--crm-accent); }
.crm-followup-page #crm-action-new img.WA_BlackIcon, .crm-followup-page #crm-action-work img.WA_BlackIcon { filter: invert(1); }
.crm-followup-page #crm-action-new:hover, .crm-followup-page #crm-action-work:hover { background-color: #125447; border-color: #125447; }

/* Consulta y archivo: pasos explícitos sobre el entorno compartido de empresa. */
.crm-consultation-page .crm-page-header > div, .crm-consultation-history-page .crm-page-header > div { min-width: 0; }
.crm-consultation-page > .crm-card, .crm-consultation-history-page .crm-consultation-history-panel { padding: 1.25rem; border-radius: 9px; max-width: none; }
.crm-consultation-page > .crm-card h2, .crm-consultation-history-heading > h2 { font-size: 1.15rem; font-weight: 600; color: var(--crm-ink); }
.crm-consultation-page .crm-consultation-step-title { display: flex; align-items: center; gap: .75rem; }
.crm-consultation-step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: #e8f4ee; color: #124e41; font-size: .95rem; font-weight: 600; }
.crm-consultation-page #crm-consultation-answer, .crm-consultation-page .crm-consultation-result { border-top: 3px solid var(--crm-accent); }
.crm-consultation-page .crm-consultation-form > p { color: var(--crm-muted); max-width: 85ch; margin: .85rem 0 1.25rem; }
.crm-consultation-page .crm-consultation-actions { border-top: 1px solid var(--crm-border); padding-top: 1rem; margin-top: 1rem; gap: .75rem 1rem; }
.crm-consultation-page #crm-consultation-answer-body > h3, .crm-consultation-page .crm-consultation-result > h3 { margin-top: 1.75rem; margin-bottom: .75rem; font-size: 1.05rem; }
.crm-consultation-page #crm-consultation-answer-body > p, .crm-consultation-page .crm-consultation-result > .crm-consultation-saved-text { max-width: 85ch; line-height: 1.7; }
.crm-consultation-page .crm-consultation-notice, .crm-consultation-page .crm-message:not(.crm-consultation-error) { background: #eef6f3; }
.crm-consultation-page .crm-consultation-limits, .crm-consultation-page .crm-consultation-evidence { background: #f4f8f7; }
.crm-consultation-page #crm-consultation-action-panel { background: #e8f4ee; border-color: #cce3da; }
.crm-consultation-page #crm-consultation-action-panel > p, .crm-consultation-page #crm-draft-create-panel > p { max-width: 85ch; }
.crm-consultation-page .crm-consultation-need-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.crm-consultation-page .crm-consultation-need-data > div { min-width: 0; border-color: var(--crm-border); }
.crm-consultation-page .crm-consultation-need-data > div:first-child { grid-column: 1 / -1; }
.crm-consultation-page .crm-consultation-need-data small, .crm-consultation-page .crm-consultation-recorded-need small { color: var(--crm-muted); }
.crm-consultation-page .crm-record-card, .crm-consultation-page > section:has(> .crm-consultation-disclosure) { padding: 0; }
.crm-consultation-history-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; }
.crm-consultation-history-heading > .WA_ActionBar { margin: 0; }
.crm-consultation-history-panel > .crm-intro { max-width: none; margin: 1rem 0; font-size: .9rem; }
.crm-consultation-history-page .WA_RecordTable > tbody > tr > th, .crm-consultation-history-page .WA_RecordTable > thead > tr > th { white-space: normal; font-size: .82rem; background: #f4f8f7; padding: .85rem; }
.crm-consultation-history-page .WA_RecordTable > tbody > tr > td { padding: 1rem .85rem; }
.crm-consultation-history-page .crm-saved-kind { display: block; width: fit-content; margin-bottom: .45rem; padding: .2rem .55rem; border-radius: 5px; background: #eef6f3; color: #124e41; font-size: .8rem; font-weight: 600; }
.crm-consultation-history-page #crm-consultation-new { color: #fff; background-color: var(--crm-accent); border-color: var(--crm-accent); }
.crm-consultation-history-page #crm-consultation-new img.WA_BlackIcon { filter: invert(1); }
.crm-consultation-history-page #crm-consultation-new:hover { background-color: #125447; border-color: #125447; }
/* Borradores: lectura y edición por idioma, con revisiones siempre identificadas. */
.crm-draft-page .crm-page-header > div { min-width: 0; }
.crm-draft-page > .crm-card { padding: 1.25rem; border-radius: 9px; max-width: none; }
.crm-draft-page h2 { font-size: 1.15rem; font-weight: 600; color: var(--crm-ink); overflow-wrap: anywhere; }
.crm-draft-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; margin-bottom: 1rem; }
.crm-draft-heading > h2 { margin: 0; min-width: 0; }
.crm-draft-heading > .WA_ActionBar { margin: 0; }
.crm-draft-page .crm-draft-summary { border-top: 3px solid var(--crm-accent); }
.crm-draft-revision { flex-shrink: 0; padding: .3rem .65rem; background: #e8f4ee; border-radius: 1rem; color: #124e41; font-size: .85rem; font-weight: 600; }
.crm-draft-need { margin: 0 0 1rem; font-size: .9rem; overflow-wrap: anywhere; }
.crm-draft-page .crm-consultation-notice { background: #eef6f3; margin-bottom: 0; }
.crm-draft-page .crm-message { background: #fff5e5; color: #66450e; border-left: 3px solid #cf9c49; }
.crm-draft-historical > p { margin: 0 0 .5rem; }
.crm-draft-page .crm-consultation-saved-text { max-width: 85ch; line-height: 1.75; }
.crm-draft-page .crm-draft-text .WA_FieldTable { margin-bottom: 0; }
.crm-draft-page .crm-draft-text .WA_FieldTable > tbody > tr > td:first-child { font-size: .85rem; color: var(--crm-muted); padding-bottom: .25rem; }
.crm-draft-page .crm-draft-text .WA_FieldTable > tbody > tr.WA_Button:focus-visible { outline: 2px solid var(--crm-accent); outline-offset: 4px; }
.crm-draft-page .crm-draft-translation-tools { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--crm-border); }
.crm-draft-translation-tools > p, .crm-draft-list-panel > .crm-intro { font-size: .9rem; max-width: 85ch; }
.crm-draft-list-panel > .crm-intro { margin: 1rem 0; }
.crm-draft-page .crm-consultation-limits { background: #f4f8f7; }
.crm-draft-page .crm-draft-history { padding: .25rem 1.25rem; }
.crm-draft-page .crm-draft-history > p { font-size: .9rem; color: var(--crm-muted); }
.crm-draft-page .WA_RecordTable > tbody > tr > th, .crm-draft-page .WA_RecordTable > thead > tr > th { white-space: normal; font-size: .82rem; background: #f4f8f7; padding: .85rem; }
.crm-draft-page .WA_RecordTable > tbody > tr > td { padding: 1rem .85rem; }
@media (max-width: 900px) {
    .crm-company-main-grid, .crm-company-secondary-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .crm-company-page, .crm-followup-page { width: calc(100% - 1.5rem); padding: 1rem; }
    .crm-company-page .crm-overview-card, .crm-company-pending { padding: 1rem; }
    .crm-company-pending-row { align-items: flex-start; flex-direction: column; }
    .crm-company-page .crm-company-tabs .WA_TabSelector { gap: .25rem .85rem; }
    .crm-company-page .crm-company-tabs .WA_TabSelector > button.WA_Button { font-size: .95rem; white-space: normal; }
    .crm-company-page .crm-company-data { padding: .75rem 1rem; }
    .crm-company-page .crm-contacts-panel, .crm-company-page .crm-contact-card { padding: 1rem; }
    .crm-company-page .crm-contacts-heading { align-items: flex-start; flex-direction: column; }
    .crm-company-page .crm-contacts-heading > .WA_ActionBar { justify-content: flex-start; width: 100%; }
    .crm-company-page .crm-needs-panel, .crm-company-page .crm-need-card { padding: 1rem; }
    .crm-company-page .crm-needs-heading { align-items: flex-start; flex-direction: column; }
    .crm-company-page .crm-needs-heading > .WA_ActionBar, .crm-company-page .crm-need-tools > .WA_ActionBar { justify-content: flex-start; width: 100%; }
    .crm-company-page .crm-need-history { padding: .25rem 1rem; }
    .crm-company-page .crm-activity-panel, .crm-company-page .crm-activity-card { padding: 1rem; }
    .crm-company-page .crm-activity-heading { align-items: flex-start; flex-direction: column; }
    .crm-company-page .crm-activity-heading > .WA_ActionBar { justify-content: flex-start; width: 100%; }
    .crm-company-page .crm-activity-card .WA_FieldTable > tbody { grid-template-columns: minmax(0, 1fr); }
    .crm-followup-page .crm-followup-panel, .crm-followup-page .crm-followup-card, .crm-followup-page .crm-followup-history { padding: 1rem; }
    .crm-followup-page .crm-followup-heading { align-items: flex-start; flex-direction: column; }
    .crm-followup-page .crm-followup-heading > .WA_ActionBar, .crm-followup-page .crm-followup-tools > .WA_ActionBar { justify-content: flex-start; width: 100%; }
    .crm-followup-page .crm-action-facts { grid-template-columns: minmax(0, 1fr); }
    .crm-consultation-page > .crm-card, .crm-consultation-history-page .crm-consultation-history-panel { padding: 1rem; }
    .crm-consultation-page .crm-record-card, .crm-consultation-page > section:has(> .crm-consultation-disclosure) { padding: 0; }
    .crm-consultation-page .crm-consultation-need-data { grid-template-columns: minmax(0, 1fr); }
    .crm-consultation-history-heading { align-items: flex-start; flex-direction: column; }
    .crm-consultation-history-heading > .WA_ActionBar { justify-content: flex-start; width: 100%; }
    .crm-draft-page > .crm-card { padding: 1rem; }
    .crm-draft-page .crm-draft-history { padding: .25rem 1rem; }
    .crm-draft-heading { align-items: flex-start; flex-direction: column; }
    .crm-draft-heading > .WA_ActionBar { justify-content: flex-start; width: 100%; }
}

/* Prospección: continuidad visual con la ficha de empresa. */
.crm-prospecting-page > .crm-card { margin-top: 1.25rem; }
.crm-prospecting-page .crm-fold { margin-top: 1.25rem; padding-top: .75rem; }
.crm-prospecting-page form { display: grid; gap: .75rem; margin-top: 1rem; }
.crm-prospecting-page select, .crm-prospecting-page textarea { width: 100%; max-width: 48rem; box-sizing: border-box; }
.crm-prospecting-page blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid #187468; background: #f3f8f6; }
.crm-prospect-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.crm-prospecting-page [data-prospect-contact] input { width: 100%; max-width: 48rem; box-sizing: border-box; min-height: 44px; padding: .65rem .8rem; border: 1px solid #cbdedb; border-radius: 6px; background: white; color: inherit; font: inherit; }
.crm-prospecting-page [data-prospect-contact] button { justify-self: start; }
.crm-prospecting-page .crm-contact-review-entry + .crm-contact-review-entry { border-top: 1px solid #cbdedb; margin-top: 1rem; padding-top: 1rem; }
.crm-prospecting-page section[id^="finding-"] { scroll-margin-top: 5rem; }
.crm-prospecting-page a { overflow-wrap: anywhere; }
.crm-prospect-config { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.crm-prospect-config label { display: block; margin-bottom: .4rem; }
.crm-prospect-config select, .crm-prospect-config input { width: 100%; box-sizing: border-box; min-height: 44px; padding: .65rem .8rem; border: 1px solid #cbdedb; border-radius: 6px; background: white; color: inherit; font: inherit; }
@media (max-width: 700px) { .crm-prospect-config { grid-template-columns: 1fr; } }
